From 9d9ccb7be75a6bf428f4e6c397d5034770424726 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 4 Jan 2023 23:00:47 +0100 Subject: Core/Proto: Re-generate protobuf services optimized for CODE_SIZE (compile time) instead of SPEED --- src/server/proto/Client/account_service.pb.cc | 5795 +----- src/server/proto/Client/account_service.pb.h | 352 +- src/server/proto/Client/account_types.pb.cc | 10197 +--------- src/server/proto/Client/account_types.pb.h | 442 - .../proto/Client/api/client/v1/channel_id.pb.cc | 247 +- .../proto/Client/api/client/v1/channel_id.pb.h | 13 - .../Client/api/client/v2/attribute_types.pb.cc | 759 +- .../Client/api/client/v2/attribute_types.pb.h | 39 - .../Client/api/client/v2/report_service.pb.cc | 395 +- .../proto/Client/api/client/v2/report_service.pb.h | 21 +- .../proto/Client/api/client/v2/report_types.pb.cc | 1047 +- .../proto/Client/api/client/v2/report_types.pb.h | 52 - src/server/proto/Client/attribute_types.pb.cc | 924 +- src/server/proto/Client/attribute_types.pb.h | 39 - .../proto/Client/authentication_service.pb.cc | 5551 +----- .../proto/Client/authentication_service.pb.h | 284 +- src/server/proto/Client/challenge_service.pb.cc | 487 +- src/server/proto/Client/challenge_service.pb.h | 35 +- src/server/proto/Client/channel_types.pb.cc | 2539 +-- src/server/proto/Client/channel_types.pb.h | 118 - src/server/proto/Client/club_ban.pb.cc | 638 +- src/server/proto/Client/club_ban.pb.h | 26 - src/server/proto/Client/club_core.pb.cc | 4795 +---- src/server/proto/Client/club_core.pb.h | 182 - src/server/proto/Client/club_enum.pb.cc | 4 +- src/server/proto/Client/club_invitation.pb.cc | 2381 +-- src/server/proto/Client/club_invitation.pb.h | 91 - src/server/proto/Client/club_listener.pb.cc | 75 +- src/server/proto/Client/club_listener.pb.h | 9 +- src/server/proto/Client/club_listener.proto | 2 +- src/server/proto/Client/club_member.pb.cc | 4011 +--- src/server/proto/Client/club_member.pb.h | 198 - src/server/proto/Client/club_member_id.pb.cc | 199 +- src/server/proto/Client/club_member_id.pb.h | 13 - .../proto/Client/club_membership_listener.pb.cc | 1773 +- .../proto/Client/club_membership_listener.pb.h | 113 +- .../proto/Client/club_membership_service.pb.cc | 2179 +-- .../proto/Client/club_membership_service.pb.h | 144 +- .../proto/Client/club_membership_types.pb.cc | 1606 +- src/server/proto/Client/club_membership_types.pb.h | 118 - src/server/proto/Client/club_notification.pb.cc | 5455 +----- src/server/proto/Client/club_notification.pb.h | 273 - src/server/proto/Client/club_range_set.pb.cc | 1729 +- src/server/proto/Client/club_range_set.pb.h | 91 - src/server/proto/Client/club_request.pb.cc | 18860 +------------------ src/server/proto/Client/club_request.pb.h | 1080 -- src/server/proto/Client/club_role.pb.cc | 2461 +-- src/server/proto/Client/club_role.pb.h | 40 - src/server/proto/Client/club_service.pb.cc | 2594 ++- src/server/proto/Client/club_service.pb.h | 62 +- src/server/proto/Client/club_service.proto | 2 +- src/server/proto/Client/club_stream.pb.cc | 5138 +---- src/server/proto/Client/club_stream.pb.h | 237 - src/server/proto/Client/club_types.pb.cc | 4 +- src/server/proto/Client/connection_service.pb.cc | 2808 +-- src/server/proto/Client/connection_service.pb.h | 159 +- src/server/proto/Client/content_handle_types.pb.cc | 299 +- src/server/proto/Client/content_handle_types.pb.h | 13 - src/server/proto/Client/embed_types.pb.cc | 1134 +- src/server/proto/Client/embed_types.pb.h | 52 - src/server/proto/Client/entity_types.pb.cc | 402 +- src/server/proto/Client/entity_types.pb.h | 26 - src/server/proto/Client/ets_types.pb.cc | 204 +- src/server/proto/Client/ets_types.pb.h | 13 - src/server/proto/Client/event_view_types.pb.cc | 482 +- src/server/proto/Client/event_view_types.pb.h | 26 - src/server/proto/Client/friends_service.pb.cc | 4735 +---- src/server/proto/Client/friends_service.pb.h | 290 +- src/server/proto/Client/friends_types.pb.cc | 2785 +-- src/server/proto/Client/friends_types.pb.h | 108 - .../proto/Client/game_utilities_service.pb.cc | 2969 +-- .../proto/Client/game_utilities_service.pb.h | 171 +- src/server/proto/Client/game_utilities_types.pb.cc | 441 +- src/server/proto/Client/game_utilities_types.pb.h | 26 - .../Client/global_extensions/field_options.pb.cc | 2376 +-- .../Client/global_extensions/field_options.pb.h | 117 - .../Client/global_extensions/message_options.pb.cc | 200 +- .../Client/global_extensions/message_options.pb.h | 13 - .../Client/global_extensions/method_options.pb.cc | 423 +- .../Client/global_extensions/method_options.pb.h | 13 - .../proto/Client/global_extensions/range.pb.cc | 600 +- .../proto/Client/global_extensions/range.pb.h | 39 - .../proto/Client/global_extensions/routing.pb.cc | 4 +- .../Client/global_extensions/service_options.pb.cc | 639 +- .../Client/global_extensions/service_options.pb.h | 26 - src/server/proto/Client/invitation_types.pb.cc | 734 +- src/server/proto/Client/invitation_types.pb.h | 26 - src/server/proto/Client/message_types.pb.cc | 204 +- src/server/proto/Client/message_types.pb.h | 13 - src/server/proto/Client/notification_types.pb.cc | 1186 +- src/server/proto/Client/notification_types.pb.h | 52 - src/server/proto/Client/presence_listener.pb.cc | 408 +- src/server/proto/Client/presence_listener.pb.h | 35 +- src/server/proto/Client/presence_service.pb.cc | 2407 +-- src/server/proto/Client/presence_service.pb.h | 130 +- src/server/proto/Client/presence_types.pb.cc | 1341 +- src/server/proto/Client/presence_types.pb.h | 78 - .../proto/Client/profanity_filter_config.pb.cc | 377 +- .../proto/Client/profanity_filter_config.pb.h | 26 - src/server/proto/Client/report_service.pb.cc | 461 +- src/server/proto/Client/report_service.pb.h | 35 +- src/server/proto/Client/report_types.pb.cc | 2263 +-- src/server/proto/Client/report_types.pb.h | 117 - src/server/proto/Client/resource_service.pb.cc | 290 +- src/server/proto/Client/resource_service.pb.h | 21 +- src/server/proto/Client/role_types.pb.cc | 1108 +- src/server/proto/Client/role_types.pb.h | 33 - src/server/proto/Client/rpc_config.pb.cc | 1397 +- src/server/proto/Client/rpc_config.pb.h | 52 - src/server/proto/Client/rpc_types.pb.cc | 2782 +-- src/server/proto/Client/rpc_types.pb.h | 117 - src/server/proto/Client/user_manager_service.pb.cc | 2576 +-- src/server/proto/Client/user_manager_service.pb.h | 166 +- src/server/proto/Client/user_manager_types.pb.cc | 620 +- src/server/proto/Client/user_manager_types.pb.h | 26 - src/server/proto/Client/voice_types.pb.cc | 380 +- src/server/proto/Client/voice_types.pb.h | 13 - src/server/proto/Login/Login.pb.cc | 2 - src/server/proto/PrecompiledHeaders/protoPCH.h | 1 - src/server/proto/RealmList/RealmList.pb.cc | 7 - src/server/proto/ServiceBase.cpp | 69 + src/server/proto/ServiceBase.h | 19 +- 122 files changed, 4081 insertions(+), 123003 deletions(-) create mode 100644 src/server/proto/ServiceBase.cpp (limited to 'src/server') diff --git a/src/server/proto/Client/account_service.pb.cc b/src/server/proto/Client/account_service.pb.cc index bb5a51110d7..f6f8b57f37e 100644 --- a/src/server/proto/Client/account_service.pb.cc +++ b/src/server/proto/Client/account_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "account_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -785,7 +782,7 @@ void protobuf_AddDesc_account_5fservice_2eproto() { "count.v1.GameAccountSessionNotification\032" "\031.bgs.protocol.NO_RESPONSE\"\t\210\002\001\202\371+\002\010\004\032/\202" "\371+%\n#bnet.protocol.account.AccountNotify" - "\212\371+\002\010\001B\005H\001\200\001\000", 5453); + "\212\371+\002\010\001B\005H\002\200\001\000", 5453); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "account_service.proto", &protobuf_RegisterTypes); ResolveAccountRequest::default_instance_ = new ResolveAccountRequest(); @@ -910,200 +907,9 @@ ResolveAccountRequest* ResolveAccountRequest::New() const { return new ResolveAccountRequest; } -void ResolveAccountRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_ref()) { - if (ref_ != NULL) ref_->::bgs::protocol::account::v1::AccountReference::Clear(); - } - fetch_id_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ResolveAccountRequest::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.ResolveAccountRequest) - 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.AccountReference ref = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_ref())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(96)) goto parse_fetch_id; - break; - } - - // optional bool fetch_id = 12; - case 12: { - if (tag == 96) { - parse_fetch_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fetch_id_))); - set_has_fetch_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.ResolveAccountRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.ResolveAccountRequest) - return false; -#undef DO_ -} - -void ResolveAccountRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.ResolveAccountRequest) - // optional .bgs.protocol.account.v1.AccountReference ref = 1; - if (has_ref()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->ref(), output); - } - - // optional bool fetch_id = 12; - if (has_fetch_id()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->fetch_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.ResolveAccountRequest) -} - -::google::protobuf::uint8* ResolveAccountRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.ResolveAccountRequest) - // optional .bgs.protocol.account.v1.AccountReference ref = 1; - if (has_ref()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->ref(), target); - } - - // optional bool fetch_id = 12; - if (has_fetch_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->fetch_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.ResolveAccountRequest) - return target; -} - -int ResolveAccountRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountReference ref = 1; - if (has_ref()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ref()); - } - - // optional bool fetch_id = 12; - if (has_fetch_id()) { - 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 ResolveAccountRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ResolveAccountRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ResolveAccountRequest::MergeFrom(const ResolveAccountRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_ref()) { - mutable_ref()->::bgs::protocol::account::v1::AccountReference::MergeFrom(from.ref()); - } - if (from.has_fetch_id()) { - set_fetch_id(from.fetch_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ResolveAccountRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ResolveAccountRequest::CopyFrom(const ResolveAccountRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResolveAccountRequest::IsInitialized() const { - if (has_ref()) { - if (!this->ref().IsInitialized()) return false; - } - return true; -} - void ResolveAccountRequest::Swap(ResolveAccountRequest* other) { if (other != this) { - std::swap(ref_, other->ref_); - std::swap(fetch_id_, other->fetch_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ResolveAccountRequest::GetMetadata() const { @@ -1175,163 +981,9 @@ ResolveAccountResponse* ResolveAccountResponse::New() const { return new ResolveAccountResponse; } -void ResolveAccountResponse::Clear() { - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ResolveAccountResponse::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.ResolveAccountResponse) - 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 id = 12; - case 12: { - if (tag == 98) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_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.ResolveAccountResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.ResolveAccountResponse) - return false; -#undef DO_ -} - -void ResolveAccountResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.ResolveAccountResponse) - // optional .bgs.protocol.account.v1.AccountId id = 12; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 12, this->id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.ResolveAccountResponse) -} - -::google::protobuf::uint8* ResolveAccountResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.ResolveAccountResponse) - // optional .bgs.protocol.account.v1.AccountId id = 12; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 12, 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.account.v1.ResolveAccountResponse) - return target; -} - -int ResolveAccountResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId id = 12; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->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 ResolveAccountResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ResolveAccountResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ResolveAccountResponse::MergeFrom(const ResolveAccountResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::account::v1::AccountId::MergeFrom(from.id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ResolveAccountResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ResolveAccountResponse::CopyFrom(const ResolveAccountResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResolveAccountResponse::IsInitialized() const { - if (has_id()) { - if (!this->id().IsInitialized()) return false; - } - return true; -} - void ResolveAccountResponse::Swap(ResolveAccountResponse* other) { if (other != this) { - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ResolveAccountResponse::GetMetadata() const { @@ -1407,250 +1059,9 @@ GameAccountFlagUpdateRequest* GameAccountFlagUpdateRequest::New() const { return new GameAccountFlagUpdateRequest; } -void GameAccountFlagUpdateRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(flag_, active_); - if (has_game_account()) { - if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountFlagUpdateRequest::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.GameAccountFlagUpdateRequest) - 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_flag; - break; - } - - // optional uint64 flag = 2; - case 2: { - if (tag == 16) { - parse_flag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &flag_))); - set_has_flag(); - } 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->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.GameAccountFlagUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountFlagUpdateRequest) - return false; -#undef DO_ -} - -void GameAccountFlagUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountFlagUpdateRequest) - // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; - if (has_game_account()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_account(), output); - } - - // optional uint64 flag = 2; - if (has_flag()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->flag(), output); - } - - // optional bool active = 3; - if (has_active()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->active(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountFlagUpdateRequest) -} - -::google::protobuf::uint8* GameAccountFlagUpdateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountFlagUpdateRequest) - // 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 uint64 flag = 2; - if (has_flag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->flag(), target); - } - - // optional bool active = 3; - if (has_active()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->active(), 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.GameAccountFlagUpdateRequest) - return target; -} - -int GameAccountFlagUpdateRequest::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 uint64 flag = 2; - if (has_flag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->flag()); - } - - // optional bool active = 3; - if (has_active()) { - 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 GameAccountFlagUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountFlagUpdateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountFlagUpdateRequest::MergeFrom(const GameAccountFlagUpdateRequest& 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_flag()) { - set_flag(from.flag()); - } - if (from.has_active()) { - set_active(from.active()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountFlagUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountFlagUpdateRequest::CopyFrom(const GameAccountFlagUpdateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountFlagUpdateRequest::IsInitialized() const { - if (has_game_account()) { - if (!this->game_account().IsInitialized()) return false; - } - return true; -} - void GameAccountFlagUpdateRequest::Swap(GameAccountFlagUpdateRequest* other) { if (other != this) { - std::swap(game_account_, other->game_account_); - std::swap(flag_, other->flag_); - std::swap(active_, other->active_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountFlagUpdateRequest::GetMetadata() const { @@ -1719,156 +1130,9 @@ SubscriptionUpdateRequest* SubscriptionUpdateRequest::New() const { return new SubscriptionUpdateRequest; } -void SubscriptionUpdateRequest::Clear() { - ref_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscriptionUpdateRequest::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.SubscriptionUpdateRequest) - 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.account.v1.SubscriberReference ref = 2; - case 2: { - if (tag == 18) { - parse_ref: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_ref())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_ref; - 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.SubscriptionUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.SubscriptionUpdateRequest) - return false; -#undef DO_ -} - -void SubscriptionUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.SubscriptionUpdateRequest) - // repeated .bgs.protocol.account.v1.SubscriberReference ref = 2; - for (int i = 0; i < this->ref_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->ref(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.SubscriptionUpdateRequest) -} - -::google::protobuf::uint8* SubscriptionUpdateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.SubscriptionUpdateRequest) - // repeated .bgs.protocol.account.v1.SubscriberReference ref = 2; - for (int i = 0; i < this->ref_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->ref(i), 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.SubscriptionUpdateRequest) - return target; -} - -int SubscriptionUpdateRequest::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.account.v1.SubscriberReference ref = 2; - total_size += 1 * this->ref_size(); - for (int i = 0; i < this->ref_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ref(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 SubscriptionUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscriptionUpdateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscriptionUpdateRequest::MergeFrom(const SubscriptionUpdateRequest& from) { - GOOGLE_CHECK_NE(&from, this); - ref_.MergeFrom(from.ref_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscriptionUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscriptionUpdateRequest::CopyFrom(const SubscriptionUpdateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscriptionUpdateRequest::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->ref())) return false; - return true; -} - void SubscriptionUpdateRequest::Swap(SubscriptionUpdateRequest* other) { if (other != this) { - ref_.Swap(&other->ref_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscriptionUpdateRequest::GetMetadata() const { @@ -1937,156 +1201,9 @@ SubscriptionUpdateResponse* SubscriptionUpdateResponse::New() const { return new SubscriptionUpdateResponse; } -void SubscriptionUpdateResponse::Clear() { - ref_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscriptionUpdateResponse::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.SubscriptionUpdateResponse) - 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.account.v1.SubscriberReference ref = 1; - case 1: { - if (tag == 10) { - parse_ref: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_ref())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_ref; - 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.SubscriptionUpdateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.SubscriptionUpdateResponse) - return false; -#undef DO_ -} - -void SubscriptionUpdateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.SubscriptionUpdateResponse) - // repeated .bgs.protocol.account.v1.SubscriberReference ref = 1; - for (int i = 0; i < this->ref_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->ref(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.SubscriptionUpdateResponse) -} - -::google::protobuf::uint8* SubscriptionUpdateResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.SubscriptionUpdateResponse) - // repeated .bgs.protocol.account.v1.SubscriberReference ref = 1; - for (int i = 0; i < this->ref_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->ref(i), 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.SubscriptionUpdateResponse) - return target; -} - -int SubscriptionUpdateResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.account.v1.SubscriberReference ref = 1; - total_size += 1 * this->ref_size(); - for (int i = 0; i < this->ref_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ref(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 SubscriptionUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscriptionUpdateResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscriptionUpdateResponse::MergeFrom(const SubscriptionUpdateResponse& from) { - GOOGLE_CHECK_NE(&from, this); - ref_.MergeFrom(from.ref_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscriptionUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscriptionUpdateResponse::CopyFrom(const SubscriptionUpdateResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscriptionUpdateResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->ref())) return false; - return true; -} - void SubscriptionUpdateResponse::Swap(SubscriptionUpdateResponse* other) { if (other != this) { - ref_.Swap(&other->ref_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscriptionUpdateResponse::GetMetadata() const { @@ -2170,366 +1287,43 @@ GetAccountStateRequest* GetAccountStateRequest::New() const { return new GetAccountStateRequest; } -void GetAccountStateRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(program_, region_); - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::account::v1::AccountFieldOptions::Clear(); - } - if (has_tags()) { - if (tags_ != NULL) tags_->::bgs::protocol::account::v1::AccountFieldTags::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetAccountStateRequest::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.GetAccountStateRequest) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_program; - break; - } - - // optional uint32 program = 2; - case 2: { - if (tag == 16) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_region; - break; - } - - // optional uint32 region = 3; - case 3: { - if (tag == 24) { - 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->ExpectTag(82)) goto parse_options; - break; - } - - // optional .bgs.protocol.account.v1.AccountFieldOptions options = 10; - case 10: { - if (tag == 82) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_tags; - break; - } - - // optional .bgs.protocol.account.v1.AccountFieldTags tags = 11; - case 11: { - if (tag == 90) { - parse_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_tags())); - } 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.GetAccountStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetAccountStateRequest) - return false; -#undef DO_ -} - -void GetAccountStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetAccountStateRequest) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - // optional uint32 program = 2; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->program(), output); - } +void GetAccountStateRequest::Swap(GetAccountStateRequest* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - // optional uint32 region = 3; - if (has_region()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->region(), output); - } +::google::protobuf::Metadata GetAccountStateRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetAccountStateRequest_descriptor_; + metadata.reflection = GetAccountStateRequest_reflection_; + return metadata; +} - // optional .bgs.protocol.account.v1.AccountFieldOptions options = 10; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->options(), output); - } +// =================================================================== - // optional .bgs.protocol.account.v1.AccountFieldTags tags = 11; - if (has_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, this->tags(), output); - } +#ifndef _MSC_VER +const int GetAccountStateResponse::kStateFieldNumber; +const int GetAccountStateResponse::kTagsFieldNumber; +#endif // !_MSC_VER - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetAccountStateRequest) +GetAccountStateResponse::GetAccountStateResponse() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.GetAccountStateResponse) } -::google::protobuf::uint8* GetAccountStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetAccountStateRequest) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_id(), target); - } +void GetAccountStateResponse::InitAsDefaultInstance() { + state_ = const_cast< ::bgs::protocol::account::v1::AccountState*>(&::bgs::protocol::account::v1::AccountState::default_instance()); + tags_ = const_cast< ::bgs::protocol::account::v1::AccountFieldTags*>(&::bgs::protocol::account::v1::AccountFieldTags::default_instance()); +} - // optional uint32 program = 2; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->program(), target); - } - - // optional uint32 region = 3; - if (has_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->region(), target); - } - - // optional .bgs.protocol.account.v1.AccountFieldOptions options = 10; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->options(), target); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags tags = 11; - if (has_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 11, this->tags(), 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.GetAccountStateRequest) - return target; -} - -int GetAccountStateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional uint32 program = 2; - if (has_program()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->program()); - } - - // optional uint32 region = 3; - if (has_region()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->region()); - } - - // optional .bgs.protocol.account.v1.AccountFieldOptions options = 10; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags tags = 11; - if (has_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tags()); - } - - } - 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 GetAccountStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetAccountStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetAccountStateRequest::MergeFrom(const GetAccountStateRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_region()) { - set_region(from.region()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::account::v1::AccountFieldOptions::MergeFrom(from.options()); - } - if (from.has_tags()) { - mutable_tags()->::bgs::protocol::account::v1::AccountFieldTags::MergeFrom(from.tags()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetAccountStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetAccountStateRequest::CopyFrom(const GetAccountStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetAccountStateRequest::IsInitialized() const { - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - return true; -} - -void GetAccountStateRequest::Swap(GetAccountStateRequest* other) { - if (other != this) { - std::swap(entity_id_, other->entity_id_); - std::swap(program_, other->program_); - std::swap(region_, other->region_); - std::swap(options_, other->options_); - std::swap(tags_, other->tags_); - 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 GetAccountStateRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GetAccountStateRequest_descriptor_; - metadata.reflection = GetAccountStateRequest_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int GetAccountStateResponse::kStateFieldNumber; -const int GetAccountStateResponse::kTagsFieldNumber; -#endif // !_MSC_VER - -GetAccountStateResponse::GetAccountStateResponse() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.GetAccountStateResponse) -} - -void GetAccountStateResponse::InitAsDefaultInstance() { - state_ = const_cast< ::bgs::protocol::account::v1::AccountState*>(&::bgs::protocol::account::v1::AccountState::default_instance()); - tags_ = const_cast< ::bgs::protocol::account::v1::AccountFieldTags*>(&::bgs::protocol::account::v1::AccountFieldTags::default_instance()); -} - -GetAccountStateResponse::GetAccountStateResponse(const GetAccountStateResponse& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.GetAccountStateResponse) -} +GetAccountStateResponse::GetAccountStateResponse(const GetAccountStateResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.GetAccountStateResponse) +} void GetAccountStateResponse::SharedCtor() { _cached_size_ = 0; @@ -2571,205 +1365,9 @@ GetAccountStateResponse* GetAccountStateResponse::New() const { return new GetAccountStateResponse; } -void GetAccountStateResponse::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_state()) { - if (state_ != NULL) state_->::bgs::protocol::account::v1::AccountState::Clear(); - } - if (has_tags()) { - if (tags_ != NULL) tags_->::bgs::protocol::account::v1::AccountFieldTags::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetAccountStateResponse::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.GetAccountStateResponse) - 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.AccountState state = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_tags; - break; - } - - // optional .bgs.protocol.account.v1.AccountFieldTags tags = 2; - case 2: { - if (tag == 18) { - parse_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_tags())); - } 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.GetAccountStateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetAccountStateResponse) - return false; -#undef DO_ -} - -void GetAccountStateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetAccountStateResponse) - // optional .bgs.protocol.account.v1.AccountState state = 1; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->state(), output); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags tags = 2; - if (has_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->tags(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetAccountStateResponse) -} - -::google::protobuf::uint8* GetAccountStateResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetAccountStateResponse) - // optional .bgs.protocol.account.v1.AccountState state = 1; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->state(), target); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags tags = 2; - if (has_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->tags(), 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.GetAccountStateResponse) - return target; -} - -int GetAccountStateResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountState state = 1; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state()); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags tags = 2; - if (has_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tags()); - } - - } - 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 GetAccountStateResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetAccountStateResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetAccountStateResponse::MergeFrom(const GetAccountStateResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_state()) { - mutable_state()->::bgs::protocol::account::v1::AccountState::MergeFrom(from.state()); - } - if (from.has_tags()) { - mutable_tags()->::bgs::protocol::account::v1::AccountFieldTags::MergeFrom(from.tags()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetAccountStateResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetAccountStateResponse::CopyFrom(const GetAccountStateResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetAccountStateResponse::IsInitialized() const { - if (has_state()) { - if (!this->state().IsInitialized()) return false; - } - return true; -} - void GetAccountStateResponse::Swap(GetAccountStateResponse* other) { if (other != this) { - std::swap(state_, other->state_); - std::swap(tags_, other->tags_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetAccountStateResponse::GetMetadata() const { @@ -2841,163 +1439,9 @@ GetSignedAccountStateRequest* GetSignedAccountStateRequest::New() const { return new GetSignedAccountStateRequest; } -void GetSignedAccountStateRequest::Clear() { - if (has_account()) { - if (account_ != NULL) account_->::bgs::protocol::account::v1::AccountId::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetSignedAccountStateRequest::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.GetSignedAccountStateRequest) - 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->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.GetSignedAccountStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetSignedAccountStateRequest) - return false; -#undef DO_ -} - -void GetSignedAccountStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetSignedAccountStateRequest) - // optional .bgs.protocol.account.v1.AccountId 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.account.v1.GetSignedAccountStateRequest) -} - -::google::protobuf::uint8* GetSignedAccountStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetSignedAccountStateRequest) - // optional .bgs.protocol.account.v1.AccountId 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.account.v1.GetSignedAccountStateRequest) - return target; -} - -int GetSignedAccountStateRequest::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()); - } - - } - 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 GetSignedAccountStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetSignedAccountStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetSignedAccountStateRequest::MergeFrom(const GetSignedAccountStateRequest& 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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetSignedAccountStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetSignedAccountStateRequest::CopyFrom(const GetSignedAccountStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetSignedAccountStateRequest::IsInitialized() const { - if (has_account()) { - if (!this->account().IsInitialized()) return false; - } - return true; -} - void GetSignedAccountStateRequest::Swap(GetSignedAccountStateRequest* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetSignedAccountStateRequest::GetMetadata() const { @@ -3071,174 +1515,9 @@ GetSignedAccountStateResponse* GetSignedAccountStateResponse::New() const { return new GetSignedAccountStateResponse; } -void GetSignedAccountStateResponse::Clear() { - if (has_token()) { - if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - token_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetSignedAccountStateResponse::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.GetSignedAccountStateResponse) - 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 token = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->token().data(), this->token().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "token"); - } 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.GetSignedAccountStateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetSignedAccountStateResponse) - return false; -#undef DO_ -} - -void GetSignedAccountStateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetSignedAccountStateResponse) - // optional string token = 1; - if (has_token()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->token().data(), this->token().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->token(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetSignedAccountStateResponse) -} - -::google::protobuf::uint8* GetSignedAccountStateResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetSignedAccountStateResponse) - // optional string token = 1; - if (has_token()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->token().data(), this->token().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->token(), 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.GetSignedAccountStateResponse) - return target; -} - -int GetSignedAccountStateResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string token = 1; - if (has_token()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - } - 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 GetSignedAccountStateResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetSignedAccountStateResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetSignedAccountStateResponse::MergeFrom(const GetSignedAccountStateResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_token()) { - set_token(from.token()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetSignedAccountStateResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetSignedAccountStateResponse::CopyFrom(const GetSignedAccountStateResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetSignedAccountStateResponse::IsInitialized() const { - return true; -} - void GetSignedAccountStateResponse::Swap(GetSignedAccountStateResponse* other) { if (other != this) { - std::swap(token_, other->token_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetSignedAccountStateResponse::GetMetadata() const { @@ -3322,288 +1601,9 @@ GetGameAccountStateRequest* GetGameAccountStateRequest::New() const { return new GetGameAccountStateRequest; } -void GetGameAccountStateRequest::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::account::v1::GameAccountFieldOptions::Clear(); - } - if (has_tags()) { - if (tags_ != NULL) tags_->::bgs::protocol::account::v1::GameAccountFieldTags::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetGameAccountStateRequest::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.GetGameAccountStateRequest) - 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 account_id = 1 [deprecated = true]; - 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_game_account_id; - break; - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - case 2: { - if (tag == 18) { - parse_game_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_options; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountFieldOptions options = 10; - case 10: { - if (tag == 82) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_tags; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags tags = 11; - case 11: { - if (tag == 90) { - parse_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_tags())); - } 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.GetGameAccountStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetGameAccountStateRequest) - return false; -#undef DO_ -} - -void GetGameAccountStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetGameAccountStateRequest) - // optional .bgs.protocol.EntityId account_id = 1 [deprecated = true]; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_id(), output); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account_id(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldOptions options = 10; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->options(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags tags = 11; - if (has_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, this->tags(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetGameAccountStateRequest) -} - -::google::protobuf::uint8* GetGameAccountStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetGameAccountStateRequest) - // optional .bgs.protocol.EntityId account_id = 1 [deprecated = true]; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_id(), target); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_account_id(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldOptions options = 10; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->options(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags tags = 11; - if (has_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 11, this->tags(), 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.GetGameAccountStateRequest) - return target; -} - -int GetGameAccountStateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId account_id = 1 [deprecated = true]; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id()); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldOptions options = 10; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags tags = 11; - if (has_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tags()); - } - - } - 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 GetGameAccountStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetGameAccountStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetGameAccountStateRequest::MergeFrom(const GetGameAccountStateRequest& from) { - GOOGLE_CHECK_NE(&from, this); - 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_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::account::v1::GameAccountFieldOptions::MergeFrom(from.options()); - } - if (from.has_tags()) { - mutable_tags()->::bgs::protocol::account::v1::GameAccountFieldTags::MergeFrom(from.tags()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetGameAccountStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetGameAccountStateRequest::CopyFrom(const GetGameAccountStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetGameAccountStateRequest::IsInitialized() const { - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - return true; -} - void GetGameAccountStateRequest::Swap(GetGameAccountStateRequest* other) { if (other != this) { - std::swap(account_id_, other->account_id_); - std::swap(game_account_id_, other->game_account_id_); - std::swap(options_, other->options_); - std::swap(tags_, other->tags_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetGameAccountStateRequest::GetMetadata() const { @@ -3668,216 +1668,20 @@ const ::google::protobuf::Descriptor* GetGameAccountStateResponse::descriptor() return GetGameAccountStateResponse_descriptor_; } -const GetGameAccountStateResponse& GetGameAccountStateResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); - return *default_instance_; -} - -GetGameAccountStateResponse* GetGameAccountStateResponse::default_instance_ = NULL; - -GetGameAccountStateResponse* GetGameAccountStateResponse::New() const { - return new GetGameAccountStateResponse; -} - -void GetGameAccountStateResponse::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_state()) { - if (state_ != NULL) state_->::bgs::protocol::account::v1::GameAccountState::Clear(); - } - if (has_tags()) { - if (tags_ != NULL) tags_->::bgs::protocol::account::v1::GameAccountFieldTags::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetGameAccountStateResponse::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.GetGameAccountStateResponse) - 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.GameAccountState state = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_tags; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags tags = 2; - case 2: { - if (tag == 18) { - parse_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_tags())); - } 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.GetGameAccountStateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetGameAccountStateResponse) - return false; -#undef DO_ -} - -void GetGameAccountStateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetGameAccountStateResponse) - // optional .bgs.protocol.account.v1.GameAccountState state = 1; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->state(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags tags = 2; - if (has_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->tags(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetGameAccountStateResponse) -} - -::google::protobuf::uint8* GetGameAccountStateResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetGameAccountStateResponse) - // optional .bgs.protocol.account.v1.GameAccountState state = 1; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->state(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags tags = 2; - if (has_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->tags(), 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.GetGameAccountStateResponse) - return target; -} - -int GetGameAccountStateResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.GameAccountState state = 1; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state()); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags tags = 2; - if (has_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tags()); - } - - } - 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 GetGameAccountStateResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetGameAccountStateResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetGameAccountStateResponse::MergeFrom(const GetGameAccountStateResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_state()) { - mutable_state()->::bgs::protocol::account::v1::GameAccountState::MergeFrom(from.state()); - } - if (from.has_tags()) { - mutable_tags()->::bgs::protocol::account::v1::GameAccountFieldTags::MergeFrom(from.tags()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetGameAccountStateResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const GetGameAccountStateResponse& GetGameAccountStateResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); + return *default_instance_; } -void GetGameAccountStateResponse::CopyFrom(const GetGameAccountStateResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +GetGameAccountStateResponse* GetGameAccountStateResponse::default_instance_ = NULL; -bool GetGameAccountStateResponse::IsInitialized() const { - if (has_state()) { - if (!this->state().IsInitialized()) return false; - } - return true; +GetGameAccountStateResponse* GetGameAccountStateResponse::New() const { + return new GetGameAccountStateResponse; } void GetGameAccountStateResponse::Swap(GetGameAccountStateResponse* other) { if (other != this) { - std::swap(state_, other->state_); - std::swap(tags_, other->tags_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetGameAccountStateResponse::GetMetadata() const { @@ -3959,350 +1763,9 @@ GetLicensesRequest* GetLicensesRequest::New() const { return new GetLicensesRequest; } -void GetLicensesRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(fetch_account_licenses_, program_); - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetLicensesRequest::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.GetLicensesRequest) - 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 target_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_target_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_fetch_account_licenses; - break; - } - - // optional bool fetch_account_licenses = 2; - case 2: { - if (tag == 16) { - parse_fetch_account_licenses: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fetch_account_licenses_))); - set_has_fetch_account_licenses(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_fetch_game_account_licenses; - break; - } - - // optional bool fetch_game_account_licenses = 3; - case 3: { - if (tag == 24) { - parse_fetch_game_account_licenses: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fetch_game_account_licenses_))); - set_has_fetch_game_account_licenses(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_fetch_dynamic_account_licenses; - break; - } - - // optional bool fetch_dynamic_account_licenses = 4; - case 4: { - if (tag == 32) { - parse_fetch_dynamic_account_licenses: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fetch_dynamic_account_licenses_))); - set_has_fetch_dynamic_account_licenses(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_program; - break; - } - - // optional fixed32 program = 5; - case 5: { - if (tag == 45) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_exclude_unknown_program; - break; - } - - // optional bool exclude_unknown_program = 6 [default = false]; - case 6: { - if (tag == 48) { - parse_exclude_unknown_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &exclude_unknown_program_))); - set_has_exclude_unknown_program(); - } 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.GetLicensesRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetLicensesRequest) - return false; -#undef DO_ -} - -void GetLicensesRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetLicensesRequest) - // optional .bgs.protocol.EntityId target_id = 1; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->target_id(), output); - } - - // optional bool fetch_account_licenses = 2; - if (has_fetch_account_licenses()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->fetch_account_licenses(), output); - } - - // optional bool fetch_game_account_licenses = 3; - if (has_fetch_game_account_licenses()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->fetch_game_account_licenses(), output); - } - - // optional bool fetch_dynamic_account_licenses = 4; - if (has_fetch_dynamic_account_licenses()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->fetch_dynamic_account_licenses(), output); - } - - // optional fixed32 program = 5; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(5, this->program(), output); - } - - // optional bool exclude_unknown_program = 6 [default = false]; - if (has_exclude_unknown_program()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->exclude_unknown_program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetLicensesRequest) -} - -::google::protobuf::uint8* GetLicensesRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetLicensesRequest) - // optional .bgs.protocol.EntityId target_id = 1; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->target_id(), target); - } - - // optional bool fetch_account_licenses = 2; - if (has_fetch_account_licenses()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->fetch_account_licenses(), target); - } - - // optional bool fetch_game_account_licenses = 3; - if (has_fetch_game_account_licenses()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->fetch_game_account_licenses(), target); - } - - // optional bool fetch_dynamic_account_licenses = 4; - if (has_fetch_dynamic_account_licenses()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->fetch_dynamic_account_licenses(), target); - } - - // optional fixed32 program = 5; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(5, this->program(), target); - } - - // optional bool exclude_unknown_program = 6 [default = false]; - if (has_exclude_unknown_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->exclude_unknown_program(), 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.GetLicensesRequest) - return target; -} - -int GetLicensesRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId target_id = 1; - if (has_target_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_id()); - } - - // optional bool fetch_account_licenses = 2; - if (has_fetch_account_licenses()) { - total_size += 1 + 1; - } - - // optional bool fetch_game_account_licenses = 3; - if (has_fetch_game_account_licenses()) { - total_size += 1 + 1; - } - - // optional bool fetch_dynamic_account_licenses = 4; - if (has_fetch_dynamic_account_licenses()) { - total_size += 1 + 1; - } - - // optional fixed32 program = 5; - if (has_program()) { - total_size += 1 + 4; - } - - // optional bool exclude_unknown_program = 6 [default = false]; - if (has_exclude_unknown_program()) { - 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 GetLicensesRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetLicensesRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetLicensesRequest::MergeFrom(const GetLicensesRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::EntityId::MergeFrom(from.target_id()); - } - if (from.has_fetch_account_licenses()) { - set_fetch_account_licenses(from.fetch_account_licenses()); - } - if (from.has_fetch_game_account_licenses()) { - set_fetch_game_account_licenses(from.fetch_game_account_licenses()); - } - if (from.has_fetch_dynamic_account_licenses()) { - set_fetch_dynamic_account_licenses(from.fetch_dynamic_account_licenses()); - } - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_exclude_unknown_program()) { - set_exclude_unknown_program(from.exclude_unknown_program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetLicensesRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetLicensesRequest::CopyFrom(const GetLicensesRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetLicensesRequest::IsInitialized() const { - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - return true; -} - void GetLicensesRequest::Swap(GetLicensesRequest* other) { if (other != this) { - std::swap(target_id_, other->target_id_); - std::swap(fetch_account_licenses_, other->fetch_account_licenses_); - std::swap(fetch_game_account_licenses_, other->fetch_game_account_licenses_); - std::swap(fetch_dynamic_account_licenses_, other->fetch_dynamic_account_licenses_); - std::swap(program_, other->program_); - std::swap(exclude_unknown_program_, other->exclude_unknown_program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetLicensesRequest::GetMetadata() const { @@ -4371,156 +1834,9 @@ GetLicensesResponse* GetLicensesResponse::New() const { return new GetLicensesResponse; } -void GetLicensesResponse::Clear() { - licenses_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetLicensesResponse::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.GetLicensesResponse) - 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.account.v1.AccountLicense licenses = 1; - case 1: { - if (tag == 10) { - parse_licenses: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_licenses())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_licenses; - 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.GetLicensesResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetLicensesResponse) - return false; -#undef DO_ -} - -void GetLicensesResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetLicensesResponse) - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 1; - for (int i = 0; i < this->licenses_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->licenses(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetLicensesResponse) -} - -::google::protobuf::uint8* GetLicensesResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetLicensesResponse) - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 1; - for (int i = 0; i < this->licenses_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->licenses(i), 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.GetLicensesResponse) - return target; -} - -int GetLicensesResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 1; - total_size += 1 * this->licenses_size(); - for (int i = 0; i < this->licenses_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->licenses(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 GetLicensesResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetLicensesResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetLicensesResponse::MergeFrom(const GetLicensesResponse& from) { - GOOGLE_CHECK_NE(&from, this); - licenses_.MergeFrom(from.licenses_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetLicensesResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetLicensesResponse::CopyFrom(const GetLicensesResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetLicensesResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->licenses())) return false; - return true; -} - void GetLicensesResponse::Swap(GetLicensesResponse* other) { if (other != this) { - licenses_.Swap(&other->licenses_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetLicensesResponse::GetMetadata() const { @@ -4592,163 +1908,9 @@ GetGameSessionInfoRequest* GetGameSessionInfoRequest::New() const { return new GetGameSessionInfoRequest; } -void GetGameSessionInfoRequest::Clear() { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetGameSessionInfoRequest::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.GetGameSessionInfoRequest) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_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.GetGameSessionInfoRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetGameSessionInfoRequest) - return false; -#undef DO_ -} - -void GetGameSessionInfoRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetGameSessionInfoRequest) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetGameSessionInfoRequest) -} - -::google::protobuf::uint8* GetGameSessionInfoRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetGameSessionInfoRequest) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_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.GetGameSessionInfoRequest) - return target; -} - -int GetGameSessionInfoRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_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 GetGameSessionInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetGameSessionInfoRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetGameSessionInfoRequest::MergeFrom(const GetGameSessionInfoRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetGameSessionInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetGameSessionInfoRequest::CopyFrom(const GetGameSessionInfoRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetGameSessionInfoRequest::IsInitialized() const { - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - return true; -} - void GetGameSessionInfoRequest::Swap(GetGameSessionInfoRequest* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetGameSessionInfoRequest::GetMetadata() const { @@ -4820,163 +1982,9 @@ GetGameSessionInfoResponse* GetGameSessionInfoResponse::New() const { return new GetGameSessionInfoResponse; } -void GetGameSessionInfoResponse::Clear() { - if (has_session_info()) { - if (session_info_ != NULL) session_info_->::bgs::protocol::account::v1::GameSessionInfo::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetGameSessionInfoResponse::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.GetGameSessionInfoResponse) - 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.GameSessionInfo session_info = 2; - case 2: { - if (tag == 18) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_session_info())); - } 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.GetGameSessionInfoResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetGameSessionInfoResponse) - return false; -#undef DO_ -} - -void GetGameSessionInfoResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetGameSessionInfoResponse) - // optional .bgs.protocol.account.v1.GameSessionInfo session_info = 2; - if (has_session_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->session_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetGameSessionInfoResponse) -} - -::google::protobuf::uint8* GetGameSessionInfoResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetGameSessionInfoResponse) - // optional .bgs.protocol.account.v1.GameSessionInfo session_info = 2; - if (has_session_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->session_info(), 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.GetGameSessionInfoResponse) - return target; -} - -int GetGameSessionInfoResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.GameSessionInfo session_info = 2; - if (has_session_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->session_info()); - } - - } - 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 GetGameSessionInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetGameSessionInfoResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetGameSessionInfoResponse::MergeFrom(const GetGameSessionInfoResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_session_info()) { - mutable_session_info()->::bgs::protocol::account::v1::GameSessionInfo::MergeFrom(from.session_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetGameSessionInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetGameSessionInfoResponse::CopyFrom(const GetGameSessionInfoResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetGameSessionInfoResponse::IsInitialized() const { - if (has_session_info()) { - if (!this->session_info().IsInitialized()) return false; - } - return true; -} - void GetGameSessionInfoResponse::Swap(GetGameSessionInfoResponse* other) { if (other != this) { - std::swap(session_info_, other->session_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetGameSessionInfoResponse::GetMetadata() const { @@ -5014,306 +2022,53 @@ GetGameTimeRemainingInfoRequest::GetGameTimeRemainingInfoRequest(const GetGameTi } void GetGameTimeRemainingInfoRequest::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - game_account_id_ = NULL; - account_id_ = NULL; - benefactor_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GetGameTimeRemainingInfoRequest::~GetGameTimeRemainingInfoRequest() { - // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest) - SharedDtor(); -} - -void GetGameTimeRemainingInfoRequest::SharedDtor() { - if (benefactor_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete benefactor_id_; - } - if (this != default_instance_) { - delete game_account_id_; - delete account_id_; - } -} - -void GetGameTimeRemainingInfoRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* GetGameTimeRemainingInfoRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GetGameTimeRemainingInfoRequest_descriptor_; -} - -const GetGameTimeRemainingInfoRequest& GetGameTimeRemainingInfoRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); - return *default_instance_; -} - -GetGameTimeRemainingInfoRequest* GetGameTimeRemainingInfoRequest::default_instance_ = NULL; - -GetGameTimeRemainingInfoRequest* GetGameTimeRemainingInfoRequest::New() const { - return new GetGameTimeRemainingInfoRequest; -} - -void GetGameTimeRemainingInfoRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_benefactor_id()) { - if (benefactor_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - benefactor_id_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetGameTimeRemainingInfoRequest::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.GetGameTimeRemainingInfoRequest) - 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 game_account_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 2; - case 2: { - if (tag == 18) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_benefactor_id; - break; - } - - // optional string benefactor_id = 3; - case 3: { - if (tag == 26) { - parse_benefactor_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_benefactor_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->benefactor_id().data(), this->benefactor_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "benefactor_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.GetGameTimeRemainingInfoRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest) - return false; -#undef DO_ -} - -void GetGameTimeRemainingInfoRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest) - // optional .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_account_id(), output); - } - - // optional .bgs.protocol.EntityId account_id = 2; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->account_id(), output); - } - - // optional string benefactor_id = 3; - if (has_benefactor_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->benefactor_id().data(), this->benefactor_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "benefactor_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->benefactor_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest) + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + game_account_id_ = NULL; + account_id_ = NULL; + benefactor_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -::google::protobuf::uint8* GetGameTimeRemainingInfoRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest) - // optional .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_account_id(), target); - } - - // optional .bgs.protocol.EntityId account_id = 2; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->account_id(), target); - } +GetGameTimeRemainingInfoRequest::~GetGameTimeRemainingInfoRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest) + SharedDtor(); +} - // optional string benefactor_id = 3; - if (has_benefactor_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->benefactor_id().data(), this->benefactor_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "benefactor_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->benefactor_id(), target); +void GetGameTimeRemainingInfoRequest::SharedDtor() { + if (benefactor_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete benefactor_id_; } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + if (this != default_instance_) { + delete game_account_id_; + delete account_id_; } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest) - return target; } -int GetGameTimeRemainingInfoRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id()); - } - - // optional .bgs.protocol.EntityId account_id = 2; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional string benefactor_id = 3; - if (has_benefactor_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->benefactor_id()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void GetGameTimeRemainingInfoRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GetGameTimeRemainingInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetGameTimeRemainingInfoRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void GetGameTimeRemainingInfoRequest::MergeFrom(const GetGameTimeRemainingInfoRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - if (from.has_benefactor_id()) { - set_benefactor_id(from.benefactor_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* GetGameTimeRemainingInfoRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetGameTimeRemainingInfoRequest_descriptor_; } -void GetGameTimeRemainingInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const GetGameTimeRemainingInfoRequest& GetGameTimeRemainingInfoRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); + return *default_instance_; } -void GetGameTimeRemainingInfoRequest::CopyFrom(const GetGameTimeRemainingInfoRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +GetGameTimeRemainingInfoRequest* GetGameTimeRemainingInfoRequest::default_instance_ = NULL; -bool GetGameTimeRemainingInfoRequest::IsInitialized() const { - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; +GetGameTimeRemainingInfoRequest* GetGameTimeRemainingInfoRequest::New() const { + return new GetGameTimeRemainingInfoRequest; } void GetGameTimeRemainingInfoRequest::Swap(GetGameTimeRemainingInfoRequest* other) { if (other != this) { - std::swap(game_account_id_, other->game_account_id_); - std::swap(account_id_, other->account_id_); - std::swap(benefactor_id_, other->benefactor_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetGameTimeRemainingInfoRequest::GetMetadata() const { @@ -5385,160 +2140,9 @@ GetGameTimeRemainingInfoResponse* GetGameTimeRemainingInfoResponse::New() const return new GetGameTimeRemainingInfoResponse; } -void GetGameTimeRemainingInfoResponse::Clear() { - if (has_game_time_remaining_info()) { - if (game_time_remaining_info_ != NULL) game_time_remaining_info_->::bgs::protocol::account::v1::GameTimeRemainingInfo::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetGameTimeRemainingInfoResponse::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.GetGameTimeRemainingInfoResponse) - 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.GameTimeRemainingInfo game_time_remaining_info = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_time_remaining_info())); - } 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.GetGameTimeRemainingInfoResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetGameTimeRemainingInfoResponse) - return false; -#undef DO_ -} - -void GetGameTimeRemainingInfoResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetGameTimeRemainingInfoResponse) - // optional .bgs.protocol.account.v1.GameTimeRemainingInfo game_time_remaining_info = 1; - if (has_game_time_remaining_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_time_remaining_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetGameTimeRemainingInfoResponse) -} - -::google::protobuf::uint8* GetGameTimeRemainingInfoResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetGameTimeRemainingInfoResponse) - // optional .bgs.protocol.account.v1.GameTimeRemainingInfo game_time_remaining_info = 1; - if (has_game_time_remaining_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_time_remaining_info(), 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.GetGameTimeRemainingInfoResponse) - return target; -} - -int GetGameTimeRemainingInfoResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.GameTimeRemainingInfo game_time_remaining_info = 1; - if (has_game_time_remaining_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_time_remaining_info()); - } - - } - 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 GetGameTimeRemainingInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetGameTimeRemainingInfoResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetGameTimeRemainingInfoResponse::MergeFrom(const GetGameTimeRemainingInfoResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_time_remaining_info()) { - mutable_game_time_remaining_info()->::bgs::protocol::account::v1::GameTimeRemainingInfo::MergeFrom(from.game_time_remaining_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetGameTimeRemainingInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetGameTimeRemainingInfoResponse::CopyFrom(const GetGameTimeRemainingInfoResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetGameTimeRemainingInfoResponse::IsInitialized() const { - return true; -} - void GetGameTimeRemainingInfoResponse::Swap(GetGameTimeRemainingInfoResponse* other) { if (other != this) { - std::swap(game_time_remaining_info_, other->game_time_remaining_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetGameTimeRemainingInfoResponse::GetMetadata() const { @@ -5610,163 +2214,9 @@ GetCAISInfoRequest* GetCAISInfoRequest::New() const { return new GetCAISInfoRequest; } -void GetCAISInfoRequest::Clear() { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetCAISInfoRequest::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.GetCAISInfoRequest) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_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.GetCAISInfoRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetCAISInfoRequest) - return false; -#undef DO_ -} - -void GetCAISInfoRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetCAISInfoRequest) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetCAISInfoRequest) -} - -::google::protobuf::uint8* GetCAISInfoRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetCAISInfoRequest) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_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.GetCAISInfoRequest) - return target; -} - -int GetCAISInfoRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_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 GetCAISInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetCAISInfoRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetCAISInfoRequest::MergeFrom(const GetCAISInfoRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetCAISInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetCAISInfoRequest::CopyFrom(const GetCAISInfoRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetCAISInfoRequest::IsInitialized() const { - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - return true; -} - void GetCAISInfoRequest::Swap(GetCAISInfoRequest* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetCAISInfoRequest::GetMetadata() const { @@ -5838,160 +2288,9 @@ GetCAISInfoResponse* GetCAISInfoResponse::New() const { return new GetCAISInfoResponse; } -void GetCAISInfoResponse::Clear() { - if (has_cais_info()) { - if (cais_info_ != NULL) cais_info_->::bgs::protocol::account::v1::CAIS::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetCAISInfoResponse::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.GetCAISInfoResponse) - 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.CAIS cais_info = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_cais_info())); - } 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.GetCAISInfoResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetCAISInfoResponse) - return false; -#undef DO_ -} - -void GetCAISInfoResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetCAISInfoResponse) - // optional .bgs.protocol.account.v1.CAIS cais_info = 1; - if (has_cais_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->cais_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetCAISInfoResponse) -} - -::google::protobuf::uint8* GetCAISInfoResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetCAISInfoResponse) - // optional .bgs.protocol.account.v1.CAIS cais_info = 1; - if (has_cais_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->cais_info(), 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.GetCAISInfoResponse) - return target; -} - -int GetCAISInfoResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.CAIS cais_info = 1; - if (has_cais_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cais_info()); - } - - } - 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 GetCAISInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetCAISInfoResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetCAISInfoResponse::MergeFrom(const GetCAISInfoResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_cais_info()) { - mutable_cais_info()->::bgs::protocol::account::v1::CAIS::MergeFrom(from.cais_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetCAISInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetCAISInfoResponse::CopyFrom(const GetCAISInfoResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetCAISInfoResponse::IsInitialized() const { - return true; -} - void GetCAISInfoResponse::Swap(GetCAISInfoResponse* other) { if (other != this) { - std::swap(cais_info_, other->cais_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetCAISInfoResponse::GetMetadata() const { @@ -6067,249 +2366,9 @@ GetAuthorizedDataRequest* GetAuthorizedDataRequest::New() const { return new GetAuthorizedDataRequest; } -void GetAuthorizedDataRequest::Clear() { - if (_has_bits_[0 / 32] & 5) { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - privileged_network_ = false; - } - tag_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetAuthorizedDataRequest::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.GetAuthorizedDataRequest) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_tag; - break; - } - - // repeated string tag = 2; - case 2: { - if (tag == 18) { - parse_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_tag())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->tag(this->tag_size() - 1).data(), - this->tag(this->tag_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "tag"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_tag; - if (input->ExpectTag(24)) goto parse_privileged_network; - break; - } - - // optional bool privileged_network = 3; - case 3: { - if (tag == 24) { - parse_privileged_network: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &privileged_network_))); - set_has_privileged_network(); - } 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.GetAuthorizedDataRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetAuthorizedDataRequest) - return false; -#undef DO_ -} - -void GetAuthorizedDataRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetAuthorizedDataRequest) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - // repeated string tag = 2; - for (int i = 0; i < this->tag_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->tag(i).data(), this->tag(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "tag"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->tag(i), output); - } - - // optional bool privileged_network = 3; - if (has_privileged_network()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->privileged_network(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetAuthorizedDataRequest) -} - -::google::protobuf::uint8* GetAuthorizedDataRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetAuthorizedDataRequest) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_id(), target); - } - - // repeated string tag = 2; - for (int i = 0; i < this->tag_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->tag(i).data(), this->tag(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "tag"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->tag(i), target); - } - - // optional bool privileged_network = 3; - if (has_privileged_network()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->privileged_network(), 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.GetAuthorizedDataRequest) - return target; -} - -int GetAuthorizedDataRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional bool privileged_network = 3; - if (has_privileged_network()) { - total_size += 1 + 1; - } - - } - // repeated string tag = 2; - total_size += 1 * this->tag_size(); - for (int i = 0; i < this->tag_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag(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 GetAuthorizedDataRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetAuthorizedDataRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetAuthorizedDataRequest::MergeFrom(const GetAuthorizedDataRequest& from) { - GOOGLE_CHECK_NE(&from, this); - tag_.MergeFrom(from.tag_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_privileged_network()) { - set_privileged_network(from.privileged_network()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetAuthorizedDataRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetAuthorizedDataRequest::CopyFrom(const GetAuthorizedDataRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetAuthorizedDataRequest::IsInitialized() const { - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - return true; -} - void GetAuthorizedDataRequest::Swap(GetAuthorizedDataRequest* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - tag_.Swap(&other->tag_); - std::swap(privileged_network_, other->privileged_network_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetAuthorizedDataRequest::GetMetadata() const { @@ -6349,184 +2408,38 @@ void GetAuthorizedDataResponse::SharedCtor() { GetAuthorizedDataResponse::~GetAuthorizedDataResponse() { // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GetAuthorizedDataResponse) - SharedDtor(); -} - -void GetAuthorizedDataResponse::SharedDtor() { - if (this != default_instance_) { - } -} - -void GetAuthorizedDataResponse::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* GetAuthorizedDataResponse::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GetAuthorizedDataResponse_descriptor_; -} - -const GetAuthorizedDataResponse& GetAuthorizedDataResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); - return *default_instance_; -} - -GetAuthorizedDataResponse* GetAuthorizedDataResponse::default_instance_ = NULL; - -GetAuthorizedDataResponse* GetAuthorizedDataResponse::New() const { - return new GetAuthorizedDataResponse; -} - -void GetAuthorizedDataResponse::Clear() { - data_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetAuthorizedDataResponse::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.GetAuthorizedDataResponse) - 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.account.v1.AuthorizedData data = 1; - case 1: { - if (tag == 10) { - parse_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_data())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_data; - 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.GetAuthorizedDataResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetAuthorizedDataResponse) - return false; -#undef DO_ -} - -void GetAuthorizedDataResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetAuthorizedDataResponse) - // repeated .bgs.protocol.account.v1.AuthorizedData data = 1; - for (int i = 0; i < this->data_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->data(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetAuthorizedDataResponse) -} - -::google::protobuf::uint8* GetAuthorizedDataResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetAuthorizedDataResponse) - // repeated .bgs.protocol.account.v1.AuthorizedData data = 1; - for (int i = 0; i < this->data_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->data(i), 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.GetAuthorizedDataResponse) - return target; + SharedDtor(); } -int GetAuthorizedDataResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.account.v1.AuthorizedData data = 1; - total_size += 1 * this->data_size(); - for (int i = 0; i < this->data_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->data(i)); +void GetAuthorizedDataResponse::SharedDtor() { + if (this != default_instance_) { } +} - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void GetAuthorizedDataResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GetAuthorizedDataResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetAuthorizedDataResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void GetAuthorizedDataResponse::MergeFrom(const GetAuthorizedDataResponse& from) { - GOOGLE_CHECK_NE(&from, this); - data_.MergeFrom(from.data_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* GetAuthorizedDataResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetAuthorizedDataResponse_descriptor_; } -void GetAuthorizedDataResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const GetAuthorizedDataResponse& GetAuthorizedDataResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); + return *default_instance_; } -void GetAuthorizedDataResponse::CopyFrom(const GetAuthorizedDataResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +GetAuthorizedDataResponse* GetAuthorizedDataResponse::default_instance_ = NULL; -bool GetAuthorizedDataResponse::IsInitialized() const { - return true; +GetAuthorizedDataResponse* GetAuthorizedDataResponse::New() const { + return new GetAuthorizedDataResponse; } void GetAuthorizedDataResponse::Swap(GetAuthorizedDataResponse* other) { if (other != this) { - data_.Swap(&other->data_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetAuthorizedDataResponse::GetMetadata() const { @@ -6606,277 +2519,9 @@ AccountStateNotification* AccountStateNotification::New() const { return new AccountStateNotification; } -void AccountStateNotification::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_account_state()) { - if (account_state_ != NULL) account_state_->::bgs::protocol::account::v1::AccountState::Clear(); - } - subscriber_id_ = GOOGLE_ULONGLONG(0); - if (has_account_tags()) { - if (account_tags_ != NULL) account_tags_->::bgs::protocol::account::v1::AccountFieldTags::Clear(); - } - subscription_completed_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountStateNotification::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.AccountStateNotification) - 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.AccountState account_state = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_subscriber_id; - break; - } - - // optional uint64 subscriber_id = 2 [deprecated = true]; - case 2: { - if (tag == 16) { - parse_subscriber_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &subscriber_id_))); - set_has_subscriber_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_account_tags; - break; - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 3; - case 3: { - if (tag == 26) { - parse_account_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_tags())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_subscription_completed; - break; - } - - // optional bool subscription_completed = 4; - case 4: { - if (tag == 32) { - parse_subscription_completed: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &subscription_completed_))); - set_has_subscription_completed(); - } 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.AccountStateNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountStateNotification) - return false; -#undef DO_ -} - -void AccountStateNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountStateNotification) - // optional .bgs.protocol.account.v1.AccountState account_state = 1; - if (has_account_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_state(), output); - } - - // optional uint64 subscriber_id = 2 [deprecated = true]; - if (has_subscriber_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->subscriber_id(), output); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 3; - if (has_account_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->account_tags(), output); - } - - // optional bool subscription_completed = 4; - if (has_subscription_completed()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->subscription_completed(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountStateNotification) -} - -::google::protobuf::uint8* AccountStateNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountStateNotification) - // optional .bgs.protocol.account.v1.AccountState account_state = 1; - if (has_account_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_state(), target); - } - - // optional uint64 subscriber_id = 2 [deprecated = true]; - if (has_subscriber_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->subscriber_id(), target); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 3; - if (has_account_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->account_tags(), target); - } - - // optional bool subscription_completed = 4; - if (has_subscription_completed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->subscription_completed(), 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.AccountStateNotification) - return target; -} - -int AccountStateNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountState account_state = 1; - if (has_account_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_state()); - } - - // optional uint64 subscriber_id = 2 [deprecated = true]; - if (has_subscriber_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->subscriber_id()); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 3; - if (has_account_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_tags()); - } - - // optional bool subscription_completed = 4; - if (has_subscription_completed()) { - 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 AccountStateNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountStateNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountStateNotification::MergeFrom(const AccountStateNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_account_state()) { - mutable_account_state()->::bgs::protocol::account::v1::AccountState::MergeFrom(from.account_state()); - } - if (from.has_subscriber_id()) { - set_subscriber_id(from.subscriber_id()); - } - if (from.has_account_tags()) { - mutable_account_tags()->::bgs::protocol::account::v1::AccountFieldTags::MergeFrom(from.account_tags()); - } - if (from.has_subscription_completed()) { - set_subscription_completed(from.subscription_completed()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountStateNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountStateNotification::CopyFrom(const AccountStateNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountStateNotification::IsInitialized() const { - if (has_account_state()) { - if (!this->account_state().IsInitialized()) return false; - } - return true; -} - void AccountStateNotification::Swap(AccountStateNotification* other) { if (other != this) { - std::swap(account_state_, other->account_state_); - std::swap(subscriber_id_, other->subscriber_id_); - std::swap(account_tags_, other->account_tags_); - std::swap(subscription_completed_, other->subscription_completed_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountStateNotification::GetMetadata() const { @@ -6956,277 +2601,9 @@ GameAccountStateNotification* GameAccountStateNotification::New() const { return new GameAccountStateNotification; } -void GameAccountStateNotification::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_game_account_state()) { - if (game_account_state_ != NULL) game_account_state_->::bgs::protocol::account::v1::GameAccountState::Clear(); - } - subscriber_id_ = GOOGLE_ULONGLONG(0); - if (has_game_account_tags()) { - if (game_account_tags_ != NULL) game_account_tags_->::bgs::protocol::account::v1::GameAccountFieldTags::Clear(); - } - subscription_completed_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountStateNotification::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.GameAccountStateNotification) - 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.GameAccountState game_account_state = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_subscriber_id; - break; - } - - // optional uint64 subscriber_id = 2 [deprecated = true]; - case 2: { - if (tag == 16) { - parse_subscriber_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &subscriber_id_))); - set_has_subscriber_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_game_account_tags; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 3; - case 3: { - if (tag == 26) { - parse_game_account_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_tags())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_subscription_completed; - break; - } - - // optional bool subscription_completed = 4; - case 4: { - if (tag == 32) { - parse_subscription_completed: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &subscription_completed_))); - set_has_subscription_completed(); - } 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.GameAccountStateNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountStateNotification) - return false; -#undef DO_ -} - -void GameAccountStateNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountStateNotification) - // optional .bgs.protocol.account.v1.GameAccountState game_account_state = 1; - if (has_game_account_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_account_state(), output); - } - - // optional uint64 subscriber_id = 2 [deprecated = true]; - if (has_subscriber_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->subscriber_id(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 3; - if (has_game_account_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->game_account_tags(), output); - } - - // optional bool subscription_completed = 4; - if (has_subscription_completed()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->subscription_completed(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountStateNotification) -} - -::google::protobuf::uint8* GameAccountStateNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountStateNotification) - // optional .bgs.protocol.account.v1.GameAccountState game_account_state = 1; - if (has_game_account_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_account_state(), target); - } - - // optional uint64 subscriber_id = 2 [deprecated = true]; - if (has_subscriber_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->subscriber_id(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 3; - if (has_game_account_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->game_account_tags(), target); - } - - // optional bool subscription_completed = 4; - if (has_subscription_completed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->subscription_completed(), 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.GameAccountStateNotification) - return target; -} - -int GameAccountStateNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.GameAccountState game_account_state = 1; - if (has_game_account_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_state()); - } - - // optional uint64 subscriber_id = 2 [deprecated = true]; - if (has_subscriber_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->subscriber_id()); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 3; - if (has_game_account_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_tags()); - } - - // optional bool subscription_completed = 4; - if (has_subscription_completed()) { - 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 GameAccountStateNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountStateNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountStateNotification::MergeFrom(const GameAccountStateNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_account_state()) { - mutable_game_account_state()->::bgs::protocol::account::v1::GameAccountState::MergeFrom(from.game_account_state()); - } - if (from.has_subscriber_id()) { - set_subscriber_id(from.subscriber_id()); - } - if (from.has_game_account_tags()) { - mutable_game_account_tags()->::bgs::protocol::account::v1::GameAccountFieldTags::MergeFrom(from.game_account_tags()); - } - if (from.has_subscription_completed()) { - set_subscription_completed(from.subscription_completed()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountStateNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountStateNotification::CopyFrom(const GameAccountStateNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountStateNotification::IsInitialized() const { - if (has_game_account_state()) { - if (!this->game_account_state().IsInitialized()) return false; - } - return true; -} - void GameAccountStateNotification::Swap(GameAccountStateNotification* other) { if (other != this) { - std::swap(game_account_state_, other->game_account_state_); - std::swap(subscriber_id_, other->subscriber_id_); - std::swap(game_account_tags_, other->game_account_tags_); - std::swap(subscription_completed_, other->subscription_completed_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountStateNotification::GetMetadata() const { @@ -7301,239 +2678,9 @@ GameAccountNotification* GameAccountNotification::New() const { return new GameAccountNotification; } -void GameAccountNotification::Clear() { - if (_has_bits_[0 / 32] & 6) { - subscriber_id_ = GOOGLE_ULONGLONG(0); - if (has_account_tags()) { - if (account_tags_ != NULL) account_tags_->::bgs::protocol::account::v1::AccountFieldTags::Clear(); - } - } - game_accounts_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountNotification::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.GameAccountNotification) - 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.account.v1.GameAccountList game_accounts = 1; - case 1: { - if (tag == 10) { - parse_game_accounts: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_game_accounts())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_game_accounts; - if (input->ExpectTag(16)) goto parse_subscriber_id; - break; - } - - // optional uint64 subscriber_id = 2; - case 2: { - if (tag == 16) { - parse_subscriber_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &subscriber_id_))); - set_has_subscriber_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_account_tags; - break; - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 3; - case 3: { - if (tag == 26) { - parse_account_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_tags())); - } 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.GameAccountNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountNotification) - return false; -#undef DO_ -} - -void GameAccountNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountNotification) - // repeated .bgs.protocol.account.v1.GameAccountList game_accounts = 1; - for (int i = 0; i < this->game_accounts_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_accounts(i), output); - } - - // optional uint64 subscriber_id = 2; - if (has_subscriber_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->subscriber_id(), output); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 3; - if (has_account_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->account_tags(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountNotification) -} - -::google::protobuf::uint8* GameAccountNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountNotification) - // repeated .bgs.protocol.account.v1.GameAccountList game_accounts = 1; - for (int i = 0; i < this->game_accounts_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_accounts(i), target); - } - - // optional uint64 subscriber_id = 2; - if (has_subscriber_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->subscriber_id(), target); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 3; - if (has_account_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->account_tags(), 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.GameAccountNotification) - return target; -} - -int GameAccountNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint64 subscriber_id = 2; - if (has_subscriber_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->subscriber_id()); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 3; - if (has_account_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_tags()); - } - - } - // repeated .bgs.protocol.account.v1.GameAccountList game_accounts = 1; - total_size += 1 * this->game_accounts_size(); - for (int i = 0; i < this->game_accounts_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_accounts(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 GameAccountNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountNotification::MergeFrom(const GameAccountNotification& from) { - GOOGLE_CHECK_NE(&from, this); - game_accounts_.MergeFrom(from.game_accounts_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_subscriber_id()) { - set_subscriber_id(from.subscriber_id()); - } - if (from.has_account_tags()) { - mutable_account_tags()->::bgs::protocol::account::v1::AccountFieldTags::MergeFrom(from.account_tags()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountNotification::CopyFrom(const GameAccountNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountNotification::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->game_accounts())) return false; - return true; -} - void GameAccountNotification::Swap(GameAccountNotification* other) { if (other != this) { - game_accounts_.Swap(&other->game_accounts_); - std::swap(subscriber_id_, other->subscriber_id_); - std::swap(account_tags_, other->account_tags_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountNotification::GetMetadata() const { @@ -7609,205 +2756,9 @@ GameAccountSessionNotification* GameAccountSessionNotification::New() const { return new GameAccountSessionNotification; } -void GameAccountSessionNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_game_account()) { - if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); - } - if (has_session_info()) { - if (session_info_ != NULL) session_info_->::bgs::protocol::account::v1::GameSessionUpdateInfo::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountSessionNotification::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.GameAccountSessionNotification) - 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_session_info; - break; - } - - // optional .bgs.protocol.account.v1.GameSessionUpdateInfo session_info = 2; - case 2: { - if (tag == 18) { - parse_session_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_session_info())); - } 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.GameAccountSessionNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountSessionNotification) - return false; -#undef DO_ -} - -void GameAccountSessionNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountSessionNotification) - // 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.GameSessionUpdateInfo session_info = 2; - if (has_session_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->session_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountSessionNotification) -} - -::google::protobuf::uint8* GameAccountSessionNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountSessionNotification) - // 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.GameSessionUpdateInfo session_info = 2; - if (has_session_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->session_info(), 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.GameAccountSessionNotification) - return target; -} - -int GameAccountSessionNotification::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.GameSessionUpdateInfo session_info = 2; - if (has_session_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->session_info()); - } - - } - 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 GameAccountSessionNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountSessionNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountSessionNotification::MergeFrom(const GameAccountSessionNotification& 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_session_info()) { - mutable_session_info()->::bgs::protocol::account::v1::GameSessionUpdateInfo::MergeFrom(from.session_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountSessionNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountSessionNotification::CopyFrom(const GameAccountSessionNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountSessionNotification::IsInitialized() const { - if (has_game_account()) { - if (!this->game_account().IsInitialized()) return false; - } - return true; -} - void GameAccountSessionNotification::Swap(GameAccountSessionNotification* other) { if (other != this) { - std::swap(game_account_, other->game_account_); - std::swap(session_info_, other->session_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountSessionNotification::GetMetadata() const { @@ -7820,7 +2771,7 @@ void GameAccountSessionNotification::Swap(GameAccountSessionNotification* other) // =================================================================== -AccountService::AccountService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +AccountService::AccountService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } AccountService::~AccountService() { @@ -7833,368 +2784,269 @@ google::protobuf::ServiceDescriptor const* AccountService::descriptor() { void AccountService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 13: { - ::bgs::protocol::account::v1::ResolveAccountRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.ResolveAccount server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.ResolveAccount(bgs.protocol.account.v1.ResolveAccountRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::ResolveAccountResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.ResolveAccount() returned bgs.protocol.account.v1.ResolveAccountResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::ResolveAccountResponse response; - uint32 status = HandleResolveAccount(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 13: + ParseAndHandleResolveAccount(token, methodId, buffer); break; - } - case 25: { - ::bgs::protocol::account::v1::SubscriptionUpdateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.Subscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.Subscribe(bgs.protocol.account.v1.SubscriptionUpdateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::SubscriptionUpdateResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.Subscribe() returned bgs.protocol.account.v1.SubscriptionUpdateResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::SubscriptionUpdateResponse response; - uint32 status = HandleSubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 25: + ParseAndHandleSubscribe(token, methodId, buffer); break; - } - case 26: { - ::bgs::protocol::account::v1::SubscriptionUpdateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.Unsubscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.Unsubscribe(bgs.protocol.account.v1.SubscriptionUpdateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.Unsubscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnsubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 26: + ParseAndHandleUnsubscribe(token, methodId, buffer); break; - } - case 30: { - ::bgs::protocol::account::v1::GetAccountStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetAccountState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetAccountState(bgs.protocol.account.v1.GetAccountStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::GetAccountStateResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetAccountState() returned bgs.protocol.account.v1.GetAccountStateResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::GetAccountStateResponse response; - uint32 status = HandleGetAccountState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 30: + ParseAndHandleGetAccountState(token, methodId, buffer); break; - } - case 31: { - ::bgs::protocol::account::v1::GetGameAccountStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetGameAccountState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameAccountState(bgs.protocol.account.v1.GetGameAccountStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::GetGameAccountStateResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameAccountState() returned bgs.protocol.account.v1.GetGameAccountStateResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::GetGameAccountStateResponse response; - uint32 status = HandleGetGameAccountState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 31: + ParseAndHandleGetGameAccountState(token, methodId, buffer); break; - } - case 32: { - ::bgs::protocol::account::v1::GetLicensesRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetLicenses server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetLicenses(bgs.protocol.account.v1.GetLicensesRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::GetLicensesResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetLicenses() returned bgs.protocol.account.v1.GetLicensesResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::GetLicensesResponse response; - uint32 status = HandleGetLicenses(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 32: + ParseAndHandleGetLicenses(token, methodId, buffer); break; - } - case 33: { - ::bgs::protocol::account::v1::GetGameTimeRemainingInfoRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetGameTimeRemainingInfo server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameTimeRemainingInfo(bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::GetGameTimeRemainingInfoResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameTimeRemainingInfo() returned bgs.protocol.account.v1.GetGameTimeRemainingInfoResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::GetGameTimeRemainingInfoResponse response; - uint32 status = HandleGetGameTimeRemainingInfo(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 33: + ParseAndHandleGetGameTimeRemainingInfo(token, methodId, buffer); break; - } - case 34: { - ::bgs::protocol::account::v1::GetGameSessionInfoRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetGameSessionInfo server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameSessionInfo(bgs.protocol.account.v1.GetGameSessionInfoRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::GetGameSessionInfoResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameSessionInfo() returned bgs.protocol.account.v1.GetGameSessionInfoResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::GetGameSessionInfoResponse response; - uint32 status = HandleGetGameSessionInfo(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 34: + ParseAndHandleGetGameSessionInfo(token, methodId, buffer); break; - } - case 35: { - ::bgs::protocol::account::v1::GetCAISInfoRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetCAISInfo server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetCAISInfo(bgs.protocol.account.v1.GetCAISInfoRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::GetCAISInfoResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetCAISInfo() returned bgs.protocol.account.v1.GetCAISInfoResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::GetCAISInfoResponse response; - uint32 status = HandleGetCAISInfo(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 35: + ParseAndHandleGetCAISInfo(token, methodId, buffer); break; - } - case 37: { - ::bgs::protocol::account::v1::GetAuthorizedDataRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetAuthorizedData server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetAuthorizedData(bgs.protocol.account.v1.GetAuthorizedDataRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::GetAuthorizedDataResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetAuthorizedData() returned bgs.protocol.account.v1.GetAuthorizedDataResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::GetAuthorizedDataResponse response; - uint32 status = HandleGetAuthorizedData(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 37: + ParseAndHandleGetAuthorizedData(token, methodId, buffer); break; - } - case 44: { - ::bgs::protocol::account::v1::GetSignedAccountStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetSignedAccountState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetSignedAccountState(bgs.protocol.account.v1.GetSignedAccountStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::account::v1::GetSignedAccountStateResponse::descriptor()); - AccountService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetSignedAccountState() returned bgs.protocol.account.v1.GetSignedAccountStateResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::account::v1::GetSignedAccountStateResponse response; - uint32 status = HandleGetSignedAccountState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 44: + ParseAndHandleGetSignedAccountState(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 AccountService::HandleResolveAccount(::bgs::protocol::account::v1::ResolveAccountRequest const* request, ::bgs::protocol::account::v1::ResolveAccountResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.ResolveAccount({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleResolveAccount(::bgs::protocol::account::v1::ResolveAccountRequest const* request, ::bgs::protocol::account::v1::ResolveAccountResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.ResolveAccount", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleSubscribe(::bgs::protocol::account::v1::SubscriptionUpdateRequest const* request, ::bgs::protocol::account::v1::SubscriptionUpdateResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.Subscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleSubscribe(::bgs::protocol::account::v1::SubscriptionUpdateRequest const* request, ::bgs::protocol::account::v1::SubscriptionUpdateResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.Subscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleUnsubscribe(::bgs::protocol::account::v1::SubscriptionUpdateRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.Unsubscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleUnsubscribe(::bgs::protocol::account::v1::SubscriptionUpdateRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.Unsubscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleGetAccountState(::bgs::protocol::account::v1::GetAccountStateRequest const* request, ::bgs::protocol::account::v1::GetAccountStateResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetAccountState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleGetAccountState(::bgs::protocol::account::v1::GetAccountStateRequest const* request, ::bgs::protocol::account::v1::GetAccountStateResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.GetAccountState", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleGetGameAccountState(::bgs::protocol::account::v1::GetGameAccountStateRequest const* request, ::bgs::protocol::account::v1::GetGameAccountStateResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetGameAccountState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleGetGameAccountState(::bgs::protocol::account::v1::GetGameAccountStateRequest const* request, ::bgs::protocol::account::v1::GetGameAccountStateResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.GetGameAccountState", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleGetLicenses(::bgs::protocol::account::v1::GetLicensesRequest const* request, ::bgs::protocol::account::v1::GetLicensesResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetLicenses({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleGetLicenses(::bgs::protocol::account::v1::GetLicensesRequest const* request, ::bgs::protocol::account::v1::GetLicensesResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.GetLicenses", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleGetGameTimeRemainingInfo(::bgs::protocol::account::v1::GetGameTimeRemainingInfoRequest const* request, ::bgs::protocol::account::v1::GetGameTimeRemainingInfoResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetGameTimeRemainingInfo({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleGetGameTimeRemainingInfo(::bgs::protocol::account::v1::GetGameTimeRemainingInfoRequest const* request, ::bgs::protocol::account::v1::GetGameTimeRemainingInfoResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.GetGameTimeRemainingInfo", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleGetGameSessionInfo(::bgs::protocol::account::v1::GetGameSessionInfoRequest const* request, ::bgs::protocol::account::v1::GetGameSessionInfoResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetGameSessionInfo({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleGetGameSessionInfo(::bgs::protocol::account::v1::GetGameSessionInfoRequest const* request, ::bgs::protocol::account::v1::GetGameSessionInfoResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.GetGameSessionInfo", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleGetCAISInfo(::bgs::protocol::account::v1::GetCAISInfoRequest const* request, ::bgs::protocol::account::v1::GetCAISInfoResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetCAISInfo({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleGetCAISInfo(::bgs::protocol::account::v1::GetCAISInfoRequest const* request, ::bgs::protocol::account::v1::GetCAISInfoResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.GetCAISInfo", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleGetAuthorizedData(::bgs::protocol::account::v1::GetAuthorizedDataRequest const* request, ::bgs::protocol::account::v1::GetAuthorizedDataResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetAuthorizedData({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleGetAuthorizedData(::bgs::protocol::account::v1::GetAuthorizedDataRequest const* request, ::bgs::protocol::account::v1::GetAuthorizedDataResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.GetAuthorizedData", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AccountService::HandleGetSignedAccountState(::bgs::protocol::account::v1::GetSignedAccountStateRequest const* request, ::bgs::protocol::account::v1::GetSignedAccountStateResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetSignedAccountState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AccountService::HandleGetSignedAccountState(::bgs::protocol::account::v1::GetSignedAccountStateRequest const* request, ::bgs::protocol::account::v1::GetSignedAccountStateResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AccountService.GetSignedAccountState", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void AccountService::ParseAndHandleResolveAccount(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::ResolveAccountRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.ResolveAccount"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.ResolveAccount", "bgs.protocol.account.v1.ResolveAccountRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.ResolveAccount", ::bgs::protocol::account::v1::ResolveAccountResponse::descriptor()); + ::bgs::protocol::account::v1::ResolveAccountResponse response; + uint32 status = HandleResolveAccount(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::SubscriptionUpdateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.Subscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.Subscribe", "bgs.protocol.account.v1.SubscriptionUpdateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.Subscribe", ::bgs::protocol::account::v1::SubscriptionUpdateResponse::descriptor()); + ::bgs::protocol::account::v1::SubscriptionUpdateResponse response; + uint32 status = HandleSubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::SubscriptionUpdateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.Unsubscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.Unsubscribe", "bgs.protocol.account.v1.SubscriptionUpdateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.Unsubscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnsubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleGetAccountState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::GetAccountStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.GetAccountState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.GetAccountState", "bgs.protocol.account.v1.GetAccountStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.GetAccountState", ::bgs::protocol::account::v1::GetAccountStateResponse::descriptor()); + ::bgs::protocol::account::v1::GetAccountStateResponse response; + uint32 status = HandleGetAccountState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleGetGameAccountState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::GetGameAccountStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.GetGameAccountState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.GetGameAccountState", "bgs.protocol.account.v1.GetGameAccountStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.GetGameAccountState", ::bgs::protocol::account::v1::GetGameAccountStateResponse::descriptor()); + ::bgs::protocol::account::v1::GetGameAccountStateResponse response; + uint32 status = HandleGetGameAccountState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleGetLicenses(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::GetLicensesRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.GetLicenses"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.GetLicenses", "bgs.protocol.account.v1.GetLicensesRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.GetLicenses", ::bgs::protocol::account::v1::GetLicensesResponse::descriptor()); + ::bgs::protocol::account::v1::GetLicensesResponse response; + uint32 status = HandleGetLicenses(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleGetGameTimeRemainingInfo(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::GetGameTimeRemainingInfoRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.GetGameTimeRemainingInfo"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.GetGameTimeRemainingInfo", "bgs.protocol.account.v1.GetGameTimeRemainingInfoRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.GetGameTimeRemainingInfo", ::bgs::protocol::account::v1::GetGameTimeRemainingInfoResponse::descriptor()); + ::bgs::protocol::account::v1::GetGameTimeRemainingInfoResponse response; + uint32 status = HandleGetGameTimeRemainingInfo(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleGetGameSessionInfo(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::GetGameSessionInfoRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.GetGameSessionInfo"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.GetGameSessionInfo", "bgs.protocol.account.v1.GetGameSessionInfoRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.GetGameSessionInfo", ::bgs::protocol::account::v1::GetGameSessionInfoResponse::descriptor()); + ::bgs::protocol::account::v1::GetGameSessionInfoResponse response; + uint32 status = HandleGetGameSessionInfo(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleGetCAISInfo(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::GetCAISInfoRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.GetCAISInfo"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.GetCAISInfo", "bgs.protocol.account.v1.GetCAISInfoRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.GetCAISInfo", ::bgs::protocol::account::v1::GetCAISInfoResponse::descriptor()); + ::bgs::protocol::account::v1::GetCAISInfoResponse response; + uint32 status = HandleGetCAISInfo(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleGetAuthorizedData(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::GetAuthorizedDataRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.GetAuthorizedData"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.GetAuthorizedData", "bgs.protocol.account.v1.GetAuthorizedDataRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.GetAuthorizedData", ::bgs::protocol::account::v1::GetAuthorizedDataResponse::descriptor()); + ::bgs::protocol::account::v1::GetAuthorizedDataResponse response; + uint32 status = HandleGetAuthorizedData(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AccountService::ParseAndHandleGetSignedAccountState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::account::v1::GetSignedAccountStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AccountService.GetSignedAccountState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AccountService.GetSignedAccountState", "bgs.protocol.account.v1.GetSignedAccountStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AccountService.GetSignedAccountState", ::bgs::protocol::account::v1::GetSignedAccountStateResponse::descriptor()); + ::bgs::protocol::account::v1::GetSignedAccountStateResponse response; + uint32 status = HandleGetSignedAccountState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // =================================================================== -AccountListener::AccountListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +AccountListener::AccountListener(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } AccountListener::~AccountListener() { @@ -8206,32 +3058,27 @@ google::protobuf::ServiceDescriptor const* AccountListener::descriptor() { } void AccountListener::OnAccountStateUpdated(::bgs::protocol::account::v1::AccountStateNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountListener.OnAccountStateUpdated(bgs.protocol.account.v1.AccountStateNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AccountListener.OnAccountStateUpdated", "bgs.protocol.account.v1.AccountStateNotification", request); SendRequest(service_hash_, 1 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AccountListener::OnGameAccountStateUpdated(::bgs::protocol::account::v1::GameAccountStateNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountListener.OnGameAccountStateUpdated(bgs.protocol.account.v1.GameAccountStateNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AccountListener.OnGameAccountStateUpdated", "bgs.protocol.account.v1.GameAccountStateNotification", request); SendRequest(service_hash_, 2 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AccountListener::OnGameAccountsUpdated(::bgs::protocol::account::v1::GameAccountNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountListener.OnGameAccountsUpdated(bgs.protocol.account.v1.GameAccountNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AccountListener.OnGameAccountsUpdated", "bgs.protocol.account.v1.GameAccountNotification", request); SendRequest(service_hash_, 3 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AccountListener::OnGameSessionUpdated(::bgs::protocol::account::v1::GameAccountSessionNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountListener.OnGameSessionUpdated(bgs.protocol.account.v1.GameAccountSessionNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AccountListener.OnGameSessionUpdated", "bgs.protocol.account.v1.GameAccountSessionNotification", request); SendRequest(service_hash_, 4 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } -void AccountListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) { - TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", - GetCallerInfo().c_str(), methodId); +void AccountListener::CallServerMethod(uint32 /*token*/, uint32 methodId, MessageBuffer /*buffer*/) { + LogDisallowedMethod(methodId); } // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/account_service.pb.h b/src/server/proto/Client/account_service.pb.h index 35d0439b953..0467512cc27 100644 --- a/src/server/proto/Client/account_service.pb.h +++ b/src/server/proto/Client/account_service.pb.h @@ -99,19 +99,6 @@ class TC_PROTO_API ResolveAccountRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ResolveAccountRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ResolveAccountRequest& from); - void MergeFrom(const ResolveAccountRequest& 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(); @@ -190,19 +177,6 @@ class TC_PROTO_API ResolveAccountResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ResolveAccountResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ResolveAccountResponse& from); - void MergeFrom(const ResolveAccountResponse& 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(); @@ -271,19 +245,6 @@ class TC_PROTO_API GameAccountFlagUpdateRequest : public ::google::protobuf::Mes // implements Message ---------------------------------------------- GameAccountFlagUpdateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountFlagUpdateRequest& from); - void MergeFrom(const GameAccountFlagUpdateRequest& 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(); @@ -372,19 +333,6 @@ class TC_PROTO_API SubscriptionUpdateRequest : public ::google::protobuf::Messag // implements Message ---------------------------------------------- SubscriptionUpdateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscriptionUpdateRequest& from); - void MergeFrom(const SubscriptionUpdateRequest& 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(); @@ -454,19 +402,6 @@ class TC_PROTO_API SubscriptionUpdateResponse : public ::google::protobuf::Messa // implements Message ---------------------------------------------- SubscriptionUpdateResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscriptionUpdateResponse& from); - void MergeFrom(const SubscriptionUpdateResponse& 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(); @@ -536,19 +471,6 @@ class TC_PROTO_API GetAccountStateRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetAccountStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetAccountStateRequest& from); - void MergeFrom(const GetAccountStateRequest& 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(); @@ -661,19 +583,6 @@ class TC_PROTO_API GetAccountStateResponse : public ::google::protobuf::Message // implements Message ---------------------------------------------- GetAccountStateResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetAccountStateResponse& from); - void MergeFrom(const GetAccountStateResponse& 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(); @@ -754,19 +663,6 @@ class TC_PROTO_API GetSignedAccountStateRequest : public ::google::protobuf::Mes // implements Message ---------------------------------------------- GetSignedAccountStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetSignedAccountStateRequest& from); - void MergeFrom(const GetSignedAccountStateRequest& 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(); @@ -835,19 +731,6 @@ class TC_PROTO_API GetSignedAccountStateResponse : public ::google::protobuf::Me // implements Message ---------------------------------------------- GetSignedAccountStateResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetSignedAccountStateResponse& from); - void MergeFrom(const GetSignedAccountStateResponse& 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(); @@ -919,19 +802,6 @@ class TC_PROTO_API GetGameAccountStateRequest : public ::google::protobuf::Messa // implements Message ---------------------------------------------- GetGameAccountStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetGameAccountStateRequest& from); - void MergeFrom(const GetGameAccountStateRequest& 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(); @@ -1036,19 +906,6 @@ class TC_PROTO_API GetGameAccountStateResponse : public ::google::protobuf::Mess // implements Message ---------------------------------------------- GetGameAccountStateResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetGameAccountStateResponse& from); - void MergeFrom(const GetGameAccountStateResponse& 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(); @@ -1129,19 +986,6 @@ class TC_PROTO_API GetLicensesRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetLicensesRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetLicensesRequest& from); - void MergeFrom(const GetLicensesRequest& 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(); @@ -1260,19 +1104,6 @@ class TC_PROTO_API GetLicensesResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetLicensesResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetLicensesResponse& from); - void MergeFrom(const GetLicensesResponse& 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(); @@ -1342,19 +1173,6 @@ class TC_PROTO_API GetGameSessionInfoRequest : public ::google::protobuf::Messag // implements Message ---------------------------------------------- GetGameSessionInfoRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetGameSessionInfoRequest& from); - void MergeFrom(const GetGameSessionInfoRequest& 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(); @@ -1423,19 +1241,6 @@ class TC_PROTO_API GetGameSessionInfoResponse : public ::google::protobuf::Messa // implements Message ---------------------------------------------- GetGameSessionInfoResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetGameSessionInfoResponse& from); - void MergeFrom(const GetGameSessionInfoResponse& 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(); @@ -1504,19 +1309,6 @@ class TC_PROTO_API GetGameTimeRemainingInfoRequest : public ::google::protobuf:: // implements Message ---------------------------------------------- GetGameTimeRemainingInfoRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetGameTimeRemainingInfoRequest& from); - void MergeFrom(const GetGameTimeRemainingInfoRequest& 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(); @@ -1612,19 +1404,6 @@ class TC_PROTO_API GetGameTimeRemainingInfoResponse : public ::google::protobuf: // implements Message ---------------------------------------------- GetGameTimeRemainingInfoResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetGameTimeRemainingInfoResponse& from); - void MergeFrom(const GetGameTimeRemainingInfoResponse& 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(); @@ -1693,19 +1472,6 @@ class TC_PROTO_API GetCAISInfoRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetCAISInfoRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetCAISInfoRequest& from); - void MergeFrom(const GetCAISInfoRequest& 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(); @@ -1774,19 +1540,6 @@ class TC_PROTO_API GetCAISInfoResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetCAISInfoResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetCAISInfoResponse& from); - void MergeFrom(const GetCAISInfoResponse& 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(); @@ -1855,19 +1608,6 @@ class TC_PROTO_API GetAuthorizedDataRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- GetAuthorizedDataRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetAuthorizedDataRequest& from); - void MergeFrom(const GetAuthorizedDataRequest& 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(); @@ -1963,19 +1703,6 @@ class TC_PROTO_API GetAuthorizedDataResponse : public ::google::protobuf::Messag // implements Message ---------------------------------------------- GetAuthorizedDataResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetAuthorizedDataResponse& from); - void MergeFrom(const GetAuthorizedDataResponse& 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(); @@ -2045,19 +1772,6 @@ class TC_PROTO_API AccountStateNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- AccountStateNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountStateNotification& from); - void MergeFrom(const AccountStateNotification& 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(); @@ -2158,19 +1872,6 @@ class TC_PROTO_API GameAccountStateNotification : public ::google::protobuf::Mes // implements Message ---------------------------------------------- GameAccountStateNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountStateNotification& from); - void MergeFrom(const GameAccountStateNotification& 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(); @@ -2271,19 +1972,6 @@ class TC_PROTO_API GameAccountNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- GameAccountNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountNotification& from); - void MergeFrom(const GameAccountNotification& 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(); @@ -2375,19 +2063,6 @@ class TC_PROTO_API GameAccountSessionNotification : public ::google::protobuf::M // implements Message ---------------------------------------------- GameAccountSessionNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountSessionNotification& from); - void MergeFrom(const GameAccountSessionNotification& 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(); @@ -2445,6 +2120,10 @@ class TC_PROTO_API AccountService : public ServiceBase public: explicit AccountService(bool use_original_hash); + AccountService(AccountService const&) = delete; + AccountService(AccountService&&) = delete; + AccountService& operator=(AccountService const&) = delete; + AccountService& operator=(AccountService&&) = delete; virtual ~AccountService(); typedef std::integral_constant OriginalHash; @@ -2469,9 +2148,17 @@ class TC_PROTO_API AccountService : public ServiceBase virtual uint32 HandleGetSignedAccountState(::bgs::protocol::account::v1::GetSignedAccountStateRequest const* request, ::bgs::protocol::account::v1::GetSignedAccountStateResponse* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AccountService); + void ParseAndHandleResolveAccount(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetAccountState(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetGameAccountState(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetLicenses(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetGameTimeRemainingInfo(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetGameSessionInfo(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetCAISInfo(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetAuthorizedData(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetSignedAccountState(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // ------------------------------------------------------------------- @@ -2481,6 +2168,10 @@ class TC_PROTO_API AccountListener : public ServiceBase public: explicit AccountListener(bool use_original_hash); + AccountListener(AccountListener const&) = delete; + AccountListener(AccountListener&&) = delete; + AccountListener& operator=(AccountListener const&) = delete; + AccountListener& operator=(AccountListener&&) = delete; virtual ~AccountListener(); typedef std::integral_constant OriginalHash; @@ -2495,11 +2186,6 @@ class TC_PROTO_API AccountListener : public ServiceBase void OnGameSessionUpdated(::bgs::protocol::account::v1::GameAccountSessionNotification const* request, bool client = false, bool server = false); void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final; - - private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AccountListener); }; // =================================================================== diff --git a/src/server/proto/Client/account_types.pb.cc b/src/server/proto/Client/account_types.pb.cc index dfe79a867b7..8d08be4bbe3 100644 --- a/src/server/proto/Client/account_types.pb.cc +++ b/src/server/proto/Client/account_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "account_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -1090,7 +1088,7 @@ void protobuf_AddDesc_account_5ftypes_2eproto() { "IDENT_NO_DATA\020\000\022\021\n\rIDENT_PENDING\020\001\022\021\n\rID" "ENT_OVER_18\020\002\022\022\n\016IDENT_UNDER_18\020\003\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", 6153); + "SUCC_MNL\020\006\022\021\n\rIDENT_UNKNOWN\020\007B\002H\002", 6153); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "account_types.proto", &protobuf_RegisterTypes); AccountId::default_instance_ = new AccountId(); @@ -1250,156 +1248,9 @@ AccountId* AccountId::New() const { return new AccountId; } -void AccountId::Clear() { - id_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountId::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.AccountId) - 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 fixed32 id = 1; - case 1: { - if (tag == 13) { - 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.account.v1.AccountId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountId) - return false; -#undef DO_ -} - -void AccountId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountId) - // required fixed32 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountId) -} - -::google::protobuf::uint8* AccountId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountId) - // required fixed32 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, 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.account.v1.AccountId) - return target; -} - -int AccountId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed32 id = 1; - 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 AccountId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountId* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountId::MergeFrom(const AccountId& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountId::CopyFrom(const AccountId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountId::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - void AccountId::Swap(AccountId* other) { if (other != this) { - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountId::GetMetadata() const { @@ -1471,208 +1322,9 @@ AccountLicense* AccountLicense::New() const { return new AccountLicense; } -void AccountLicense::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(expires_, id_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountLicense::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.AccountLicense) - 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 uint32 id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_expires; - break; - } - - // optional uint64 expires = 2; - case 2: { - if (tag == 16) { - parse_expires: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &expires_))); - set_has_expires(); - } 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.AccountLicense) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountLicense) - return false; -#undef DO_ -} - -void AccountLicense::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountLicense) - // required uint32 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->id(), output); - } - - // optional uint64 expires = 2; - if (has_expires()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->expires(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountLicense) -} - -::google::protobuf::uint8* AccountLicense::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountLicense) - // required uint32 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->id(), target); - } - - // optional uint64 expires = 2; - if (has_expires()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->expires(), 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.AccountLicense) - return target; -} - -int AccountLicense::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->id()); - } - - // optional uint64 expires = 2; - if (has_expires()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->expires()); - } - - } - 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 AccountLicense::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountLicense* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountLicense::MergeFrom(const AccountLicense& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_expires()) { - set_expires(from.expires()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountLicense::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountLicense::CopyFrom(const AccountLicense& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountLicense::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - void AccountLicense::Swap(AccountLicense* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(expires_, other->expires_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountLicense::GetMetadata() const { @@ -1746,240 +1398,9 @@ GameAccountHandle* GameAccountHandle::New() const { return new GameAccountHandle; } -void GameAccountHandle::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(id_, region_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountHandle::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.GameAccountHandle) - 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 fixed32 id = 1; - case 1: { - if (tag == 13) { - 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->ExpectTag(21)) goto parse_program; - break; - } - - // required fixed32 program = 2; - case 2: { - if (tag == 21) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_region; - break; - } - - // required uint32 region = 3; - case 3: { - if (tag == 24) { - 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.GameAccountHandle) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountHandle) - return false; -#undef DO_ -} - -void GameAccountHandle::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountHandle) - // required fixed32 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->id(), output); - } - - // required fixed32 program = 2; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->program(), output); - } - - // required uint32 region = 3; - if (has_region()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->region(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountHandle) -} - -::google::protobuf::uint8* GameAccountHandle::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountHandle) - // required fixed32 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->id(), target); - } - - // required fixed32 program = 2; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->program(), target); - } - - // required uint32 region = 3; - if (has_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, 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.GameAccountHandle) - return target; -} - -int GameAccountHandle::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed32 id = 1; - if (has_id()) { - total_size += 1 + 4; - } - - // required fixed32 program = 2; - if (has_program()) { - total_size += 1 + 4; - } - - // required uint32 region = 3; - 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 GameAccountHandle::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountHandle* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountHandle::MergeFrom(const GameAccountHandle& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_region()) { - set_region(from.region()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountHandle::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountHandle::CopyFrom(const GameAccountHandle& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountHandle::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - void GameAccountHandle::Swap(GameAccountHandle* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(program_, other->program_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountHandle::GetMetadata() const { @@ -2071,412 +1492,9 @@ AccountReference* AccountReference::New() const { return new AccountReference; } -void AccountReference::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(id_, region_); - if (has_email()) { - if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - email_->clear(); - } - } - if (has_handle()) { - if (handle_ != NULL) handle_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); - } - if (has_battle_tag()) { - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - battle_tag_->clear(); - } - } - if (has_phone_number()) { - if (phone_number_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - phone_number_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountReference::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.AccountReference) - 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 id = 1; - case 1: { - if (tag == 13) { - 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->ExpectTag(18)) goto parse_email; - break; - } - - // optional string email = 2; - case 2: { - if (tag == 18) { - parse_email: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_email())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "email"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_handle; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountHandle handle = 3; - case 3: { - if (tag == 26) { - parse_handle: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_handle())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_battle_tag; - break; - } - - // optional string battle_tag = 4; - case 4: { - if (tag == 34) { - 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(42)) goto parse_phone_number; - break; - } - - // optional string phone_number = 5; - case 5: { - if (tag == 42) { - parse_phone_number: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_phone_number())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "phone_number"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_region; - break; - } - - // optional uint32 region = 10 [default = 0]; - case 10: { - if (tag == 80) { - 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.AccountReference) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountReference) - return false; -#undef DO_ -} - -void AccountReference::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountReference) - // optional fixed32 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->id(), output); - } - - // optional string email = 2; - if (has_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "email"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->email(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountHandle handle = 3; - if (has_handle()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->handle(), output); - } - - // optional string battle_tag = 4; - 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( - 4, this->battle_tag(), output); - } - - // optional string phone_number = 5; - if (has_phone_number()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "phone_number"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->phone_number(), output); - } - - // optional uint32 region = 10 [default = 0]; - if (has_region()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->region(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountReference) -} - -::google::protobuf::uint8* AccountReference::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountReference) - // optional fixed32 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->id(), target); - } - - // optional string email = 2; - if (has_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "email"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->email(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountHandle handle = 3; - if (has_handle()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->handle(), target); - } - - // optional string battle_tag = 4; - 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( - 4, this->battle_tag(), target); - } - - // optional string phone_number = 5; - if (has_phone_number()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "phone_number"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->phone_number(), target); - } - - // optional uint32 region = 10 [default = 0]; - if (has_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, 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.AccountReference) - return target; -} - -int AccountReference::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 id = 1; - if (has_id()) { - total_size += 1 + 4; - } - - // optional string email = 2; - if (has_email()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->email()); - } - - // optional .bgs.protocol.account.v1.GameAccountHandle handle = 3; - if (has_handle()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->handle()); - } - - // optional string battle_tag = 4; - if (has_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->battle_tag()); - } - - // optional string phone_number = 5; - if (has_phone_number()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->phone_number()); - } - - // optional uint32 region = 10 [default = 0]; - 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 AccountReference::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountReference* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountReference::MergeFrom(const AccountReference& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_email()) { - set_email(from.email()); - } - if (from.has_handle()) { - mutable_handle()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.handle()); - } - if (from.has_battle_tag()) { - set_battle_tag(from.battle_tag()); - } - if (from.has_phone_number()) { - set_phone_number(from.phone_number()); - } - if (from.has_region()) { - set_region(from.region()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountReference::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountReference::CopyFrom(const AccountReference& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountReference::IsInitialized() const { - if (has_handle()) { - if (!this->handle().IsInitialized()) return false; - } - return true; -} - void AccountReference::Swap(AccountReference* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(email_, other->email_); - std::swap(handle_, other->handle_); - std::swap(battle_tag_, other->battle_tag_); - std::swap(phone_number_, other->phone_number_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountReference::GetMetadata() const { @@ -2552,233 +1570,34 @@ Identity* Identity::New() const { return new Identity; } -void Identity::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_account()) { - if (account_ != NULL) account_->::bgs::protocol::account::v1::AccountId::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 Identity::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.Identity) - 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_game_account; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 2; - case 2: { - if (tag == 18) { - parse_game_account: - 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.Identity) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.Identity) - return false; -#undef DO_ -} - -void Identity::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.Identity) - // 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.GameAccountHandle game_account = 2; - if (has_game_account()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account(), output); - } +void Identity::Swap(Identity* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.Identity) +::google::protobuf::Metadata Identity::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Identity_descriptor_; + metadata.reflection = Identity_reflection_; + return metadata; } -::google::protobuf::uint8* Identity::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.Identity) - // 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.GameAccountHandle game_account = 2; - if (has_game_account()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_account(), target); - } +#ifndef _MSC_VER +const int ProgramTag::kProgramFieldNumber; +const int ProgramTag::kTagFieldNumber; +#endif // !_MSC_VER - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.Identity) - return target; +ProgramTag::ProgramTag() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.ProgramTag) } -int Identity::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.GameAccountHandle game_account = 2; - 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 Identity::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Identity* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Identity::MergeFrom(const Identity& 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_game_account()) { - mutable_game_account()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.game_account()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Identity::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Identity::CopyFrom(const Identity& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Identity::IsInitialized() const { - if (has_account()) { - if (!this->account().IsInitialized()) return false; - } - if (has_game_account()) { - if (!this->game_account().IsInitialized()) return false; - } - return true; -} - -void Identity::Swap(Identity* other) { - if (other != this) { - std::swap(account_, other->account_); - 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 Identity::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Identity_descriptor_; - metadata.reflection = Identity_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int ProgramTag::kProgramFieldNumber; -const int ProgramTag::kTagFieldNumber; -#endif // !_MSC_VER - -ProgramTag::ProgramTag() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.ProgramTag) -} - -void ProgramTag::InitAsDefaultInstance() { -} +void ProgramTag::InitAsDefaultInstance() { +} ProgramTag::ProgramTag(const ProgramTag& from) : ::google::protobuf::Message() { @@ -2825,203 +1644,9 @@ ProgramTag* ProgramTag::New() const { return new ProgramTag; } -void ProgramTag::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(program_, tag_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ProgramTag::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.ProgramTag) - 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 program = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_tag; - break; - } - - // optional fixed32 tag = 2; - case 2: { - if (tag == 21) { - parse_tag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &tag_))); - set_has_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.account.v1.ProgramTag) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.ProgramTag) - return false; -#undef DO_ -} - -void ProgramTag::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.ProgramTag) - // optional fixed32 program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->program(), output); - } - - // optional fixed32 tag = 2; - if (has_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->tag(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.ProgramTag) -} - -::google::protobuf::uint8* ProgramTag::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.ProgramTag) - // optional fixed32 program = 1; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->program(), target); - } - - // optional fixed32 tag = 2; - if (has_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->tag(), 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.ProgramTag) - return target; -} - -int ProgramTag::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 program = 1; - if (has_program()) { - total_size += 1 + 4; - } - - // optional fixed32 tag = 2; - if (has_tag()) { - 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 ProgramTag::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ProgramTag* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ProgramTag::MergeFrom(const ProgramTag& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_tag()) { - set_tag(from.tag()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ProgramTag::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProgramTag::CopyFrom(const ProgramTag& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProgramTag::IsInitialized() const { - return true; -} - void ProgramTag::Swap(ProgramTag* other) { if (other != this) { - std::swap(program_, other->program_); - std::swap(tag_, other->tag_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ProgramTag::GetMetadata() const { @@ -3093,203 +1718,9 @@ RegionTag* RegionTag::New() const { return new RegionTag; } -void RegionTag::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(region_, tag_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RegionTag::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.RegionTag) - 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 region = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, ®ion_))); - set_has_region(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_tag; - break; - } - - // optional fixed32 tag = 2; - case 2: { - if (tag == 21) { - parse_tag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &tag_))); - set_has_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.account.v1.RegionTag) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.RegionTag) - return false; -#undef DO_ -} - -void RegionTag::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.RegionTag) - // optional fixed32 region = 1; - if (has_region()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->region(), output); - } - - // optional fixed32 tag = 2; - if (has_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->tag(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.RegionTag) -} - -::google::protobuf::uint8* RegionTag::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.RegionTag) - // optional fixed32 region = 1; - if (has_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->region(), target); - } - - // optional fixed32 tag = 2; - if (has_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->tag(), 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.RegionTag) - return target; -} - -int RegionTag::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 region = 1; - if (has_region()) { - total_size += 1 + 4; - } - - // optional fixed32 tag = 2; - if (has_tag()) { - 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 RegionTag::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RegionTag* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RegionTag::MergeFrom(const RegionTag& 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_tag()) { - set_tag(from.tag()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RegionTag::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RegionTag::CopyFrom(const RegionTag& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RegionTag::IsInitialized() const { - return true; -} - void RegionTag::Swap(RegionTag* other) { if (other != this) { - std::swap(region_, other->region_); - std::swap(tag_, other->tag_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RegionTag::GetMetadata() const { @@ -3368,386 +1799,9 @@ AccountFieldTags* AccountFieldTags::New() const { return new AccountFieldTags; } -void AccountFieldTags::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(account_level_info_tag_, privacy_info_tag_); - ZR_(parental_control_info_tag_, security_status_tag_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - game_level_info_tags_.Clear(); - game_status_tags_.Clear(); - game_account_tags_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountFieldTags::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.AccountFieldTags) - 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 account_level_info_tag = 2; - case 2: { - if (tag == 21) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &account_level_info_tag_))); - set_has_account_level_info_tag(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_privacy_info_tag; - break; - } - - // optional fixed32 privacy_info_tag = 3; - case 3: { - if (tag == 29) { - parse_privacy_info_tag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &privacy_info_tag_))); - set_has_privacy_info_tag(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(37)) goto parse_parental_control_info_tag; - break; - } - - // optional fixed32 parental_control_info_tag = 4; - case 4: { - if (tag == 37) { - parse_parental_control_info_tag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &parental_control_info_tag_))); - set_has_parental_control_info_tag(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_game_level_info_tags; - break; - } - - // repeated .bgs.protocol.account.v1.ProgramTag game_level_info_tags = 7; - case 7: { - if (tag == 58) { - parse_game_level_info_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_game_level_info_tags())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_game_level_info_tags; - if (input->ExpectTag(74)) goto parse_game_status_tags; - break; - } - - // repeated .bgs.protocol.account.v1.ProgramTag game_status_tags = 9; - case 9: { - if (tag == 74) { - parse_game_status_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_game_status_tags())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_game_status_tags; - if (input->ExpectTag(90)) goto parse_game_account_tags; - break; - } - - // repeated .bgs.protocol.account.v1.RegionTag game_account_tags = 11; - case 11: { - if (tag == 90) { - parse_game_account_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_game_account_tags())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_game_account_tags; - if (input->ExpectTag(101)) goto parse_security_status_tag; - break; - } - - // optional fixed32 security_status_tag = 12; - case 12: { - if (tag == 101) { - parse_security_status_tag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &security_status_tag_))); - set_has_security_status_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.account.v1.AccountFieldTags) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountFieldTags) - return false; -#undef DO_ -} - -void AccountFieldTags::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountFieldTags) - // optional fixed32 account_level_info_tag = 2; - if (has_account_level_info_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->account_level_info_tag(), output); - } - - // optional fixed32 privacy_info_tag = 3; - if (has_privacy_info_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(3, this->privacy_info_tag(), output); - } - - // optional fixed32 parental_control_info_tag = 4; - if (has_parental_control_info_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(4, this->parental_control_info_tag(), output); - } - - // repeated .bgs.protocol.account.v1.ProgramTag game_level_info_tags = 7; - for (int i = 0; i < this->game_level_info_tags_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->game_level_info_tags(i), output); - } - - // repeated .bgs.protocol.account.v1.ProgramTag game_status_tags = 9; - for (int i = 0; i < this->game_status_tags_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, this->game_status_tags(i), output); - } - - // repeated .bgs.protocol.account.v1.RegionTag game_account_tags = 11; - for (int i = 0; i < this->game_account_tags_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, this->game_account_tags(i), output); - } - - // optional fixed32 security_status_tag = 12; - if (has_security_status_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(12, this->security_status_tag(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountFieldTags) -} - -::google::protobuf::uint8* AccountFieldTags::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountFieldTags) - // optional fixed32 account_level_info_tag = 2; - if (has_account_level_info_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->account_level_info_tag(), target); - } - - // optional fixed32 privacy_info_tag = 3; - if (has_privacy_info_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(3, this->privacy_info_tag(), target); - } - - // optional fixed32 parental_control_info_tag = 4; - if (has_parental_control_info_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(4, this->parental_control_info_tag(), target); - } - - // repeated .bgs.protocol.account.v1.ProgramTag game_level_info_tags = 7; - for (int i = 0; i < this->game_level_info_tags_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->game_level_info_tags(i), target); - } - - // repeated .bgs.protocol.account.v1.ProgramTag game_status_tags = 9; - for (int i = 0; i < this->game_status_tags_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 9, this->game_status_tags(i), target); - } - - // repeated .bgs.protocol.account.v1.RegionTag game_account_tags = 11; - for (int i = 0; i < this->game_account_tags_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 11, this->game_account_tags(i), target); - } - - // optional fixed32 security_status_tag = 12; - if (has_security_status_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(12, this->security_status_tag(), 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.AccountFieldTags) - return target; -} - -int AccountFieldTags::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 account_level_info_tag = 2; - if (has_account_level_info_tag()) { - total_size += 1 + 4; - } - - // optional fixed32 privacy_info_tag = 3; - if (has_privacy_info_tag()) { - total_size += 1 + 4; - } - - // optional fixed32 parental_control_info_tag = 4; - if (has_parental_control_info_tag()) { - total_size += 1 + 4; - } - - // optional fixed32 security_status_tag = 12; - if (has_security_status_tag()) { - total_size += 1 + 4; - } - - } - // repeated .bgs.protocol.account.v1.ProgramTag game_level_info_tags = 7; - total_size += 1 * this->game_level_info_tags_size(); - for (int i = 0; i < this->game_level_info_tags_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_level_info_tags(i)); - } - - // repeated .bgs.protocol.account.v1.ProgramTag game_status_tags = 9; - total_size += 1 * this->game_status_tags_size(); - for (int i = 0; i < this->game_status_tags_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_status_tags(i)); - } - - // repeated .bgs.protocol.account.v1.RegionTag game_account_tags = 11; - total_size += 1 * this->game_account_tags_size(); - for (int i = 0; i < this->game_account_tags_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_tags(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 AccountFieldTags::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountFieldTags* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountFieldTags::MergeFrom(const AccountFieldTags& from) { - GOOGLE_CHECK_NE(&from, this); - game_level_info_tags_.MergeFrom(from.game_level_info_tags_); - game_status_tags_.MergeFrom(from.game_status_tags_); - game_account_tags_.MergeFrom(from.game_account_tags_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_account_level_info_tag()) { - set_account_level_info_tag(from.account_level_info_tag()); - } - if (from.has_privacy_info_tag()) { - set_privacy_info_tag(from.privacy_info_tag()); - } - if (from.has_parental_control_info_tag()) { - set_parental_control_info_tag(from.parental_control_info_tag()); - } - if (from.has_security_status_tag()) { - set_security_status_tag(from.security_status_tag()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountFieldTags::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountFieldTags::CopyFrom(const AccountFieldTags& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountFieldTags::IsInitialized() const { - return true; -} - void AccountFieldTags::Swap(AccountFieldTags* other) { if (other != this) { - std::swap(account_level_info_tag_, other->account_level_info_tag_); - std::swap(privacy_info_tag_, other->privacy_info_tag_); - std::swap(parental_control_info_tag_, other->parental_control_info_tag_); - game_level_info_tags_.Swap(&other->game_level_info_tags_); - game_status_tags_.Swap(&other->game_status_tags_); - game_account_tags_.Swap(&other->game_account_tags_); - std::swap(security_status_tag_, other->security_status_tag_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountFieldTags::GetMetadata() const { @@ -3823,299 +1877,37 @@ GameAccountFieldTags* GameAccountFieldTags::New() const { return new GameAccountFieldTags; } -void GameAccountFieldTags::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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) +void GameAccountFieldTags::Swap(GameAccountFieldTags* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - ZR_(game_level_info_tag_, raf_info_tag_); +::google::protobuf::Metadata GameAccountFieldTags::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameAccountFieldTags_descriptor_; + metadata.reflection = GameAccountFieldTags_reflection_; + return metadata; +} -#undef OFFSET_OF_FIELD_ -#undef ZR_ +// =================================================================== - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountFieldTags::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.GameAccountFieldTags) - 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 game_level_info_tag = 2; - case 2: { - if (tag == 21) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &game_level_info_tag_))); - set_has_game_level_info_tag(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_game_time_info_tag; - break; - } - - // optional fixed32 game_time_info_tag = 3; - case 3: { - if (tag == 29) { - parse_game_time_info_tag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &game_time_info_tag_))); - set_has_game_time_info_tag(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(37)) goto parse_game_status_tag; - break; - } - - // optional fixed32 game_status_tag = 4; - case 4: { - if (tag == 37) { - parse_game_status_tag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &game_status_tag_))); - set_has_game_status_tag(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_raf_info_tag; - break; - } - - // optional fixed32 raf_info_tag = 5; - case 5: { - if (tag == 45) { - parse_raf_info_tag: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &raf_info_tag_))); - set_has_raf_info_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.account.v1.GameAccountFieldTags) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountFieldTags) - return false; -#undef DO_ -} - -void GameAccountFieldTags::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountFieldTags) - // optional fixed32 game_level_info_tag = 2; - if (has_game_level_info_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->game_level_info_tag(), output); - } +#ifndef _MSC_VER +const int AccountFieldOptions::kAllFieldsFieldNumber; +const int AccountFieldOptions::kFieldAccountLevelInfoFieldNumber; +const int AccountFieldOptions::kFieldPrivacyInfoFieldNumber; +const int AccountFieldOptions::kFieldParentalControlInfoFieldNumber; +const int AccountFieldOptions::kFieldGameLevelInfoFieldNumber; +const int AccountFieldOptions::kFieldGameStatusFieldNumber; +const int AccountFieldOptions::kFieldGameAccountsFieldNumber; +const int AccountFieldOptions::kFieldSecurityStatusFieldNumber; +#endif // !_MSC_VER - // optional fixed32 game_time_info_tag = 3; - if (has_game_time_info_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(3, this->game_time_info_tag(), output); - } - - // optional fixed32 game_status_tag = 4; - if (has_game_status_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(4, this->game_status_tag(), output); - } - - // optional fixed32 raf_info_tag = 5; - if (has_raf_info_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(5, this->raf_info_tag(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountFieldTags) -} - -::google::protobuf::uint8* GameAccountFieldTags::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountFieldTags) - // optional fixed32 game_level_info_tag = 2; - if (has_game_level_info_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->game_level_info_tag(), target); - } - - // optional fixed32 game_time_info_tag = 3; - if (has_game_time_info_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(3, this->game_time_info_tag(), target); - } - - // optional fixed32 game_status_tag = 4; - if (has_game_status_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(4, this->game_status_tag(), target); - } - - // optional fixed32 raf_info_tag = 5; - if (has_raf_info_tag()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(5, this->raf_info_tag(), 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.GameAccountFieldTags) - return target; -} - -int GameAccountFieldTags::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 game_level_info_tag = 2; - if (has_game_level_info_tag()) { - total_size += 1 + 4; - } - - // optional fixed32 game_time_info_tag = 3; - if (has_game_time_info_tag()) { - total_size += 1 + 4; - } - - // optional fixed32 game_status_tag = 4; - if (has_game_status_tag()) { - total_size += 1 + 4; - } - - // optional fixed32 raf_info_tag = 5; - if (has_raf_info_tag()) { - 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 GameAccountFieldTags::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountFieldTags* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountFieldTags::MergeFrom(const GameAccountFieldTags& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_level_info_tag()) { - set_game_level_info_tag(from.game_level_info_tag()); - } - if (from.has_game_time_info_tag()) { - set_game_time_info_tag(from.game_time_info_tag()); - } - if (from.has_game_status_tag()) { - set_game_status_tag(from.game_status_tag()); - } - if (from.has_raf_info_tag()) { - set_raf_info_tag(from.raf_info_tag()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountFieldTags::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountFieldTags::CopyFrom(const GameAccountFieldTags& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountFieldTags::IsInitialized() const { - return true; -} - -void GameAccountFieldTags::Swap(GameAccountFieldTags* other) { - if (other != this) { - std::swap(game_level_info_tag_, other->game_level_info_tag_); - std::swap(game_time_info_tag_, other->game_time_info_tag_); - std::swap(game_status_tag_, other->game_status_tag_); - std::swap(raf_info_tag_, other->raf_info_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 GameAccountFieldTags::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GameAccountFieldTags_descriptor_; - metadata.reflection = GameAccountFieldTags_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int AccountFieldOptions::kAllFieldsFieldNumber; -const int AccountFieldOptions::kFieldAccountLevelInfoFieldNumber; -const int AccountFieldOptions::kFieldPrivacyInfoFieldNumber; -const int AccountFieldOptions::kFieldParentalControlInfoFieldNumber; -const int AccountFieldOptions::kFieldGameLevelInfoFieldNumber; -const int AccountFieldOptions::kFieldGameStatusFieldNumber; -const int AccountFieldOptions::kFieldGameAccountsFieldNumber; -const int AccountFieldOptions::kFieldSecurityStatusFieldNumber; -#endif // !_MSC_VER - -AccountFieldOptions::AccountFieldOptions() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.AccountFieldOptions) -} +AccountFieldOptions::AccountFieldOptions() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.AccountFieldOptions) +} void AccountFieldOptions::InitAsDefaultInstance() { } @@ -4171,409 +1963,9 @@ AccountFieldOptions* AccountFieldOptions::New() const { return new AccountFieldOptions; } -void AccountFieldOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(all_fields_, field_security_status_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountFieldOptions::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.AccountFieldOptions) - 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 all_fields = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &all_fields_))); - set_has_all_fields(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_field_account_level_info; - break; - } - - // optional bool field_account_level_info = 2; - case 2: { - if (tag == 16) { - parse_field_account_level_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_account_level_info_))); - set_has_field_account_level_info(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_field_privacy_info; - break; - } - - // optional bool field_privacy_info = 3; - case 3: { - if (tag == 24) { - parse_field_privacy_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_privacy_info_))); - set_has_field_privacy_info(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_field_parental_control_info; - break; - } - - // optional bool field_parental_control_info = 4; - case 4: { - if (tag == 32) { - parse_field_parental_control_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_parental_control_info_))); - set_has_field_parental_control_info(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_field_game_level_info; - break; - } - - // optional bool field_game_level_info = 6; - case 6: { - if (tag == 48) { - parse_field_game_level_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_game_level_info_))); - set_has_field_game_level_info(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_field_game_status; - break; - } - - // optional bool field_game_status = 7; - case 7: { - if (tag == 56) { - parse_field_game_status: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_game_status_))); - set_has_field_game_status(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_field_game_accounts; - break; - } - - // optional bool field_game_accounts = 8; - case 8: { - if (tag == 64) { - parse_field_game_accounts: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_game_accounts_))); - set_has_field_game_accounts(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_field_security_status; - break; - } - - // optional bool field_security_status = 9; - case 9: { - if (tag == 72) { - parse_field_security_status: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_security_status_))); - set_has_field_security_status(); - } 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.AccountFieldOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountFieldOptions) - return false; -#undef DO_ -} - -void AccountFieldOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountFieldOptions) - // optional bool all_fields = 1; - if (has_all_fields()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->all_fields(), output); - } - - // optional bool field_account_level_info = 2; - if (has_field_account_level_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->field_account_level_info(), output); - } - - // optional bool field_privacy_info = 3; - if (has_field_privacy_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->field_privacy_info(), output); - } - - // optional bool field_parental_control_info = 4; - if (has_field_parental_control_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->field_parental_control_info(), output); - } - - // optional bool field_game_level_info = 6; - if (has_field_game_level_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->field_game_level_info(), output); - } - - // optional bool field_game_status = 7; - if (has_field_game_status()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->field_game_status(), output); - } - - // optional bool field_game_accounts = 8; - if (has_field_game_accounts()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->field_game_accounts(), output); - } - - // optional bool field_security_status = 9; - if (has_field_security_status()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->field_security_status(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountFieldOptions) -} - -::google::protobuf::uint8* AccountFieldOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountFieldOptions) - // optional bool all_fields = 1; - if (has_all_fields()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->all_fields(), target); - } - - // optional bool field_account_level_info = 2; - if (has_field_account_level_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->field_account_level_info(), target); - } - - // optional bool field_privacy_info = 3; - if (has_field_privacy_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->field_privacy_info(), target); - } - - // optional bool field_parental_control_info = 4; - if (has_field_parental_control_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->field_parental_control_info(), target); - } - - // optional bool field_game_level_info = 6; - if (has_field_game_level_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->field_game_level_info(), target); - } - - // optional bool field_game_status = 7; - if (has_field_game_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->field_game_status(), target); - } - - // optional bool field_game_accounts = 8; - if (has_field_game_accounts()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->field_game_accounts(), target); - } - - // optional bool field_security_status = 9; - if (has_field_security_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->field_security_status(), 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.AccountFieldOptions) - return target; -} - -int AccountFieldOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool all_fields = 1; - if (has_all_fields()) { - total_size += 1 + 1; - } - - // optional bool field_account_level_info = 2; - if (has_field_account_level_info()) { - total_size += 1 + 1; - } - - // optional bool field_privacy_info = 3; - if (has_field_privacy_info()) { - total_size += 1 + 1; - } - - // optional bool field_parental_control_info = 4; - if (has_field_parental_control_info()) { - total_size += 1 + 1; - } - - // optional bool field_game_level_info = 6; - if (has_field_game_level_info()) { - total_size += 1 + 1; - } - - // optional bool field_game_status = 7; - if (has_field_game_status()) { - total_size += 1 + 1; - } - - // optional bool field_game_accounts = 8; - if (has_field_game_accounts()) { - total_size += 1 + 1; - } - - // optional bool field_security_status = 9; - if (has_field_security_status()) { - 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 AccountFieldOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountFieldOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountFieldOptions::MergeFrom(const AccountFieldOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_all_fields()) { - set_all_fields(from.all_fields()); - } - if (from.has_field_account_level_info()) { - set_field_account_level_info(from.field_account_level_info()); - } - if (from.has_field_privacy_info()) { - set_field_privacy_info(from.field_privacy_info()); - } - if (from.has_field_parental_control_info()) { - set_field_parental_control_info(from.field_parental_control_info()); - } - if (from.has_field_game_level_info()) { - set_field_game_level_info(from.field_game_level_info()); - } - if (from.has_field_game_status()) { - set_field_game_status(from.field_game_status()); - } - if (from.has_field_game_accounts()) { - set_field_game_accounts(from.field_game_accounts()); - } - if (from.has_field_security_status()) { - set_field_security_status(from.field_security_status()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountFieldOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountFieldOptions::CopyFrom(const AccountFieldOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountFieldOptions::IsInitialized() const { - return true; -} - void AccountFieldOptions::Swap(AccountFieldOptions* other) { if (other != this) { - std::swap(all_fields_, other->all_fields_); - std::swap(field_account_level_info_, other->field_account_level_info_); - std::swap(field_privacy_info_, other->field_privacy_info_); - std::swap(field_parental_control_info_, other->field_parental_control_info_); - std::swap(field_game_level_info_, other->field_game_level_info_); - std::swap(field_game_status_, other->field_game_status_); - std::swap(field_game_accounts_, other->field_game_accounts_); - std::swap(field_security_status_, other->field_security_status_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountFieldOptions::GetMetadata() const { @@ -4651,307 +2043,9 @@ GameAccountFieldOptions* GameAccountFieldOptions::New() const { return new GameAccountFieldOptions; } -void GameAccountFieldOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(all_fields_, field_raf_info_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountFieldOptions::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.GameAccountFieldOptions) - 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 all_fields = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &all_fields_))); - set_has_all_fields(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_field_game_level_info; - break; - } - - // optional bool field_game_level_info = 2; - case 2: { - if (tag == 16) { - parse_field_game_level_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_game_level_info_))); - set_has_field_game_level_info(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_field_game_time_info; - break; - } - - // optional bool field_game_time_info = 3; - case 3: { - if (tag == 24) { - parse_field_game_time_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_game_time_info_))); - set_has_field_game_time_info(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_field_game_status; - break; - } - - // optional bool field_game_status = 4; - case 4: { - if (tag == 32) { - parse_field_game_status: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_game_status_))); - set_has_field_game_status(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_field_raf_info; - break; - } - - // optional bool field_raf_info = 5; - case 5: { - if (tag == 40) { - parse_field_raf_info: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &field_raf_info_))); - set_has_field_raf_info(); - } 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.GameAccountFieldOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountFieldOptions) - return false; -#undef DO_ -} - -void GameAccountFieldOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountFieldOptions) - // optional bool all_fields = 1; - if (has_all_fields()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->all_fields(), output); - } - - // optional bool field_game_level_info = 2; - if (has_field_game_level_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->field_game_level_info(), output); - } - - // optional bool field_game_time_info = 3; - if (has_field_game_time_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->field_game_time_info(), output); - } - - // optional bool field_game_status = 4; - if (has_field_game_status()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->field_game_status(), output); - } - - // optional bool field_raf_info = 5; - if (has_field_raf_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->field_raf_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountFieldOptions) -} - -::google::protobuf::uint8* GameAccountFieldOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountFieldOptions) - // optional bool all_fields = 1; - if (has_all_fields()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->all_fields(), target); - } - - // optional bool field_game_level_info = 2; - if (has_field_game_level_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->field_game_level_info(), target); - } - - // optional bool field_game_time_info = 3; - if (has_field_game_time_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->field_game_time_info(), target); - } - - // optional bool field_game_status = 4; - if (has_field_game_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->field_game_status(), target); - } - - // optional bool field_raf_info = 5; - if (has_field_raf_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->field_raf_info(), 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.GameAccountFieldOptions) - return target; -} - -int GameAccountFieldOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool all_fields = 1; - if (has_all_fields()) { - total_size += 1 + 1; - } - - // optional bool field_game_level_info = 2; - if (has_field_game_level_info()) { - total_size += 1 + 1; - } - - // optional bool field_game_time_info = 3; - if (has_field_game_time_info()) { - total_size += 1 + 1; - } - - // optional bool field_game_status = 4; - if (has_field_game_status()) { - total_size += 1 + 1; - } - - // optional bool field_raf_info = 5; - if (has_field_raf_info()) { - 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 GameAccountFieldOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountFieldOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountFieldOptions::MergeFrom(const GameAccountFieldOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_all_fields()) { - set_all_fields(from.all_fields()); - } - if (from.has_field_game_level_info()) { - set_field_game_level_info(from.field_game_level_info()); - } - if (from.has_field_game_time_info()) { - set_field_game_time_info(from.field_game_time_info()); - } - if (from.has_field_game_status()) { - set_field_game_status(from.field_game_status()); - } - if (from.has_field_raf_info()) { - set_field_raf_info(from.field_raf_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountFieldOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountFieldOptions::CopyFrom(const GameAccountFieldOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountFieldOptions::IsInitialized() const { - return true; -} - void GameAccountFieldOptions::Swap(GameAccountFieldOptions* other) { if (other != this) { - std::swap(all_fields_, other->all_fields_); - std::swap(field_game_level_info_, other->field_game_level_info_); - std::swap(field_game_time_info_, other->field_game_time_info_); - std::swap(field_game_status_, other->field_game_status_); - std::swap(field_raf_info_, other->field_raf_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountFieldOptions::GetMetadata() const { @@ -5043,400 +2137,10 @@ SubscriberReference* SubscriberReference::New() const { return new SubscriberReference; } -void SubscriberReference::Clear() { - if (_has_bits_[0 / 32] & 127) { - object_id_ = GOOGLE_ULONGLONG(0); - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_account_options()) { - if (account_options_ != NULL) account_options_->::bgs::protocol::account::v1::AccountFieldOptions::Clear(); - } - if (has_account_tags()) { - if (account_tags_ != NULL) account_tags_->::bgs::protocol::account::v1::AccountFieldTags::Clear(); - } - if (has_game_account_options()) { - if (game_account_options_ != NULL) game_account_options_->::bgs::protocol::account::v1::GameAccountFieldOptions::Clear(); - } - if (has_game_account_tags()) { - if (game_account_tags_ != NULL) game_account_tags_->::bgs::protocol::account::v1::GameAccountFieldTags::Clear(); - } - subscriber_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscriberReference::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.SubscriberReference) - 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 uint64 object_id = 1 [default = 0]; - case 1: { - if (tag == 8) { - 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(18)) goto parse_entity_id; - break; - } - - // optional .bgs.protocol.EntityId entity_id = 2; - case 2: { - if (tag == 18) { - parse_entity_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_account_options; - break; - } - - // optional .bgs.protocol.account.v1.AccountFieldOptions account_options = 3; - case 3: { - if (tag == 26) { - parse_account_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_options())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_account_tags; - break; - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 4; - case 4: { - if (tag == 34) { - parse_account_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_tags())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_game_account_options; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountFieldOptions game_account_options = 5; - case 5: { - if (tag == 42) { - parse_game_account_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_options())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_game_account_tags; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 6; - case 6: { - if (tag == 50) { - parse_game_account_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_tags())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_subscriber_id; - break; - } - - // optional uint64 subscriber_id = 7 [default = 0]; - case 7: { - if (tag == 56) { - parse_subscriber_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &subscriber_id_))); - set_has_subscriber_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.SubscriberReference) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.SubscriberReference) - return false; -#undef DO_ -} - -void SubscriberReference::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.SubscriberReference) - // optional uint64 object_id = 1 [default = 0]; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->object_id(), output); - } - - // optional .bgs.protocol.EntityId entity_id = 2; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->entity_id(), output); - } - - // optional .bgs.protocol.account.v1.AccountFieldOptions account_options = 3; - if (has_account_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->account_options(), output); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 4; - if (has_account_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->account_tags(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldOptions game_account_options = 5; - if (has_game_account_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->game_account_options(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 6; - if (has_game_account_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->game_account_tags(), output); - } - - // optional uint64 subscriber_id = 7 [default = 0]; - if (has_subscriber_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->subscriber_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.SubscriberReference) -} - -::google::protobuf::uint8* SubscriberReference::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.SubscriberReference) - // optional uint64 object_id = 1 [default = 0]; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->object_id(), target); - } - - // optional .bgs.protocol.EntityId entity_id = 2; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->entity_id(), target); - } - - // optional .bgs.protocol.account.v1.AccountFieldOptions account_options = 3; - if (has_account_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->account_options(), target); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 4; - if (has_account_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->account_tags(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldOptions game_account_options = 5; - if (has_game_account_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->game_account_options(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 6; - if (has_game_account_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->game_account_tags(), target); - } - - // optional uint64 subscriber_id = 7 [default = 0]; - if (has_subscriber_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->subscriber_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.SubscriberReference) - return target; -} - -int SubscriberReference::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 object_id = 1 [default = 0]; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_id()); - } - - // optional .bgs.protocol.EntityId entity_id = 2; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional .bgs.protocol.account.v1.AccountFieldOptions account_options = 3; - if (has_account_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_options()); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 4; - if (has_account_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_tags()); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldOptions game_account_options = 5; - if (has_game_account_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_options()); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 6; - if (has_game_account_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_tags()); - } - - // optional uint64 subscriber_id = 7 [default = 0]; - if (has_subscriber_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->subscriber_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 SubscriberReference::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscriberReference* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscriberReference::MergeFrom(const SubscriberReference& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_account_options()) { - mutable_account_options()->::bgs::protocol::account::v1::AccountFieldOptions::MergeFrom(from.account_options()); - } - if (from.has_account_tags()) { - mutable_account_tags()->::bgs::protocol::account::v1::AccountFieldTags::MergeFrom(from.account_tags()); - } - if (from.has_game_account_options()) { - mutable_game_account_options()->::bgs::protocol::account::v1::GameAccountFieldOptions::MergeFrom(from.game_account_options()); - } - if (from.has_game_account_tags()) { - mutable_game_account_tags()->::bgs::protocol::account::v1::GameAccountFieldTags::MergeFrom(from.game_account_tags()); - } - if (from.has_subscriber_id()) { - set_subscriber_id(from.subscriber_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscriberReference::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscriberReference::CopyFrom(const SubscriberReference& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscriberReference::IsInitialized() const { - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - return true; -} - -void SubscriberReference::Swap(SubscriberReference* other) { - if (other != this) { - std::swap(object_id_, other->object_id_); - std::swap(entity_id_, other->entity_id_); - std::swap(account_options_, other->account_options_); - std::swap(account_tags_, other->account_tags_); - std::swap(game_account_options_, other->game_account_options_); - std::swap(game_account_tags_, other->game_account_tags_); - std::swap(subscriber_id_, other->subscriber_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} +void SubscriberReference::Swap(SubscriberReference* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} ::google::protobuf::Metadata SubscriberReference::GetMetadata() const { protobuf_AssignDescriptorsOnce(); @@ -5550,808 +2254,9 @@ AccountLevelInfo* AccountLevelInfo::New() const { return new AccountLevelInfo; } -void AccountLevelInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 254) { - ZR_(default_currency_, preferred_region_); - ZR_(muted_, manual_review_); - if (has_country()) { - if (country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - country_->clear(); - } - } - if (has_full_name()) { - if (full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - full_name_->clear(); - } - } - if (has_battle_tag()) { - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - battle_tag_->clear(); - } - } - } - if (_has_bits_[8 / 32] & 65280) { - ZR_(account_paid_any_, identity_check_status_); - ZR_(test_account_, ratings_board_minimum_age_); - if (has_email()) { - if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - email_->clear(); - } - } - if (has_phone_number()) { - if (phone_number_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - phone_number_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - licenses_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountLevelInfo::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.AccountLevelInfo) - 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)) { - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 3; - case 3: { - if (tag == 26) { - parse_licenses: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_licenses())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_licenses; - if (input->ExpectTag(37)) goto parse_default_currency; - break; - } - - // optional fixed32 default_currency = 4; - case 4: { - if (tag == 37) { - parse_default_currency: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &default_currency_))); - set_has_default_currency(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_country; - break; - } - - // optional string country = 5; - case 5: { - if (tag == 42) { - parse_country: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_country())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->country().data(), this->country().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "country"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_preferred_region; - break; - } - - // optional uint32 preferred_region = 6; - case 6: { - if (tag == 48) { - parse_preferred_region: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &preferred_region_))); - set_has_preferred_region(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_full_name; - break; - } - - // optional string full_name = 7; - case 7: { - if (tag == 58) { - parse_full_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_full_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->full_name().data(), this->full_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "full_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_battle_tag; - break; - } - - // optional string battle_tag = 8; - case 8: { - if (tag == 66) { - 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(72)) goto parse_muted; - break; - } - - // optional bool muted = 9; - case 9: { - if (tag == 72) { - parse_muted: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &muted_))); - set_has_muted(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_manual_review; - break; - } - - // optional bool manual_review = 10; - case 10: { - if (tag == 80) { - 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(88)) goto parse_account_paid_any; - break; - } - - // optional bool account_paid_any = 11; - case 11: { - if (tag == 88) { - parse_account_paid_any: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &account_paid_any_))); - set_has_account_paid_any(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(96)) goto parse_identity_check_status; - break; - } - - // optional .bgs.protocol.account.v1.IdentityVerificationStatus identity_check_status = 12; - case 12: { - if (tag == 96) { - parse_identity_check_status: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::account::v1::IdentityVerificationStatus_IsValid(value)) { - set_identity_check_status(static_cast< ::bgs::protocol::account::v1::IdentityVerificationStatus >(value)); - } else { - mutable_unknown_fields()->AddVarint(12, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(106)) goto parse_email; - break; - } - - // optional string email = 13; - case 13: { - if (tag == 106) { - parse_email: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_email())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "email"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(112)) goto parse_headless_account; - break; - } - - // optional bool headless_account = 14; - case 14: { - if (tag == 112) { - parse_headless_account: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &headless_account_))); - set_has_headless_account(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(120)) goto parse_test_account; - break; - } - - // optional bool test_account = 15; - case 15: { - if (tag == 120) { - parse_test_account: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &test_account_))); - set_has_test_account(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(136)) goto parse_is_sms_protected; - break; - } - - // optional bool is_sms_protected = 17; - case 17: { - if (tag == 136) { - parse_is_sms_protected: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_sms_protected_))); - set_has_is_sms_protected(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(144)) goto parse_ratings_board_minimum_age; - break; - } - - // optional uint32 ratings_board_minimum_age = 18; - case 18: { - if (tag == 144) { - parse_ratings_board_minimum_age: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &ratings_board_minimum_age_))); - set_has_ratings_board_minimum_age(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(154)) goto parse_phone_number; - break; - } - - // optional string phone_number = 19; - case 19: { - if (tag == 154) { - parse_phone_number: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_phone_number())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "phone_number"); - } 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.AccountLevelInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountLevelInfo) - return false; -#undef DO_ -} - -void AccountLevelInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountLevelInfo) - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 3; - for (int i = 0; i < this->licenses_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->licenses(i), output); - } - - // optional fixed32 default_currency = 4; - if (has_default_currency()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(4, this->default_currency(), output); - } - - // optional string country = 5; - if (has_country()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->country().data(), this->country().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "country"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->country(), output); - } - - // optional uint32 preferred_region = 6; - if (has_preferred_region()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->preferred_region(), output); - } - - // optional string full_name = 7; - if (has_full_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->full_name().data(), this->full_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "full_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->full_name(), output); - } - - // optional string battle_tag = 8; - 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( - 8, this->battle_tag(), output); - } - - // optional bool muted = 9; - if (has_muted()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->muted(), output); - } - - // optional bool manual_review = 10; - if (has_manual_review()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->manual_review(), output); - } - - // optional bool account_paid_any = 11; - if (has_account_paid_any()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->account_paid_any(), output); - } - - // optional .bgs.protocol.account.v1.IdentityVerificationStatus identity_check_status = 12; - if (has_identity_check_status()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 12, this->identity_check_status(), output); - } - - // optional string email = 13; - if (has_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "email"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 13, this->email(), output); - } - - // optional bool headless_account = 14; - if (has_headless_account()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->headless_account(), output); - } - - // optional bool test_account = 15; - if (has_test_account()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->test_account(), output); - } - - // optional bool is_sms_protected = 17; - if (has_is_sms_protected()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_sms_protected(), output); - } - - // optional uint32 ratings_board_minimum_age = 18; - if (has_ratings_board_minimum_age()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(18, this->ratings_board_minimum_age(), output); - } - - // optional string phone_number = 19; - if (has_phone_number()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "phone_number"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 19, this->phone_number(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountLevelInfo) -} - -::google::protobuf::uint8* AccountLevelInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountLevelInfo) - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 3; - for (int i = 0; i < this->licenses_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->licenses(i), target); - } - - // optional fixed32 default_currency = 4; - if (has_default_currency()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(4, this->default_currency(), target); - } - - // optional string country = 5; - if (has_country()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->country().data(), this->country().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "country"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->country(), target); - } - - // optional uint32 preferred_region = 6; - if (has_preferred_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->preferred_region(), target); - } - - // optional string full_name = 7; - if (has_full_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->full_name().data(), this->full_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "full_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->full_name(), target); - } - - // optional string battle_tag = 8; - 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( - 8, this->battle_tag(), target); - } - - // optional bool muted = 9; - if (has_muted()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->muted(), target); - } - - // optional bool manual_review = 10; - if (has_manual_review()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->manual_review(), target); - } - - // optional bool account_paid_any = 11; - if (has_account_paid_any()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->account_paid_any(), target); - } - - // optional .bgs.protocol.account.v1.IdentityVerificationStatus identity_check_status = 12; - if (has_identity_check_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 12, this->identity_check_status(), target); - } - - // optional string email = 13; - if (has_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "email"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 13, this->email(), target); - } - - // optional bool headless_account = 14; - if (has_headless_account()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->headless_account(), target); - } - - // optional bool test_account = 15; - if (has_test_account()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->test_account(), target); - } - - // optional bool is_sms_protected = 17; - if (has_is_sms_protected()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_sms_protected(), target); - } - - // optional uint32 ratings_board_minimum_age = 18; - if (has_ratings_board_minimum_age()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(18, this->ratings_board_minimum_age(), target); - } - - // optional string phone_number = 19; - if (has_phone_number()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "phone_number"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 19, this->phone_number(), 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.AccountLevelInfo) - return target; -} - -int AccountLevelInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional fixed32 default_currency = 4; - if (has_default_currency()) { - total_size += 1 + 4; - } - - // optional string country = 5; - if (has_country()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->country()); - } - - // optional uint32 preferred_region = 6; - if (has_preferred_region()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->preferred_region()); - } - - // optional string full_name = 7; - if (has_full_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->full_name()); - } - - // optional string battle_tag = 8; - if (has_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->battle_tag()); - } - - // optional bool muted = 9; - if (has_muted()) { - total_size += 1 + 1; - } - - // optional bool manual_review = 10; - if (has_manual_review()) { - total_size += 1 + 1; - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional bool account_paid_any = 11; - if (has_account_paid_any()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.account.v1.IdentityVerificationStatus identity_check_status = 12; - if (has_identity_check_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->identity_check_status()); - } - - // optional string email = 13; - if (has_email()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->email()); - } - - // optional bool headless_account = 14; - if (has_headless_account()) { - total_size += 1 + 1; - } - - // optional bool test_account = 15; - if (has_test_account()) { - total_size += 1 + 1; - } - - // optional bool is_sms_protected = 17; - if (has_is_sms_protected()) { - total_size += 2 + 1; - } - - // optional uint32 ratings_board_minimum_age = 18; - if (has_ratings_board_minimum_age()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->ratings_board_minimum_age()); - } - - // optional string phone_number = 19; - if (has_phone_number()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->phone_number()); - } - - } - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 3; - total_size += 1 * this->licenses_size(); - for (int i = 0; i < this->licenses_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->licenses(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 AccountLevelInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountLevelInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountLevelInfo::MergeFrom(const AccountLevelInfo& from) { - GOOGLE_CHECK_NE(&from, this); - licenses_.MergeFrom(from.licenses_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_default_currency()) { - set_default_currency(from.default_currency()); - } - if (from.has_country()) { - set_country(from.country()); - } - if (from.has_preferred_region()) { - set_preferred_region(from.preferred_region()); - } - if (from.has_full_name()) { - set_full_name(from.full_name()); - } - if (from.has_battle_tag()) { - set_battle_tag(from.battle_tag()); - } - if (from.has_muted()) { - set_muted(from.muted()); - } - if (from.has_manual_review()) { - set_manual_review(from.manual_review()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_account_paid_any()) { - set_account_paid_any(from.account_paid_any()); - } - if (from.has_identity_check_status()) { - set_identity_check_status(from.identity_check_status()); - } - if (from.has_email()) { - set_email(from.email()); - } - if (from.has_headless_account()) { - set_headless_account(from.headless_account()); - } - if (from.has_test_account()) { - set_test_account(from.test_account()); - } - if (from.has_is_sms_protected()) { - set_is_sms_protected(from.is_sms_protected()); - } - if (from.has_ratings_board_minimum_age()) { - set_ratings_board_minimum_age(from.ratings_board_minimum_age()); - } - if (from.has_phone_number()) { - set_phone_number(from.phone_number()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountLevelInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountLevelInfo::CopyFrom(const AccountLevelInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountLevelInfo::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->licenses())) return false; - return true; -} - void AccountLevelInfo::Swap(AccountLevelInfo* other) { if (other != this) { - licenses_.Swap(&other->licenses_); - std::swap(default_currency_, other->default_currency_); - std::swap(country_, other->country_); - std::swap(preferred_region_, other->preferred_region_); - std::swap(full_name_, other->full_name_); - std::swap(battle_tag_, other->battle_tag_); - std::swap(muted_, other->muted_); - std::swap(manual_review_, other->manual_review_); - std::swap(account_paid_any_, other->account_paid_any_); - std::swap(identity_check_status_, other->identity_check_status_); - std::swap(email_, other->email_); - std::swap(headless_account_, other->headless_account_); - std::swap(test_account_, other->test_account_); - std::swap(is_sms_protected_, other->is_sms_protected_); - std::swap(ratings_board_minimum_age_, other->ratings_board_minimum_age_); - std::swap(phone_number_, other->phone_number_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountLevelInfo::GetMetadata() const { @@ -6452,327 +2357,20 @@ PrivacyInfo* PrivacyInfo::New() const { return new PrivacyInfo; } -void PrivacyInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(is_using_rid_, only_allow_friend_whispers_); - game_info_privacy_ = 1; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PrivacyInfo::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.PrivacyInfo) - 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 is_using_rid = 3; - case 3: { - if (tag == 24) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_using_rid_))); - set_has_is_using_rid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_is_visible_for_view_friends; - break; - } - - // optional bool is_visible_for_view_friends = 4; - case 4: { - if (tag == 32) { - parse_is_visible_for_view_friends: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_visible_for_view_friends_))); - set_has_is_visible_for_view_friends(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_is_hidden_from_friend_finder; - break; - } - - // optional bool is_hidden_from_friend_finder = 5; - case 5: { - if (tag == 40) { - parse_is_hidden_from_friend_finder: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_hidden_from_friend_finder_))); - set_has_is_hidden_from_friend_finder(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_game_info_privacy; - break; - } - - // optional .bgs.protocol.account.v1.PrivacyInfo.GameInfoPrivacy game_info_privacy = 6 [default = PRIVACY_FRIENDS]; - case 6: { - if (tag == 48) { - parse_game_info_privacy: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::account::v1::PrivacyInfo_GameInfoPrivacy_IsValid(value)) { - set_game_info_privacy(static_cast< ::bgs::protocol::account::v1::PrivacyInfo_GameInfoPrivacy >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_only_allow_friend_whispers; - break; - } - - // optional bool only_allow_friend_whispers = 7; - case 7: { - if (tag == 56) { - parse_only_allow_friend_whispers: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &only_allow_friend_whispers_))); - set_has_only_allow_friend_whispers(); - } 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.PrivacyInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.PrivacyInfo) - return false; -#undef DO_ -} - -void PrivacyInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.PrivacyInfo) - // optional bool is_using_rid = 3; - if (has_is_using_rid()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_using_rid(), output); - } - - // optional bool is_visible_for_view_friends = 4; - if (has_is_visible_for_view_friends()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_visible_for_view_friends(), output); - } - - // optional bool is_hidden_from_friend_finder = 5; - if (has_is_hidden_from_friend_finder()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_hidden_from_friend_finder(), output); - } - - // optional .bgs.protocol.account.v1.PrivacyInfo.GameInfoPrivacy game_info_privacy = 6 [default = PRIVACY_FRIENDS]; - if (has_game_info_privacy()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->game_info_privacy(), output); - } - - // optional bool only_allow_friend_whispers = 7; - if (has_only_allow_friend_whispers()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->only_allow_friend_whispers(), output); - } +void PrivacyInfo::Swap(PrivacyInfo* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.PrivacyInfo) +::google::protobuf::Metadata PrivacyInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PrivacyInfo_descriptor_; + metadata.reflection = PrivacyInfo_reflection_; + return metadata; } -::google::protobuf::uint8* PrivacyInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.PrivacyInfo) - // optional bool is_using_rid = 3; - if (has_is_using_rid()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_using_rid(), target); - } - - // optional bool is_visible_for_view_friends = 4; - if (has_is_visible_for_view_friends()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_visible_for_view_friends(), target); - } - - // optional bool is_hidden_from_friend_finder = 5; - if (has_is_hidden_from_friend_finder()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_hidden_from_friend_finder(), target); - } - - // optional .bgs.protocol.account.v1.PrivacyInfo.GameInfoPrivacy game_info_privacy = 6 [default = PRIVACY_FRIENDS]; - if (has_game_info_privacy()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->game_info_privacy(), target); - } - - // optional bool only_allow_friend_whispers = 7; - if (has_only_allow_friend_whispers()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->only_allow_friend_whispers(), 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.PrivacyInfo) - return target; -} - -int PrivacyInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool is_using_rid = 3; - if (has_is_using_rid()) { - total_size += 1 + 1; - } - - // optional bool is_visible_for_view_friends = 4; - if (has_is_visible_for_view_friends()) { - total_size += 1 + 1; - } - - // optional bool is_hidden_from_friend_finder = 5; - if (has_is_hidden_from_friend_finder()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.account.v1.PrivacyInfo.GameInfoPrivacy game_info_privacy = 6 [default = PRIVACY_FRIENDS]; - if (has_game_info_privacy()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->game_info_privacy()); - } - - // optional bool only_allow_friend_whispers = 7; - if (has_only_allow_friend_whispers()) { - 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 PrivacyInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PrivacyInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PrivacyInfo::MergeFrom(const PrivacyInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_is_using_rid()) { - set_is_using_rid(from.is_using_rid()); - } - if (from.has_is_visible_for_view_friends()) { - set_is_visible_for_view_friends(from.is_visible_for_view_friends()); - } - if (from.has_is_hidden_from_friend_finder()) { - set_is_hidden_from_friend_finder(from.is_hidden_from_friend_finder()); - } - if (from.has_game_info_privacy()) { - set_game_info_privacy(from.game_info_privacy()); - } - if (from.has_only_allow_friend_whispers()) { - set_only_allow_friend_whispers(from.only_allow_friend_whispers()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PrivacyInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrivacyInfo::CopyFrom(const PrivacyInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrivacyInfo::IsInitialized() const { - return true; -} - -void PrivacyInfo::Swap(PrivacyInfo* other) { - if (other != this) { - std::swap(is_using_rid_, other->is_using_rid_); - std::swap(is_visible_for_view_friends_, other->is_visible_for_view_friends_); - std::swap(is_hidden_from_friend_finder_, other->is_hidden_from_friend_finder_); - std::swap(game_info_privacy_, other->game_info_privacy_); - std::swap(only_allow_friend_whispers_, other->only_allow_friend_whispers_); - 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 PrivacyInfo::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PrivacyInfo_descriptor_; - metadata.reflection = PrivacyInfo_reflection_; - return metadata; -} - -// =================================================================== +// =================================================================== #ifndef _MSC_VER const int ParentalControlInfo::kTimezoneFieldNumber; @@ -6848,441 +2446,9 @@ ParentalControlInfo* ParentalControlInfo::New() const { return new ParentalControlInfo; } -void ParentalControlInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 223) { - ZR_(minutes_per_day_, minutes_per_week_); - ZR_(can_receive_voice_, can_use_profile_); - if (has_timezone()) { - if (timezone_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - timezone_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - play_schedule_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ParentalControlInfo::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.ParentalControlInfo) - 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 timezone = 3; - case 3: { - if (tag == 26) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_timezone())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->timezone().data(), this->timezone().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "timezone"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_minutes_per_day; - break; - } - - // optional uint32 minutes_per_day = 4; - case 4: { - if (tag == 32) { - parse_minutes_per_day: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &minutes_per_day_))); - set_has_minutes_per_day(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_minutes_per_week; - break; - } - - // optional uint32 minutes_per_week = 5; - case 5: { - if (tag == 40) { - parse_minutes_per_week: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &minutes_per_week_))); - set_has_minutes_per_week(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_can_receive_voice; - break; - } - - // optional bool can_receive_voice = 6; - case 6: { - if (tag == 48) { - parse_can_receive_voice: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_receive_voice_))); - set_has_can_receive_voice(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_can_send_voice; - break; - } - - // optional bool can_send_voice = 7; - case 7: { - if (tag == 56) { - parse_can_send_voice: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_send_voice_))); - set_has_can_send_voice(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_play_schedule; - break; - } - - // repeated bool play_schedule = 8; - case 8: { - if (tag == 64) { - parse_play_schedule: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - 1, 64, input, this->mutable_play_schedule()))); - } else if (tag == 66) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, this->mutable_play_schedule()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_play_schedule; - if (input->ExpectTag(72)) goto parse_can_join_group; - break; - } - - // optional bool can_join_group = 9; - case 9: { - if (tag == 72) { - parse_can_join_group: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_join_group_))); - set_has_can_join_group(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_can_use_profile; - break; - } - - // optional bool can_use_profile = 10; - case 10: { - if (tag == 80) { - parse_can_use_profile: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_use_profile_))); - set_has_can_use_profile(); - } 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.ParentalControlInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.ParentalControlInfo) - return false; -#undef DO_ -} - -void ParentalControlInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.ParentalControlInfo) - // optional string timezone = 3; - if (has_timezone()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->timezone().data(), this->timezone().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "timezone"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->timezone(), output); - } - - // optional uint32 minutes_per_day = 4; - if (has_minutes_per_day()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->minutes_per_day(), output); - } - - // optional uint32 minutes_per_week = 5; - if (has_minutes_per_week()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->minutes_per_week(), output); - } - - // optional bool can_receive_voice = 6; - if (has_can_receive_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->can_receive_voice(), output); - } - - // optional bool can_send_voice = 7; - if (has_can_send_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->can_send_voice(), output); - } - - // repeated bool play_schedule = 8; - for (int i = 0; i < this->play_schedule_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteBool( - 8, this->play_schedule(i), output); - } - - // optional bool can_join_group = 9; - if (has_can_join_group()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->can_join_group(), output); - } - - // optional bool can_use_profile = 10; - if (has_can_use_profile()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->can_use_profile(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.ParentalControlInfo) -} - -::google::protobuf::uint8* ParentalControlInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.ParentalControlInfo) - // optional string timezone = 3; - if (has_timezone()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->timezone().data(), this->timezone().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "timezone"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->timezone(), target); - } - - // optional uint32 minutes_per_day = 4; - if (has_minutes_per_day()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->minutes_per_day(), target); - } - - // optional uint32 minutes_per_week = 5; - if (has_minutes_per_week()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->minutes_per_week(), target); - } - - // optional bool can_receive_voice = 6; - if (has_can_receive_voice()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->can_receive_voice(), target); - } - - // optional bool can_send_voice = 7; - if (has_can_send_voice()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->can_send_voice(), target); - } - - // repeated bool play_schedule = 8; - for (int i = 0; i < this->play_schedule_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteBoolToArray(8, this->play_schedule(i), target); - } - - // optional bool can_join_group = 9; - if (has_can_join_group()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->can_join_group(), target); - } - - // optional bool can_use_profile = 10; - if (has_can_use_profile()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->can_use_profile(), 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.ParentalControlInfo) - return target; -} - -int ParentalControlInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string timezone = 3; - if (has_timezone()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->timezone()); - } - - // optional uint32 minutes_per_day = 4; - if (has_minutes_per_day()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minutes_per_day()); - } - - // optional uint32 minutes_per_week = 5; - if (has_minutes_per_week()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minutes_per_week()); - } - - // optional bool can_receive_voice = 6; - if (has_can_receive_voice()) { - total_size += 1 + 1; - } - - // optional bool can_send_voice = 7; - if (has_can_send_voice()) { - total_size += 1 + 1; - } - - // optional bool can_join_group = 9; - if (has_can_join_group()) { - total_size += 1 + 1; - } - - // optional bool can_use_profile = 10; - if (has_can_use_profile()) { - total_size += 1 + 1; - } - - } - // repeated bool play_schedule = 8; - { - int data_size = 0; - data_size = 1 * this->play_schedule_size(); - total_size += 1 * this->play_schedule_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 ParentalControlInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ParentalControlInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ParentalControlInfo::MergeFrom(const ParentalControlInfo& from) { - GOOGLE_CHECK_NE(&from, this); - play_schedule_.MergeFrom(from.play_schedule_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_timezone()) { - set_timezone(from.timezone()); - } - if (from.has_minutes_per_day()) { - set_minutes_per_day(from.minutes_per_day()); - } - if (from.has_minutes_per_week()) { - set_minutes_per_week(from.minutes_per_week()); - } - if (from.has_can_receive_voice()) { - set_can_receive_voice(from.can_receive_voice()); - } - if (from.has_can_send_voice()) { - set_can_send_voice(from.can_send_voice()); - } - if (from.has_can_join_group()) { - set_can_join_group(from.can_join_group()); - } - if (from.has_can_use_profile()) { - set_can_use_profile(from.can_use_profile()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ParentalControlInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParentalControlInfo::CopyFrom(const ParentalControlInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ParentalControlInfo::IsInitialized() const { - return true; -} - void ParentalControlInfo::Swap(ParentalControlInfo* other) { if (other != this) { - std::swap(timezone_, other->timezone_); - std::swap(minutes_per_day_, other->minutes_per_day_); - std::swap(minutes_per_week_, other->minutes_per_week_); - std::swap(can_receive_voice_, other->can_receive_voice_); - std::swap(can_send_voice_, other->can_send_voice_); - play_schedule_.Swap(&other->play_schedule_); - std::swap(can_join_group_, other->can_join_group_); - std::swap(can_use_profile_, other->can_use_profile_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ParentalControlInfo::GetMetadata() const { @@ -7357,216 +2523,9 @@ PlayScheduleRestriction* PlayScheduleRestriction::New() const { return new PlayScheduleRestriction; } -void PlayScheduleRestriction::Clear() { - if (has_timezone()) { - if (timezone_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - timezone_->clear(); - } - } - play_schedule_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PlayScheduleRestriction::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.PlayScheduleRestriction) - 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 bool play_schedule = 1; - case 1: { - if (tag == 8) { - parse_play_schedule: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - 1, 8, input, this->mutable_play_schedule()))); - } else if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, this->mutable_play_schedule()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(8)) goto parse_play_schedule; - if (input->ExpectTag(18)) goto parse_timezone; - break; - } - - // optional string timezone = 2; - case 2: { - if (tag == 18) { - parse_timezone: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_timezone())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->timezone().data(), this->timezone().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "timezone"); - } 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.PlayScheduleRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.PlayScheduleRestriction) - return false; -#undef DO_ -} - -void PlayScheduleRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.PlayScheduleRestriction) - // repeated bool play_schedule = 1; - for (int i = 0; i < this->play_schedule_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteBool( - 1, this->play_schedule(i), output); - } - - // optional string timezone = 2; - if (has_timezone()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->timezone().data(), this->timezone().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "timezone"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->timezone(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.PlayScheduleRestriction) -} - -::google::protobuf::uint8* PlayScheduleRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.PlayScheduleRestriction) - // repeated bool play_schedule = 1; - for (int i = 0; i < this->play_schedule_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteBoolToArray(1, this->play_schedule(i), target); - } - - // optional string timezone = 2; - if (has_timezone()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->timezone().data(), this->timezone().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "timezone"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->timezone(), 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.PlayScheduleRestriction) - return target; -} - -int PlayScheduleRestriction::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional string timezone = 2; - if (has_timezone()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->timezone()); - } - - } - // repeated bool play_schedule = 1; - { - int data_size = 0; - data_size = 1 * this->play_schedule_size(); - total_size += 1 * this->play_schedule_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 PlayScheduleRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PlayScheduleRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PlayScheduleRestriction::MergeFrom(const PlayScheduleRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - play_schedule_.MergeFrom(from.play_schedule_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_timezone()) { - set_timezone(from.timezone()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PlayScheduleRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PlayScheduleRestriction::CopyFrom(const PlayScheduleRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayScheduleRestriction::IsInitialized() const { - return true; -} - void PlayScheduleRestriction::Swap(PlayScheduleRestriction* other) { if (other != this) { - play_schedule_.Swap(&other->play_schedule_); - std::swap(timezone_, other->timezone_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata PlayScheduleRestriction::GetMetadata() const { @@ -7655,531 +2614,62 @@ GameLevelInfo* GameLevelInfo::New() const { return new GameLevelInfo; } -void GameLevelInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 191) { - ZR_(is_trial_, program_); - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - realm_permissions_ = 0u; - } - last_logout_time_ms_ = GOOGLE_ULONGLONG(0); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - licenses_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameLevelInfo::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.GameLevelInfo) - 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 is_trial = 4; - case 4: { - if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_trial_))); - set_has_is_trial(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_is_lifetime; - break; - } - - // optional bool is_lifetime = 5; - case 5: { - if (tag == 40) { - parse_is_lifetime: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_lifetime_))); - set_has_is_lifetime(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_is_restricted; - break; - } - - // optional bool is_restricted = 6; - case 6: { - if (tag == 48) { - parse_is_restricted: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_restricted_))); - set_has_is_restricted(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_is_beta; - break; - } - - // optional bool is_beta = 7; - case 7: { - if (tag == 56) { - parse_is_beta: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_beta_))); - set_has_is_beta(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_name; - break; - } - - // optional string name = 8; - case 8: { - if (tag == 66) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(77)) goto parse_program; - break; - } - - // optional fixed32 program = 9; - case 9: { - if (tag == 77) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_licenses; - break; - } - - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 10; - case 10: { - if (tag == 82) { - parse_licenses: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_licenses())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_licenses; - if (input->ExpectTag(88)) goto parse_realm_permissions; - break; - } - - // optional uint32 realm_permissions = 11; - case 11: { - if (tag == 88) { - parse_realm_permissions: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &realm_permissions_))); - set_has_realm_permissions(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(96)) goto parse_last_logout_time_ms; - break; - } - - // optional uint64 last_logout_time_ms = 12; - case 12: { - if (tag == 96) { - parse_last_logout_time_ms: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &last_logout_time_ms_))); - set_has_last_logout_time_ms(); - } 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.GameLevelInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameLevelInfo) - return false; -#undef DO_ -} - -void GameLevelInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameLevelInfo) - // optional bool is_trial = 4; - if (has_is_trial()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_trial(), output); - } - - // optional bool is_lifetime = 5; - if (has_is_lifetime()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_lifetime(), output); - } - - // optional bool is_restricted = 6; - if (has_is_restricted()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->is_restricted(), output); - } +void GameLevelInfo::Swap(GameLevelInfo* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - // optional bool is_beta = 7; - if (has_is_beta()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->is_beta(), output); - } +::google::protobuf::Metadata GameLevelInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameLevelInfo_descriptor_; + metadata.reflection = GameLevelInfo_reflection_; + return metadata; +} - // optional string name = 8; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->name(), output); - } +// =================================================================== - // optional fixed32 program = 9; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(9, this->program(), output); - } +#ifndef _MSC_VER +const int GameTimeInfo::kIsUnlimitedPlayTimeFieldNumber; +const int GameTimeInfo::kPlayTimeExpiresFieldNumber; +const int GameTimeInfo::kIsSubscriptionFieldNumber; +const int GameTimeInfo::kIsRecurringSubscriptionFieldNumber; +#endif // !_MSC_VER - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 10; - for (int i = 0; i < this->licenses_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->licenses(i), output); - } +GameTimeInfo::GameTimeInfo() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.GameTimeInfo) +} - // optional uint32 realm_permissions = 11; - if (has_realm_permissions()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->realm_permissions(), output); - } +void GameTimeInfo::InitAsDefaultInstance() { +} - // optional uint64 last_logout_time_ms = 12; - if (has_last_logout_time_ms()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->last_logout_time_ms(), output); - } +GameTimeInfo::GameTimeInfo(const GameTimeInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.GameTimeInfo) +} - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameLevelInfo) +void GameTimeInfo::SharedCtor() { + _cached_size_ = 0; + is_unlimited_play_time_ = false; + play_time_expires_ = GOOGLE_ULONGLONG(0); + is_subscription_ = false; + is_recurring_subscription_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -::google::protobuf::uint8* GameLevelInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameLevelInfo) - // optional bool is_trial = 4; - if (has_is_trial()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_trial(), target); - } +GameTimeInfo::~GameTimeInfo() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GameTimeInfo) + SharedDtor(); +} - // optional bool is_lifetime = 5; - if (has_is_lifetime()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_lifetime(), target); +void GameTimeInfo::SharedDtor() { + if (this != default_instance_) { } - - // optional bool is_restricted = 6; - if (has_is_restricted()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->is_restricted(), target); - } - - // optional bool is_beta = 7; - if (has_is_beta()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->is_beta(), target); - } - - // optional string name = 8; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->name(), target); - } - - // optional fixed32 program = 9; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(9, this->program(), target); - } - - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 10; - for (int i = 0; i < this->licenses_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->licenses(i), target); - } - - // optional uint32 realm_permissions = 11; - if (has_realm_permissions()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->realm_permissions(), target); - } - - // optional uint64 last_logout_time_ms = 12; - if (has_last_logout_time_ms()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->last_logout_time_ms(), 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.GameLevelInfo) - return target; -} - -int GameLevelInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool is_trial = 4; - if (has_is_trial()) { - total_size += 1 + 1; - } - - // optional bool is_lifetime = 5; - if (has_is_lifetime()) { - total_size += 1 + 1; - } - - // optional bool is_restricted = 6; - if (has_is_restricted()) { - total_size += 1 + 1; - } - - // optional bool is_beta = 7; - if (has_is_beta()) { - total_size += 1 + 1; - } - - // optional string name = 8; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional fixed32 program = 9; - if (has_program()) { - total_size += 1 + 4; - } - - // optional uint32 realm_permissions = 11; - if (has_realm_permissions()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->realm_permissions()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional uint64 last_logout_time_ms = 12; - if (has_last_logout_time_ms()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->last_logout_time_ms()); - } - - } - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 10; - total_size += 1 * this->licenses_size(); - for (int i = 0; i < this->licenses_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->licenses(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 GameLevelInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameLevelInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameLevelInfo::MergeFrom(const GameLevelInfo& from) { - GOOGLE_CHECK_NE(&from, this); - licenses_.MergeFrom(from.licenses_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_is_trial()) { - set_is_trial(from.is_trial()); - } - if (from.has_is_lifetime()) { - set_is_lifetime(from.is_lifetime()); - } - if (from.has_is_restricted()) { - set_is_restricted(from.is_restricted()); - } - if (from.has_is_beta()) { - set_is_beta(from.is_beta()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_realm_permissions()) { - set_realm_permissions(from.realm_permissions()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_last_logout_time_ms()) { - set_last_logout_time_ms(from.last_logout_time_ms()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameLevelInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameLevelInfo::CopyFrom(const GameLevelInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameLevelInfo::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->licenses())) return false; - return true; -} - -void GameLevelInfo::Swap(GameLevelInfo* other) { - if (other != this) { - std::swap(is_trial_, other->is_trial_); - std::swap(is_lifetime_, other->is_lifetime_); - std::swap(is_restricted_, other->is_restricted_); - std::swap(is_beta_, other->is_beta_); - std::swap(name_, other->name_); - std::swap(program_, other->program_); - licenses_.Swap(&other->licenses_); - std::swap(realm_permissions_, other->realm_permissions_); - std::swap(last_logout_time_ms_, other->last_logout_time_ms_); - 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 GameLevelInfo::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GameLevelInfo_descriptor_; - metadata.reflection = GameLevelInfo_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int GameTimeInfo::kIsUnlimitedPlayTimeFieldNumber; -const int GameTimeInfo::kPlayTimeExpiresFieldNumber; -const int GameTimeInfo::kIsSubscriptionFieldNumber; -const int GameTimeInfo::kIsRecurringSubscriptionFieldNumber; -#endif // !_MSC_VER - -GameTimeInfo::GameTimeInfo() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.GameTimeInfo) -} - -void GameTimeInfo::InitAsDefaultInstance() { -} - -GameTimeInfo::GameTimeInfo(const GameTimeInfo& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.GameTimeInfo) -} - -void GameTimeInfo::SharedCtor() { - _cached_size_ = 0; - is_unlimited_play_time_ = false; - play_time_expires_ = GOOGLE_ULONGLONG(0); - is_subscription_ = false; - is_recurring_subscription_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameTimeInfo::~GameTimeInfo() { - // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GameTimeInfo) - SharedDtor(); -} - -void GameTimeInfo::SharedDtor() { - if (this != default_instance_) { - } -} +} void GameTimeInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -8202,273 +2692,9 @@ GameTimeInfo* GameTimeInfo::New() const { return new GameTimeInfo; } -void GameTimeInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(play_time_expires_, is_recurring_subscription_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameTimeInfo::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.GameTimeInfo) - 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 is_unlimited_play_time = 3; - case 3: { - if (tag == 24) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_unlimited_play_time_))); - set_has_is_unlimited_play_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_play_time_expires; - break; - } - - // optional uint64 play_time_expires = 5; - case 5: { - if (tag == 40) { - parse_play_time_expires: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &play_time_expires_))); - set_has_play_time_expires(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_is_subscription; - break; - } - - // optional bool is_subscription = 6; - case 6: { - if (tag == 48) { - parse_is_subscription: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_subscription_))); - set_has_is_subscription(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_is_recurring_subscription; - break; - } - - // optional bool is_recurring_subscription = 7; - case 7: { - if (tag == 56) { - parse_is_recurring_subscription: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_recurring_subscription_))); - set_has_is_recurring_subscription(); - } 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.GameTimeInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameTimeInfo) - return false; -#undef DO_ -} - -void GameTimeInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameTimeInfo) - // optional bool is_unlimited_play_time = 3; - if (has_is_unlimited_play_time()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_unlimited_play_time(), output); - } - - // optional uint64 play_time_expires = 5; - if (has_play_time_expires()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->play_time_expires(), output); - } - - // optional bool is_subscription = 6; - if (has_is_subscription()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->is_subscription(), output); - } - - // optional bool is_recurring_subscription = 7; - if (has_is_recurring_subscription()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->is_recurring_subscription(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameTimeInfo) -} - -::google::protobuf::uint8* GameTimeInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameTimeInfo) - // optional bool is_unlimited_play_time = 3; - if (has_is_unlimited_play_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_unlimited_play_time(), target); - } - - // optional uint64 play_time_expires = 5; - if (has_play_time_expires()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->play_time_expires(), target); - } - - // optional bool is_subscription = 6; - if (has_is_subscription()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->is_subscription(), target); - } - - // optional bool is_recurring_subscription = 7; - if (has_is_recurring_subscription()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->is_recurring_subscription(), 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.GameTimeInfo) - return target; -} - -int GameTimeInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool is_unlimited_play_time = 3; - if (has_is_unlimited_play_time()) { - total_size += 1 + 1; - } - - // optional uint64 play_time_expires = 5; - if (has_play_time_expires()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->play_time_expires()); - } - - // optional bool is_subscription = 6; - if (has_is_subscription()) { - total_size += 1 + 1; - } - - // optional bool is_recurring_subscription = 7; - if (has_is_recurring_subscription()) { - 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 GameTimeInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameTimeInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameTimeInfo::MergeFrom(const GameTimeInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_is_unlimited_play_time()) { - set_is_unlimited_play_time(from.is_unlimited_play_time()); - } - if (from.has_play_time_expires()) { - set_play_time_expires(from.play_time_expires()); - } - if (from.has_is_subscription()) { - set_is_subscription(from.is_subscription()); - } - if (from.has_is_recurring_subscription()) { - set_is_recurring_subscription(from.is_recurring_subscription()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameTimeInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameTimeInfo::CopyFrom(const GameTimeInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameTimeInfo::IsInitialized() const { - return true; -} - void GameTimeInfo::Swap(GameTimeInfo* other) { if (other != this) { - std::swap(is_unlimited_play_time_, other->is_unlimited_play_time_); - std::swap(play_time_expires_, other->play_time_expires_); - std::swap(is_subscription_, other->is_subscription_); - std::swap(is_recurring_subscription_, other->is_recurring_subscription_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameTimeInfo::GetMetadata() const { @@ -8544,279 +2770,9 @@ GameTimeRemainingInfo* GameTimeRemainingInfo::New() const { return new GameTimeRemainingInfo; } -void GameTimeRemainingInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(minutes_remaining_, seconds_remaining_until_kick_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameTimeRemainingInfo::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.GameTimeRemainingInfo) - 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 minutes_remaining = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &minutes_remaining_))); - set_has_minutes_remaining(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_parental_daily_minutes_remaining; - break; - } - - // optional uint32 parental_daily_minutes_remaining = 2; - case 2: { - if (tag == 16) { - parse_parental_daily_minutes_remaining: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &parental_daily_minutes_remaining_))); - set_has_parental_daily_minutes_remaining(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_parental_weekly_minutes_remaining; - break; - } - - // optional uint32 parental_weekly_minutes_remaining = 3; - case 3: { - if (tag == 24) { - parse_parental_weekly_minutes_remaining: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &parental_weekly_minutes_remaining_))); - set_has_parental_weekly_minutes_remaining(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_seconds_remaining_until_kick; - break; - } - - // optional uint32 seconds_remaining_until_kick = 4 [deprecated = true]; - case 4: { - if (tag == 32) { - parse_seconds_remaining_until_kick: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &seconds_remaining_until_kick_))); - set_has_seconds_remaining_until_kick(); - } 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.GameTimeRemainingInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameTimeRemainingInfo) - return false; -#undef DO_ -} - -void GameTimeRemainingInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameTimeRemainingInfo) - // optional uint32 minutes_remaining = 1; - if (has_minutes_remaining()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->minutes_remaining(), output); - } - - // optional uint32 parental_daily_minutes_remaining = 2; - if (has_parental_daily_minutes_remaining()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->parental_daily_minutes_remaining(), output); - } - - // optional uint32 parental_weekly_minutes_remaining = 3; - if (has_parental_weekly_minutes_remaining()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->parental_weekly_minutes_remaining(), output); - } - - // optional uint32 seconds_remaining_until_kick = 4 [deprecated = true]; - if (has_seconds_remaining_until_kick()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->seconds_remaining_until_kick(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameTimeRemainingInfo) -} - -::google::protobuf::uint8* GameTimeRemainingInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameTimeRemainingInfo) - // optional uint32 minutes_remaining = 1; - if (has_minutes_remaining()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->minutes_remaining(), target); - } - - // optional uint32 parental_daily_minutes_remaining = 2; - if (has_parental_daily_minutes_remaining()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->parental_daily_minutes_remaining(), target); - } - - // optional uint32 parental_weekly_minutes_remaining = 3; - if (has_parental_weekly_minutes_remaining()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->parental_weekly_minutes_remaining(), target); - } - - // optional uint32 seconds_remaining_until_kick = 4 [deprecated = true]; - if (has_seconds_remaining_until_kick()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->seconds_remaining_until_kick(), 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.GameTimeRemainingInfo) - return target; -} - -int GameTimeRemainingInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 minutes_remaining = 1; - if (has_minutes_remaining()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minutes_remaining()); - } - - // optional uint32 parental_daily_minutes_remaining = 2; - if (has_parental_daily_minutes_remaining()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->parental_daily_minutes_remaining()); - } - - // optional uint32 parental_weekly_minutes_remaining = 3; - if (has_parental_weekly_minutes_remaining()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->parental_weekly_minutes_remaining()); - } - - // optional uint32 seconds_remaining_until_kick = 4 [deprecated = true]; - if (has_seconds_remaining_until_kick()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->seconds_remaining_until_kick()); - } - - } - 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 GameTimeRemainingInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameTimeRemainingInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameTimeRemainingInfo::MergeFrom(const GameTimeRemainingInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_minutes_remaining()) { - set_minutes_remaining(from.minutes_remaining()); - } - if (from.has_parental_daily_minutes_remaining()) { - set_parental_daily_minutes_remaining(from.parental_daily_minutes_remaining()); - } - if (from.has_parental_weekly_minutes_remaining()) { - set_parental_weekly_minutes_remaining(from.parental_weekly_minutes_remaining()); - } - if (from.has_seconds_remaining_until_kick()) { - set_seconds_remaining_until_kick(from.seconds_remaining_until_kick()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameTimeRemainingInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameTimeRemainingInfo::CopyFrom(const GameTimeRemainingInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameTimeRemainingInfo::IsInitialized() const { - return true; -} - void GameTimeRemainingInfo::Swap(GameTimeRemainingInfo* other) { if (other != this) { - std::swap(minutes_remaining_, other->minutes_remaining_); - std::swap(parental_daily_minutes_remaining_, other->parental_daily_minutes_remaining_); - std::swap(parental_weekly_minutes_remaining_, other->parental_weekly_minutes_remaining_); - std::swap(seconds_remaining_until_kick_, other->seconds_remaining_until_kick_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameTimeRemainingInfo::GetMetadata() const { @@ -8896,343 +2852,9 @@ GameStatus* GameStatus::New() const { return new GameStatus; } -void GameStatus::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(suspension_expires_, program_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameStatus::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.GameStatus) - 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 is_suspended = 4; - case 4: { - if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_suspended_))); - set_has_is_suspended(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_is_banned; - break; - } - - // optional bool is_banned = 5; - case 5: { - if (tag == 40) { - parse_is_banned: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_banned_))); - set_has_is_banned(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_suspension_expires; - break; - } - - // optional uint64 suspension_expires = 6; - case 6: { - if (tag == 48) { - parse_suspension_expires: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &suspension_expires_))); - set_has_suspension_expires(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(61)) goto parse_program; - break; - } - - // optional fixed32 program = 7; - case 7: { - if (tag == 61) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_is_locked; - break; - } - - // optional bool is_locked = 8; - case 8: { - if (tag == 64) { - parse_is_locked: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_locked_))); - set_has_is_locked(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_is_bam_unlockable; - break; - } - - // optional bool is_bam_unlockable = 9; - case 9: { - if (tag == 72) { - parse_is_bam_unlockable: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_bam_unlockable_))); - set_has_is_bam_unlockable(); - } 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.GameStatus) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameStatus) - return false; -#undef DO_ -} - -void GameStatus::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameStatus) - // optional bool is_suspended = 4; - if (has_is_suspended()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_suspended(), output); - } - - // optional bool is_banned = 5; - if (has_is_banned()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_banned(), output); - } - - // optional uint64 suspension_expires = 6; - if (has_suspension_expires()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->suspension_expires(), output); - } - - // optional fixed32 program = 7; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(7, this->program(), output); - } - - // optional bool is_locked = 8; - if (has_is_locked()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->is_locked(), output); - } - - // optional bool is_bam_unlockable = 9; - if (has_is_bam_unlockable()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->is_bam_unlockable(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameStatus) -} - -::google::protobuf::uint8* GameStatus::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameStatus) - // optional bool is_suspended = 4; - if (has_is_suspended()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_suspended(), target); - } - - // optional bool is_banned = 5; - if (has_is_banned()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_banned(), target); - } - - // optional uint64 suspension_expires = 6; - if (has_suspension_expires()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->suspension_expires(), target); - } - - // optional fixed32 program = 7; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(7, this->program(), target); - } - - // optional bool is_locked = 8; - if (has_is_locked()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->is_locked(), target); - } - - // optional bool is_bam_unlockable = 9; - if (has_is_bam_unlockable()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->is_bam_unlockable(), 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.GameStatus) - return target; -} - -int GameStatus::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool is_suspended = 4; - if (has_is_suspended()) { - total_size += 1 + 1; - } - - // optional bool is_banned = 5; - if (has_is_banned()) { - total_size += 1 + 1; - } - - // optional uint64 suspension_expires = 6; - if (has_suspension_expires()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->suspension_expires()); - } - - // optional fixed32 program = 7; - if (has_program()) { - total_size += 1 + 4; - } - - // optional bool is_locked = 8; - if (has_is_locked()) { - total_size += 1 + 1; - } - - // optional bool is_bam_unlockable = 9; - if (has_is_bam_unlockable()) { - 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 GameStatus::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameStatus* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameStatus::MergeFrom(const GameStatus& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_is_suspended()) { - set_is_suspended(from.is_suspended()); - } - if (from.has_is_banned()) { - set_is_banned(from.is_banned()); - } - if (from.has_suspension_expires()) { - set_suspension_expires(from.suspension_expires()); - } - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_is_locked()) { - set_is_locked(from.is_locked()); - } - if (from.has_is_bam_unlockable()) { - set_is_bam_unlockable(from.is_bam_unlockable()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameStatus::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameStatus::CopyFrom(const GameStatus& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameStatus::IsInitialized() const { - return true; -} - void GameStatus::Swap(GameStatus* other) { if (other != this) { - std::swap(is_suspended_, other->is_suspended_); - std::swap(is_banned_, other->is_banned_); - std::swap(suspension_expires_, other->suspension_expires_); - std::swap(program_, other->program_); - std::swap(is_locked_, other->is_locked_); - std::swap(is_bam_unlockable_, other->is_bam_unlockable_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameStatus::GetMetadata() const { @@ -9306,162 +2928,9 @@ RAFInfo* RAFInfo::New() const { return new RAFInfo; } -void RAFInfo::Clear() { - if (has_raf_info()) { - if (raf_info_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - raf_info_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RAFInfo::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.RAFInfo) - 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 bytes raf_info = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_raf_info())); - } 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.RAFInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.RAFInfo) - return false; -#undef DO_ -} - -void RAFInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.RAFInfo) - // optional bytes raf_info = 1; - if (has_raf_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->raf_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.RAFInfo) -} - -::google::protobuf::uint8* RAFInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.RAFInfo) - // optional bytes raf_info = 1; - if (has_raf_info()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 1, this->raf_info(), 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.RAFInfo) - return target; -} - -int RAFInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bytes raf_info = 1; - if (has_raf_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->raf_info()); - } - - } - 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 RAFInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RAFInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RAFInfo::MergeFrom(const RAFInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_raf_info()) { - set_raf_info(from.raf_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RAFInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RAFInfo::CopyFrom(const RAFInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RAFInfo::IsInitialized() const { - return true; -} - void RAFInfo::Swap(RAFInfo* other) { if (other != this) { - std::swap(raf_info_, other->raf_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RAFInfo::GetMetadata() const { @@ -9531,410 +3000,25 @@ void GameSessionInfo::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* GameSessionInfo::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GameSessionInfo_descriptor_; -} - -const GameSessionInfo& GameSessionInfo::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); - return *default_instance_; -} - -GameSessionInfo* GameSessionInfo::default_instance_ = NULL; - -GameSessionInfo* GameSessionInfo::New() const { - return new GameSessionInfo; -} - -void GameSessionInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 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_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameSessionInfo::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.GameSessionInfo) - 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 start_time = 3 [deprecated = true]; - case 3: { - if (tag == 24) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &start_time_))); - set_has_start_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_location; - break; - } - - // optional .bgs.protocol.account.v1.GameSessionLocation location = 4; - case 4: { - if (tag == 34) { - parse_location: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_location())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_has_benefactor; - break; - } - - // optional bool has_benefactor = 5; - case 5: { - if (tag == 40) { - parse_has_benefactor: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &has_benefactor_))); - set_has_has_benefactor(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_is_using_igr; - break; - } - - // optional bool is_using_igr = 6; - case 6: { - if (tag == 48) { - parse_is_using_igr: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_using_igr_))); - set_has_is_using_igr(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_parental_controls_active; - break; - } - - // optional bool parental_controls_active = 7; - case 7: { - if (tag == 56) { - parse_parental_controls_active: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &parental_controls_active_))); - set_has_parental_controls_active(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_start_time_sec; - break; - } - - // optional uint64 start_time_sec = 8; - case 8: { - if (tag == 64) { - parse_start_time_sec: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &start_time_sec_))); - set_has_start_time_sec(); - } 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; - } - - 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.GameSessionInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameSessionInfo) - return false; -#undef DO_ -} - -void GameSessionInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameSessionInfo) - // optional uint32 start_time = 3 [deprecated = true]; - if (has_start_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->start_time(), output); - } - - // optional .bgs.protocol.account.v1.GameSessionLocation location = 4; - if (has_location()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->location(), output); - } - - // optional bool has_benefactor = 5; - if (has_has_benefactor()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->has_benefactor(), output); - } - - // optional bool is_using_igr = 6; - if (has_is_using_igr()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->is_using_igr(), output); - } - - // optional bool parental_controls_active = 7; - if (has_parental_controls_active()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->parental_controls_active(), output); - } - - // optional uint64 start_time_sec = 8; - if (has_start_time_sec()) { - ::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); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameSessionInfo) -} - -::google::protobuf::uint8* GameSessionInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameSessionInfo) - // optional uint32 start_time = 3 [deprecated = true]; - if (has_start_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->start_time(), target); - } - - // optional .bgs.protocol.account.v1.GameSessionLocation location = 4; - if (has_location()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->location(), target); - } - - // optional bool has_benefactor = 5; - if (has_has_benefactor()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->has_benefactor(), target); - } - - // optional bool is_using_igr = 6; - if (has_is_using_igr()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->is_using_igr(), target); - } - - // optional bool parental_controls_active = 7; - if (has_parental_controls_active()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->parental_controls_active(), target); - } - - // optional uint64 start_time_sec = 8; - if (has_start_time_sec()) { - 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); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.GameSessionInfo) - return target; -} - -int GameSessionInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 start_time = 3 [deprecated = true]; - if (has_start_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->start_time()); - } - - // optional .bgs.protocol.account.v1.GameSessionLocation location = 4; - if (has_location()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->location()); - } - - // optional bool has_benefactor = 5; - if (has_has_benefactor()) { - total_size += 1 + 1; - } - - // optional bool is_using_igr = 6; - if (has_is_using_igr()) { - total_size += 1 + 1; - } - - // optional bool parental_controls_active = 7; - if (has_parental_controls_active()) { - total_size += 1 + 1; - } - - // optional uint64 start_time_sec = 8; - if (has_start_time_sec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - 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 += - ::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 GameSessionInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameSessionInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameSessionInfo::MergeFrom(const GameSessionInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_start_time()) { - set_start_time(from.start_time()); - } - if (from.has_location()) { - mutable_location()->::bgs::protocol::account::v1::GameSessionLocation::MergeFrom(from.location()); - } - if (from.has_has_benefactor()) { - set_has_benefactor(from.has_benefactor()); - } - if (from.has_is_using_igr()) { - set_is_using_igr(from.is_using_igr()); - } - if (from.has_parental_controls_active()) { - set_parental_controls_active(from.parental_controls_active()); - } - 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()); +const ::google::protobuf::Descriptor* GameSessionInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameSessionInfo_descriptor_; } -void GameSessionInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const GameSessionInfo& GameSessionInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; } -void GameSessionInfo::CopyFrom(const GameSessionInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +GameSessionInfo* GameSessionInfo::default_instance_ = NULL; -bool GameSessionInfo::IsInitialized() const { - if (has_igr_id()) { - if (!this->igr_id().IsInitialized()) return false; - } - return true; +GameSessionInfo* GameSessionInfo::New() const { + return new GameSessionInfo; } void GameSessionInfo::Swap(GameSessionInfo* other) { if (other != this) { - std::swap(start_time_, other->start_time_); - std::swap(location_, other->location_); - std::swap(has_benefactor_, other->has_benefactor_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameSessionInfo::GetMetadata() const { @@ -10006,160 +3090,9 @@ GameSessionUpdateInfo* GameSessionUpdateInfo::New() const { return new GameSessionUpdateInfo; } -void GameSessionUpdateInfo::Clear() { - if (has_cais()) { - if (cais_ != NULL) cais_->::bgs::protocol::account::v1::CAIS::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameSessionUpdateInfo::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.GameSessionUpdateInfo) - 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.CAIS cais = 8; - case 8: { - if (tag == 66) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_cais())); - } 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.GameSessionUpdateInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameSessionUpdateInfo) - return false; -#undef DO_ -} - -void GameSessionUpdateInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameSessionUpdateInfo) - // optional .bgs.protocol.account.v1.CAIS cais = 8; - if (has_cais()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->cais(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameSessionUpdateInfo) -} - -::google::protobuf::uint8* GameSessionUpdateInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameSessionUpdateInfo) - // optional .bgs.protocol.account.v1.CAIS cais = 8; - if (has_cais()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->cais(), 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.GameSessionUpdateInfo) - return target; -} - -int GameSessionUpdateInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.CAIS cais = 8; - if (has_cais()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cais()); - } - - } - 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 GameSessionUpdateInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameSessionUpdateInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameSessionUpdateInfo::MergeFrom(const GameSessionUpdateInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_cais()) { - mutable_cais()->::bgs::protocol::account::v1::CAIS::MergeFrom(from.cais()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameSessionUpdateInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameSessionUpdateInfo::CopyFrom(const GameSessionUpdateInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameSessionUpdateInfo::IsInitialized() const { - return true; -} - void GameSessionUpdateInfo::Swap(GameSessionUpdateInfo* other) { if (other != this) { - std::swap(cais_, other->cais_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameSessionUpdateInfo::GetMetadata() const { @@ -10240,267 +3173,9 @@ GameSessionLocation* GameSessionLocation::New() const { return new GameSessionLocation; } -void GameSessionLocation::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_ip_address()) { - if (ip_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - ip_address_->clear(); - } - } - country_ = 0u; - if (has_city()) { - if (city_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - city_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameSessionLocation::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.GameSessionLocation) - 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 ip_address = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_ip_address())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ip_address().data(), this->ip_address().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "ip_address"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_country; - break; - } - - // optional uint32 country = 2; - case 2: { - if (tag == 16) { - parse_country: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &country_))); - set_has_country(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_city; - break; - } - - // optional string city = 3; - case 3: { - if (tag == 26) { - parse_city: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_city())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->city().data(), this->city().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "city"); - } 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.GameSessionLocation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameSessionLocation) - return false; -#undef DO_ -} - -void GameSessionLocation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameSessionLocation) - // optional string ip_address = 1; - if (has_ip_address()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ip_address().data(), this->ip_address().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "ip_address"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->ip_address(), output); - } - - // optional uint32 country = 2; - if (has_country()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->country(), output); - } - - // optional string city = 3; - if (has_city()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->city().data(), this->city().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "city"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->city(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameSessionLocation) -} - -::google::protobuf::uint8* GameSessionLocation::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameSessionLocation) - // optional string ip_address = 1; - if (has_ip_address()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ip_address().data(), this->ip_address().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "ip_address"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->ip_address(), target); - } - - // optional uint32 country = 2; - if (has_country()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->country(), target); - } - - // optional string city = 3; - if (has_city()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->city().data(), this->city().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "city"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->city(), 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.GameSessionLocation) - return target; -} - -int GameSessionLocation::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string ip_address = 1; - if (has_ip_address()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->ip_address()); - } - - // optional uint32 country = 2; - if (has_country()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->country()); - } - - // optional string city = 3; - if (has_city()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->city()); - } - - } - 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 GameSessionLocation::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameSessionLocation* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameSessionLocation::MergeFrom(const GameSessionLocation& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_ip_address()) { - set_ip_address(from.ip_address()); - } - if (from.has_country()) { - set_country(from.country()); - } - if (from.has_city()) { - set_city(from.city()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameSessionLocation::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameSessionLocation::CopyFrom(const GameSessionLocation& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameSessionLocation::IsInitialized() const { - return true; -} - void GameSessionLocation::Swap(GameSessionLocation* other) { if (other != this) { - std::swap(ip_address_, other->ip_address_); - std::swap(country_, other->country_); - std::swap(city_, other->city_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameSessionLocation::GetMetadata() const { @@ -10574,243 +3249,9 @@ CAIS* CAIS::New() const { return new CAIS; } -void CAIS::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(played_minutes_, last_heard_time_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CAIS::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.CAIS) - 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 played_minutes = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &played_minutes_))); - set_has_played_minutes(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_rested_minutes; - break; - } - - // optional uint32 rested_minutes = 2; - case 2: { - if (tag == 16) { - parse_rested_minutes: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rested_minutes_))); - set_has_rested_minutes(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_last_heard_time; - break; - } - - // optional uint64 last_heard_time = 3; - case 3: { - if (tag == 24) { - parse_last_heard_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &last_heard_time_))); - set_has_last_heard_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.CAIS) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.CAIS) - return false; -#undef DO_ -} - -void CAIS::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.CAIS) - // optional uint32 played_minutes = 1; - if (has_played_minutes()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->played_minutes(), output); - } - - // optional uint32 rested_minutes = 2; - if (has_rested_minutes()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->rested_minutes(), output); - } - - // optional uint64 last_heard_time = 3; - if (has_last_heard_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->last_heard_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.CAIS) -} - -::google::protobuf::uint8* CAIS::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.CAIS) - // optional uint32 played_minutes = 1; - if (has_played_minutes()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->played_minutes(), target); - } - - // optional uint32 rested_minutes = 2; - if (has_rested_minutes()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->rested_minutes(), target); - } - - // optional uint64 last_heard_time = 3; - if (has_last_heard_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->last_heard_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.CAIS) - return target; -} - -int CAIS::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 played_minutes = 1; - if (has_played_minutes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->played_minutes()); - } - - // optional uint32 rested_minutes = 2; - if (has_rested_minutes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rested_minutes()); - } - - // optional uint64 last_heard_time = 3; - if (has_last_heard_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->last_heard_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 CAIS::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CAIS* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CAIS::MergeFrom(const CAIS& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_played_minutes()) { - set_played_minutes(from.played_minutes()); - } - if (from.has_rested_minutes()) { - set_rested_minutes(from.rested_minutes()); - } - if (from.has_last_heard_time()) { - set_last_heard_time(from.last_heard_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CAIS::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CAIS::CopyFrom(const CAIS& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CAIS::IsInitialized() const { - return true; -} - void CAIS::Swap(CAIS* other) { if (other != this) { - std::swap(played_minutes_, other->played_minutes_); - std::swap(rested_minutes_, other->rested_minutes_); - std::swap(last_heard_time_, other->last_heard_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CAIS::GetMetadata() const { @@ -10881,196 +3322,9 @@ GameAccountList* GameAccountList::New() const { return new GameAccountList; } -void GameAccountList::Clear() { - region_ = 0u; - handle_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountList::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.GameAccountList) - 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 = 3; - case 3: { - if (tag == 24) { - 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(34)) goto parse_handle; - break; - } - - // repeated .bgs.protocol.account.v1.GameAccountHandle handle = 4; - case 4: { - if (tag == 34) { - parse_handle: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_handle())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_handle; - 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.GameAccountList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountList) - return false; -#undef DO_ -} - -void GameAccountList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountList) - // optional uint32 region = 3; - if (has_region()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->region(), output); - } - - // repeated .bgs.protocol.account.v1.GameAccountHandle handle = 4; - for (int i = 0; i < this->handle_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->handle(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountList) -} - -::google::protobuf::uint8* GameAccountList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountList) - // optional uint32 region = 3; - if (has_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->region(), target); - } - - // repeated .bgs.protocol.account.v1.GameAccountHandle handle = 4; - for (int i = 0; i < this->handle_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->handle(i), 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.GameAccountList) - return target; -} - -int GameAccountList::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 region = 3; - if (has_region()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->region()); - } - - } - // repeated .bgs.protocol.account.v1.GameAccountHandle handle = 4; - total_size += 1 * this->handle_size(); - for (int i = 0; i < this->handle_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->handle(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 GameAccountList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountList::MergeFrom(const GameAccountList& from) { - GOOGLE_CHECK_NE(&from, this); - handle_.MergeFrom(from.handle_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_region()) { - set_region(from.region()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountList::CopyFrom(const GameAccountList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountList::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->handle())) return false; - return true; -} - void GameAccountList::Swap(GameAccountList* other) { if (other != this) { - std::swap(region_, other->region_); - handle_.Swap(&other->handle_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountList::GetMetadata() const { @@ -11122,333 +3376,35 @@ SecurityStatus::~SecurityStatus() { SharedDtor(); } -void SecurityStatus::SharedDtor() { - if (this != default_instance_) { - } -} - -void SecurityStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SecurityStatus::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SecurityStatus_descriptor_; -} - -const SecurityStatus& SecurityStatus::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); - return *default_instance_; -} - -SecurityStatus* SecurityStatus::default_instance_ = NULL; - -SecurityStatus* SecurityStatus::New() const { - return new SecurityStatus; -} - -void SecurityStatus::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(sms_protect_enabled_, authenticator_required_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SecurityStatus::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.SecurityStatus) - 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 sms_protect_enabled = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &sms_protect_enabled_))); - set_has_sms_protect_enabled(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_email_verified; - break; - } - - // optional bool email_verified = 2; - case 2: { - if (tag == 16) { - parse_email_verified: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &email_verified_))); - set_has_email_verified(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_authenticator_enabled; - break; - } - - // optional bool authenticator_enabled = 3; - case 3: { - if (tag == 24) { - parse_authenticator_enabled: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &authenticator_enabled_))); - set_has_authenticator_enabled(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_sqa_enabled; - break; - } - - // optional bool sqa_enabled = 4; - case 4: { - if (tag == 32) { - parse_sqa_enabled: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &sqa_enabled_))); - set_has_sqa_enabled(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_authenticator_required; - break; - } - - // optional bool authenticator_required = 5; - case 5: { - if (tag == 40) { - parse_authenticator_required: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &authenticator_required_))); - set_has_authenticator_required(); - } 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.SecurityStatus) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.SecurityStatus) - return false; -#undef DO_ -} - -void SecurityStatus::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.SecurityStatus) - // optional bool sms_protect_enabled = 1; - if (has_sms_protect_enabled()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->sms_protect_enabled(), output); - } - - // optional bool email_verified = 2; - if (has_email_verified()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->email_verified(), output); - } - - // optional bool authenticator_enabled = 3; - if (has_authenticator_enabled()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->authenticator_enabled(), output); - } - - // optional bool sqa_enabled = 4; - if (has_sqa_enabled()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->sqa_enabled(), output); - } - - // optional bool authenticator_required = 5; - if (has_authenticator_required()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->authenticator_required(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.SecurityStatus) -} - -::google::protobuf::uint8* SecurityStatus::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.SecurityStatus) - // optional bool sms_protect_enabled = 1; - if (has_sms_protect_enabled()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->sms_protect_enabled(), target); - } - - // optional bool email_verified = 2; - if (has_email_verified()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->email_verified(), target); - } - - // optional bool authenticator_enabled = 3; - if (has_authenticator_enabled()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->authenticator_enabled(), target); - } - - // optional bool sqa_enabled = 4; - if (has_sqa_enabled()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->sqa_enabled(), target); - } - - // optional bool authenticator_required = 5; - if (has_authenticator_required()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->authenticator_required(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); +void SecurityStatus::SharedDtor() { + if (this != default_instance_) { } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.SecurityStatus) - return target; } -int SecurityStatus::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool sms_protect_enabled = 1; - if (has_sms_protect_enabled()) { - total_size += 1 + 1; - } - - // optional bool email_verified = 2; - if (has_email_verified()) { - total_size += 1 + 1; - } - - // optional bool authenticator_enabled = 3; - if (has_authenticator_enabled()) { - total_size += 1 + 1; - } - - // optional bool sqa_enabled = 4; - if (has_sqa_enabled()) { - total_size += 1 + 1; - } - - // optional bool authenticator_required = 5; - if (has_authenticator_required()) { - total_size += 1 + 1; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void SecurityStatus::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SecurityStatus::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SecurityStatus* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void SecurityStatus::MergeFrom(const SecurityStatus& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_sms_protect_enabled()) { - set_sms_protect_enabled(from.sms_protect_enabled()); - } - if (from.has_email_verified()) { - set_email_verified(from.email_verified()); - } - if (from.has_authenticator_enabled()) { - set_authenticator_enabled(from.authenticator_enabled()); - } - if (from.has_sqa_enabled()) { - set_sqa_enabled(from.sqa_enabled()); - } - if (from.has_authenticator_required()) { - set_authenticator_required(from.authenticator_required()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* SecurityStatus::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SecurityStatus_descriptor_; } -void SecurityStatus::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const SecurityStatus& SecurityStatus::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; } -void SecurityStatus::CopyFrom(const SecurityStatus& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +SecurityStatus* SecurityStatus::default_instance_ = NULL; -bool SecurityStatus::IsInitialized() const { - return true; +SecurityStatus* SecurityStatus::New() const { + return new SecurityStatus; } void SecurityStatus::Swap(SecurityStatus* other) { if (other != this) { - std::swap(sms_protect_enabled_, other->sms_protect_enabled_); - std::swap(email_verified_, other->email_verified_); - std::swap(authenticator_enabled_, other->authenticator_enabled_); - std::swap(sqa_enabled_, other->sqa_enabled_); - std::swap(authenticator_required_, other->authenticator_required_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SecurityStatus::GetMetadata() const { @@ -11539,441 +3495,9 @@ AccountState* AccountState::New() const { return new AccountState; } -void AccountState::Clear() { - if (_has_bits_[0 / 32] & 199) { - if (has_account_level_info()) { - if (account_level_info_ != NULL) account_level_info_->::bgs::protocol::account::v1::AccountLevelInfo::Clear(); - } - if (has_privacy_info()) { - if (privacy_info_ != NULL) privacy_info_->::bgs::protocol::account::v1::PrivacyInfo::Clear(); - } - if (has_parental_control_info()) { - if (parental_control_info_ != NULL) parental_control_info_->::bgs::protocol::account::v1::ParentalControlInfo::Clear(); - } - if (has_security_status()) { - if (security_status_ != NULL) security_status_->::bgs::protocol::account::v1::SecurityStatus::Clear(); - } - if (has_government_curfew()) { - if (government_curfew_ != NULL) government_curfew_->::bgs::protocol::account::v1::PlayScheduleRestriction::Clear(); - } - } - game_level_info_.Clear(); - game_status_.Clear(); - game_accounts_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountState::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.AccountState) - 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.AccountLevelInfo account_level_info = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_level_info())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_privacy_info; - break; - } - - // optional .bgs.protocol.account.v1.PrivacyInfo privacy_info = 2; - case 2: { - if (tag == 18) { - parse_privacy_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_privacy_info())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_parental_control_info; - break; - } - - // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 3; - case 3: { - if (tag == 26) { - parse_parental_control_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_parental_control_info())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_game_level_info; - break; - } - - // repeated .bgs.protocol.account.v1.GameLevelInfo game_level_info = 5; - case 5: { - if (tag == 42) { - parse_game_level_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_game_level_info())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_game_level_info; - if (input->ExpectTag(50)) goto parse_game_status; - break; - } - - // repeated .bgs.protocol.account.v1.GameStatus game_status = 6; - case 6: { - if (tag == 50) { - parse_game_status: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_game_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_game_status; - if (input->ExpectTag(58)) goto parse_game_accounts; - break; - } - - // repeated .bgs.protocol.account.v1.GameAccountList game_accounts = 7; - case 7: { - if (tag == 58) { - parse_game_accounts: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_game_accounts())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_game_accounts; - if (input->ExpectTag(66)) goto parse_security_status; - break; - } - - // optional .bgs.protocol.account.v1.SecurityStatus security_status = 8; - case 8: { - if (tag == 66) { - parse_security_status: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_security_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_government_curfew; - break; - } - - // optional .bgs.protocol.account.v1.PlayScheduleRestriction government_curfew = 9; - case 9: { - if (tag == 74) { - parse_government_curfew: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_government_curfew())); - } 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.AccountState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountState) - return false; -#undef DO_ -} - -void AccountState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountState) - // optional .bgs.protocol.account.v1.AccountLevelInfo account_level_info = 1; - if (has_account_level_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_level_info(), output); - } - - // optional .bgs.protocol.account.v1.PrivacyInfo privacy_info = 2; - if (has_privacy_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->privacy_info(), output); - } - - // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 3; - if (has_parental_control_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->parental_control_info(), output); - } - - // repeated .bgs.protocol.account.v1.GameLevelInfo game_level_info = 5; - for (int i = 0; i < this->game_level_info_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->game_level_info(i), output); - } - - // repeated .bgs.protocol.account.v1.GameStatus game_status = 6; - for (int i = 0; i < this->game_status_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->game_status(i), output); - } - - // repeated .bgs.protocol.account.v1.GameAccountList game_accounts = 7; - for (int i = 0; i < this->game_accounts_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->game_accounts(i), output); - } - - // optional .bgs.protocol.account.v1.SecurityStatus security_status = 8; - if (has_security_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->security_status(), output); - } - - // optional .bgs.protocol.account.v1.PlayScheduleRestriction government_curfew = 9; - if (has_government_curfew()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, this->government_curfew(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountState) -} - -::google::protobuf::uint8* AccountState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountState) - // optional .bgs.protocol.account.v1.AccountLevelInfo account_level_info = 1; - if (has_account_level_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_level_info(), target); - } - - // optional .bgs.protocol.account.v1.PrivacyInfo privacy_info = 2; - if (has_privacy_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->privacy_info(), target); - } - - // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 3; - if (has_parental_control_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->parental_control_info(), target); - } - - // repeated .bgs.protocol.account.v1.GameLevelInfo game_level_info = 5; - for (int i = 0; i < this->game_level_info_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->game_level_info(i), target); - } - - // repeated .bgs.protocol.account.v1.GameStatus game_status = 6; - for (int i = 0; i < this->game_status_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->game_status(i), target); - } - - // repeated .bgs.protocol.account.v1.GameAccountList game_accounts = 7; - for (int i = 0; i < this->game_accounts_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->game_accounts(i), target); - } - - // optional .bgs.protocol.account.v1.SecurityStatus security_status = 8; - if (has_security_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->security_status(), target); - } - - // optional .bgs.protocol.account.v1.PlayScheduleRestriction government_curfew = 9; - if (has_government_curfew()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 9, this->government_curfew(), 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.AccountState) - return target; -} - -int AccountState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountLevelInfo account_level_info = 1; - if (has_account_level_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_level_info()); - } - - // optional .bgs.protocol.account.v1.PrivacyInfo privacy_info = 2; - if (has_privacy_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->privacy_info()); - } - - // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 3; - if (has_parental_control_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->parental_control_info()); - } - - // optional .bgs.protocol.account.v1.SecurityStatus security_status = 8; - if (has_security_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->security_status()); - } - - // optional .bgs.protocol.account.v1.PlayScheduleRestriction government_curfew = 9; - if (has_government_curfew()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->government_curfew()); - } - - } - // repeated .bgs.protocol.account.v1.GameLevelInfo game_level_info = 5; - total_size += 1 * this->game_level_info_size(); - for (int i = 0; i < this->game_level_info_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_level_info(i)); - } - - // repeated .bgs.protocol.account.v1.GameStatus game_status = 6; - total_size += 1 * this->game_status_size(); - for (int i = 0; i < this->game_status_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_status(i)); - } - - // repeated .bgs.protocol.account.v1.GameAccountList game_accounts = 7; - total_size += 1 * this->game_accounts_size(); - for (int i = 0; i < this->game_accounts_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_accounts(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 AccountState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountState::MergeFrom(const AccountState& from) { - GOOGLE_CHECK_NE(&from, this); - game_level_info_.MergeFrom(from.game_level_info_); - game_status_.MergeFrom(from.game_status_); - game_accounts_.MergeFrom(from.game_accounts_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_account_level_info()) { - mutable_account_level_info()->::bgs::protocol::account::v1::AccountLevelInfo::MergeFrom(from.account_level_info()); - } - if (from.has_privacy_info()) { - mutable_privacy_info()->::bgs::protocol::account::v1::PrivacyInfo::MergeFrom(from.privacy_info()); - } - if (from.has_parental_control_info()) { - mutable_parental_control_info()->::bgs::protocol::account::v1::ParentalControlInfo::MergeFrom(from.parental_control_info()); - } - if (from.has_security_status()) { - mutable_security_status()->::bgs::protocol::account::v1::SecurityStatus::MergeFrom(from.security_status()); - } - if (from.has_government_curfew()) { - mutable_government_curfew()->::bgs::protocol::account::v1::PlayScheduleRestriction::MergeFrom(from.government_curfew()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountState::CopyFrom(const AccountState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountState::IsInitialized() const { - if (has_account_level_info()) { - if (!this->account_level_info().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->game_level_info())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->game_accounts())) return false; - return true; -} - void AccountState::Swap(AccountState* other) { if (other != this) { - std::swap(account_level_info_, other->account_level_info_); - std::swap(privacy_info_, other->privacy_info_); - std::swap(parental_control_info_, other->parental_control_info_); - game_level_info_.Swap(&other->game_level_info_); - game_status_.Swap(&other->game_status_); - game_accounts_.Swap(&other->game_accounts_); - std::swap(security_status_, other->security_status_); - std::swap(government_curfew_, other->government_curfew_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountState::GetMetadata() const { @@ -12049,205 +3573,9 @@ AccountStateTagged* AccountStateTagged::New() const { return new AccountStateTagged; } -void AccountStateTagged::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_account_state()) { - if (account_state_ != NULL) account_state_->::bgs::protocol::account::v1::AccountState::Clear(); - } - if (has_account_tags()) { - if (account_tags_ != NULL) account_tags_->::bgs::protocol::account::v1::AccountFieldTags::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountStateTagged::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.AccountStateTagged) - 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.AccountState account_state = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_account_tags; - break; - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 2; - case 2: { - if (tag == 18) { - parse_account_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_tags())); - } 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.AccountStateTagged) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountStateTagged) - return false; -#undef DO_ -} - -void AccountStateTagged::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountStateTagged) - // optional .bgs.protocol.account.v1.AccountState account_state = 1; - if (has_account_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_state(), output); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 2; - if (has_account_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->account_tags(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountStateTagged) -} - -::google::protobuf::uint8* AccountStateTagged::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountStateTagged) - // optional .bgs.protocol.account.v1.AccountState account_state = 1; - if (has_account_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_state(), target); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 2; - if (has_account_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->account_tags(), 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.AccountStateTagged) - return target; -} - -int AccountStateTagged::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountState account_state = 1; - if (has_account_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_state()); - } - - // optional .bgs.protocol.account.v1.AccountFieldTags account_tags = 2; - if (has_account_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_tags()); - } - - } - 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 AccountStateTagged::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountStateTagged* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AccountStateTagged::MergeFrom(const AccountStateTagged& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_account_state()) { - mutable_account_state()->::bgs::protocol::account::v1::AccountState::MergeFrom(from.account_state()); - } - if (from.has_account_tags()) { - mutable_account_tags()->::bgs::protocol::account::v1::AccountFieldTags::MergeFrom(from.account_tags()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AccountStateTagged::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountStateTagged::CopyFrom(const AccountStateTagged& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountStateTagged::IsInitialized() const { - if (has_account_state()) { - if (!this->account_state().IsInitialized()) return false; - } - return true; -} - void AccountStateTagged::Swap(AccountStateTagged* other) { if (other != this) { - std::swap(account_state_, other->account_state_); - std::swap(account_tags_, other->account_tags_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountStateTagged::GetMetadata() const { @@ -12277,339 +3605,63 @@ void GameAccountState::InitAsDefaultInstance() { game_level_info_ = const_cast< ::bgs::protocol::account::v1::GameLevelInfo*>(&::bgs::protocol::account::v1::GameLevelInfo::default_instance()); game_time_info_ = const_cast< ::bgs::protocol::account::v1::GameTimeInfo*>(&::bgs::protocol::account::v1::GameTimeInfo::default_instance()); game_status_ = const_cast< ::bgs::protocol::account::v1::GameStatus*>(&::bgs::protocol::account::v1::GameStatus::default_instance()); - raf_info_ = const_cast< ::bgs::protocol::account::v1::RAFInfo*>(&::bgs::protocol::account::v1::RAFInfo::default_instance()); -} - -GameAccountState::GameAccountState(const GameAccountState& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.GameAccountState) -} - -void GameAccountState::SharedCtor() { - _cached_size_ = 0; - game_level_info_ = NULL; - game_time_info_ = NULL; - game_status_ = NULL; - raf_info_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameAccountState::~GameAccountState() { - // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GameAccountState) - SharedDtor(); -} - -void GameAccountState::SharedDtor() { - if (this != default_instance_) { - delete game_level_info_; - delete game_time_info_; - delete game_status_; - delete raf_info_; - } -} - -void GameAccountState::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* GameAccountState::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GameAccountState_descriptor_; -} - -const GameAccountState& GameAccountState::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); - return *default_instance_; -} - -GameAccountState* GameAccountState::default_instance_ = NULL; - -GameAccountState* GameAccountState::New() const { - return new GameAccountState; -} - -void GameAccountState::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_game_level_info()) { - if (game_level_info_ != NULL) game_level_info_->::bgs::protocol::account::v1::GameLevelInfo::Clear(); - } - if (has_game_time_info()) { - if (game_time_info_ != NULL) game_time_info_->::bgs::protocol::account::v1::GameTimeInfo::Clear(); - } - if (has_game_status()) { - if (game_status_ != NULL) game_status_->::bgs::protocol::account::v1::GameStatus::Clear(); - } - if (has_raf_info()) { - if (raf_info_ != NULL) raf_info_->::bgs::protocol::account::v1::RAFInfo::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountState::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.GameAccountState) - 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.GameLevelInfo game_level_info = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_level_info())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_game_time_info; - break; - } - - // optional .bgs.protocol.account.v1.GameTimeInfo game_time_info = 2; - case 2: { - if (tag == 18) { - parse_game_time_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_time_info())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_game_status; - break; - } - - // optional .bgs.protocol.account.v1.GameStatus game_status = 3; - case 3: { - if (tag == 26) { - parse_game_status: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_raf_info; - break; - } - - // optional .bgs.protocol.account.v1.RAFInfo raf_info = 4; - case 4: { - if (tag == 34) { - parse_raf_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_raf_info())); - } 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.GameAccountState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountState) - return false; -#undef DO_ -} - -void GameAccountState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountState) - // optional .bgs.protocol.account.v1.GameLevelInfo game_level_info = 1; - if (has_game_level_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_level_info(), output); - } - - // optional .bgs.protocol.account.v1.GameTimeInfo game_time_info = 2; - if (has_game_time_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_time_info(), output); - } - - // optional .bgs.protocol.account.v1.GameStatus game_status = 3; - if (has_game_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->game_status(), output); - } - - // optional .bgs.protocol.account.v1.RAFInfo raf_info = 4; - if (has_raf_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->raf_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountState) -} - -::google::protobuf::uint8* GameAccountState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountState) - // optional .bgs.protocol.account.v1.GameLevelInfo game_level_info = 1; - if (has_game_level_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_level_info(), target); - } - - // optional .bgs.protocol.account.v1.GameTimeInfo game_time_info = 2; - if (has_game_time_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_time_info(), target); - } - - // optional .bgs.protocol.account.v1.GameStatus game_status = 3; - if (has_game_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->game_status(), target); - } - - // optional .bgs.protocol.account.v1.RAFInfo raf_info = 4; - if (has_raf_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->raf_info(), 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.GameAccountState) - return target; + raf_info_ = const_cast< ::bgs::protocol::account::v1::RAFInfo*>(&::bgs::protocol::account::v1::RAFInfo::default_instance()); } -int GameAccountState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.GameLevelInfo game_level_info = 1; - if (has_game_level_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_level_info()); - } - - // optional .bgs.protocol.account.v1.GameTimeInfo game_time_info = 2; - if (has_game_time_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_time_info()); - } +GameAccountState::GameAccountState(const GameAccountState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.GameAccountState) +} - // optional .bgs.protocol.account.v1.GameStatus game_status = 3; - if (has_game_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_status()); - } +void GameAccountState::SharedCtor() { + _cached_size_ = 0; + game_level_info_ = NULL; + game_time_info_ = NULL; + game_status_ = NULL; + raf_info_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} - // optional .bgs.protocol.account.v1.RAFInfo raf_info = 4; - if (has_raf_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->raf_info()); - } +GameAccountState::~GameAccountState() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GameAccountState) + SharedDtor(); +} +void GameAccountState::SharedDtor() { + if (this != default_instance_) { + delete game_level_info_; + delete game_time_info_; + delete game_status_; + delete raf_info_; } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +} + +void GameAccountState::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameAccountState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void GameAccountState::MergeFrom(const GameAccountState& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_level_info()) { - mutable_game_level_info()->::bgs::protocol::account::v1::GameLevelInfo::MergeFrom(from.game_level_info()); - } - if (from.has_game_time_info()) { - mutable_game_time_info()->::bgs::protocol::account::v1::GameTimeInfo::MergeFrom(from.game_time_info()); - } - if (from.has_game_status()) { - mutable_game_status()->::bgs::protocol::account::v1::GameStatus::MergeFrom(from.game_status()); - } - if (from.has_raf_info()) { - mutable_raf_info()->::bgs::protocol::account::v1::RAFInfo::MergeFrom(from.raf_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* GameAccountState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameAccountState_descriptor_; } -void GameAccountState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const GameAccountState& GameAccountState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; } -void GameAccountState::CopyFrom(const GameAccountState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +GameAccountState* GameAccountState::default_instance_ = NULL; -bool GameAccountState::IsInitialized() const { - if (has_game_level_info()) { - if (!this->game_level_info().IsInitialized()) return false; - } - return true; +GameAccountState* GameAccountState::New() const { + return new GameAccountState; } void GameAccountState::Swap(GameAccountState* other) { if (other != this) { - std::swap(game_level_info_, other->game_level_info_); - std::swap(game_time_info_, other->game_time_info_); - std::swap(game_status_, other->game_status_); - std::swap(raf_info_, other->raf_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountState::GetMetadata() const { @@ -12685,205 +3737,9 @@ GameAccountStateTagged* GameAccountStateTagged::New() const { return new GameAccountStateTagged; } -void GameAccountStateTagged::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_game_account_state()) { - if (game_account_state_ != NULL) game_account_state_->::bgs::protocol::account::v1::GameAccountState::Clear(); - } - if (has_game_account_tags()) { - if (game_account_tags_ != NULL) game_account_tags_->::bgs::protocol::account::v1::GameAccountFieldTags::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountStateTagged::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.GameAccountStateTagged) - 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.GameAccountState game_account_state = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_game_account_tags; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 2; - case 2: { - if (tag == 18) { - parse_game_account_tags: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_tags())); - } 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.GameAccountStateTagged) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GameAccountStateTagged) - return false; -#undef DO_ -} - -void GameAccountStateTagged::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GameAccountStateTagged) - // optional .bgs.protocol.account.v1.GameAccountState game_account_state = 1; - if (has_game_account_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_account_state(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 2; - if (has_game_account_tags()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account_tags(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GameAccountStateTagged) -} - -::google::protobuf::uint8* GameAccountStateTagged::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GameAccountStateTagged) - // optional .bgs.protocol.account.v1.GameAccountState game_account_state = 1; - if (has_game_account_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_account_state(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 2; - if (has_game_account_tags()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_account_tags(), 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.GameAccountStateTagged) - return target; -} - -int GameAccountStateTagged::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.GameAccountState game_account_state = 1; - if (has_game_account_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_state()); - } - - // optional .bgs.protocol.account.v1.GameAccountFieldTags game_account_tags = 2; - if (has_game_account_tags()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_tags()); - } - - } - 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 GameAccountStateTagged::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountStateTagged* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountStateTagged::MergeFrom(const GameAccountStateTagged& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_account_state()) { - mutable_game_account_state()->::bgs::protocol::account::v1::GameAccountState::MergeFrom(from.game_account_state()); - } - if (from.has_game_account_tags()) { - mutable_game_account_tags()->::bgs::protocol::account::v1::GameAccountFieldTags::MergeFrom(from.game_account_tags()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountStateTagged::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountStateTagged::CopyFrom(const GameAccountStateTagged& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountStateTagged::IsInitialized() const { - if (has_game_account_state()) { - if (!this->game_account_state().IsInitialized()) return false; - } - return true; -} - void GameAccountStateTagged::Swap(GameAccountStateTagged* other) { if (other != this) { - std::swap(game_account_state_, other->game_account_state_); - std::swap(game_account_tags_, other->game_account_tags_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountStateTagged::GetMetadata() const { @@ -12958,218 +3814,9 @@ AuthorizedData* AuthorizedData::New() const { return new AuthorizedData; } -void AuthorizedData::Clear() { - if (has_data()) { - if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - data_->clear(); - } - } - license_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AuthorizedData::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.AuthorizedData) - 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 data = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_data())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->data().data(), this->data().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "data"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_license; - break; - } - - // repeated uint32 license = 2; - case 2: { - if (tag == 16) { - parse_license: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 16, input, this->mutable_license()))); - } else if (tag == 18) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_license()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_license; - 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.AuthorizedData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AuthorizedData) - return false; -#undef DO_ -} - -void AuthorizedData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AuthorizedData) - // optional string data = 1; - if (has_data()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->data().data(), this->data().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "data"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->data(), output); - } - - // repeated uint32 license = 2; - for (int i = 0; i < this->license_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 2, this->license(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AuthorizedData) -} - -::google::protobuf::uint8* AuthorizedData::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AuthorizedData) - // optional string data = 1; - if (has_data()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->data().data(), this->data().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "data"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->data(), target); - } - - // repeated uint32 license = 2; - for (int i = 0; i < this->license_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(2, this->license(i), 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.AuthorizedData) - return target; -} - -int AuthorizedData::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string data = 1; - if (has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->data()); - } - - } - // repeated uint32 license = 2; - { - int data_size = 0; - for (int i = 0; i < this->license_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->license(i)); - } - total_size += 1 * this->license_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 AuthorizedData::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AuthorizedData* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AuthorizedData::MergeFrom(const AuthorizedData& from) { - GOOGLE_CHECK_NE(&from, this); - license_.MergeFrom(from.license_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_data()) { - set_data(from.data()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AuthorizedData::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AuthorizedData::CopyFrom(const AuthorizedData& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthorizedData::IsInitialized() const { - return true; -} - void AuthorizedData::Swap(AuthorizedData* other) { if (other != this) { - std::swap(data_, other->data_); - license_.Swap(&other->license_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AuthorizedData::GetMetadata() const { @@ -13269,253 +3916,9 @@ void IgrId::clear_type() { _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->ExpectTag(26)) goto parse_uuid; - break; - } - - // optional string uuid = 3; - case 3: { - if (tag == 26) { - parse_uuid: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uuid())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->uuid().data(), this->uuid().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "uuid"); - } 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); - } - - // optional string uuid = 3; - if (has_uuid()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->uuid().data(), this->uuid().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "uuid"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->uuid(), 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); - } - - // optional string uuid = 3; - if (has_uuid()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->uuid().data(), this->uuid().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "uuid"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->uuid(), 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; - } - // optional string uuid = 3; - case kUuid: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uuid()); - 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( - &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 kUuid: { - set_uuid(from.uuid()); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata IgrId::GetMetadata() const { @@ -13591,213 +3994,9 @@ IgrAddress* IgrAddress::New() const { return new IgrAddress; } -void IgrAddress::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_client_address()) { - if (client_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_address_->clear(); - } - } - region_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool IgrAddress::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.IgrAddress) - 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 client_address = 1; - case 1: { - if (tag == 10) { - 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(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.IgrAddress) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.IgrAddress) - return false; -#undef DO_ -} - -void IgrAddress::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.IgrAddress) - // optional string client_address = 1; - 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( - 1, this->client_address(), 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.IgrAddress) -} - -::google::protobuf::uint8* IgrAddress::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.IgrAddress) - // optional string client_address = 1; - 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( - 1, this->client_address(), 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.IgrAddress) - return target; -} - -int IgrAddress::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string client_address = 1; - if (has_client_address()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_address()); - } - - // 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 IgrAddress::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const IgrAddress* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void IgrAddress::MergeFrom(const IgrAddress& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_client_address()) { - set_client_address(from.client_address()); - } - if (from.has_region()) { - set_region(from.region()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void IgrAddress::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IgrAddress::CopyFrom(const IgrAddress& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IgrAddress::IsInitialized() const { - return true; -} - void IgrAddress::Swap(IgrAddress* other) { if (other != this) { - std::swap(client_address_, other->client_address_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata IgrAddress::GetMetadata() const { diff --git a/src/server/proto/Client/account_types.pb.h b/src/server/proto/Client/account_types.pb.h index 05d244ebdbd..ad6dc4888e4 100644 --- a/src/server/proto/Client/account_types.pb.h +++ b/src/server/proto/Client/account_types.pb.h @@ -150,19 +150,6 @@ class TC_PROTO_API AccountId : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AccountId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountId& from); - void MergeFrom(const AccountId& 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(); @@ -229,19 +216,6 @@ class TC_PROTO_API AccountLicense : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AccountLicense* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountLicense& from); - void MergeFrom(const AccountLicense& 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(); @@ -318,19 +292,6 @@ class TC_PROTO_API GameAccountHandle : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameAccountHandle* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountHandle& from); - void MergeFrom(const GameAccountHandle& 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(); @@ -417,19 +378,6 @@ class TC_PROTO_API AccountReference : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AccountReference* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountReference& from); - void MergeFrom(const AccountReference& 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(); @@ -563,19 +511,6 @@ class TC_PROTO_API Identity : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Identity* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Identity& from); - void MergeFrom(const Identity& 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(); @@ -656,19 +591,6 @@ class TC_PROTO_API ProgramTag : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ProgramTag* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ProgramTag& from); - void MergeFrom(const ProgramTag& 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(); @@ -745,19 +667,6 @@ class TC_PROTO_API RegionTag : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RegionTag* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RegionTag& from); - void MergeFrom(const RegionTag& 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(); @@ -834,19 +743,6 @@ class TC_PROTO_API AccountFieldTags : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AccountFieldTags* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountFieldTags& from); - void MergeFrom(const AccountFieldTags& 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(); @@ -982,19 +878,6 @@ class TC_PROTO_API GameAccountFieldTags : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameAccountFieldTags* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountFieldTags& from); - void MergeFrom(const GameAccountFieldTags& 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(); @@ -1091,19 +974,6 @@ class TC_PROTO_API AccountFieldOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AccountFieldOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountFieldOptions& from); - void MergeFrom(const AccountFieldOptions& 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(); @@ -1240,19 +1110,6 @@ class TC_PROTO_API GameAccountFieldOptions : public ::google::protobuf::Message // implements Message ---------------------------------------------- GameAccountFieldOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountFieldOptions& from); - void MergeFrom(const GameAccountFieldOptions& 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(); @@ -1359,19 +1216,6 @@ class TC_PROTO_API SubscriberReference : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscriberReference* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscriberReference& from); - void MergeFrom(const SubscriberReference& 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(); @@ -1508,19 +1352,6 @@ class TC_PROTO_API AccountLevelInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AccountLevelInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountLevelInfo& from); - void MergeFrom(const AccountLevelInfo& 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(); @@ -1765,19 +1596,6 @@ class TC_PROTO_API PrivacyInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- PrivacyInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PrivacyInfo& from); - void MergeFrom(const PrivacyInfo& 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(); @@ -1909,19 +1727,6 @@ class TC_PROTO_API ParentalControlInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ParentalControlInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ParentalControlInfo& from); - void MergeFrom(const ParentalControlInfo& 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(); @@ -2066,19 +1871,6 @@ class TC_PROTO_API PlayScheduleRestriction : public ::google::protobuf::Message // implements Message ---------------------------------------------- PlayScheduleRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PlayScheduleRestriction& from); - void MergeFrom(const PlayScheduleRestriction& 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(); @@ -2163,19 +1955,6 @@ class TC_PROTO_API GameLevelInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameLevelInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameLevelInfo& from); - void MergeFrom(const GameLevelInfo& 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(); @@ -2330,19 +2109,6 @@ class TC_PROTO_API GameTimeInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameTimeInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameTimeInfo& from); - void MergeFrom(const GameTimeInfo& 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(); @@ -2439,19 +2205,6 @@ class TC_PROTO_API GameTimeRemainingInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameTimeRemainingInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameTimeRemainingInfo& from); - void MergeFrom(const GameTimeRemainingInfo& 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(); @@ -2548,19 +2301,6 @@ class TC_PROTO_API GameStatus : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameStatus* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameStatus& from); - void MergeFrom(const GameStatus& 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(); @@ -2677,19 +2417,6 @@ class TC_PROTO_API RAFInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RAFInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RAFInfo& from); - void MergeFrom(const RAFInfo& 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(); @@ -2761,19 +2488,6 @@ class TC_PROTO_API GameSessionInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameSessionInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameSessionInfo& from); - void MergeFrom(const GameSessionInfo& 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(); @@ -2904,19 +2618,6 @@ class TC_PROTO_API GameSessionUpdateInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameSessionUpdateInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameSessionUpdateInfo& from); - void MergeFrom(const GameSessionUpdateInfo& 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(); @@ -2985,19 +2686,6 @@ class TC_PROTO_API GameSessionLocation : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameSessionLocation* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameSessionLocation& from); - void MergeFrom(const GameSessionLocation& 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(); @@ -3094,19 +2782,6 @@ class TC_PROTO_API CAIS : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CAIS* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CAIS& from); - void MergeFrom(const CAIS& 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(); @@ -3193,19 +2868,6 @@ class TC_PROTO_API GameAccountList : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameAccountList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountList& from); - void MergeFrom(const GameAccountList& 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(); @@ -3285,19 +2947,6 @@ class TC_PROTO_API SecurityStatus : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SecurityStatus* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SecurityStatus& from); - void MergeFrom(const SecurityStatus& 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(); @@ -3404,19 +3053,6 @@ class TC_PROTO_API AccountState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AccountState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountState& from); - void MergeFrom(const AccountState& 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(); @@ -3572,19 +3208,6 @@ class TC_PROTO_API AccountStateTagged : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AccountStateTagged* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountStateTagged& from); - void MergeFrom(const AccountStateTagged& 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(); @@ -3665,19 +3288,6 @@ class TC_PROTO_API GameAccountState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameAccountState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountState& from); - void MergeFrom(const GameAccountState& 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(); @@ -3782,19 +3392,6 @@ class TC_PROTO_API GameAccountStateTagged : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GameAccountStateTagged* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountStateTagged& from); - void MergeFrom(const GameAccountStateTagged& 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(); @@ -3875,19 +3472,6 @@ class TC_PROTO_API AuthorizedData : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AuthorizedData* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AuthorizedData& from); - void MergeFrom(const AuthorizedData& 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(); @@ -3979,19 +3563,6 @@ class TC_PROTO_API IgrId : public ::google::protobuf::Message { // 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(); @@ -4091,19 +3662,6 @@ class TC_PROTO_API IgrAddress : public ::google::protobuf::Message { // implements Message ---------------------------------------------- IgrAddress* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const IgrAddress& from); - void MergeFrom(const IgrAddress& 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(); diff --git a/src/server/proto/Client/api/client/v1/channel_id.pb.cc b/src/server/proto/Client/api/client/v1/channel_id.pb.cc index 02f93dd7c97..b8f0c3c24b9 100644 --- a/src/server/proto/Client/api/client/v1/channel_id.pb.cc +++ b/src/server/proto/Client/api/client/v1/channel_id.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "api/client/v1/channel_id.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -89,7 +87,7 @@ void protobuf_AddDesc_api_2fclient_2fv1_2fchannel_5fid_2eproto() { "otocol.channel.v1\032\017rpc_types.proto\"T\n\tCh" "annelId\022\014\n\004type\030\001 \001(\r\022%\n\004host\030\002 \001(\0132\027.bg" "s.protocol.ProcessId\022\n\n\002id\030\003 \001(\007:\006\202\371+\002\010\001" - "B\002H\001", 164); + "B\002H\002", 164); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "api/client/v1/channel_id.proto", &protobuf_RegisterTypes); ChannelId::default_instance_ = new ChannelId(); @@ -168,250 +166,9 @@ ChannelId* ChannelId::New() const { return new ChannelId; } -void ChannelId::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ChannelId::GetMetadata() const { diff --git a/src/server/proto/Client/api/client/v1/channel_id.pb.h b/src/server/proto/Client/api/client/v1/channel_id.pb.h index 9378c7d1b62..0628bd757fb 100644 --- a/src/server/proto/Client/api/client/v1/channel_id.pb.h +++ b/src/server/proto/Client/api/client/v1/channel_id.pb.h @@ -70,19 +70,6 @@ class TC_PROTO_API ChannelId : public ::google::protobuf::Message { // 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(); diff --git a/src/server/proto/Client/api/client/v2/attribute_types.pb.cc b/src/server/proto/Client/api/client/v2/attribute_types.pb.cc index c0de44b22ad..b0c4fc4e402 100644 --- a/src/server/proto/Client/api/client/v2/attribute_types.pb.cc +++ b/src/server/proto/Client/api/client/v2/attribute_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "api/client/v2/attribute_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -158,7 +156,7 @@ void protobuf_AddDesc_api_2fclient_2fv2_2fattribute_5ftypes_2eproto() { "ibute\030\002 \003(\0132\032.bgs.protocol.v2.Attribute\"" "V\n\tOperation\022\016\n\nMATCH_NONE\020\000\022\r\n\tMATCH_AN" "Y\020\001\022\r\n\tMATCH_ALL\020\002\022\033\n\027MATCH_ALL_MOST_SPE" - "CIFIC\020\003B\002H\001", 491); + "CIFIC\020\003B\002H\002", 491); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "api/client/v2/attribute_types.proto", &protobuf_RegisterTypes); Variant::default_instance_ = new Variant(); @@ -284,359 +282,9 @@ void Variant::clear_type() { _oneof_case_[0] = TYPE_NOT_SET; } -void Variant::Clear() { - clear_type(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Variant::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.v2.Variant) - 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 bool_value = 1; - case 1: { - if (tag == 8) { - clear_type(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &type_.bool_value_))); - set_has_bool_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_int_value; - break; - } - - // optional int64 int_value = 2; - case 2: { - if (tag == 16) { - parse_int_value: - clear_type(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &type_.int_value_))); - set_has_int_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_float_value; - break; - } - - // optional double float_value = 3; - case 3: { - if (tag == 25) { - parse_float_value: - clear_type(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &type_.float_value_))); - set_has_float_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_string_value; - break; - } - - // optional string string_value = 4; - case 4: { - if (tag == 34) { - parse_string_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_string_value())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->string_value().data(), this->string_value().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "string_value"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_blob_value; - break; - } - - // optional bytes blob_value = 5; - case 5: { - if (tag == 42) { - parse_blob_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_blob_value())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_uint_value; - break; - } - - // optional uint64 uint_value = 6; - case 6: { - if (tag == 48) { - parse_uint_value: - clear_type(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &type_.uint_value_))); - set_has_uint_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.v2.Variant) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.v2.Variant) - return false; -#undef DO_ -} - -void Variant::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.v2.Variant) - // optional bool bool_value = 1; - if (has_bool_value()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->bool_value(), output); - } - - // optional int64 int_value = 2; - if (has_int_value()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->int_value(), output); - } - - // optional double float_value = 3; - if (has_float_value()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->float_value(), output); - } - - // optional string string_value = 4; - if (has_string_value()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->string_value().data(), this->string_value().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "string_value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->string_value(), output); - } - - // optional bytes blob_value = 5; - if (has_blob_value()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 5, this->blob_value(), output); - } - - // optional uint64 uint_value = 6; - if (has_uint_value()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->uint_value(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.v2.Variant) -} - -::google::protobuf::uint8* Variant::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.v2.Variant) - // optional bool bool_value = 1; - if (has_bool_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->bool_value(), target); - } - - // optional int64 int_value = 2; - if (has_int_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->int_value(), target); - } - - // optional double float_value = 3; - if (has_float_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->float_value(), target); - } - - // optional string string_value = 4; - if (has_string_value()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->string_value().data(), this->string_value().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "string_value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->string_value(), target); - } - - // optional bytes blob_value = 5; - if (has_blob_value()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 5, this->blob_value(), target); - } - - // optional uint64 uint_value = 6; - if (has_uint_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->uint_value(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.v2.Variant) - return target; -} - -int Variant::ByteSize() const { - int total_size = 0; - - switch (type_case()) { - // optional bool bool_value = 1; - case kBoolValue: { - total_size += 1 + 1; - break; - } - // optional int64 int_value = 2; - case kIntValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->int_value()); - break; - } - // optional double float_value = 3; - case kFloatValue: { - total_size += 1 + 8; - break; - } - // optional string string_value = 4; - case kStringValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->string_value()); - break; - } - // optional bytes blob_value = 5; - case kBlobValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->blob_value()); - break; - } - // optional uint64 uint_value = 6; - case kUintValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->uint_value()); - 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 Variant::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Variant* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Variant::MergeFrom(const Variant& from) { - GOOGLE_CHECK_NE(&from, this); - switch (from.type_case()) { - case kBoolValue: { - set_bool_value(from.bool_value()); - break; - } - case kIntValue: { - set_int_value(from.int_value()); - break; - } - case kFloatValue: { - set_float_value(from.float_value()); - break; - } - case kStringValue: { - set_string_value(from.string_value()); - break; - } - case kBlobValue: { - set_blob_value(from.blob_value()); - break; - } - case kUintValue: { - set_uint_value(from.uint_value()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Variant::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Variant::CopyFrom(const Variant& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Variant::IsInitialized() const { - return true; -} - void Variant::Swap(Variant* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Variant::GetMetadata() const { @@ -714,216 +362,9 @@ Attribute* Attribute::New() const { return new Attribute; } -void Attribute::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_value()) { - if (value_ != NULL) value_->::bgs::protocol::v2::Variant::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Attribute::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.v2.Attribute) - 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 name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_value; - break; - } - - // optional .bgs.protocol.v2.Variant value = 2; - case 2: { - if (tag == 18) { - parse_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_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.v2.Attribute) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.v2.Attribute) - return false; -#undef DO_ -} - -void Attribute::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.v2.Attribute) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // optional .bgs.protocol.v2.Variant value = 2; - if (has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->value(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.v2.Attribute) -} - -::google::protobuf::uint8* Attribute::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.v2.Attribute) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // optional .bgs.protocol.v2.Variant value = 2; - if (has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->value(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.v2.Attribute) - return target; -} - -int Attribute::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional .bgs.protocol.v2.Variant value = 2; - if (has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->value()); - } - - } - 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 Attribute::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Attribute* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Attribute::MergeFrom(const Attribute& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_value()) { - mutable_value()->::bgs::protocol::v2::Variant::MergeFrom(from.value()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Attribute::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Attribute::CopyFrom(const Attribute& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Attribute::IsInitialized() const { - return true; -} - void Attribute::Swap(Attribute* other) { if (other != this) { - std::swap(name_, other->name_); - std::swap(value_, other->value_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Attribute::GetMetadata() const { @@ -1019,201 +460,9 @@ AttributeFilter* AttributeFilter::New() const { return new AttributeFilter; } -void AttributeFilter::Clear() { - op_ = 0; - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AttributeFilter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.v2.AttributeFilter) - 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.v2.AttributeFilter.Operation op = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::v2::AttributeFilter_Operation_IsValid(value)) { - set_op(static_cast< ::bgs::protocol::v2::AttributeFilter_Operation >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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->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.v2.AttributeFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.v2.AttributeFilter) - return false; -#undef DO_ -} - -void AttributeFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.v2.AttributeFilter) - // optional .bgs.protocol.v2.AttributeFilter.Operation op = 1; - if (has_op()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->op(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.v2.AttributeFilter) -} - -::google::protobuf::uint8* AttributeFilter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.v2.AttributeFilter) - // optional .bgs.protocol.v2.AttributeFilter.Operation op = 1; - if (has_op()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->op(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, 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.v2.AttributeFilter) - return target; -} - -int AttributeFilter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.v2.AttributeFilter.Operation op = 1; - if (has_op()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->op()); - } - - } - // repeated .bgs.protocol.v2.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 AttributeFilter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AttributeFilter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AttributeFilter::MergeFrom(const AttributeFilter& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_op()) { - set_op(from.op()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AttributeFilter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AttributeFilter::CopyFrom(const AttributeFilter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AttributeFilter::IsInitialized() const { - return true; -} - void AttributeFilter::Swap(AttributeFilter* other) { if (other != this) { - std::swap(op_, other->op_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AttributeFilter::GetMetadata() const { diff --git a/src/server/proto/Client/api/client/v2/attribute_types.pb.h b/src/server/proto/Client/api/client/v2/attribute_types.pb.h index 53d5f30ac0f..80e1bdb5f0c 100644 --- a/src/server/proto/Client/api/client/v2/attribute_types.pb.h +++ b/src/server/proto/Client/api/client/v2/attribute_types.pb.h @@ -102,19 +102,6 @@ class TC_PROTO_API Variant : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Variant* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Variant& from); - void MergeFrom(const Variant& 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(); @@ -244,19 +231,6 @@ class TC_PROTO_API Attribute : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Attribute* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Attribute& from); - void MergeFrom(const Attribute& 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(); @@ -340,19 +314,6 @@ class TC_PROTO_API AttributeFilter : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AttributeFilter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AttributeFilter& from); - void MergeFrom(const AttributeFilter& 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(); diff --git a/src/server/proto/Client/api/client/v2/report_service.pb.cc b/src/server/proto/Client/api/client/v2/report_service.pb.cc index 0cb8338ce8f..ff7797245dd 100644 --- a/src/server/proto/Client/api/client/v2/report_service.pb.cc +++ b/src/server/proto/Client/api/client/v2/report_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "api/client/v2/report_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -117,7 +114,7 @@ void protobuf_AddDesc_api_2fclient_2fv2_2freport_5fservice_2eproto() { ".report.v2.SubmitReportRequest\032\024.bgs.pro" "tocol.NoData\"\006\202\371+\002\010\001\0329\202\371+/\n%bnet.protoco" "l.report.v2.ReportService*\006report\212\371+\002\020\001B" - "\005H\001\200\001\000", 606); + "\005H\002\200\001\000", 606); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "api/client/v2/report_service.proto", &protobuf_RegisterTypes); SubmitReportRequest::default_instance_ = new SubmitReportRequest(); @@ -230,346 +227,9 @@ void SubmitReportRequest::clear_type() { _oneof_case_[0] = TYPE_NOT_SET; } -void SubmitReportRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_user_description()) { - if (user_description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - user_description_->clear(); - } - } - } - clear_type(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -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.v2.SubmitReportRequest) - 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 .bgs.protocol.account.v1.AccountId 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_user_description; - break; - } - - // optional string user_description = 2; - case 2: { - if (tag == 18) { - parse_user_description: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_user_description())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_description().data(), this->user_description().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "user_description"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_user_options; - break; - } - - // optional .bgs.protocol.report.v2.UserOptions user_options = 10; - case 10: { - if (tag == 82) { - parse_user_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_user_options())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_club_options; - break; - } - - // optional .bgs.protocol.report.v2.ClubOptions club_options = 11; - case 11: { - if (tag == 90) { - parse_club_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club_options())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(162)) goto parse_entity_options; - break; - } - - // optional .bgs.protocol.report.v2.EntityOptions entity_options = 20; - case 20: { - if (tag == 162) { - parse_entity_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_options())); - } 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.v2.SubmitReportRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v2.SubmitReportRequest) - return false; -#undef DO_ -} - -void SubmitReportRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v2.SubmitReportRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional string user_description = 2; - if (has_user_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_description().data(), this->user_description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "user_description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->user_description(), output); - } - - // optional .bgs.protocol.report.v2.UserOptions user_options = 10; - if (has_user_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->user_options(), output); - } - - // optional .bgs.protocol.report.v2.ClubOptions club_options = 11; - if (has_club_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, this->club_options(), output); - } - - // optional .bgs.protocol.report.v2.EntityOptions entity_options = 20; - if (has_entity_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 20, this->entity_options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v2.SubmitReportRequest) -} - -::google::protobuf::uint8* SubmitReportRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v2.SubmitReportRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional string user_description = 2; - if (has_user_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_description().data(), this->user_description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "user_description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->user_description(), target); - } - - // optional .bgs.protocol.report.v2.UserOptions user_options = 10; - if (has_user_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->user_options(), target); - } - - // optional .bgs.protocol.report.v2.ClubOptions club_options = 11; - if (has_club_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 11, this->club_options(), target); - } - - // optional .bgs.protocol.report.v2.EntityOptions entity_options = 20; - if (has_entity_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 20, this->entity_options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v2.SubmitReportRequest) - return target; -} - -int SubmitReportRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional string user_description = 2; - if (has_user_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->user_description()); - } - - } - switch (type_case()) { - // optional .bgs.protocol.report.v2.UserOptions user_options = 10; - case kUserOptions: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->user_options()); - break; - } - // optional .bgs.protocol.report.v2.ClubOptions club_options = 11; - case kClubOptions: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club_options()); - break; - } - // optional .bgs.protocol.report.v2.EntityOptions entity_options = 20; - case kEntityOptions: { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_options()); - 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 SubmitReportRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubmitReportRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubmitReportRequest::MergeFrom(const SubmitReportRequest& from) { - GOOGLE_CHECK_NE(&from, this); - switch (from.type_case()) { - case kUserOptions: { - mutable_user_options()->::bgs::protocol::report::v2::UserOptions::MergeFrom(from.user_options()); - break; - } - case kClubOptions: { - mutable_club_options()->::bgs::protocol::report::v2::ClubOptions::MergeFrom(from.club_options()); - break; - } - case kEntityOptions: { - mutable_entity_options()->::bgs::protocol::report::v2::EntityOptions::MergeFrom(from.entity_options()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::account::v1::AccountId::MergeFrom(from.agent_id()); - } - if (from.has_user_description()) { - set_user_description(from.user_description()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubmitReportRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubmitReportRequest::CopyFrom(const SubmitReportRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubmitReportRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_user_options()) { - if (!this->user_options().IsInitialized()) return false; - } - return true; -} - void SubmitReportRequest::Swap(SubmitReportRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(user_description_, other->user_description_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubmitReportRequest::GetMetadata() const { @@ -582,7 +242,7 @@ void SubmitReportRequest::Swap(SubmitReportRequest* other) { // =================================================================== -ReportService::ReportService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ReportService::ReportService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ReportService::~ReportService() { @@ -595,45 +255,36 @@ google::protobuf::ServiceDescriptor const* ReportService::descriptor() { void ReportService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::report::v2::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_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ReportService.SubmitReport(bgs.protocol.report.v2.SubmitReportRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ReportService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ReportService.SubmitReport() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSubmitReport(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleSubmitReport(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 ReportService::HandleSubmitReport(::bgs::protocol::report::v2::SubmitReportRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ReportService.SubmitReport({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ReportService::HandleSubmitReport(::bgs::protocol::report::v2::SubmitReportRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ReportService.SubmitReport", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void ReportService::ParseAndHandleSubmitReport(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::report::v2::SubmitReportRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ReportService.SubmitReport"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ReportService.SubmitReport", "bgs.protocol.report.v2.SubmitReportRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ReportService.SubmitReport", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSubmitReport(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v2 diff --git a/src/server/proto/Client/api/client/v2/report_service.pb.h b/src/server/proto/Client/api/client/v2/report_service.pb.h index 78abf66d267..7a7368fa0f3 100644 --- a/src/server/proto/Client/api/client/v2/report_service.pb.h +++ b/src/server/proto/Client/api/client/v2/report_service.pb.h @@ -82,19 +82,6 @@ class TC_PROTO_API SubmitReportRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubmitReportRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubmitReportRequest& from); - void MergeFrom(const SubmitReportRequest& 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(); @@ -197,6 +184,10 @@ class TC_PROTO_API ReportService : public ServiceBase public: explicit ReportService(bool use_original_hash); + ReportService(ReportService const&) = delete; + ReportService(ReportService&&) = delete; + ReportService& operator=(ReportService const&) = delete; + ReportService& operator=(ReportService&&) = delete; virtual ~ReportService(); typedef std::integral_constant OriginalHash; @@ -211,9 +202,7 @@ class TC_PROTO_API ReportService : public ServiceBase virtual uint32 HandleSubmitReport(::bgs::protocol::report::v2::SubmitReportRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ReportService); + void ParseAndHandleSubmitReport(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/api/client/v2/report_types.pb.cc b/src/server/proto/Client/api/client/v2/report_types.pb.cc index 93d3b41fd85..4ced87b4f59 100644 --- a/src/server/proto/Client/api/client/v2/report_types.pb.cc +++ b/src/server/proto/Client/api/client/v2/report_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "api/client/v2/report_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -205,7 +203,7 @@ void protobuf_AddDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto() { "\020\006*t\n\nClubSource\022\025\n\021CLUB_SOURCE_OTHER\020\000\022" "\027\n\023CLUB_SOURCE_MESSAGE\020\001\022\031\n\025CLUB_SOURCE_" "CLUB_NAME\020\002\022\033\n\027CLUB_SOURCE_STREAM_NAME\020\003" - "B\005H\001\200\001\000", 1247); + "B\005H\002\200\001\000", 1247); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "api/client/v2/report_types.proto", &protobuf_RegisterTypes); ReportItem::default_instance_ = new ReportItem(); @@ -354,166 +352,9 @@ void ReportItem::clear_type() { _oneof_case_[0] = TYPE_NOT_SET; } -void ReportItem::Clear() { - clear_type(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ReportItem::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.v2.ReportItem) - 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.MessageId message_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message_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.report.v2.ReportItem) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v2.ReportItem) - return false; -#undef DO_ -} - -void ReportItem::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v2.ReportItem) - // optional .bgs.protocol.MessageId message_id = 1; - if (has_message_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->message_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v2.ReportItem) -} - -::google::protobuf::uint8* ReportItem::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v2.ReportItem) - // optional .bgs.protocol.MessageId message_id = 1; - if (has_message_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->message_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v2.ReportItem) - return target; -} - -int ReportItem::ByteSize() const { - int total_size = 0; - - switch (type_case()) { - // optional .bgs.protocol.MessageId message_id = 1; - case kMessageId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message_id()); - 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 ReportItem::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ReportItem* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ReportItem::MergeFrom(const ReportItem& from) { - GOOGLE_CHECK_NE(&from, this); - switch (from.type_case()) { - case kMessageId: { - mutable_message_id()->::bgs::protocol::MessageId::MergeFrom(from.message_id()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ReportItem::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReportItem::CopyFrom(const ReportItem& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReportItem::IsInitialized() const { - return true; -} - void ReportItem::Swap(ReportItem* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ReportItem::GetMetadata() const { @@ -593,304 +434,9 @@ UserOptions* UserOptions::New() const { return new UserOptions; } -void UserOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(type_, source_); - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_item()) { - if (item_ != NULL) item_->::bgs::protocol::report::v2::ReportItem::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UserOptions::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.v2.UserOptions) - 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 target_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_target_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_type; - break; - } - - // optional .bgs.protocol.report.v2.IssueType type = 2; - case 2: { - if (tag == 16) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::report::v2::IssueType_IsValid(value)) { - set_type(static_cast< ::bgs::protocol::report::v2::IssueType >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_source; - break; - } - - // optional .bgs.protocol.report.v2.UserSource source = 3; - case 3: { - if (tag == 24) { - parse_source: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::report::v2::UserSource_IsValid(value)) { - set_source(static_cast< ::bgs::protocol::report::v2::UserSource >(value)); - } else { - mutable_unknown_fields()->AddVarint(3, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_item; - break; - } - - // optional .bgs.protocol.report.v2.ReportItem item = 4; - case 4: { - if (tag == 34) { - parse_item: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_item())); - } 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.v2.UserOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v2.UserOptions) - return false; -#undef DO_ -} - -void UserOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v2.UserOptions) - // optional .bgs.protocol.account.v1.AccountId target_id = 1; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->target_id(), output); - } - - // optional .bgs.protocol.report.v2.IssueType type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // optional .bgs.protocol.report.v2.UserSource source = 3; - if (has_source()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->source(), output); - } - - // optional .bgs.protocol.report.v2.ReportItem item = 4; - if (has_item()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->item(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v2.UserOptions) -} - -::google::protobuf::uint8* UserOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v2.UserOptions) - // optional .bgs.protocol.account.v1.AccountId target_id = 1; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->target_id(), target); - } - - // optional .bgs.protocol.report.v2.IssueType type = 2; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // optional .bgs.protocol.report.v2.UserSource source = 3; - if (has_source()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->source(), target); - } - - // optional .bgs.protocol.report.v2.ReportItem item = 4; - if (has_item()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->item(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v2.UserOptions) - return target; -} - -int UserOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId target_id = 1; - if (has_target_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_id()); - } - - // optional .bgs.protocol.report.v2.IssueType type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .bgs.protocol.report.v2.UserSource source = 3; - if (has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->source()); - } - - // optional .bgs.protocol.report.v2.ReportItem item = 4; - if (has_item()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->item()); - } - - } - 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 UserOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UserOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UserOptions::MergeFrom(const UserOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::account::v1::AccountId::MergeFrom(from.target_id()); - } - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_source()) { - set_source(from.source()); - } - if (from.has_item()) { - mutable_item()->::bgs::protocol::report::v2::ReportItem::MergeFrom(from.item()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UserOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UserOptions::CopyFrom(const UserOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UserOptions::IsInitialized() const { - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - return true; -} - void UserOptions::Swap(UserOptions* other) { if (other != this) { - std::swap(target_id_, other->target_id_); - std::swap(type_, other->type_); - std::swap(source_, other->source_); - std::swap(item_, other->item_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UserOptions::GetMetadata() const { @@ -970,333 +516,9 @@ ClubOptions* ClubOptions::New() const { return new ClubOptions; } -void ClubOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(club_id_, source_); - if (has_item()) { - if (item_ != NULL) item_->::bgs::protocol::report::v2::ReportItem::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubOptions::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.v2.ClubOptions) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 2; - case 2: { - if (tag == 16) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_type; - break; - } - - // optional .bgs.protocol.report.v2.IssueType type = 3; - case 3: { - if (tag == 24) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::report::v2::IssueType_IsValid(value)) { - set_type(static_cast< ::bgs::protocol::report::v2::IssueType >(value)); - } else { - mutable_unknown_fields()->AddVarint(3, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_source; - break; - } - - // optional .bgs.protocol.report.v2.ClubSource source = 4; - case 4: { - if (tag == 32) { - parse_source: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::report::v2::ClubSource_IsValid(value)) { - set_source(static_cast< ::bgs::protocol::report::v2::ClubSource >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_item; - break; - } - - // optional .bgs.protocol.report.v2.ReportItem item = 5; - case 5: { - if (tag == 42) { - parse_item: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_item())); - } 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.v2.ClubOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v2.ClubOptions) - return false; -#undef DO_ -} - -void ClubOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v2.ClubOptions) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stream_id(), output); - } - - // optional .bgs.protocol.report.v2.IssueType type = 3; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->type(), output); - } - - // optional .bgs.protocol.report.v2.ClubSource source = 4; - if (has_source()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->source(), output); - } - - // optional .bgs.protocol.report.v2.ReportItem item = 5; - if (has_item()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->item(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v2.ClubOptions) -} - -::google::protobuf::uint8* ClubOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v2.ClubOptions) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stream_id(), target); - } - - // optional .bgs.protocol.report.v2.IssueType type = 3; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->type(), target); - } - - // optional .bgs.protocol.report.v2.ClubSource source = 4; - if (has_source()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->source(), target); - } - - // optional .bgs.protocol.report.v2.ReportItem item = 5; - if (has_item()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->item(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v2.ClubOptions) - return target; -} - -int ClubOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.report.v2.IssueType type = 3; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .bgs.protocol.report.v2.ClubSource source = 4; - if (has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->source()); - } - - // optional .bgs.protocol.report.v2.ReportItem item = 5; - if (has_item()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->item()); - } - - } - 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 ClubOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubOptions::MergeFrom(const ClubOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_source()) { - set_source(from.source()); - } - if (from.has_item()) { - mutable_item()->::bgs::protocol::report::v2::ReportItem::MergeFrom(from.item()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubOptions::CopyFrom(const ClubOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubOptions::IsInitialized() const { - return true; -} - void ClubOptions::Swap(ClubOptions* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(type_, other->type_); - std::swap(source_, other->source_); - std::swap(item_, other->item_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubOptions::GetMetadata() const { @@ -1376,268 +598,9 @@ EntityOptions* EntityOptions::New() const { return new EntityOptions; } -void EntityOptions::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_entity_id()) { - if (entity_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - entity_id_->clear(); - } - } - if (has_entity_type()) { - if (entity_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - entity_type_->clear(); - } - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EntityOptions::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.v2.EntityOptions) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_entity_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->entity_id().data(), this->entity_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "entity_id"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_entity_type; - break; - } - - // optional string entity_type = 2; - case 2: { - if (tag == 18) { - parse_entity_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_entity_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->entity_type().data(), this->entity_type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "entity_type"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.Attribute attribute = 5; - case 5: { - if (tag == 42) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) 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.v2.EntityOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v2.EntityOptions) - return false; -#undef DO_ -} - -void EntityOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v2.EntityOptions) - // optional string entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->entity_id().data(), this->entity_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "entity_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->entity_id(), output); - } - - // optional string entity_type = 2; - if (has_entity_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->entity_type().data(), this->entity_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "entity_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->entity_type(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 5; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->attribute(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v2.EntityOptions) -} - -::google::protobuf::uint8* EntityOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v2.EntityOptions) - // optional string entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->entity_id().data(), this->entity_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "entity_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->entity_id(), target); - } - - // optional string entity_type = 2; - if (has_entity_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->entity_type().data(), this->entity_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "entity_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->entity_type(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 5; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, 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.v2.EntityOptions) - return target; -} - -int EntityOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->entity_id()); - } - - // optional string entity_type = 2; - if (has_entity_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->entity_type()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 5; - 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 EntityOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EntityOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EntityOptions::MergeFrom(const EntityOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - set_entity_id(from.entity_id()); - } - if (from.has_entity_type()) { - set_entity_type(from.entity_type()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EntityOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityOptions::CopyFrom(const EntityOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityOptions::IsInitialized() const { - return true; -} - void EntityOptions::Swap(EntityOptions* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - std::swap(entity_type_, other->entity_type_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EntityOptions::GetMetadata() const { diff --git a/src/server/proto/Client/api/client/v2/report_types.pb.h b/src/server/proto/Client/api/client/v2/report_types.pb.h index 03026823d7e..77dac294ebc 100644 --- a/src/server/proto/Client/api/client/v2/report_types.pb.h +++ b/src/server/proto/Client/api/client/v2/report_types.pb.h @@ -149,19 +149,6 @@ class TC_PROTO_API ReportItem : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ReportItem* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ReportItem& from); - void MergeFrom(const ReportItem& 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(); @@ -238,19 +225,6 @@ class TC_PROTO_API UserOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UserOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UserOptions& from); - void MergeFrom(const UserOptions& 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(); @@ -351,19 +325,6 @@ class TC_PROTO_API ClubOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubOptions& from); - void MergeFrom(const ClubOptions& 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(); @@ -472,19 +433,6 @@ class TC_PROTO_API EntityOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EntityOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EntityOptions& from); - void MergeFrom(const EntityOptions& 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(); diff --git a/src/server/proto/Client/attribute_types.pb.cc b/src/server/proto/Client/attribute_types.pb.cc index a680203a599..5da68d7ed55 100644 --- a/src/server/proto/Client/attribute_types.pb.cc +++ b/src/server/proto/Client/attribute_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "attribute_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -151,7 +149,7 @@ void protobuf_AddDesc_attribute_5ftypes_2eproto() { "(\0132\027.bgs.protocol.Attribute\"V\n\tOperation" "\022\016\n\nMATCH_NONE\020\000\022\r\n\tMATCH_ANY\020\001\022\r\n\tMATCH" "_ALL\020\002\022\033\n\027MATCH_ALL_MOST_SPECIFIC\020\003B!\n\rb" - "net.protocolB\016AttributeProtoH\001", 590); + "net.protocolB\016AttributeProtoH\002", 590); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "attribute_types.proto", &protobuf_RegisterTypes); Variant::default_instance_ = new Variant(); @@ -259,518 +257,9 @@ Variant* Variant::New() const { return new Variant; } -void Variant::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(int_value_, float_value_); - bool_value_ = false; - if (has_string_value()) { - if (string_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - string_value_->clear(); - } - } - if (has_blob_value()) { - if (blob_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - blob_value_->clear(); - } - } - if (has_message_value()) { - if (message_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - message_value_->clear(); - } - } - if (has_fourcc_value()) { - if (fourcc_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - fourcc_value_->clear(); - } - } - uint_value_ = GOOGLE_ULONGLONG(0); - } - if (has_entity_id_value()) { - if (entity_id_value_ != NULL) entity_id_value_->::bgs::protocol::EntityId::Clear(); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Variant::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.Variant) - 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 bool_value = 2; - case 2: { - if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bool_value_))); - set_has_bool_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_int_value; - break; - } - - // optional int64 int_value = 3; - case 3: { - if (tag == 24) { - parse_int_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &int_value_))); - set_has_int_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(33)) goto parse_float_value; - break; - } - - // optional double float_value = 4; - case 4: { - if (tag == 33) { - parse_float_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &float_value_))); - set_has_float_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_string_value; - break; - } - - // optional string string_value = 5; - case 5: { - if (tag == 42) { - parse_string_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_string_value())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->string_value().data(), this->string_value().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "string_value"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_blob_value; - break; - } - - // optional bytes blob_value = 6; - case 6: { - if (tag == 50) { - parse_blob_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_blob_value())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_message_value; - break; - } - - // optional bytes message_value = 7; - case 7: { - if (tag == 58) { - parse_message_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_message_value())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_fourcc_value; - break; - } - - // optional string fourcc_value = 8; - case 8: { - if (tag == 66) { - parse_fourcc_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_fourcc_value())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->fourcc_value().data(), this->fourcc_value().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "fourcc_value"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_uint_value; - break; - } - - // optional uint64 uint_value = 9; - case 9: { - if (tag == 72) { - parse_uint_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &uint_value_))); - set_has_uint_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_entity_id_value; - break; - } - - // optional .bgs.protocol.EntityId entity_id_value = 10; - case 10: { - if (tag == 82) { - parse_entity_id_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id_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.Variant) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.Variant) - return false; -#undef DO_ -} - -void Variant::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.Variant) - // optional bool bool_value = 2; - if (has_bool_value()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bool_value(), output); - } - - // optional int64 int_value = 3; - if (has_int_value()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->int_value(), output); - } - - // optional double float_value = 4; - if (has_float_value()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->float_value(), output); - } - - // optional string string_value = 5; - if (has_string_value()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->string_value().data(), this->string_value().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "string_value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->string_value(), output); - } - - // optional bytes blob_value = 6; - if (has_blob_value()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 6, this->blob_value(), output); - } - - // optional bytes message_value = 7; - if (has_message_value()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 7, this->message_value(), output); - } - - // optional string fourcc_value = 8; - if (has_fourcc_value()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->fourcc_value().data(), this->fourcc_value().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "fourcc_value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->fourcc_value(), output); - } - - // optional uint64 uint_value = 9; - if (has_uint_value()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->uint_value(), output); - } - - // optional .bgs.protocol.EntityId entity_id_value = 10; - if (has_entity_id_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->entity_id_value(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.Variant) -} - -::google::protobuf::uint8* Variant::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.Variant) - // optional bool bool_value = 2; - if (has_bool_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bool_value(), target); - } - - // optional int64 int_value = 3; - if (has_int_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->int_value(), target); - } - - // optional double float_value = 4; - if (has_float_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->float_value(), target); - } - - // optional string string_value = 5; - if (has_string_value()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->string_value().data(), this->string_value().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "string_value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->string_value(), target); - } - - // optional bytes blob_value = 6; - if (has_blob_value()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 6, this->blob_value(), target); - } - - // optional bytes message_value = 7; - if (has_message_value()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 7, this->message_value(), target); - } - - // optional string fourcc_value = 8; - if (has_fourcc_value()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->fourcc_value().data(), this->fourcc_value().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "fourcc_value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->fourcc_value(), target); - } - - // optional uint64 uint_value = 9; - if (has_uint_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->uint_value(), target); - } - - // optional .bgs.protocol.EntityId entity_id_value = 10; - if (has_entity_id_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->entity_id_value(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.Variant) - return target; -} - -int Variant::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool bool_value = 2; - if (has_bool_value()) { - total_size += 1 + 1; - } - - // optional int64 int_value = 3; - if (has_int_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->int_value()); - } - - // optional double float_value = 4; - if (has_float_value()) { - total_size += 1 + 8; - } - - // optional string string_value = 5; - if (has_string_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->string_value()); - } - - // optional bytes blob_value = 6; - if (has_blob_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->blob_value()); - } - - // optional bytes message_value = 7; - if (has_message_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->message_value()); - } - - // optional string fourcc_value = 8; - if (has_fourcc_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->fourcc_value()); - } - - // optional uint64 uint_value = 9; - if (has_uint_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->uint_value()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional .bgs.protocol.EntityId entity_id_value = 10; - if (has_entity_id_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id_value()); - } - - } - 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 Variant::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Variant* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Variant::MergeFrom(const Variant& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_bool_value()) { - set_bool_value(from.bool_value()); - } - if (from.has_int_value()) { - set_int_value(from.int_value()); - } - if (from.has_float_value()) { - set_float_value(from.float_value()); - } - if (from.has_string_value()) { - set_string_value(from.string_value()); - } - if (from.has_blob_value()) { - set_blob_value(from.blob_value()); - } - if (from.has_message_value()) { - set_message_value(from.message_value()); - } - if (from.has_fourcc_value()) { - set_fourcc_value(from.fourcc_value()); - } - if (from.has_uint_value()) { - set_uint_value(from.uint_value()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_entity_id_value()) { - mutable_entity_id_value()->::bgs::protocol::EntityId::MergeFrom(from.entity_id_value()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Variant::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Variant::CopyFrom(const Variant& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Variant::IsInitialized() const { - if (has_entity_id_value()) { - if (!this->entity_id_value().IsInitialized()) return false; - } - return true; -} - void Variant::Swap(Variant* other) { if (other != this) { - std::swap(bool_value_, other->bool_value_); - std::swap(int_value_, other->int_value_); - std::swap(float_value_, other->float_value_); - std::swap(string_value_, other->string_value_); - std::swap(blob_value_, other->blob_value_); - std::swap(message_value_, other->message_value_); - std::swap(fourcc_value_, other->fourcc_value_); - std::swap(uint_value_, other->uint_value_); - std::swap(entity_id_value_, other->entity_id_value_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Variant::GetMetadata() const { @@ -848,220 +337,9 @@ Attribute* Attribute::New() const { return new Attribute; } -void Attribute::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_value()) { - if (value_ != NULL) value_->::bgs::protocol::Variant::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Attribute::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.Attribute) - 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 name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_value; - break; - } - - // required .bgs.protocol.Variant value = 2; - case 2: { - if (tag == 18) { - parse_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_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.Attribute) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.Attribute) - return false; -#undef DO_ -} - -void Attribute::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.Attribute) - // required string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // required .bgs.protocol.Variant value = 2; - if (has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->value(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.Attribute) -} - -::google::protobuf::uint8* Attribute::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.Attribute) - // required string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // required .bgs.protocol.Variant value = 2; - if (has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->value(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.Attribute) - return target; -} - -int Attribute::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // required .bgs.protocol.Variant value = 2; - if (has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->value()); - } - - } - 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 Attribute::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Attribute* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Attribute::MergeFrom(const Attribute& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_value()) { - mutable_value()->::bgs::protocol::Variant::MergeFrom(from.value()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Attribute::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Attribute::CopyFrom(const Attribute& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Attribute::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - if (has_value()) { - if (!this->value().IsInitialized()) return false; - } - return true; -} - void Attribute::Swap(Attribute* other) { if (other != this) { - std::swap(name_, other->name_); - std::swap(value_, other->value_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Attribute::GetMetadata() const { @@ -1157,203 +435,9 @@ AttributeFilter* AttributeFilter::New() const { return new AttributeFilter; } -void AttributeFilter::Clear() { - op_ = 0; - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AttributeFilter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.AttributeFilter) - 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.AttributeFilter.Operation op = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::AttributeFilter_Operation_IsValid(value)) { - set_op(static_cast< ::bgs::protocol::AttributeFilter_Operation >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } 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->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.AttributeFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.AttributeFilter) - return false; -#undef DO_ -} - -void AttributeFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.AttributeFilter) - // required .bgs.protocol.AttributeFilter.Operation op = 1; - if (has_op()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->op(), 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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.AttributeFilter) -} - -::google::protobuf::uint8* AttributeFilter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.AttributeFilter) - // required .bgs.protocol.AttributeFilter.Operation op = 1; - if (has_op()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->op(), 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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.AttributeFilter) - return target; -} - -int AttributeFilter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.AttributeFilter.Operation op = 1; - if (has_op()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->op()); - } - - } - // 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 AttributeFilter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AttributeFilter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AttributeFilter::MergeFrom(const AttributeFilter& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_op()) { - set_op(from.op()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AttributeFilter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AttributeFilter::CopyFrom(const AttributeFilter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AttributeFilter::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void AttributeFilter::Swap(AttributeFilter* other) { if (other != this) { - std::swap(op_, other->op_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AttributeFilter::GetMetadata() const { diff --git a/src/server/proto/Client/attribute_types.pb.h b/src/server/proto/Client/attribute_types.pb.h index 7969df088b6..172df84067d 100644 --- a/src/server/proto/Client/attribute_types.pb.h +++ b/src/server/proto/Client/attribute_types.pb.h @@ -92,19 +92,6 @@ class TC_PROTO_API Variant : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Variant* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Variant& from); - void MergeFrom(const Variant& 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(); @@ -273,19 +260,6 @@ class TC_PROTO_API Attribute : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Attribute* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Attribute& from); - void MergeFrom(const Attribute& 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(); @@ -369,19 +343,6 @@ class TC_PROTO_API AttributeFilter : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AttributeFilter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AttributeFilter& from); - void MergeFrom(const AttributeFilter& 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(); diff --git a/src/server/proto/Client/authentication_service.pb.cc b/src/server/proto/Client/authentication_service.pb.cc index 3d8b7f03ee3..493cc9a245f 100644 --- a/src/server/proto/Client/authentication_service.pb.cc +++ b/src/server/proto/Client/authentication_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "authentication_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -656,7 +653,7 @@ void protobuf_AddDesc_authentication_5fservice_2eproto() { "gs.protocol.authentication.v1.GenerateWe" "bCredentialsResponse\"\006\202\371+\002\010\010\032M\202\371+C\n1bnet" ".protocol.authentication.AuthenticationS" - "erver*\016authentication\212\371+\002\020\001B\005H\001\200\001\000", 4354); + "erver*\016authentication\212\371+\002\020\001B\005H\002\200\001\000", 4354); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "authentication_service.proto", &protobuf_RegisterTypes); ModuleLoadRequest::default_instance_ = new ModuleLoadRequest(); @@ -775,208 +772,9 @@ ModuleLoadRequest* ModuleLoadRequest::New() const { return new ModuleLoadRequest; } -void ModuleLoadRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_module_handle()) { - if (module_handle_ != NULL) module_handle_->::bgs::protocol::ContentHandle::Clear(); - } - if (has_message()) { - if (message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - message_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ModuleLoadRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.ModuleLoadRequest) - 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.ContentHandle module_handle = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_module_handle())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_message; - break; - } - - // optional bytes message = 2; - case 2: { - if (tag == 18) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_message())); - } 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.authentication.v1.ModuleLoadRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.ModuleLoadRequest) - return false; -#undef DO_ -} - -void ModuleLoadRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.ModuleLoadRequest) - // required .bgs.protocol.ContentHandle module_handle = 1; - if (has_module_handle()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->module_handle(), output); - } - - // optional bytes message = 2; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.ModuleLoadRequest) -} - -::google::protobuf::uint8* ModuleLoadRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.ModuleLoadRequest) - // required .bgs.protocol.ContentHandle module_handle = 1; - if (has_module_handle()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->module_handle(), target); - } - - // optional bytes message = 2; - if (has_message()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.ModuleLoadRequest) - return target; -} - -int ModuleLoadRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.ContentHandle module_handle = 1; - if (has_module_handle()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->module_handle()); - } - - // optional bytes message = 2; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->message()); - } - - } - 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 ModuleLoadRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ModuleLoadRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ModuleLoadRequest::MergeFrom(const ModuleLoadRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_module_handle()) { - mutable_module_handle()->::bgs::protocol::ContentHandle::MergeFrom(from.module_handle()); - } - if (from.has_message()) { - set_message(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ModuleLoadRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ModuleLoadRequest::CopyFrom(const ModuleLoadRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ModuleLoadRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_module_handle()) { - if (!this->module_handle().IsInitialized()) return false; - } - return true; -} - void ModuleLoadRequest::Swap(ModuleLoadRequest* other) { if (other != this) { - std::swap(module_handle_, other->module_handle_); - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ModuleLoadRequest::GetMetadata() const { @@ -1048,207 +846,9 @@ ModuleNotification* ModuleNotification::New() const { return new ModuleNotification; } -void ModuleNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(module_id_, result_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ModuleNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.ModuleNotification) - 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 int32 module_id = 2; - case 2: { - if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &module_id_))); - set_has_module_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_result; - break; - } - - // optional uint32 result = 3; - case 3: { - if (tag == 24) { - parse_result: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &result_))); - set_has_result(); - } 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.authentication.v1.ModuleNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.ModuleNotification) - return false; -#undef DO_ -} - -void ModuleNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.ModuleNotification) - // optional int32 module_id = 2; - if (has_module_id()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->module_id(), output); - } - - // optional uint32 result = 3; - if (has_result()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->result(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.ModuleNotification) -} - -::google::protobuf::uint8* ModuleNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.ModuleNotification) - // optional int32 module_id = 2; - if (has_module_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->module_id(), target); - } - - // optional uint32 result = 3; - if (has_result()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->result(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.ModuleNotification) - return target; -} - -int ModuleNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional int32 module_id = 2; - if (has_module_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->module_id()); - } - - // optional uint32 result = 3; - if (has_result()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->result()); - } - - } - 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 ModuleNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ModuleNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ModuleNotification::MergeFrom(const ModuleNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_module_id()) { - set_module_id(from.module_id()); - } - if (from.has_result()) { - set_result(from.result()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ModuleNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ModuleNotification::CopyFrom(const ModuleNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ModuleNotification::IsInitialized() const { - return true; -} - void ModuleNotification::Swap(ModuleNotification* other) { if (other != this) { - std::swap(module_id_, other->module_id_); - std::swap(result_, other->result_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ModuleNotification::GetMetadata() const { @@ -1324,202 +924,9 @@ ModuleMessageRequest* ModuleMessageRequest::New() const { return new ModuleMessageRequest; } -void ModuleMessageRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - module_id_ = 0; - if (has_message()) { - if (message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - message_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ModuleMessageRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.ModuleMessageRequest) - 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 int32 module_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &module_id_))); - set_has_module_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_message; - break; - } - - // optional bytes message = 2; - case 2: { - if (tag == 18) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_message())); - } 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.authentication.v1.ModuleMessageRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.ModuleMessageRequest) - return false; -#undef DO_ -} - -void ModuleMessageRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.ModuleMessageRequest) - // required int32 module_id = 1; - if (has_module_id()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->module_id(), output); - } - - // optional bytes message = 2; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.ModuleMessageRequest) -} - -::google::protobuf::uint8* ModuleMessageRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.ModuleMessageRequest) - // required int32 module_id = 1; - if (has_module_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->module_id(), target); - } - - // optional bytes message = 2; - if (has_message()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.ModuleMessageRequest) - return target; -} - -int ModuleMessageRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required int32 module_id = 1; - if (has_module_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->module_id()); - } - - // optional bytes message = 2; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->message()); - } - - } - 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 ModuleMessageRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ModuleMessageRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ModuleMessageRequest::MergeFrom(const ModuleMessageRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_module_id()) { - set_module_id(from.module_id()); - } - if (from.has_message()) { - set_message(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ModuleMessageRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ModuleMessageRequest::CopyFrom(const ModuleMessageRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ModuleMessageRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - void ModuleMessageRequest::Swap(ModuleMessageRequest* other) { if (other != this) { - std::swap(module_id_, other->module_id_); - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ModuleMessageRequest::GetMetadata() const { @@ -1639,1455 +1046,117 @@ LogonRequest* LogonRequest::New() const { return new LogonRequest; } -void LogonRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) +void LogonRequest::Swap(LogonRequest* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} -#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) +::google::protobuf::Metadata LogonRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = LogonRequest_descriptor_; + metadata.reflection = LogonRequest_reflection_; + return metadata; +} - if (_has_bits_[0 / 32] & 255) { - ZR_(application_version_, allow_logon_queue_notifications_); - if (has_program()) { - if (program_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - program_->clear(); - } - } - if (has_platform()) { - if (platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - platform_->clear(); - } - } - if (has_locale()) { - if (locale_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - locale_->clear(); - } - } - if (has_email()) { - if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - email_->clear(); - } - } - if (has_version()) { - if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - version_->clear(); - } - } - } - if (_has_bits_[8 / 32] & 3840) { - if (has_cached_web_credentials()) { - if (cached_web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - cached_web_credentials_->clear(); - } - } - 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(); - } - } - if (has_phone_number()) { - if (phone_number_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - phone_number_->clear(); - } - } - } +// =================================================================== -#undef OFFSET_OF_FIELD_ -#undef ZR_ +#ifndef _MSC_VER +const int LogonResult::kErrorCodeFieldNumber; +const int LogonResult::kAccountIdFieldNumber; +const int LogonResult::kGameAccountIdFieldNumber; +const int LogonResult::kEmailFieldNumber; +const int LogonResult::kAvailableRegionFieldNumber; +const int LogonResult::kConnectedRegionFieldNumber; +const int LogonResult::kBattleTagFieldNumber; +const int LogonResult::kGeoipCountryFieldNumber; +const int LogonResult::kSessionKeyFieldNumber; +const int LogonResult::kRestrictedModeFieldNumber; +const int LogonResult::kClientIdFieldNumber; +#endif // !_MSC_VER - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LogonRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.LogonRequest) - 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 program = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_program())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program().data(), this->program().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "program"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_platform; - break; - } - - // optional string platform = 2; - case 2: { - if (tag == 18) { - parse_platform: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_platform())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->platform().data(), this->platform().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "platform"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_locale; - break; - } - - // optional string locale = 3; - case 3: { - if (tag == 26) { - parse_locale: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_locale())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->locale().data(), this->locale().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "locale"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_email; - break; - } - - // optional string email = 4; - case 4: { - if (tag == 34) { - parse_email: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_email())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "email"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_version; - break; - } - - // optional string version = 5; - case 5: { - if (tag == 42) { - parse_version: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->version().data(), this->version().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "version"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_application_version; - break; - } - - // optional int32 application_version = 6; - case 6: { - if (tag == 48) { - 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->ExpectTag(56)) goto parse_public_computer; - break; - } - - // optional bool public_computer = 7; - case 7: { - if (tag == 56) { - parse_public_computer: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &public_computer_))); - set_has_public_computer(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_allow_logon_queue_notifications; - break; - } - - // optional bool allow_logon_queue_notifications = 10 [default = false]; - case 10: { - if (tag == 80) { - parse_allow_logon_queue_notifications: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &allow_logon_queue_notifications_))); - set_has_allow_logon_queue_notifications(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(98)) goto parse_cached_web_credentials; - break; - } - - // optional bytes cached_web_credentials = 12; - case 12: { - if (tag == 98) { - parse_cached_web_credentials: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_cached_web_credentials())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(114)) goto parse_user_agent; - break; - } - - // optional string user_agent = 14; - case 14: { - if (tag == 114) { - parse_user_agent: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_user_agent())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_agent().data(), this->user_agent().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "user_agent"); - } 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->ExpectTag(130)) goto parse_phone_number; - break; - } - - // optional string phone_number = 16; - case 16: { - if (tag == 130) { - parse_phone_number: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_phone_number())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "phone_number"); - } 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.authentication.v1.LogonRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.LogonRequest) - return false; -#undef DO_ -} - -void LogonRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.LogonRequest) - // optional string program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program().data(), this->program().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "program"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->program(), output); - } +LogonResult::LogonResult() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.authentication.v1.LogonResult) +} - // optional string platform = 2; - if (has_platform()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->platform().data(), this->platform().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "platform"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->platform(), output); - } +void LogonResult::InitAsDefaultInstance() { + account_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); +} - // optional string locale = 3; - if (has_locale()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->locale().data(), this->locale().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "locale"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->locale(), output); - } +LogonResult::LogonResult(const LogonResult& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.authentication.v1.LogonResult) +} - // optional string email = 4; - if (has_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "email"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->email(), output); - } +void LogonResult::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + error_code_ = 0u; + account_id_ = NULL; + email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + connected_region_ = 0u; + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + geoip_country_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + session_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + restricted_mode_ = false; + client_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} - // optional string version = 5; - if (has_version()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->version().data(), this->version().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->version(), output); - } +LogonResult::~LogonResult() { + // @@protoc_insertion_point(destructor:bgs.protocol.authentication.v1.LogonResult) + SharedDtor(); +} - // optional int32 application_version = 6; - if (has_application_version()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->application_version(), output); +void LogonResult::SharedDtor() { + if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete email_; } - - // optional bool public_computer = 7; - if (has_public_computer()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->public_computer(), output); + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; } - - // optional bool allow_logon_queue_notifications = 10 [default = false]; - if (has_allow_logon_queue_notifications()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->allow_logon_queue_notifications(), output); + if (geoip_country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete geoip_country_; } - - // optional bytes cached_web_credentials = 12; - if (has_cached_web_credentials()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 12, this->cached_web_credentials(), output); + if (session_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete session_key_; } - - // optional string user_agent = 14; - if (has_user_agent()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_agent().data(), this->user_agent().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "user_agent"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 14, this->user_agent(), output); + if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete client_id_; } - - // 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 (this != default_instance_) { + delete account_id_; } +} - // optional string phone_number = 16; - if (has_phone_number()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "phone_number"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 16, this->phone_number(), output); - } +void LogonResult::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LogonResult::descriptor() { + protobuf_AssignDescriptorsOnce(); + return LogonResult_descriptor_; +} - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.LogonRequest) -} - -::google::protobuf::uint8* LogonRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.LogonRequest) - // optional string program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program().data(), this->program().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "program"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->program(), target); - } +const LogonResult& LogonResult::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_authentication_5fservice_2eproto(); + return *default_instance_; +} - // optional string platform = 2; - if (has_platform()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->platform().data(), this->platform().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "platform"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->platform(), target); - } +LogonResult* LogonResult::default_instance_ = NULL; - // optional string locale = 3; - if (has_locale()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->locale().data(), this->locale().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "locale"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->locale(), target); - } - - // optional string email = 4; - if (has_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "email"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->email(), target); - } - - // optional string version = 5; - if (has_version()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->version().data(), this->version().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->version(), target); - } - - // optional int32 application_version = 6; - if (has_application_version()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->application_version(), target); - } - - // optional bool public_computer = 7; - if (has_public_computer()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->public_computer(), target); - } - - // optional bool allow_logon_queue_notifications = 10 [default = false]; - if (has_allow_logon_queue_notifications()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->allow_logon_queue_notifications(), target); - } - - // optional bytes cached_web_credentials = 12; - if (has_cached_web_credentials()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 12, this->cached_web_credentials(), target); - } - - // optional string user_agent = 14; - if (has_user_agent()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_agent().data(), this->user_agent().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "user_agent"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 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); - } - - // optional string phone_number = 16; - if (has_phone_number()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->phone_number().data(), this->phone_number().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "phone_number"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 16, this->phone_number(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.LogonRequest) - return target; -} - -int LogonRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string program = 1; - if (has_program()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->program()); - } - - // optional string platform = 2; - if (has_platform()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->platform()); - } - - // optional string locale = 3; - if (has_locale()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->locale()); - } - - // optional string email = 4; - if (has_email()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->email()); - } - - // optional string version = 5; - if (has_version()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - } - - // optional int32 application_version = 6; - if (has_application_version()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->application_version()); - } - - // optional bool public_computer = 7; - if (has_public_computer()) { - total_size += 1 + 1; - } - - // optional bool allow_logon_queue_notifications = 10 [default = false]; - if (has_allow_logon_queue_notifications()) { - total_size += 1 + 1; - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional bytes cached_web_credentials = 12; - if (has_cached_web_credentials()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->cached_web_credentials()); - } - - // optional string user_agent = 14; - if (has_user_agent()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->user_agent()); - } - - // optional string device_id = 15; - if (has_device_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->device_id()); - } - - // optional string phone_number = 16; - if (has_phone_number()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->phone_number()); - } - - } - 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 LogonRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LogonRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LogonRequest::MergeFrom(const LogonRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_platform()) { - set_platform(from.platform()); - } - if (from.has_locale()) { - set_locale(from.locale()); - } - if (from.has_email()) { - set_email(from.email()); - } - if (from.has_version()) { - set_version(from.version()); - } - if (from.has_application_version()) { - set_application_version(from.application_version()); - } - if (from.has_public_computer()) { - set_public_computer(from.public_computer()); - } - if (from.has_allow_logon_queue_notifications()) { - set_allow_logon_queue_notifications(from.allow_logon_queue_notifications()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_cached_web_credentials()) { - set_cached_web_credentials(from.cached_web_credentials()); - } - if (from.has_user_agent()) { - set_user_agent(from.user_agent()); - } - if (from.has_device_id()) { - set_device_id(from.device_id()); - } - if (from.has_phone_number()) { - set_phone_number(from.phone_number()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LogonRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LogonRequest::CopyFrom(const LogonRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LogonRequest::IsInitialized() const { - return true; -} - -void LogonRequest::Swap(LogonRequest* other) { - if (other != this) { - std::swap(program_, other->program_); - std::swap(platform_, other->platform_); - std::swap(locale_, other->locale_); - std::swap(email_, other->email_); - std::swap(version_, other->version_); - std::swap(application_version_, other->application_version_); - std::swap(public_computer_, other->public_computer_); - std::swap(allow_logon_queue_notifications_, other->allow_logon_queue_notifications_); - std::swap(cached_web_credentials_, other->cached_web_credentials_); - std::swap(user_agent_, other->user_agent_); - std::swap(device_id_, other->device_id_); - std::swap(phone_number_, other->phone_number_); - 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 LogonRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = LogonRequest_descriptor_; - metadata.reflection = LogonRequest_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int LogonResult::kErrorCodeFieldNumber; -const int LogonResult::kAccountIdFieldNumber; -const int LogonResult::kGameAccountIdFieldNumber; -const int LogonResult::kEmailFieldNumber; -const int LogonResult::kAvailableRegionFieldNumber; -const int LogonResult::kConnectedRegionFieldNumber; -const int LogonResult::kBattleTagFieldNumber; -const int LogonResult::kGeoipCountryFieldNumber; -const int LogonResult::kSessionKeyFieldNumber; -const int LogonResult::kRestrictedModeFieldNumber; -const int LogonResult::kClientIdFieldNumber; -#endif // !_MSC_VER - -LogonResult::LogonResult() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.authentication.v1.LogonResult) -} - -void LogonResult::InitAsDefaultInstance() { - account_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); -} - -LogonResult::LogonResult(const LogonResult& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.authentication.v1.LogonResult) -} - -void LogonResult::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - error_code_ = 0u; - account_id_ = NULL; - email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - connected_region_ = 0u; - battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - geoip_country_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - session_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - restricted_mode_ = false; - client_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LogonResult::~LogonResult() { - // @@protoc_insertion_point(destructor:bgs.protocol.authentication.v1.LogonResult) - SharedDtor(); -} - -void LogonResult::SharedDtor() { - if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete email_; - } - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete battle_tag_; - } - if (geoip_country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete geoip_country_; - } - if (session_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete session_key_; - } - if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete client_id_; - } - if (this != default_instance_) { - delete account_id_; - } -} - -void LogonResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* LogonResult::descriptor() { - protobuf_AssignDescriptorsOnce(); - return LogonResult_descriptor_; -} - -const LogonResult& LogonResult::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_authentication_5fservice_2eproto(); - return *default_instance_; -} - -LogonResult* LogonResult::default_instance_ = NULL; - -LogonResult* LogonResult::New() const { - return new LogonResult; -} - -void LogonResult::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 235) { - ZR_(error_code_, connected_region_); - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_email()) { - if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - email_->clear(); - } - } - if (has_battle_tag()) { - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - battle_tag_->clear(); - } - } - if (has_geoip_country()) { - if (geoip_country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - geoip_country_->clear(); - } - } - } - if (_has_bits_[8 / 32] & 1792) { - if (has_session_key()) { - if (session_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - session_key_->clear(); - } - } - restricted_mode_ = false; - if (has_client_id()) { - if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_id_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - game_account_id_.Clear(); - available_region_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LogonResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.LogonResult) - 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 uint32 error_code = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &error_code_))); - set_has_error_code(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 2; - case 2: { - if (tag == 18) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_game_account_id; - break; - } - - // repeated .bgs.protocol.EntityId game_account_id = 3; - case 3: { - if (tag == 26) { - parse_game_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_game_account_id; - if (input->ExpectTag(34)) goto parse_email; - break; - } - - // optional string email = 4; - case 4: { - if (tag == 34) { - parse_email: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_email())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "email"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_available_region; - break; - } - - // repeated uint32 available_region = 5; - case 5: { - if (tag == 40) { - parse_available_region: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 40, input, this->mutable_available_region()))); - } else if (tag == 42) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_available_region()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_available_region; - if (input->ExpectTag(48)) goto parse_connected_region; - break; - } - - // optional uint32 connected_region = 6; - case 6: { - if (tag == 48) { - parse_connected_region: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &connected_region_))); - set_has_connected_region(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_battle_tag; - break; - } - - // optional string battle_tag = 7; - case 7: { - if (tag == 58) { - 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(66)) goto parse_geoip_country; - break; - } - - // optional string geoip_country = 8; - case 8: { - if (tag == 66) { - parse_geoip_country: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_geoip_country())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->geoip_country().data(), this->geoip_country().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "geoip_country"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_session_key; - break; - } - - // optional bytes session_key = 9; - case 9: { - if (tag == 74) { - parse_session_key: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_session_key())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_restricted_mode; - break; - } - - // optional bool restricted_mode = 10; - case 10: { - if (tag == 80) { - parse_restricted_mode: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &restricted_mode_))); - set_has_restricted_mode(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_client_id; - break; - } - - // optional string client_id = 11; - case 11: { - if (tag == 90) { - parse_client_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_client_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "client_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.authentication.v1.LogonResult) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.LogonResult) - return false; -#undef DO_ -} - -void LogonResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.LogonResult) - // required uint32 error_code = 1; - if (has_error_code()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->error_code(), output); - } - - // optional .bgs.protocol.EntityId account_id = 2; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->account_id(), output); - } - - // repeated .bgs.protocol.EntityId game_account_id = 3; - for (int i = 0; i < this->game_account_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->game_account_id(i), output); - } - - // optional string email = 4; - if (has_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "email"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->email(), output); - } - - // repeated uint32 available_region = 5; - for (int i = 0; i < this->available_region_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 5, this->available_region(i), output); - } - - // optional uint32 connected_region = 6; - if (has_connected_region()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->connected_region(), output); - } - - // optional string battle_tag = 7; - 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( - 7, this->battle_tag(), output); - } - - // optional string geoip_country = 8; - if (has_geoip_country()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->geoip_country().data(), this->geoip_country().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "geoip_country"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->geoip_country(), output); - } - - // optional bytes session_key = 9; - if (has_session_key()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 9, this->session_key(), output); - } - - // optional bool restricted_mode = 10; - if (has_restricted_mode()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->restricted_mode(), output); - } - - // optional string client_id = 11; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 11, this->client_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.LogonResult) -} - -::google::protobuf::uint8* LogonResult::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.LogonResult) - // required uint32 error_code = 1; - if (has_error_code()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->error_code(), target); - } - - // optional .bgs.protocol.EntityId account_id = 2; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->account_id(), target); - } - - // repeated .bgs.protocol.EntityId game_account_id = 3; - for (int i = 0; i < this->game_account_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->game_account_id(i), target); - } - - // optional string email = 4; - if (has_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->email().data(), this->email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "email"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->email(), target); - } - - // repeated uint32 available_region = 5; - for (int i = 0; i < this->available_region_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(5, this->available_region(i), target); - } - - // optional uint32 connected_region = 6; - if (has_connected_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->connected_region(), target); - } - - // optional string battle_tag = 7; - 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( - 7, this->battle_tag(), target); - } - - // optional string geoip_country = 8; - if (has_geoip_country()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->geoip_country().data(), this->geoip_country().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "geoip_country"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->geoip_country(), target); - } - - // optional bytes session_key = 9; - if (has_session_key()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 9, this->session_key(), target); - } - - // optional bool restricted_mode = 10; - if (has_restricted_mode()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->restricted_mode(), target); - } - - // optional string client_id = 11; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 11, this->client_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.LogonResult) - return target; -} - -int LogonResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 error_code = 1; - if (has_error_code()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->error_code()); - } - - // optional .bgs.protocol.EntityId account_id = 2; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional string email = 4; - if (has_email()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->email()); - } - - // optional uint32 connected_region = 6; - if (has_connected_region()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->connected_region()); - } - - // optional string battle_tag = 7; - if (has_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->battle_tag()); - } - - // optional string geoip_country = 8; - if (has_geoip_country()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->geoip_country()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional bytes session_key = 9; - if (has_session_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->session_key()); - } - - // optional bool restricted_mode = 10; - if (has_restricted_mode()) { - total_size += 1 + 1; - } - - // optional string client_id = 11; - if (has_client_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_id()); - } - - } - // repeated .bgs.protocol.EntityId game_account_id = 3; - total_size += 1 * this->game_account_id_size(); - for (int i = 0; i < this->game_account_id_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id(i)); - } - - // repeated uint32 available_region = 5; - { - int data_size = 0; - for (int i = 0; i < this->available_region_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->available_region(i)); - } - total_size += 1 * this->available_region_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 LogonResult::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LogonResult* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LogonResult::MergeFrom(const LogonResult& from) { - GOOGLE_CHECK_NE(&from, this); - game_account_id_.MergeFrom(from.game_account_id_); - available_region_.MergeFrom(from.available_region_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_error_code()) { - set_error_code(from.error_code()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - if (from.has_email()) { - set_email(from.email()); - } - if (from.has_connected_region()) { - set_connected_region(from.connected_region()); - } - if (from.has_battle_tag()) { - set_battle_tag(from.battle_tag()); - } - if (from.has_geoip_country()) { - set_geoip_country(from.geoip_country()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_session_key()) { - set_session_key(from.session_key()); - } - if (from.has_restricted_mode()) { - set_restricted_mode(from.restricted_mode()); - } - if (from.has_client_id()) { - set_client_id(from.client_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LogonResult::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LogonResult::CopyFrom(const LogonResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LogonResult::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->game_account_id())) return false; - return true; -} +LogonResult* LogonResult::New() const { + return new LogonResult; +} void LogonResult::Swap(LogonResult* other) { if (other != this) { - std::swap(error_code_, other->error_code_); - std::swap(account_id_, other->account_id_); - game_account_id_.Swap(&other->game_account_id_); - std::swap(email_, other->email_); - available_region_.Swap(&other->available_region_); - std::swap(connected_region_, other->connected_region_); - std::swap(battle_tag_, other->battle_tag_); - std::swap(geoip_country_, other->geoip_country_); - std::swap(session_key_, other->session_key_); - std::swap(restricted_mode_, other->restricted_mode_); - std::swap(client_id_, other->client_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata LogonResult::GetMetadata() const { @@ -3120,192 +1189,46 @@ GenerateSSOTokenRequest::GenerateSSOTokenRequest(const GenerateSSOTokenRequest& // @@protoc_insertion_point(copy_constructor:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) } -void GenerateSSOTokenRequest::SharedCtor() { - _cached_size_ = 0; - program_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GenerateSSOTokenRequest::~GenerateSSOTokenRequest() { - // @@protoc_insertion_point(destructor:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) - SharedDtor(); -} - -void GenerateSSOTokenRequest::SharedDtor() { - if (this != default_instance_) { - } -} - -void GenerateSSOTokenRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* GenerateSSOTokenRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GenerateSSOTokenRequest_descriptor_; -} - -const GenerateSSOTokenRequest& GenerateSSOTokenRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_authentication_5fservice_2eproto(); - return *default_instance_; -} - -GenerateSSOTokenRequest* GenerateSSOTokenRequest::default_instance_ = NULL; - -GenerateSSOTokenRequest* GenerateSSOTokenRequest::New() const { - return new GenerateSSOTokenRequest; -} - -void GenerateSSOTokenRequest::Clear() { - program_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GenerateSSOTokenRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) - 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 program = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } 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.authentication.v1.GenerateSSOTokenRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) - return false; -#undef DO_ -} - -void GenerateSSOTokenRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) - // optional fixed32 program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) +void GenerateSSOTokenRequest::SharedCtor() { + _cached_size_ = 0; + program_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -::google::protobuf::uint8* GenerateSSOTokenRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) - // optional fixed32 program = 1; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->program(), target); - } +GenerateSSOTokenRequest::~GenerateSSOTokenRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) + SharedDtor(); +} - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); +void GenerateSSOTokenRequest::SharedDtor() { + if (this != default_instance_) { } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.GenerateSSOTokenRequest) - return target; } -int GenerateSSOTokenRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 program = 1; - if (has_program()) { - total_size += 1 + 4; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void GenerateSSOTokenRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GenerateSSOTokenRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GenerateSSOTokenRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void GenerateSSOTokenRequest::MergeFrom(const GenerateSSOTokenRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* GenerateSSOTokenRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GenerateSSOTokenRequest_descriptor_; } -void GenerateSSOTokenRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const GenerateSSOTokenRequest& GenerateSSOTokenRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_authentication_5fservice_2eproto(); + return *default_instance_; } -void GenerateSSOTokenRequest::CopyFrom(const GenerateSSOTokenRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +GenerateSSOTokenRequest* GenerateSSOTokenRequest::default_instance_ = NULL; -bool GenerateSSOTokenRequest::IsInitialized() const { - return true; +GenerateSSOTokenRequest* GenerateSSOTokenRequest::New() const { + return new GenerateSSOTokenRequest; } void GenerateSSOTokenRequest::Swap(GenerateSSOTokenRequest* other) { if (other != this) { - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GenerateSSOTokenRequest::GetMetadata() const { @@ -3384,206 +1307,9 @@ GenerateSSOTokenResponse* GenerateSSOTokenResponse::New() const { return new GenerateSSOTokenResponse; } -void GenerateSSOTokenResponse::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_sso_id()) { - if (sso_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - sso_id_->clear(); - } - } - if (has_sso_secret()) { - if (sso_secret_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - sso_secret_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GenerateSSOTokenResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.GenerateSSOTokenResponse) - 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 bytes sso_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_sso_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_sso_secret; - break; - } - - // optional bytes sso_secret = 2; - case 2: { - if (tag == 18) { - parse_sso_secret: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_sso_secret())); - } 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.authentication.v1.GenerateSSOTokenResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.GenerateSSOTokenResponse) - return false; -#undef DO_ -} - -void GenerateSSOTokenResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.GenerateSSOTokenResponse) - // optional bytes sso_id = 1; - if (has_sso_id()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->sso_id(), output); - } - - // optional bytes sso_secret = 2; - if (has_sso_secret()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->sso_secret(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.GenerateSSOTokenResponse) -} - -::google::protobuf::uint8* GenerateSSOTokenResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.GenerateSSOTokenResponse) - // optional bytes sso_id = 1; - if (has_sso_id()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 1, this->sso_id(), target); - } - - // optional bytes sso_secret = 2; - if (has_sso_secret()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->sso_secret(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.GenerateSSOTokenResponse) - return target; -} - -int GenerateSSOTokenResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bytes sso_id = 1; - if (has_sso_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->sso_id()); - } - - // optional bytes sso_secret = 2; - if (has_sso_secret()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->sso_secret()); - } - - } - 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 GenerateSSOTokenResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GenerateSSOTokenResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GenerateSSOTokenResponse::MergeFrom(const GenerateSSOTokenResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_sso_id()) { - set_sso_id(from.sso_id()); - } - if (from.has_sso_secret()) { - set_sso_secret(from.sso_secret()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GenerateSSOTokenResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GenerateSSOTokenResponse::CopyFrom(const GenerateSSOTokenResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GenerateSSOTokenResponse::IsInitialized() const { - return true; -} - void GenerateSSOTokenResponse::Swap(GenerateSSOTokenResponse* other) { if (other != this) { - std::swap(sso_id_, other->sso_id_); - std::swap(sso_secret_, other->sso_secret_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GenerateSSOTokenResponse::GetMetadata() const { @@ -3653,158 +1379,9 @@ LogonUpdateRequest* LogonUpdateRequest::New() const { return new LogonUpdateRequest; } -void LogonUpdateRequest::Clear() { - error_code_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LogonUpdateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.LogonUpdateRequest) - 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 uint32 error_code = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &error_code_))); - set_has_error_code(); - } 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.authentication.v1.LogonUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.LogonUpdateRequest) - return false; -#undef DO_ -} - -void LogonUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.LogonUpdateRequest) - // required uint32 error_code = 1; - if (has_error_code()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->error_code(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.LogonUpdateRequest) -} - -::google::protobuf::uint8* LogonUpdateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.LogonUpdateRequest) - // required uint32 error_code = 1; - if (has_error_code()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->error_code(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.LogonUpdateRequest) - return target; -} - -int LogonUpdateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 error_code = 1; - if (has_error_code()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->error_code()); - } - - } - 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 LogonUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LogonUpdateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LogonUpdateRequest::MergeFrom(const LogonUpdateRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_error_code()) { - set_error_code(from.error_code()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LogonUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LogonUpdateRequest::CopyFrom(const LogonUpdateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LogonUpdateRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - void LogonUpdateRequest::Swap(LogonUpdateRequest* other) { if (other != this) { - std::swap(error_code_, other->error_code_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata LogonUpdateRequest::GetMetadata() const { @@ -3878,244 +1455,9 @@ LogonQueueUpdateRequest* LogonQueueUpdateRequest::New() const { return new LogonQueueUpdateRequest; } -void LogonQueueUpdateRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(estimated_time_, position_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LogonQueueUpdateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.LogonQueueUpdateRequest) - 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 uint32 position = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &position_))); - set_has_position(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_estimated_time; - break; - } - - // required uint64 estimated_time = 2; - case 2: { - if (tag == 16) { - parse_estimated_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &estimated_time_))); - set_has_estimated_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_eta_deviation_in_sec; - break; - } - - // required uint64 eta_deviation_in_sec = 3; - case 3: { - if (tag == 24) { - parse_eta_deviation_in_sec: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &eta_deviation_in_sec_))); - set_has_eta_deviation_in_sec(); - } 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.authentication.v1.LogonQueueUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.LogonQueueUpdateRequest) - return false; -#undef DO_ -} - -void LogonQueueUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.LogonQueueUpdateRequest) - // required uint32 position = 1; - if (has_position()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->position(), output); - } - - // required uint64 estimated_time = 2; - if (has_estimated_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->estimated_time(), output); - } - - // required uint64 eta_deviation_in_sec = 3; - if (has_eta_deviation_in_sec()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->eta_deviation_in_sec(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.LogonQueueUpdateRequest) -} - -::google::protobuf::uint8* LogonQueueUpdateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.LogonQueueUpdateRequest) - // required uint32 position = 1; - if (has_position()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->position(), target); - } - - // required uint64 estimated_time = 2; - if (has_estimated_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->estimated_time(), target); - } - - // required uint64 eta_deviation_in_sec = 3; - if (has_eta_deviation_in_sec()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->eta_deviation_in_sec(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.LogonQueueUpdateRequest) - return target; -} - -int LogonQueueUpdateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 position = 1; - if (has_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->position()); - } - - // required uint64 estimated_time = 2; - if (has_estimated_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->estimated_time()); - } - - // required uint64 eta_deviation_in_sec = 3; - if (has_eta_deviation_in_sec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->eta_deviation_in_sec()); - } - - } - 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 LogonQueueUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LogonQueueUpdateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LogonQueueUpdateRequest::MergeFrom(const LogonQueueUpdateRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_position()) { - set_position(from.position()); - } - if (from.has_estimated_time()) { - set_estimated_time(from.estimated_time()); - } - if (from.has_eta_deviation_in_sec()) { - set_eta_deviation_in_sec(from.eta_deviation_in_sec()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LogonQueueUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LogonQueueUpdateRequest::CopyFrom(const LogonQueueUpdateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LogonQueueUpdateRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - void LogonQueueUpdateRequest::Swap(LogonQueueUpdateRequest* other) { if (other != this) { - std::swap(position_, other->position_); - std::swap(estimated_time_, other->estimated_time_); - std::swap(eta_deviation_in_sec_, other->eta_deviation_in_sec_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata LogonQueueUpdateRequest::GetMetadata() const { @@ -4139,364 +1481,62 @@ const int AccountSettingsNotification::kCanSendVoiceFieldNumber; AccountSettingsNotification::AccountSettingsNotification() : ::google::protobuf::Message() { SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.authentication.v1.AccountSettingsNotification) -} - -void AccountSettingsNotification::InitAsDefaultInstance() { -} - -AccountSettingsNotification::AccountSettingsNotification(const AccountSettingsNotification& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.authentication.v1.AccountSettingsNotification) -} - -void AccountSettingsNotification::SharedCtor() { - _cached_size_ = 0; - is_using_rid_ = false; - is_playing_from_igr_ = false; - can_receive_voice_ = false; - can_send_voice_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AccountSettingsNotification::~AccountSettingsNotification() { - // @@protoc_insertion_point(destructor:bgs.protocol.authentication.v1.AccountSettingsNotification) - SharedDtor(); -} - -void AccountSettingsNotification::SharedDtor() { - if (this != default_instance_) { - } -} - -void AccountSettingsNotification::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AccountSettingsNotification::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AccountSettingsNotification_descriptor_; -} - -const AccountSettingsNotification& AccountSettingsNotification::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_authentication_5fservice_2eproto(); - return *default_instance_; -} - -AccountSettingsNotification* AccountSettingsNotification::default_instance_ = NULL; - -AccountSettingsNotification* AccountSettingsNotification::New() const { - return new AccountSettingsNotification; -} - -void AccountSettingsNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(is_using_rid_, can_send_voice_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - licenses_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AccountSettingsNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.AccountSettingsNotification) - 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.account.v1.AccountLicense licenses = 1; - case 1: { - if (tag == 10) { - parse_licenses: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_licenses())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_licenses; - if (input->ExpectTag(16)) goto parse_is_using_rid; - break; - } - - // optional bool is_using_rid = 2; - case 2: { - if (tag == 16) { - parse_is_using_rid: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_using_rid_))); - set_has_is_using_rid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_is_playing_from_igr; - break; - } - - // optional bool is_playing_from_igr = 3; - case 3: { - if (tag == 24) { - parse_is_playing_from_igr: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_playing_from_igr_))); - set_has_is_playing_from_igr(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_can_receive_voice; - break; - } - - // optional bool can_receive_voice = 4; - case 4: { - if (tag == 32) { - parse_can_receive_voice: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_receive_voice_))); - set_has_can_receive_voice(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_can_send_voice; - break; - } - - // optional bool can_send_voice = 5; - case 5: { - if (tag == 40) { - parse_can_send_voice: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_send_voice_))); - set_has_can_send_voice(); - } 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.authentication.v1.AccountSettingsNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.AccountSettingsNotification) - return false; -#undef DO_ -} - -void AccountSettingsNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.AccountSettingsNotification) - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 1; - for (int i = 0; i < this->licenses_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->licenses(i), output); - } - - // optional bool is_using_rid = 2; - if (has_is_using_rid()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_using_rid(), output); - } - - // optional bool is_playing_from_igr = 3; - if (has_is_playing_from_igr()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_playing_from_igr(), output); - } - - // optional bool can_receive_voice = 4; - if (has_can_receive_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->can_receive_voice(), output); - } - - // optional bool can_send_voice = 5; - if (has_can_send_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->can_send_voice(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.AccountSettingsNotification) -} - -::google::protobuf::uint8* AccountSettingsNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.AccountSettingsNotification) - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 1; - for (int i = 0; i < this->licenses_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->licenses(i), target); - } - - // optional bool is_using_rid = 2; - if (has_is_using_rid()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_using_rid(), target); - } - - // optional bool is_playing_from_igr = 3; - if (has_is_playing_from_igr()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_playing_from_igr(), target); - } - - // optional bool can_receive_voice = 4; - if (has_can_receive_voice()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->can_receive_voice(), target); - } - - // optional bool can_send_voice = 5; - if (has_can_send_voice()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->can_send_voice(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.AccountSettingsNotification) - return target; + // @@protoc_insertion_point(constructor:bgs.protocol.authentication.v1.AccountSettingsNotification) } -int AccountSettingsNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional bool is_using_rid = 2; - if (has_is_using_rid()) { - total_size += 1 + 1; - } +void AccountSettingsNotification::InitAsDefaultInstance() { +} - // optional bool is_playing_from_igr = 3; - if (has_is_playing_from_igr()) { - total_size += 1 + 1; - } +AccountSettingsNotification::AccountSettingsNotification(const AccountSettingsNotification& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.authentication.v1.AccountSettingsNotification) +} - // optional bool can_receive_voice = 4; - if (has_can_receive_voice()) { - total_size += 1 + 1; - } +void AccountSettingsNotification::SharedCtor() { + _cached_size_ = 0; + is_using_rid_ = false; + is_playing_from_igr_ = false; + can_receive_voice_ = false; + can_send_voice_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} - // optional bool can_send_voice = 5; - if (has_can_send_voice()) { - total_size += 1 + 1; - } +AccountSettingsNotification::~AccountSettingsNotification() { + // @@protoc_insertion_point(destructor:bgs.protocol.authentication.v1.AccountSettingsNotification) + SharedDtor(); +} +void AccountSettingsNotification::SharedDtor() { + if (this != default_instance_) { } - // repeated .bgs.protocol.account.v1.AccountLicense licenses = 1; - total_size += 1 * this->licenses_size(); - for (int i = 0; i < this->licenses_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->licenses(i)); - } +} - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void AccountSettingsNotification::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AccountSettingsNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AccountSettingsNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void AccountSettingsNotification::MergeFrom(const AccountSettingsNotification& from) { - GOOGLE_CHECK_NE(&from, this); - licenses_.MergeFrom(from.licenses_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_is_using_rid()) { - set_is_using_rid(from.is_using_rid()); - } - if (from.has_is_playing_from_igr()) { - set_is_playing_from_igr(from.is_playing_from_igr()); - } - if (from.has_can_receive_voice()) { - set_can_receive_voice(from.can_receive_voice()); - } - if (from.has_can_send_voice()) { - set_can_send_voice(from.can_send_voice()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* AccountSettingsNotification::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AccountSettingsNotification_descriptor_; } -void AccountSettingsNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const AccountSettingsNotification& AccountSettingsNotification::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_authentication_5fservice_2eproto(); + return *default_instance_; } -void AccountSettingsNotification::CopyFrom(const AccountSettingsNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +AccountSettingsNotification* AccountSettingsNotification::default_instance_ = NULL; -bool AccountSettingsNotification::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->licenses())) return false; - return true; +AccountSettingsNotification* AccountSettingsNotification::New() const { + return new AccountSettingsNotification; } void AccountSettingsNotification::Swap(AccountSettingsNotification* other) { if (other != this) { - licenses_.Swap(&other->licenses_); - std::swap(is_using_rid_, other->is_using_rid_); - std::swap(is_playing_from_igr_, other->is_playing_from_igr_); - std::swap(can_receive_voice_, other->can_receive_voice_); - std::swap(can_send_voice_, other->can_send_voice_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AccountSettingsNotification::GetMetadata() const { @@ -4568,208 +1608,9 @@ ServerStateChangeRequest* ServerStateChangeRequest::New() const { return new ServerStateChangeRequest; } -void ServerStateChangeRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(event_time_, state_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ServerStateChangeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.ServerStateChangeRequest) - 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 uint32 state = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &state_))); - set_has_state(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_event_time; - break; - } - - // required uint64 event_time = 2; - case 2: { - if (tag == 16) { - parse_event_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &event_time_))); - set_has_event_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.authentication.v1.ServerStateChangeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.ServerStateChangeRequest) - return false; -#undef DO_ -} - -void ServerStateChangeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.ServerStateChangeRequest) - // required uint32 state = 1; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->state(), output); - } - - // required uint64 event_time = 2; - if (has_event_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->event_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.ServerStateChangeRequest) -} - -::google::protobuf::uint8* ServerStateChangeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.ServerStateChangeRequest) - // required uint32 state = 1; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->state(), target); - } - - // required uint64 event_time = 2; - if (has_event_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->event_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.ServerStateChangeRequest) - return target; -} - -int ServerStateChangeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 state = 1; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->state()); - } - - // required uint64 event_time = 2; - if (has_event_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->event_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 ServerStateChangeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ServerStateChangeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ServerStateChangeRequest::MergeFrom(const ServerStateChangeRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_state()) { - set_state(from.state()); - } - if (from.has_event_time()) { - set_event_time(from.event_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ServerStateChangeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ServerStateChangeRequest::CopyFrom(const ServerStateChangeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ServerStateChangeRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - void ServerStateChangeRequest::Swap(ServerStateChangeRequest* other) { if (other != this) { - std::swap(state_, other->state_); - std::swap(event_time_, other->event_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ServerStateChangeRequest::GetMetadata() const { @@ -4849,297 +1690,9 @@ VersionInfo* VersionInfo::New() const { return new VersionInfo; } -void VersionInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(number_, kick_time_); - if (has_patch()) { - if (patch_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - patch_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool VersionInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.VersionInfo) - 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 number = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &number_))); - set_has_number(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_patch; - break; - } - - // optional string patch = 2; - case 2: { - if (tag == 18) { - parse_patch: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_patch())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->patch().data(), this->patch().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "patch"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_is_optional; - break; - } - - // optional bool is_optional = 3; - case 3: { - if (tag == 24) { - parse_is_optional: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_optional_))); - set_has_is_optional(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_kick_time; - break; - } - - // optional uint64 kick_time = 4; - case 4: { - if (tag == 32) { - parse_kick_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &kick_time_))); - set_has_kick_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.authentication.v1.VersionInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.VersionInfo) - return false; -#undef DO_ -} - -void VersionInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.VersionInfo) - // optional uint32 number = 1; - if (has_number()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->number(), output); - } - - // optional string patch = 2; - if (has_patch()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->patch().data(), this->patch().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "patch"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->patch(), output); - } - - // optional bool is_optional = 3; - if (has_is_optional()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_optional(), output); - } - - // optional uint64 kick_time = 4; - if (has_kick_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->kick_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.VersionInfo) -} - -::google::protobuf::uint8* VersionInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.VersionInfo) - // optional uint32 number = 1; - if (has_number()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->number(), target); - } - - // optional string patch = 2; - if (has_patch()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->patch().data(), this->patch().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "patch"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->patch(), target); - } - - // optional bool is_optional = 3; - if (has_is_optional()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_optional(), target); - } - - // optional uint64 kick_time = 4; - if (has_kick_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->kick_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.VersionInfo) - return target; -} - -int VersionInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 number = 1; - if (has_number()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->number()); - } - - // optional string patch = 2; - if (has_patch()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->patch()); - } - - // optional bool is_optional = 3; - if (has_is_optional()) { - total_size += 1 + 1; - } - - // optional uint64 kick_time = 4; - if (has_kick_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->kick_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 VersionInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const VersionInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void VersionInfo::MergeFrom(const VersionInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_number()) { - set_number(from.number()); - } - if (from.has_patch()) { - set_patch(from.patch()); - } - if (from.has_is_optional()) { - set_is_optional(from.is_optional()); - } - if (from.has_kick_time()) { - set_kick_time(from.kick_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void VersionInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VersionInfo::CopyFrom(const VersionInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VersionInfo::IsInitialized() const { - return true; -} - void VersionInfo::Swap(VersionInfo* other) { if (other != this) { - std::swap(number_, other->number_); - std::swap(patch_, other->patch_); - std::swap(is_optional_, other->is_optional_); - std::swap(kick_time_, other->kick_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata VersionInfo::GetMetadata() const { @@ -5211,160 +1764,9 @@ VersionInfoNotification* VersionInfoNotification::New() const { return new VersionInfoNotification; } -void VersionInfoNotification::Clear() { - if (has_version_info()) { - if (version_info_ != NULL) version_info_->::bgs::protocol::authentication::v1::VersionInfo::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool VersionInfoNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.VersionInfoNotification) - 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.authentication.v1.VersionInfo version_info = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_version_info())); - } 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.authentication.v1.VersionInfoNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.VersionInfoNotification) - return false; -#undef DO_ -} - -void VersionInfoNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.VersionInfoNotification) - // optional .bgs.protocol.authentication.v1.VersionInfo version_info = 1; - if (has_version_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->version_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.VersionInfoNotification) -} - -::google::protobuf::uint8* VersionInfoNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.VersionInfoNotification) - // optional .bgs.protocol.authentication.v1.VersionInfo version_info = 1; - if (has_version_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->version_info(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.VersionInfoNotification) - return target; -} - -int VersionInfoNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.authentication.v1.VersionInfo version_info = 1; - if (has_version_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->version_info()); - } - - } - 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 VersionInfoNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const VersionInfoNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void VersionInfoNotification::MergeFrom(const VersionInfoNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_version_info()) { - mutable_version_info()->::bgs::protocol::authentication::v1::VersionInfo::MergeFrom(from.version_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void VersionInfoNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VersionInfoNotification::CopyFrom(const VersionInfoNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VersionInfoNotification::IsInitialized() const { - return true; -} - void VersionInfoNotification::Swap(VersionInfoNotification* other) { if (other != this) { - std::swap(version_info_, other->version_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata VersionInfoNotification::GetMetadata() const { @@ -5436,261 +1838,20 @@ const ::google::protobuf::Descriptor* MemModuleLoadRequest::descriptor() { return MemModuleLoadRequest_descriptor_; } -const MemModuleLoadRequest& MemModuleLoadRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_authentication_5fservice_2eproto(); - return *default_instance_; -} - -MemModuleLoadRequest* MemModuleLoadRequest::default_instance_ = NULL; - -MemModuleLoadRequest* MemModuleLoadRequest::New() const { - return new MemModuleLoadRequest; -} - -void MemModuleLoadRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_handle()) { - if (handle_ != NULL) handle_->::bgs::protocol::ContentHandle::Clear(); - } - if (has_key()) { - if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - key_->clear(); - } - } - if (has_input()) { - if (input_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - input_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemModuleLoadRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.MemModuleLoadRequest) - 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.ContentHandle handle = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_handle())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_key; - break; - } - - // required bytes key = 2; - case 2: { - if (tag == 18) { - parse_key: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_key())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_input; - break; - } - - // required bytes input = 3; - case 3: { - if (tag == 26) { - parse_input: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_input())); - } 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.authentication.v1.MemModuleLoadRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.MemModuleLoadRequest) - return false; -#undef DO_ -} - -void MemModuleLoadRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.MemModuleLoadRequest) - // required .bgs.protocol.ContentHandle handle = 1; - if (has_handle()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->handle(), output); - } - - // required bytes key = 2; - if (has_key()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->key(), output); - } - - // required bytes input = 3; - if (has_input()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 3, this->input(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.MemModuleLoadRequest) -} - -::google::protobuf::uint8* MemModuleLoadRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.MemModuleLoadRequest) - // required .bgs.protocol.ContentHandle handle = 1; - if (has_handle()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->handle(), target); - } - - // required bytes key = 2; - if (has_key()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->key(), target); - } - - // required bytes input = 3; - if (has_input()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 3, this->input(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.MemModuleLoadRequest) - return target; -} - -int MemModuleLoadRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.ContentHandle handle = 1; - if (has_handle()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->handle()); - } - - // required bytes key = 2; - if (has_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->key()); - } - - // required bytes input = 3; - if (has_input()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->input()); - } - - } - 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 MemModuleLoadRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemModuleLoadRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemModuleLoadRequest::MergeFrom(const MemModuleLoadRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_handle()) { - mutable_handle()->::bgs::protocol::ContentHandle::MergeFrom(from.handle()); - } - if (from.has_key()) { - set_key(from.key()); - } - if (from.has_input()) { - set_input(from.input()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemModuleLoadRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const MemModuleLoadRequest& MemModuleLoadRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_authentication_5fservice_2eproto(); + return *default_instance_; } -void MemModuleLoadRequest::CopyFrom(const MemModuleLoadRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +MemModuleLoadRequest* MemModuleLoadRequest::default_instance_ = NULL; -bool MemModuleLoadRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - if (has_handle()) { - if (!this->handle().IsInitialized()) return false; - } - return true; +MemModuleLoadRequest* MemModuleLoadRequest::New() const { + return new MemModuleLoadRequest; } void MemModuleLoadRequest::Swap(MemModuleLoadRequest* other) { if (other != this) { - std::swap(handle_, other->handle_); - std::swap(key_, other->key_); - std::swap(input_, other->input_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemModuleLoadRequest::GetMetadata() const { @@ -5764,163 +1925,9 @@ MemModuleLoadResponse* MemModuleLoadResponse::New() const { return new MemModuleLoadResponse; } -void MemModuleLoadResponse::Clear() { - if (has_data()) { - if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - data_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemModuleLoadResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.MemModuleLoadResponse) - 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 bytes data = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_data())); - } 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.authentication.v1.MemModuleLoadResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.MemModuleLoadResponse) - return false; -#undef DO_ -} - -void MemModuleLoadResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.MemModuleLoadResponse) - // required bytes data = 1; - if (has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->data(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.MemModuleLoadResponse) -} - -::google::protobuf::uint8* MemModuleLoadResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.MemModuleLoadResponse) - // required bytes data = 1; - if (has_data()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 1, this->data(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.MemModuleLoadResponse) - return target; -} - -int MemModuleLoadResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required bytes data = 1; - if (has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->data()); - } - - } - 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 MemModuleLoadResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemModuleLoadResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemModuleLoadResponse::MergeFrom(const MemModuleLoadResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_data()) { - set_data(from.data()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemModuleLoadResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemModuleLoadResponse::CopyFrom(const MemModuleLoadResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemModuleLoadResponse::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - void MemModuleLoadResponse::Swap(MemModuleLoadResponse* other) { if (other != this) { - std::swap(data_, other->data_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemModuleLoadResponse::GetMetadata() const { @@ -5992,164 +1999,9 @@ SelectGameAccountRequest* SelectGameAccountRequest::New() const { return new SelectGameAccountRequest; } -void SelectGameAccountRequest::Clear() { - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SelectGameAccountRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.SelectGameAccountRequest) - 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 game_account_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_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.authentication.v1.SelectGameAccountRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.SelectGameAccountRequest) - return false; -#undef DO_ -} - -void SelectGameAccountRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.SelectGameAccountRequest) - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_account_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.SelectGameAccountRequest) -} - -::google::protobuf::uint8* SelectGameAccountRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.SelectGameAccountRequest) - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_account_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.SelectGameAccountRequest) - return target; -} - -int SelectGameAccountRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_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 SelectGameAccountRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SelectGameAccountRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SelectGameAccountRequest::MergeFrom(const SelectGameAccountRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SelectGameAccountRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SelectGameAccountRequest::CopyFrom(const SelectGameAccountRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SelectGameAccountRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - return true; -} - void SelectGameAccountRequest::Swap(SelectGameAccountRequest* other) { if (other != this) { - std::swap(game_account_id_, other->game_account_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SelectGameAccountRequest::GetMetadata() const { @@ -6223,203 +2075,9 @@ GameAccountSelectedRequest* GameAccountSelectedRequest::New() const { return new GameAccountSelectedRequest; } -void GameAccountSelectedRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - result_ = 0u; - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountSelectedRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.GameAccountSelectedRequest) - 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 uint32 result = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &result_))); - set_has_result(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_game_account_id; - break; - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - case 2: { - if (tag == 18) { - parse_game_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_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.authentication.v1.GameAccountSelectedRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.GameAccountSelectedRequest) - return false; -#undef DO_ -} - -void GameAccountSelectedRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.GameAccountSelectedRequest) - // required uint32 result = 1; - if (has_result()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->result(), output); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.GameAccountSelectedRequest) -} - -::google::protobuf::uint8* GameAccountSelectedRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.GameAccountSelectedRequest) - // required uint32 result = 1; - if (has_result()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->result(), target); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_account_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.GameAccountSelectedRequest) - return target; -} - -int GameAccountSelectedRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 result = 1; - if (has_result()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->result()); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_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 GameAccountSelectedRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountSelectedRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountSelectedRequest::MergeFrom(const GameAccountSelectedRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_result()) { - set_result(from.result()); - } - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountSelectedRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountSelectedRequest::CopyFrom(const GameAccountSelectedRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountSelectedRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - return true; -} - void GameAccountSelectedRequest::Swap(GameAccountSelectedRequest* other) { if (other != this) { - std::swap(result_, other->result_); - std::swap(game_account_id_, other->game_account_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountSelectedRequest::GetMetadata() const { @@ -6489,155 +2147,9 @@ GenerateWebCredentialsRequest* GenerateWebCredentialsRequest::New() const { return new GenerateWebCredentialsRequest; } -void GenerateWebCredentialsRequest::Clear() { - program_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GenerateWebCredentialsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest) - 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 program = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } 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.authentication.v1.GenerateWebCredentialsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest) - return false; -#undef DO_ -} - -void GenerateWebCredentialsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest) - // optional fixed32 program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest) -} - -::google::protobuf::uint8* GenerateWebCredentialsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest) - // optional fixed32 program = 1; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->program(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest) - return target; -} - -int GenerateWebCredentialsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 program = 1; - if (has_program()) { - 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 GenerateWebCredentialsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GenerateWebCredentialsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GenerateWebCredentialsRequest::MergeFrom(const GenerateWebCredentialsRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GenerateWebCredentialsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GenerateWebCredentialsRequest::CopyFrom(const GenerateWebCredentialsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GenerateWebCredentialsRequest::IsInitialized() const { - return true; -} - void GenerateWebCredentialsRequest::Swap(GenerateWebCredentialsRequest* other) { if (other != this) { - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GenerateWebCredentialsRequest::GetMetadata() const { @@ -6711,162 +2223,9 @@ GenerateWebCredentialsResponse* GenerateWebCredentialsResponse::New() const { return new GenerateWebCredentialsResponse; } -void GenerateWebCredentialsResponse::Clear() { - if (has_web_credentials()) { - if (web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - web_credentials_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GenerateWebCredentialsResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse) - 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 bytes web_credentials = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_web_credentials())); - } 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.authentication.v1.GenerateWebCredentialsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse) - return false; -#undef DO_ -} - -void GenerateWebCredentialsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse) - // optional bytes web_credentials = 1; - if (has_web_credentials()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->web_credentials(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse) -} - -::google::protobuf::uint8* GenerateWebCredentialsResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse) - // optional bytes web_credentials = 1; - if (has_web_credentials()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 1, this->web_credentials(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse) - return target; -} - -int GenerateWebCredentialsResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bytes web_credentials = 1; - if (has_web_credentials()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->web_credentials()); - } - - } - 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 GenerateWebCredentialsResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GenerateWebCredentialsResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GenerateWebCredentialsResponse::MergeFrom(const GenerateWebCredentialsResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_web_credentials()) { - set_web_credentials(from.web_credentials()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GenerateWebCredentialsResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GenerateWebCredentialsResponse::CopyFrom(const GenerateWebCredentialsResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GenerateWebCredentialsResponse::IsInitialized() const { - return true; -} - void GenerateWebCredentialsResponse::Swap(GenerateWebCredentialsResponse* other) { if (other != this) { - std::swap(web_credentials_, other->web_credentials_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GenerateWebCredentialsResponse::GetMetadata() const { @@ -6940,162 +2299,9 @@ VerifyWebCredentialsRequest* VerifyWebCredentialsRequest::New() const { return new VerifyWebCredentialsRequest; } -void VerifyWebCredentialsRequest::Clear() { - if (has_web_credentials()) { - if (web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - web_credentials_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool VerifyWebCredentialsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest) - 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 bytes web_credentials = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_web_credentials())); - } 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.authentication.v1.VerifyWebCredentialsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest) - return false; -#undef DO_ -} - -void VerifyWebCredentialsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest) - // optional bytes web_credentials = 1; - if (has_web_credentials()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->web_credentials(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest) -} - -::google::protobuf::uint8* VerifyWebCredentialsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest) - // optional bytes web_credentials = 1; - if (has_web_credentials()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 1, this->web_credentials(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest) - return target; -} - -int VerifyWebCredentialsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bytes web_credentials = 1; - if (has_web_credentials()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->web_credentials()); - } - - } - 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 VerifyWebCredentialsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const VerifyWebCredentialsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void VerifyWebCredentialsRequest::MergeFrom(const VerifyWebCredentialsRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_web_credentials()) { - set_web_credentials(from.web_credentials()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void VerifyWebCredentialsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VerifyWebCredentialsRequest::CopyFrom(const VerifyWebCredentialsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VerifyWebCredentialsRequest::IsInitialized() const { - return true; -} - void VerifyWebCredentialsRequest::Swap(VerifyWebCredentialsRequest* other) { if (other != this) { - std::swap(web_credentials_, other->web_credentials_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata VerifyWebCredentialsRequest::GetMetadata() const { @@ -7108,7 +2314,7 @@ void VerifyWebCredentialsRequest::Swap(VerifyWebCredentialsRequest* other) { // =================================================================== -AuthenticationListener::AuthenticationListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +AuthenticationListener::AuthenticationListener(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } AuthenticationListener::~AuthenticationListener() { @@ -7120,14 +2326,12 @@ google::protobuf::ServiceDescriptor const* AuthenticationListener::descriptor() } void AuthenticationListener::OnModuleLoad(::bgs::protocol::authentication::v1::ModuleLoadRequest const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnModuleLoad(bgs.protocol.authentication.v1.ModuleLoadRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnModuleLoad", "bgs.protocol.authentication.v1.ModuleLoadRequest", request); SendRequest(service_hash_, 1 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AuthenticationListener::OnModuleMessage(::bgs::protocol::authentication::v1::ModuleMessageRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnModuleMessage(bgs.protocol.authentication.v1.ModuleMessageRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnModuleMessage", "bgs.protocol.authentication.v1.ModuleMessageRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::NoData response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -7137,20 +2341,17 @@ void AuthenticationListener::OnModuleMessage(::bgs::protocol::authentication::v1 } void AuthenticationListener::OnServerStateChange(::bgs::protocol::authentication::v1::ServerStateChangeRequest const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnServerStateChange(bgs.protocol.authentication.v1.ServerStateChangeRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnServerStateChange", "bgs.protocol.authentication.v1.ServerStateChangeRequest", request); SendRequest(service_hash_, 4 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AuthenticationListener::OnLogonComplete(::bgs::protocol::authentication::v1::LogonResult const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnLogonComplete(bgs.protocol.authentication.v1.LogonResult{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnLogonComplete", "bgs.protocol.authentication.v1.LogonResult", request); SendRequest(service_hash_, 5 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AuthenticationListener::OnMemModuleLoad(::bgs::protocol::authentication::v1::MemModuleLoadRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnMemModuleLoad(bgs.protocol.authentication.v1.MemModuleLoadRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnMemModuleLoad", "bgs.protocol.authentication.v1.MemModuleLoadRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::authentication::v1::MemModuleLoadResponse response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -7160,43 +2361,37 @@ void AuthenticationListener::OnMemModuleLoad(::bgs::protocol::authentication::v1 } void AuthenticationListener::OnLogonUpdate(::bgs::protocol::authentication::v1::LogonUpdateRequest const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnLogonUpdate(bgs.protocol.authentication.v1.LogonUpdateRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnLogonUpdate", "bgs.protocol.authentication.v1.LogonUpdateRequest", request); SendRequest(service_hash_, 10 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AuthenticationListener::OnVersionInfoUpdated(::bgs::protocol::authentication::v1::VersionInfoNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnVersionInfoUpdated(bgs.protocol.authentication.v1.VersionInfoNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnVersionInfoUpdated", "bgs.protocol.authentication.v1.VersionInfoNotification", request); SendRequest(service_hash_, 11 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AuthenticationListener::OnLogonQueueUpdate(::bgs::protocol::authentication::v1::LogonQueueUpdateRequest const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnLogonQueueUpdate(bgs.protocol.authentication.v1.LogonQueueUpdateRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnLogonQueueUpdate", "bgs.protocol.authentication.v1.LogonQueueUpdateRequest", request); SendRequest(service_hash_, 12 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AuthenticationListener::OnLogonQueueEnd(::bgs::protocol::NoData const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnLogonQueueEnd(bgs.protocol.NoData{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnLogonQueueEnd", "bgs.protocol.NoData", request); SendRequest(service_hash_, 13 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void AuthenticationListener::OnGameAccountSelected(::bgs::protocol::authentication::v1::GameAccountSelectedRequest const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AuthenticationListener.OnGameAccountSelected(bgs.protocol.authentication.v1.GameAccountSelectedRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("AuthenticationListener.OnGameAccountSelected", "bgs.protocol.authentication.v1.GameAccountSelectedRequest", request); SendRequest(service_hash_, 14 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } -void AuthenticationListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) { - TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", - GetCallerInfo().c_str(), methodId); +void AuthenticationListener::CallServerMethod(uint32 /*token*/, uint32 methodId, MessageBuffer /*buffer*/) { + LogDisallowedMethod(methodId); } // =================================================================== -AuthenticationService::AuthenticationService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +AuthenticationService::AuthenticationService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } AuthenticationService::~AuthenticationService() { @@ -7209,269 +2404,197 @@ google::protobuf::ServiceDescriptor const* AuthenticationService::descriptor() { void AuthenticationService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::authentication::v1::LogonRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AuthenticationService.Logon server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.Logon(bgs.protocol.authentication.v1.LogonRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - AuthenticationService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.Logon() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleLogon(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleLogon(token, methodId, buffer); break; - } - case 2: { - ::bgs::protocol::authentication::v1::ModuleNotification request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AuthenticationService.ModuleNotify server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.ModuleNotify(bgs.protocol.authentication.v1.ModuleNotification{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - AuthenticationService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.ModuleNotify() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleModuleNotify(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 2: + ParseAndHandleModuleNotify(token, methodId, buffer); break; - } - case 3: { - ::bgs::protocol::authentication::v1::ModuleMessageRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AuthenticationService.ModuleMessage server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.ModuleMessage(bgs.protocol.authentication.v1.ModuleMessageRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - AuthenticationService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.ModuleMessage() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleModuleMessage(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 3: + ParseAndHandleModuleMessage(token, methodId, buffer); break; - } - case 4: { - ::bgs::protocol::EntityId request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AuthenticationService.SelectGameAccount_DEPRECATED server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.SelectGameAccount_DEPRECATED(bgs.protocol.EntityId{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - AuthenticationService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.SelectGameAccount_DEPRECATED() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSelectGameAccount_DEPRECATED(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 4: + ParseAndHandleSelectGameAccount_DEPRECATED(token, methodId, buffer); break; - } - case 5: { - ::bgs::protocol::authentication::v1::GenerateSSOTokenRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AuthenticationService.GenerateSSOToken server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.GenerateSSOToken(bgs.protocol.authentication.v1.GenerateSSOTokenRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::authentication::v1::GenerateSSOTokenResponse::descriptor()); - AuthenticationService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.GenerateSSOToken() returned bgs.protocol.authentication.v1.GenerateSSOTokenResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::authentication::v1::GenerateSSOTokenResponse response; - uint32 status = HandleGenerateSSOToken(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 5: + ParseAndHandleGenerateSSOToken(token, methodId, buffer); break; - } - case 6: { - ::bgs::protocol::authentication::v1::SelectGameAccountRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AuthenticationService.SelectGameAccount server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.SelectGameAccount(bgs.protocol.authentication.v1.SelectGameAccountRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - AuthenticationService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.SelectGameAccount() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSelectGameAccount(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 6: + ParseAndHandleSelectGameAccount(token, methodId, buffer); break; - } - case 7: { - ::bgs::protocol::authentication::v1::VerifyWebCredentialsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AuthenticationService.VerifyWebCredentials server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.VerifyWebCredentials(bgs.protocol.authentication.v1.VerifyWebCredentialsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - AuthenticationService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.VerifyWebCredentials() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleVerifyWebCredentials(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 7: + ParseAndHandleVerifyWebCredentials(token, methodId, buffer); break; - } - case 8: { - ::bgs::protocol::authentication::v1::GenerateWebCredentialsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AuthenticationService.GenerateWebCredentials server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.GenerateWebCredentials(bgs.protocol.authentication.v1.GenerateWebCredentialsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse::descriptor()); - AuthenticationService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AuthenticationService.GenerateWebCredentials() returned bgs.protocol.authentication.v1.GenerateWebCredentialsResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse response; - uint32 status = HandleGenerateWebCredentials(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 8: + ParseAndHandleGenerateWebCredentials(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 AuthenticationService::HandleLogon(::bgs::protocol::authentication::v1::LogonRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AuthenticationService.Logon({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AuthenticationService::HandleLogon(::bgs::protocol::authentication::v1::LogonRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AuthenticationService.Logon", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AuthenticationService::HandleModuleNotify(::bgs::protocol::authentication::v1::ModuleNotification const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AuthenticationService.ModuleNotify({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AuthenticationService::HandleModuleNotify(::bgs::protocol::authentication::v1::ModuleNotification const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AuthenticationService.ModuleNotify", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AuthenticationService::HandleModuleMessage(::bgs::protocol::authentication::v1::ModuleMessageRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AuthenticationService.ModuleMessage({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AuthenticationService::HandleModuleMessage(::bgs::protocol::authentication::v1::ModuleMessageRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AuthenticationService.ModuleMessage", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AuthenticationService::HandleSelectGameAccount_DEPRECATED(::bgs::protocol::EntityId const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AuthenticationService.SelectGameAccount_DEPRECATED({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AuthenticationService::HandleSelectGameAccount_DEPRECATED(::bgs::protocol::EntityId const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AuthenticationService.SelectGameAccount_DEPRECATED", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AuthenticationService::HandleGenerateSSOToken(::bgs::protocol::authentication::v1::GenerateSSOTokenRequest const* request, ::bgs::protocol::authentication::v1::GenerateSSOTokenResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AuthenticationService.GenerateSSOToken({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AuthenticationService::HandleGenerateSSOToken(::bgs::protocol::authentication::v1::GenerateSSOTokenRequest const* request, ::bgs::protocol::authentication::v1::GenerateSSOTokenResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AuthenticationService.GenerateSSOToken", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AuthenticationService::HandleSelectGameAccount(::bgs::protocol::authentication::v1::SelectGameAccountRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AuthenticationService.SelectGameAccount({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AuthenticationService::HandleSelectGameAccount(::bgs::protocol::authentication::v1::SelectGameAccountRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AuthenticationService.SelectGameAccount", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AuthenticationService::HandleVerifyWebCredentials(::bgs::protocol::authentication::v1::VerifyWebCredentialsRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AuthenticationService.VerifyWebCredentials({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AuthenticationService::HandleVerifyWebCredentials(::bgs::protocol::authentication::v1::VerifyWebCredentialsRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AuthenticationService.VerifyWebCredentials", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 AuthenticationService::HandleGenerateWebCredentials(::bgs::protocol::authentication::v1::GenerateWebCredentialsRequest const* request, ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AuthenticationService.GenerateWebCredentials({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 AuthenticationService::HandleGenerateWebCredentials(::bgs::protocol::authentication::v1::GenerateWebCredentialsRequest const* request, ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("AuthenticationService.GenerateWebCredentials", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void AuthenticationService::ParseAndHandleLogon(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::authentication::v1::LogonRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AuthenticationService.Logon"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AuthenticationService.Logon", "bgs.protocol.authentication.v1.LogonRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AuthenticationService.Logon", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleLogon(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AuthenticationService::ParseAndHandleModuleNotify(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::authentication::v1::ModuleNotification request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AuthenticationService.ModuleNotify"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AuthenticationService.ModuleNotify", "bgs.protocol.authentication.v1.ModuleNotification", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AuthenticationService.ModuleNotify", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleModuleNotify(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AuthenticationService::ParseAndHandleModuleMessage(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::authentication::v1::ModuleMessageRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AuthenticationService.ModuleMessage"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AuthenticationService.ModuleMessage", "bgs.protocol.authentication.v1.ModuleMessageRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AuthenticationService.ModuleMessage", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleModuleMessage(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AuthenticationService::ParseAndHandleSelectGameAccount_DEPRECATED(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::EntityId request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AuthenticationService.SelectGameAccount_DEPRECATED"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AuthenticationService.SelectGameAccount_DEPRECATED", "bgs.protocol.EntityId", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AuthenticationService.SelectGameAccount_DEPRECATED", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSelectGameAccount_DEPRECATED(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AuthenticationService::ParseAndHandleGenerateSSOToken(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::authentication::v1::GenerateSSOTokenRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AuthenticationService.GenerateSSOToken"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AuthenticationService.GenerateSSOToken", "bgs.protocol.authentication.v1.GenerateSSOTokenRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AuthenticationService.GenerateSSOToken", ::bgs::protocol::authentication::v1::GenerateSSOTokenResponse::descriptor()); + ::bgs::protocol::authentication::v1::GenerateSSOTokenResponse response; + uint32 status = HandleGenerateSSOToken(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AuthenticationService::ParseAndHandleSelectGameAccount(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::authentication::v1::SelectGameAccountRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AuthenticationService.SelectGameAccount"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AuthenticationService.SelectGameAccount", "bgs.protocol.authentication.v1.SelectGameAccountRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AuthenticationService.SelectGameAccount", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSelectGameAccount(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AuthenticationService::ParseAndHandleVerifyWebCredentials(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::authentication::v1::VerifyWebCredentialsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AuthenticationService.VerifyWebCredentials"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AuthenticationService.VerifyWebCredentials", "bgs.protocol.authentication.v1.VerifyWebCredentialsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AuthenticationService.VerifyWebCredentials", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleVerifyWebCredentials(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void AuthenticationService::ParseAndHandleGenerateWebCredentials(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::authentication::v1::GenerateWebCredentialsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("AuthenticationService.GenerateWebCredentials"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("AuthenticationService.GenerateWebCredentials", "bgs.protocol.authentication.v1.GenerateWebCredentialsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "AuthenticationService.GenerateWebCredentials", ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse::descriptor()); + ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse response; + uint32 status = HandleGenerateWebCredentials(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/authentication_service.pb.h b/src/server/proto/Client/authentication_service.pb.h index 6214b534c7c..78f4e5f0ac2 100644 --- a/src/server/proto/Client/authentication_service.pb.h +++ b/src/server/proto/Client/authentication_service.pb.h @@ -95,19 +95,6 @@ class TC_PROTO_API ModuleLoadRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ModuleLoadRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ModuleLoadRequest& from); - void MergeFrom(const ModuleLoadRequest& 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(); @@ -191,19 +178,6 @@ class TC_PROTO_API ModuleNotification : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ModuleNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ModuleNotification& from); - void MergeFrom(const ModuleNotification& 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(); @@ -280,19 +254,6 @@ class TC_PROTO_API ModuleMessageRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ModuleMessageRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ModuleMessageRequest& from); - void MergeFrom(const ModuleMessageRequest& 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(); @@ -374,19 +335,6 @@ class TC_PROTO_API LogonRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- LogonRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LogonRequest& from); - void MergeFrom(const LogonRequest& 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(); @@ -608,19 +556,6 @@ class TC_PROTO_API LogonResult : public ::google::protobuf::Message { // implements Message ---------------------------------------------- LogonResult* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LogonResult& from); - void MergeFrom(const LogonResult& 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(); @@ -820,19 +755,6 @@ class TC_PROTO_API GenerateSSOTokenRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- GenerateSSOTokenRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GenerateSSOTokenRequest& from); - void MergeFrom(const GenerateSSOTokenRequest& 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(); @@ -899,19 +821,6 @@ class TC_PROTO_API GenerateSSOTokenResponse : public ::google::protobuf::Message // implements Message ---------------------------------------------- GenerateSSOTokenResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GenerateSSOTokenResponse& from); - void MergeFrom(const GenerateSSOTokenResponse& 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(); @@ -998,19 +907,6 @@ class TC_PROTO_API LogonUpdateRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- LogonUpdateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LogonUpdateRequest& from); - void MergeFrom(const LogonUpdateRequest& 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(); @@ -1077,19 +973,6 @@ class TC_PROTO_API LogonQueueUpdateRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- LogonQueueUpdateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LogonQueueUpdateRequest& from); - void MergeFrom(const LogonQueueUpdateRequest& 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(); @@ -1176,19 +1059,6 @@ class TC_PROTO_API AccountSettingsNotification : public ::google::protobuf::Mess // implements Message ---------------------------------------------- AccountSettingsNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AccountSettingsNotification& from); - void MergeFrom(const AccountSettingsNotification& 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(); @@ -1298,19 +1168,6 @@ class TC_PROTO_API ServerStateChangeRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- ServerStateChangeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ServerStateChangeRequest& from); - void MergeFrom(const ServerStateChangeRequest& 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(); @@ -1387,19 +1244,6 @@ class TC_PROTO_API VersionInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- VersionInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VersionInfo& from); - void MergeFrom(const VersionInfo& 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(); @@ -1501,19 +1345,6 @@ class TC_PROTO_API VersionInfoNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- VersionInfoNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VersionInfoNotification& from); - void MergeFrom(const VersionInfoNotification& 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(); @@ -1582,19 +1413,6 @@ class TC_PROTO_API MemModuleLoadRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemModuleLoadRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemModuleLoadRequest& from); - void MergeFrom(const MemModuleLoadRequest& 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(); @@ -1693,19 +1511,6 @@ class TC_PROTO_API MemModuleLoadResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemModuleLoadResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemModuleLoadResponse& from); - void MergeFrom(const MemModuleLoadResponse& 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(); @@ -1777,19 +1582,6 @@ class TC_PROTO_API SelectGameAccountRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- SelectGameAccountRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SelectGameAccountRequest& from); - void MergeFrom(const SelectGameAccountRequest& 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(); @@ -1858,19 +1650,6 @@ class TC_PROTO_API GameAccountSelectedRequest : public ::google::protobuf::Messa // implements Message ---------------------------------------------- GameAccountSelectedRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountSelectedRequest& from); - void MergeFrom(const GameAccountSelectedRequest& 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(); @@ -1949,19 +1728,6 @@ class TC_PROTO_API GenerateWebCredentialsRequest : public ::google::protobuf::Me // implements Message ---------------------------------------------- GenerateWebCredentialsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GenerateWebCredentialsRequest& from); - void MergeFrom(const GenerateWebCredentialsRequest& 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(); @@ -2028,19 +1794,6 @@ class TC_PROTO_API GenerateWebCredentialsResponse : public ::google::protobuf::M // implements Message ---------------------------------------------- GenerateWebCredentialsResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GenerateWebCredentialsResponse& from); - void MergeFrom(const GenerateWebCredentialsResponse& 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(); @@ -2112,19 +1865,6 @@ class TC_PROTO_API VerifyWebCredentialsRequest : public ::google::protobuf::Mess // implements Message ---------------------------------------------- VerifyWebCredentialsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VerifyWebCredentialsRequest& from); - void MergeFrom(const VerifyWebCredentialsRequest& 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(); @@ -2173,6 +1913,10 @@ class TC_PROTO_API AuthenticationListener : public ServiceBase public: explicit AuthenticationListener(bool use_original_hash); + AuthenticationListener(AuthenticationListener const&) = delete; + AuthenticationListener(AuthenticationListener&&) = delete; + AuthenticationListener& operator=(AuthenticationListener const&) = delete; + AuthenticationListener& operator=(AuthenticationListener&&) = delete; virtual ~AuthenticationListener(); typedef std::integral_constant OriginalHash; @@ -2193,11 +1937,6 @@ class TC_PROTO_API AuthenticationListener : public ServiceBase void OnGameAccountSelected(::bgs::protocol::authentication::v1::GameAccountSelectedRequest const* request, bool client = false, bool server = false); void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final; - - private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AuthenticationListener); }; // ------------------------------------------------------------------- @@ -2207,6 +1946,10 @@ class TC_PROTO_API AuthenticationService : public ServiceBase public: explicit AuthenticationService(bool use_original_hash); + AuthenticationService(AuthenticationService const&) = delete; + AuthenticationService(AuthenticationService&&) = delete; + AuthenticationService& operator=(AuthenticationService const&) = delete; + AuthenticationService& operator=(AuthenticationService&&) = delete; virtual ~AuthenticationService(); typedef std::integral_constant OriginalHash; @@ -2228,9 +1971,14 @@ class TC_PROTO_API AuthenticationService : public ServiceBase virtual uint32 HandleGenerateWebCredentials(::bgs::protocol::authentication::v1::GenerateWebCredentialsRequest const* request, ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AuthenticationService); + void ParseAndHandleLogon(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleModuleNotify(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleModuleMessage(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSelectGameAccount_DEPRECATED(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGenerateSSOToken(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSelectGameAccount(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleVerifyWebCredentials(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGenerateWebCredentials(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/challenge_service.pb.cc b/src/server/proto/Client/challenge_service.pb.cc index e022f8653fc..53a4a364c90 100644 --- a/src/server/proto/Client/challenge_service.pb.cc +++ b/src/server/proto/Client/challenge_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "challenge_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -125,7 +122,7 @@ void protobuf_AddDesc_challenge_5fservice_2eproto() { "protocol.challenge.v1.ChallengeExternalR" "esult\032\031.bgs.protocol.NO_RESPONSE\"\006\202\371+\002\010\004" "\0323\202\371+)\n\'bnet.protocol.challenge.Challeng" - "eNotify\212\371+\002\010\001B\005H\001\200\001\000", 540); + "eNotify\212\371+\002\010\001B\005H\002\200\001\000", 540); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "challenge_service.proto", &protobuf_RegisterTypes); ChallengeExternalRequest::default_instance_ = new ChallengeExternalRequest(); @@ -214,272 +211,9 @@ ChallengeExternalRequest* ChallengeExternalRequest::New() const { return new ChallengeExternalRequest; } -void ChallengeExternalRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_request_token()) { - if (request_token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - request_token_->clear(); - } - } - if (has_payload_type()) { - if (payload_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - payload_type_->clear(); - } - } - if (has_payload()) { - if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - payload_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ChallengeExternalRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.challenge.v1.ChallengeExternalRequest) - 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 request_token = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_request_token())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->request_token().data(), this->request_token().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "request_token"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_payload_type; - break; - } - - // optional string payload_type = 2; - case 2: { - if (tag == 18) { - parse_payload_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_payload_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->payload_type().data(), this->payload_type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "payload_type"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_payload; - break; - } - - // optional bytes payload = 3; - case 3: { - if (tag == 26) { - parse_payload: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_payload())); - } 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.challenge.v1.ChallengeExternalRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.challenge.v1.ChallengeExternalRequest) - return false; -#undef DO_ -} - -void ChallengeExternalRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.challenge.v1.ChallengeExternalRequest) - // optional string request_token = 1; - if (has_request_token()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->request_token().data(), this->request_token().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "request_token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->request_token(), output); - } - - // optional string payload_type = 2; - if (has_payload_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->payload_type().data(), this->payload_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "payload_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->payload_type(), output); - } - - // optional bytes payload = 3; - if (has_payload()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 3, this->payload(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.challenge.v1.ChallengeExternalRequest) -} - -::google::protobuf::uint8* ChallengeExternalRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.challenge.v1.ChallengeExternalRequest) - // optional string request_token = 1; - if (has_request_token()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->request_token().data(), this->request_token().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "request_token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->request_token(), target); - } - - // optional string payload_type = 2; - if (has_payload_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->payload_type().data(), this->payload_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "payload_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->payload_type(), target); - } - - // optional bytes payload = 3; - if (has_payload()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 3, this->payload(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.challenge.v1.ChallengeExternalRequest) - return target; -} - -int ChallengeExternalRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string request_token = 1; - if (has_request_token()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->request_token()); - } - - // optional string payload_type = 2; - if (has_payload_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->payload_type()); - } - - // optional bytes payload = 3; - if (has_payload()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->payload()); - } - - } - 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 ChallengeExternalRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ChallengeExternalRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ChallengeExternalRequest::MergeFrom(const ChallengeExternalRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_request_token()) { - set_request_token(from.request_token()); - } - if (from.has_payload_type()) { - set_payload_type(from.payload_type()); - } - if (from.has_payload()) { - set_payload(from.payload()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ChallengeExternalRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ChallengeExternalRequest::CopyFrom(const ChallengeExternalRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChallengeExternalRequest::IsInitialized() const { - return true; -} - void ChallengeExternalRequest::Swap(ChallengeExternalRequest* other) { if (other != this) { - std::swap(request_token_, other->request_token_); - std::swap(payload_type_, other->payload_type_); - std::swap(payload_, other->payload_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ChallengeExternalRequest::GetMetadata() const { @@ -555,211 +289,9 @@ ChallengeExternalResult* ChallengeExternalResult::New() const { return new ChallengeExternalResult; } -void ChallengeExternalResult::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_request_token()) { - if (request_token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - request_token_->clear(); - } - } - passed_ = true; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ChallengeExternalResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.challenge.v1.ChallengeExternalResult) - 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 request_token = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_request_token())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->request_token().data(), this->request_token().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "request_token"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_passed; - break; - } - - // optional bool passed = 2 [default = true]; - case 2: { - if (tag == 16) { - parse_passed: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &passed_))); - set_has_passed(); - } 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.challenge.v1.ChallengeExternalResult) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.challenge.v1.ChallengeExternalResult) - return false; -#undef DO_ -} - -void ChallengeExternalResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.challenge.v1.ChallengeExternalResult) - // optional string request_token = 1; - if (has_request_token()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->request_token().data(), this->request_token().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "request_token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->request_token(), output); - } - - // optional bool passed = 2 [default = true]; - if (has_passed()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->passed(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.challenge.v1.ChallengeExternalResult) -} - -::google::protobuf::uint8* ChallengeExternalResult::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.challenge.v1.ChallengeExternalResult) - // optional string request_token = 1; - if (has_request_token()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->request_token().data(), this->request_token().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "request_token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->request_token(), target); - } - - // optional bool passed = 2 [default = true]; - if (has_passed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->passed(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.challenge.v1.ChallengeExternalResult) - return target; -} - -int ChallengeExternalResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string request_token = 1; - if (has_request_token()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->request_token()); - } - - // optional bool passed = 2 [default = true]; - if (has_passed()) { - 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 ChallengeExternalResult::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ChallengeExternalResult* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ChallengeExternalResult::MergeFrom(const ChallengeExternalResult& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_request_token()) { - set_request_token(from.request_token()); - } - if (from.has_passed()) { - set_passed(from.passed()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ChallengeExternalResult::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ChallengeExternalResult::CopyFrom(const ChallengeExternalResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChallengeExternalResult::IsInitialized() const { - return true; -} - void ChallengeExternalResult::Swap(ChallengeExternalResult* other) { if (other != this) { - std::swap(request_token_, other->request_token_); - std::swap(passed_, other->passed_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ChallengeExternalResult::GetMetadata() const { @@ -772,7 +304,7 @@ void ChallengeExternalResult::Swap(ChallengeExternalResult* other) { // =================================================================== -ChallengeListener::ChallengeListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ChallengeListener::ChallengeListener(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ChallengeListener::~ChallengeListener() { @@ -784,20 +316,17 @@ google::protobuf::ServiceDescriptor const* ChallengeListener::descriptor() { } void ChallengeListener::OnExternalChallenge(::bgs::protocol::challenge::v1::ChallengeExternalRequest const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ChallengeListener.OnExternalChallenge(bgs.protocol.challenge.v1.ChallengeExternalRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ChallengeListener.OnExternalChallenge", "bgs.protocol.challenge.v1.ChallengeExternalRequest", request); SendRequest(service_hash_, 3 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ChallengeListener::OnExternalChallengeResult(::bgs::protocol::challenge::v1::ChallengeExternalResult const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ChallengeListener.OnExternalChallengeResult(bgs.protocol.challenge.v1.ChallengeExternalResult{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ChallengeListener.OnExternalChallengeResult", "bgs.protocol.challenge.v1.ChallengeExternalResult", request); SendRequest(service_hash_, 4 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } -void ChallengeListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) { - TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", - GetCallerInfo().c_str(), methodId); +void ChallengeListener::CallServerMethod(uint32 /*token*/, uint32 methodId, MessageBuffer /*buffer*/) { + LogDisallowedMethod(methodId); } // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/challenge_service.pb.h b/src/server/proto/Client/challenge_service.pb.h index 255329673bf..d62ccd61151 100644 --- a/src/server/proto/Client/challenge_service.pb.h +++ b/src/server/proto/Client/challenge_service.pb.h @@ -74,19 +74,6 @@ class TC_PROTO_API ChallengeExternalRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- ChallengeExternalRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ChallengeExternalRequest& from); - void MergeFrom(const ChallengeExternalRequest& 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(); @@ -188,19 +175,6 @@ class TC_PROTO_API ChallengeExternalResult : public ::google::protobuf::Message // implements Message ---------------------------------------------- ChallengeExternalResult* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ChallengeExternalResult& from); - void MergeFrom(const ChallengeExternalResult& 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(); @@ -259,6 +233,10 @@ class TC_PROTO_API ChallengeListener : public ServiceBase public: explicit ChallengeListener(bool use_original_hash); + ChallengeListener(ChallengeListener const&) = delete; + ChallengeListener(ChallengeListener&&) = delete; + ChallengeListener& operator=(ChallengeListener const&) = delete; + ChallengeListener& operator=(ChallengeListener&&) = delete; virtual ~ChallengeListener(); typedef std::integral_constant OriginalHash; @@ -271,11 +249,6 @@ class TC_PROTO_API ChallengeListener : public ServiceBase void OnExternalChallengeResult(::bgs::protocol::challenge::v1::ChallengeExternalResult const* request, bool client = false, bool server = false); void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final; - - private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ChallengeListener); }; // =================================================================== diff --git a/src/server/proto/Client/channel_types.pb.cc b/src/server/proto/Client/channel_types.pb.cc index 90e28d571f8..e89e077498b 100644 --- a/src/server/proto/Client/channel_types.pb.cc +++ b/src/server/proto/Client/channel_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "channel_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -336,7 +334,7 @@ void protobuf_AddDesc_channel_5ftypes_2eproto() { "dB\002\030\001\022@\n\014game_account\030\002 \001(\0132*.bgs.protoc" "ol.account.v1.GameAccountHandle\022(\n\007proce" "ss\030\003 \001(\0132\027.bgs.protocol.ProcessId:\006\202\371+\002\020" - "\001B\002H\001P\000", 1767); + "\001B\002H\002P\000", 1767); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "channel_types.proto", &protobuf_RegisterTypes); Message::default_instance_ = new Message(); @@ -426,175 +424,9 @@ Message* Message::New() const { return new Message; } -void Message::Clear() { - _extensions_.Clear(); - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Message::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.Message) - 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.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) 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; - } - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.channel.v1.Message) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.Message) - return false; -#undef DO_ -} - -void Message::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.Message) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - // Extension range [100, 10000) - _extensions_.SerializeWithCachedSizes( - 100, 10000, output); - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.Message) -} - -::google::protobuf::uint8* Message::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.Message) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(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); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.channel.v1.Message) - return target; -} - -int Message::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.Attribute attribute = 1; - 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)); - } - - total_size += _extensions_.ByteSize(); - - 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 Message::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Message* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Message::MergeFrom(const Message& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - _extensions_.MergeFrom(from._extensions_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Message::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Message::CopyFrom(const Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Message::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - - if (!_extensions_.IsInitialized()) return false; return true; -} - void Message::Swap(Message* other) { if (other != this) { - 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_); - _extensions_.Swap(&other->_extensions_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Message::GetMetadata() const { @@ -687,468 +519,9 @@ ListChannelsOptions* ListChannelsOptions::New() const { return new ListChannelsOptions; } -void ListChannelsOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(program_, locale_); - start_index_ = 0u; - max_results_ = 16u; - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - capacity_full_ = 0u; - if (has_attribute_filter()) { - if (attribute_filter_ != NULL) attribute_filter_->::bgs::protocol::AttributeFilter::Clear(); - } - if (has_channel_type()) { - if (channel_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - channel_type_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ListChannelsOptions::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.ListChannelsOptions) - 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 start_index = 1 [default = 0]; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &start_index_))); - set_has_start_index(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_max_results; - break; - } - - // optional uint32 max_results = 2 [default = 16]; - case 2: { - if (tag == 16) { - parse_max_results: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_results_))); - set_has_max_results(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_name; - break; - } - - // optional string name = 3; - case 3: { - if (tag == 26) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(37)) goto parse_program; - break; - } - - // optional fixed32 program = 4; - case 4: { - if (tag == 37) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_locale; - break; - } - - // optional fixed32 locale = 5; - case 5: { - if (tag == 45) { - 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(48)) goto parse_capacity_full; - break; - } - - // optional uint32 capacity_full = 6; - case 6: { - if (tag == 48) { - parse_capacity_full: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &capacity_full_))); - set_has_capacity_full(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_attribute_filter; - break; - } - - // required .bgs.protocol.AttributeFilter attribute_filter = 7; - case 7: { - if (tag == 58) { - parse_attribute_filter: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_attribute_filter())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_channel_type; - break; - } - - // optional string channel_type = 8; - case 8: { - if (tag == 66) { - parse_channel_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_channel_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_type().data(), this->channel_type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "channel_type"); - } 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.ListChannelsOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.ListChannelsOptions) - return false; -#undef DO_ -} - -void ListChannelsOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.ListChannelsOptions) - // optional uint32 start_index = 1 [default = 0]; - if (has_start_index()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->start_index(), output); - } - - // optional uint32 max_results = 2 [default = 16]; - if (has_max_results()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->max_results(), output); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - // optional fixed32 program = 4; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(4, this->program(), output); - } - - // optional fixed32 locale = 5; - if (has_locale()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(5, this->locale(), output); - } - - // optional uint32 capacity_full = 6; - if (has_capacity_full()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->capacity_full(), output); - } - - // required .bgs.protocol.AttributeFilter attribute_filter = 7; - if (has_attribute_filter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->attribute_filter(), output); - } - - // optional string channel_type = 8; - if (has_channel_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_type().data(), this->channel_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "channel_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->channel_type(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.ListChannelsOptions) -} - -::google::protobuf::uint8* ListChannelsOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.ListChannelsOptions) - // optional uint32 start_index = 1 [default = 0]; - if (has_start_index()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->start_index(), target); - } - - // optional uint32 max_results = 2 [default = 16]; - if (has_max_results()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->max_results(), target); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), target); - } - - // optional fixed32 program = 4; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(4, this->program(), target); - } - - // optional fixed32 locale = 5; - if (has_locale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(5, this->locale(), target); - } - - // optional uint32 capacity_full = 6; - if (has_capacity_full()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->capacity_full(), target); - } - - // required .bgs.protocol.AttributeFilter attribute_filter = 7; - if (has_attribute_filter()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->attribute_filter(), target); - } - - // optional string channel_type = 8; - if (has_channel_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_type().data(), this->channel_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "channel_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->channel_type(), 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.ListChannelsOptions) - return target; -} - -int ListChannelsOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 start_index = 1 [default = 0]; - if (has_start_index()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->start_index()); - } - - // optional uint32 max_results = 2 [default = 16]; - if (has_max_results()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_results()); - } - - // optional string name = 3; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional fixed32 program = 4; - if (has_program()) { - total_size += 1 + 4; - } - - // optional fixed32 locale = 5; - if (has_locale()) { - total_size += 1 + 4; - } - - // optional uint32 capacity_full = 6; - if (has_capacity_full()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->capacity_full()); - } - - // required .bgs.protocol.AttributeFilter attribute_filter = 7; - if (has_attribute_filter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->attribute_filter()); - } - - // optional string channel_type = 8; - if (has_channel_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->channel_type()); - } - - } - 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 ListChannelsOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ListChannelsOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ListChannelsOptions::MergeFrom(const ListChannelsOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_start_index()) { - set_start_index(from.start_index()); - } - if (from.has_max_results()) { - set_max_results(from.max_results()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_locale()) { - set_locale(from.locale()); - } - if (from.has_capacity_full()) { - set_capacity_full(from.capacity_full()); - } - if (from.has_attribute_filter()) { - mutable_attribute_filter()->::bgs::protocol::AttributeFilter::MergeFrom(from.attribute_filter()); - } - if (from.has_channel_type()) { - set_channel_type(from.channel_type()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ListChannelsOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListChannelsOptions::CopyFrom(const ListChannelsOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListChannelsOptions::IsInitialized() const { - if ((_has_bits_[0] & 0x00000040) != 0x00000040) return false; - if (has_attribute_filter()) { - if (!this->attribute_filter().IsInitialized()) return false; - } - return true; -} - void ListChannelsOptions::Swap(ListChannelsOptions* other) { if (other != this) { - std::swap(start_index_, other->start_index_); - std::swap(max_results_, other->max_results_); - std::swap(name_, other->name_); - std::swap(program_, other->program_); - std::swap(locale_, other->locale_); - std::swap(capacity_full_, other->capacity_full_); - std::swap(attribute_filter_, other->attribute_filter_); - std::swap(channel_type_, other->channel_type_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ListChannelsOptions::GetMetadata() const { @@ -1226,246 +599,9 @@ ChannelDescription* ChannelDescription::New() const { return new ChannelDescription; } -void ChannelDescription::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_channel_id()) { - if (channel_id_ != NULL) channel_id_->::bgs::protocol::EntityId::Clear(); - } - current_members_ = 0u; - if (has_state()) { - if (state_ != NULL) state_->::bgs::protocol::channel::v1::ChannelState::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ChannelDescription::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.ChannelDescription) - 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 channel_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_channel_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_current_members; - break; - } - - // optional uint32 current_members = 2; - case 2: { - if (tag == 16) { - parse_current_members: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, ¤t_members_))); - set_has_current_members(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_state; - break; - } - - // optional .bgs.protocol.channel.v1.ChannelState state = 3; - case 3: { - if (tag == 26) { - parse_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } 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.ChannelDescription) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.ChannelDescription) - return false; -#undef DO_ -} - -void ChannelDescription::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.ChannelDescription) - // required .bgs.protocol.EntityId channel_id = 1; - if (has_channel_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->channel_id(), output); - } - - // optional uint32 current_members = 2; - if (has_current_members()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->current_members(), output); - } - - // optional .bgs.protocol.channel.v1.ChannelState state = 3; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->state(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.ChannelDescription) -} - -::google::protobuf::uint8* ChannelDescription::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.ChannelDescription) - // required .bgs.protocol.EntityId channel_id = 1; - if (has_channel_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->channel_id(), target); - } - - // optional uint32 current_members = 2; - if (has_current_members()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->current_members(), target); - } - - // optional .bgs.protocol.channel.v1.ChannelState state = 3; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->state(), 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.ChannelDescription) - return target; -} - -int ChannelDescription::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId channel_id = 1; - if (has_channel_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->channel_id()); - } - - // optional uint32 current_members = 2; - if (has_current_members()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->current_members()); - } - - // optional .bgs.protocol.channel.v1.ChannelState state = 3; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state()); - } - - } - 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 ChannelDescription::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ChannelDescription* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ChannelDescription::MergeFrom(const ChannelDescription& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_channel_id()) { - mutable_channel_id()->::bgs::protocol::EntityId::MergeFrom(from.channel_id()); - } - if (from.has_current_members()) { - set_current_members(from.current_members()); - } - if (from.has_state()) { - mutable_state()->::bgs::protocol::channel::v1::ChannelState::MergeFrom(from.state()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ChannelDescription::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ChannelDescription::CopyFrom(const ChannelDescription& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChannelDescription::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_channel_id()) { - if (!this->channel_id().IsInitialized()) return false; - } - if (has_state()) { - if (!this->state().IsInitialized()) return false; - } - return true; -} - void ChannelDescription::Swap(ChannelDescription* other) { if (other != this) { - std::swap(channel_id_, other->channel_id_); - std::swap(current_members_, other->current_members_); - std::swap(state_, other->state_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ChannelDescription::GetMetadata() const { @@ -1538,203 +674,9 @@ ChannelInfo* ChannelInfo::New() const { return new ChannelInfo; } -void ChannelInfo::Clear() { - if (has_description()) { - if (description_ != NULL) description_->::bgs::protocol::channel::v1::ChannelDescription::Clear(); - } - member_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ChannelInfo::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.ChannelInfo) - 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.channel.v1.ChannelDescription description = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_description())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_member; - break; - } - - // repeated .bgs.protocol.channel.v1.Member member = 2; - case 2: { - if (tag == 18) { - parse_member: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_member())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_member; - 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.ChannelInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.ChannelInfo) - return false; -#undef DO_ -} - -void ChannelInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.ChannelInfo) - // required .bgs.protocol.channel.v1.ChannelDescription description = 1; - if (has_description()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->description(), output); - } - - // repeated .bgs.protocol.channel.v1.Member member = 2; - for (int i = 0; i < this->member_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->member(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.ChannelInfo) -} - -::google::protobuf::uint8* ChannelInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.ChannelInfo) - // required .bgs.protocol.channel.v1.ChannelDescription description = 1; - if (has_description()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->description(), target); - } - - // repeated .bgs.protocol.channel.v1.Member member = 2; - for (int i = 0; i < this->member_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->member(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.ChannelInfo) - return target; -} - -int ChannelInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.channel.v1.ChannelDescription description = 1; - if (has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->description()); - } - - } - // repeated .bgs.protocol.channel.v1.Member member = 2; - total_size += 1 * this->member_size(); - for (int i = 0; i < this->member_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member(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 ChannelInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ChannelInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ChannelInfo::MergeFrom(const ChannelInfo& from) { - GOOGLE_CHECK_NE(&from, this); - member_.MergeFrom(from.member_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_description()) { - mutable_description()->::bgs::protocol::channel::v1::ChannelDescription::MergeFrom(from.description()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ChannelInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ChannelInfo::CopyFrom(const ChannelInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChannelInfo::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_description()) { - if (!this->description().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->member())) return false; - return true; -} - void ChannelInfo::Swap(ChannelInfo* other) { if (other != this) { - std::swap(description_, other->description_); - member_.Swap(&other->member_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ChannelInfo::GetMetadata() const { @@ -1853,570 +795,9 @@ ChannelState* ChannelState::New() const { return new ChannelState; } -void ChannelState::Clear() { - _extensions_.Clear(); -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 243) { - ZR_(max_members_, min_members_); - reason_ = 0u; - privacy_level_ = 1; - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - 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; - subscribe_to_presence_ = true; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - invitation_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ChannelState::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.ChannelState) - 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_members = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_members_))); - set_has_max_members(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_min_members; - break; - } - - // optional uint32 min_members = 2; - case 2: { - if (tag == 16) { - parse_min_members: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &min_members_))); - set_has_min_members(); - } 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->ExpectTag(34)) goto parse_invitation; - break; - } - - // repeated .bgs.protocol.Invitation invitation = 4; - case 4: { - if (tag == 34) { - parse_invitation: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_invitation())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_invitation; - if (input->ExpectTag(48)) goto parse_reason; - break; - } - - // optional uint32 reason = 6; - case 6: { - if (tag == 48) { - parse_reason: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reason_))); - set_has_reason(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_privacy_level; - break; - } - - // optional .bgs.protocol.channel.v1.ChannelState.PrivacyLevel privacy_level = 7 [default = PRIVACY_LEVEL_OPEN]; - case 7: { - if (tag == 56) { - parse_privacy_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::channel::v1::ChannelState_PrivacyLevel_IsValid(value)) { - set_privacy_level(static_cast< ::bgs::protocol::channel::v1::ChannelState_PrivacyLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(7, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_name; - break; - } - - // optional string name = 8; - case 8: { - if (tag == 66) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_channel_type; - break; - } - - // optional string channel_type = 10 [default = "default"]; - case 10: { - if (tag == 82) { - parse_channel_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_channel_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_type().data(), this->channel_type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "channel_type"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(93)) goto parse_program; - break; - } - - // optional fixed32 program = 11; - case 11: { - if (tag == 93) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(104)) goto parse_subscribe_to_presence; - break; - } - - // optional bool subscribe_to_presence = 13 [default = true]; - case 13: { - if (tag == 104) { - parse_subscribe_to_presence: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &subscribe_to_presence_))); - set_has_subscribe_to_presence(); - } 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; - } - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.channel.v1.ChannelState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.ChannelState) - return false; -#undef DO_ -} - -void ChannelState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.ChannelState) - // optional uint32 max_members = 1; - if (has_max_members()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->max_members(), output); - } - - // optional uint32 min_members = 2; - if (has_min_members()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->min_members(), 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); - } - - // repeated .bgs.protocol.Invitation invitation = 4; - for (int i = 0; i < this->invitation_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->invitation(i), output); - } - - // optional uint32 reason = 6; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->reason(), output); - } - - // optional .bgs.protocol.channel.v1.ChannelState.PrivacyLevel privacy_level = 7 [default = PRIVACY_LEVEL_OPEN]; - if (has_privacy_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->privacy_level(), output); - } - - // optional string name = 8; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->name(), output); - } - - // optional string channel_type = 10 [default = "default"]; - if (has_channel_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_type().data(), this->channel_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "channel_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 10, this->channel_type(), output); - } - - // optional fixed32 program = 11; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(11, this->program(), 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); - } - - // Extension range [100, 10000) - _extensions_.SerializeWithCachedSizes( - 100, 10000, output); - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.ChannelState) -} - -::google::protobuf::uint8* ChannelState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.ChannelState) - // optional uint32 max_members = 1; - if (has_max_members()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->max_members(), target); - } - - // optional uint32 min_members = 2; - if (has_min_members()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->min_members(), 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); - } - - // repeated .bgs.protocol.Invitation invitation = 4; - for (int i = 0; i < this->invitation_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->invitation(i), target); - } - - // optional uint32 reason = 6; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->reason(), target); - } - - // optional .bgs.protocol.channel.v1.ChannelState.PrivacyLevel privacy_level = 7 [default = PRIVACY_LEVEL_OPEN]; - if (has_privacy_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 7, this->privacy_level(), target); - } - - // optional string name = 8; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->name(), target); - } - - // optional string channel_type = 10 [default = "default"]; - if (has_channel_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_type().data(), this->channel_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "channel_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 10, this->channel_type(), target); - } - - // optional fixed32 program = 11; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(11, this->program(), 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); - } - - // Extension range [100, 10000) - target = _extensions_.SerializeWithCachedSizesToArray( - 100, 10000, 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.ChannelState) - return target; -} - -int ChannelState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 max_members = 1; - if (has_max_members()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_members()); - } - - // optional uint32 min_members = 2; - if (has_min_members()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->min_members()); - } - - // optional uint32 reason = 6; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reason()); - } - - // optional .bgs.protocol.channel.v1.ChannelState.PrivacyLevel privacy_level = 7 [default = PRIVACY_LEVEL_OPEN]; - if (has_privacy_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->privacy_level()); - } - - // optional string name = 8; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string channel_type = 10 [default = "default"]; - if (has_channel_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->channel_type()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional fixed32 program = 11; - if (has_program()) { - total_size += 1 + 4; - } - - // optional bool subscribe_to_presence = 13 [default = true]; - if (has_subscribe_to_presence()) { - total_size += 1 + 1; - } - - } - // 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)); - } - - // repeated .bgs.protocol.Invitation invitation = 4; - total_size += 1 * this->invitation_size(); - for (int i = 0; i < this->invitation_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation(i)); - } - - total_size += _extensions_.ByteSize(); - - 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 ChannelState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ChannelState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ChannelState::MergeFrom(const ChannelState& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - invitation_.MergeFrom(from.invitation_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_max_members()) { - set_max_members(from.max_members()); - } - if (from.has_min_members()) { - set_min_members(from.min_members()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - if (from.has_privacy_level()) { - set_privacy_level(from.privacy_level()); - } - if (from.has_name()) { - set_name(from.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_subscribe_to_presence()) { - set_subscribe_to_presence(from.subscribe_to_presence()); - } - } - _extensions_.MergeFrom(from._extensions_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ChannelState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ChannelState::CopyFrom(const ChannelState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChannelState::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->invitation())) return false; - - if (!_extensions_.IsInitialized()) return false; return true; -} - void ChannelState::Swap(ChannelState* other) { if (other != this) { - std::swap(max_members_, other->max_members_); - std::swap(min_members_, other->min_members_); - attribute_.Swap(&other->attribute_); - invitation_.Swap(&other->invitation_); - std::swap(reason_, other->reason_); - std::swap(privacy_level_, other->privacy_level_); - std::swap(name_, other->name_); - std::swap(channel_type_, other->channel_type_); - std::swap(program_, other->program_); - std::swap(subscribe_to_presence_, other->subscribe_to_presence_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ChannelState::GetMetadata() const { @@ -2490,174 +871,9 @@ 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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberAccountInfo::GetMetadata() const { @@ -2696,7 +912,6 @@ MemberState::MemberState(const MemberState& from) void MemberState::SharedCtor() { _cached_size_ = 0; - _role_cached_byte_size_ = 0; privileges_ = GOOGLE_ULONGLONG(0); info_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -2734,301 +949,9 @@ MemberState* MemberState::New() const { return new MemberState; } -void MemberState::Clear() { - if (_has_bits_[0 / 32] & 12) { - privileges_ = GOOGLE_ULONGLONG(0); - if (has_info()) { - if (info_ != NULL) info_->::bgs::protocol::channel::v1::MemberAccountInfo::Clear(); - } - } - attribute_.Clear(); - role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberState::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.MemberState) - 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.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute; - 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(24)) goto parse_privileges; - break; - } - - // optional uint64 privileges = 3 [default = 0]; - case 3: { - if (tag == 24) { - 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(34)) goto parse_info; - break; - } - - // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; - case 4: { - if (tag == 34) { - parse_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_info())); - } 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.MemberState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.MemberState) - return false; -#undef DO_ -} - -void MemberState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.MemberState) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), 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); - } - - // optional uint64 privileges = 3 [default = 0]; - if (has_privileges()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->privileges(), output); - } - - // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; - if (has_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.MemberState) -} - -::google::protobuf::uint8* MemberState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.MemberState) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(i), 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); - } - - // optional uint64 privileges = 3 [default = 0]; - if (has_privileges()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->privileges(), target); - } - - // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; - if (has_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->info(), 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.MemberState) - return target; -} - -int MemberState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { - // optional uint64 privileges = 3 [default = 0]; - if (has_privileges()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->privileges()); - } - - // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; - if (has_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->info()); - } - - } - // repeated .bgs.protocol.Attribute attribute = 1; - 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 = 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; - } - - 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 MemberState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberState::MergeFrom(const MemberState& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - role_.MergeFrom(from.role_); - if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { - if (from.has_privileges()) { - set_privileges(from.privileges()); - } - if (from.has_info()) { - mutable_info()->::bgs::protocol::channel::v1::MemberAccountInfo::MergeFrom(from.info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberState::CopyFrom(const MemberState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberState::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void MemberState::Swap(MemberState* other) { if (other != this) { - attribute_.Swap(&other->attribute_); - role_.Swap(&other->role_); - std::swap(privileges_, other->privileges_); - std::swap(info_, other->info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberState::GetMetadata() const { @@ -3104,209 +1027,9 @@ Member* Member::New() const { return new Member; } -void Member::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_identity()) { - if (identity_ != NULL) identity_->::bgs::protocol::Identity::Clear(); - } - if (has_state()) { - if (state_ != NULL) state_->::bgs::protocol::channel::v1::MemberState::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Member::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.Member) - 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.Identity identity = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_state; - break; - } - - // required .bgs.protocol.channel.v1.MemberState state = 2; - case 2: { - if (tag == 18) { - parse_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } 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.Member) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.Member) - return false; -#undef DO_ -} - -void Member::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.Member) - // required .bgs.protocol.Identity identity = 1; - if (has_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->identity(), output); - } - - // required .bgs.protocol.channel.v1.MemberState state = 2; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->state(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.Member) -} - -::google::protobuf::uint8* Member::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.Member) - // required .bgs.protocol.Identity identity = 1; - if (has_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->identity(), target); - } - - // required .bgs.protocol.channel.v1.MemberState state = 2; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->state(), 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.Member) - return target; -} - -int Member::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.Identity identity = 1; - if (has_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->identity()); - } - - // required .bgs.protocol.channel.v1.MemberState state = 2; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state()); - } - - } - 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 Member::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Member* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Member::MergeFrom(const Member& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_identity()) { - mutable_identity()->::bgs::protocol::Identity::MergeFrom(from.identity()); - } - if (from.has_state()) { - mutable_state()->::bgs::protocol::channel::v1::MemberState::MergeFrom(from.state()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Member::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Member::CopyFrom(const Member& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Member::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - if (has_identity()) { - if (!this->identity().IsInitialized()) return false; - } - if (has_state()) { - if (!this->state().IsInitialized()) return false; - } - return true; -} - void Member::Swap(Member* other) { if (other != this) { - std::swap(identity_, other->identity_); - std::swap(state_, other->state_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Member::GetMetadata() const { @@ -3386,251 +1109,9 @@ SubscriberId* SubscriberId::New() const { return new SubscriberId; } -void SubscriberId::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_account()) { - if (account_ != NULL) account_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_game_account()) { - if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); - } - if (has_process()) { - if (process_ != NULL) process_->::bgs::protocol::ProcessId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscriberId::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.SubscriberId) - 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 [deprecated = true]; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_game_account; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 2; - case 2: { - if (tag == 18) { - parse_game_account: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_process; - break; - } - - // optional .bgs.protocol.ProcessId process = 3; - case 3: { - if (tag == 26) { - parse_process: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_process())); - } 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.SubscriberId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.SubscriberId) - return false; -#undef DO_ -} - -void SubscriberId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.SubscriberId) - // optional .bgs.protocol.account.v1.AccountId account = 1 [deprecated = true]; - if (has_account()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account(), output); - } - - // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 2; - if (has_game_account()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account(), output); - } - - // optional .bgs.protocol.ProcessId process = 3; - if (has_process()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->process(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.SubscriberId) -} - -::google::protobuf::uint8* SubscriberId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.SubscriberId) - // optional .bgs.protocol.account.v1.AccountId account = 1 [deprecated = true]; - if (has_account()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account(), target); - } - - // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 2; - if (has_game_account()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_account(), target); - } - - // optional .bgs.protocol.ProcessId process = 3; - if (has_process()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->process(), 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.SubscriberId) - return target; -} - -int SubscriberId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId account = 1 [deprecated = true]; - if (has_account()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account()); - } - - // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 2; - if (has_game_account()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account()); - } - - // optional .bgs.protocol.ProcessId process = 3; - if (has_process()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->process()); - } - - } - 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 SubscriberId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscriberId* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscriberId::MergeFrom(const SubscriberId& 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_game_account()) { - mutable_game_account()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.game_account()); - } - if (from.has_process()) { - mutable_process()->::bgs::protocol::ProcessId::MergeFrom(from.process()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscriberId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscriberId::CopyFrom(const SubscriberId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscriberId::IsInitialized() const { - if (has_account()) { - if (!this->account().IsInitialized()) return false; - } - if (has_game_account()) { - if (!this->game_account().IsInitialized()) return false; - } - if (has_process()) { - if (!this->process().IsInitialized()) return false; - } - return true; -} - void SubscriberId::Swap(SubscriberId* other) { if (other != this) { - std::swap(account_, other->account_); - std::swap(game_account_, other->game_account_); - std::swap(process_, other->process_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscriberId::GetMetadata() const { diff --git a/src/server/proto/Client/channel_types.pb.h b/src/server/proto/Client/channel_types.pb.h index 86c8a79aa1a..8875e428527 100644 --- a/src/server/proto/Client/channel_types.pb.h +++ b/src/server/proto/Client/channel_types.pb.h @@ -105,19 +105,6 @@ class TC_PROTO_API Message : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Message* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Message& from); - void MergeFrom(const Message& 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(); @@ -190,19 +177,6 @@ class TC_PROTO_API ListChannelsOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ListChannelsOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ListChannelsOptions& from); - void MergeFrom(const ListChannelsOptions& 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(); @@ -351,19 +325,6 @@ class TC_PROTO_API ChannelDescription : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ChannelDescription* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ChannelDescription& from); - void MergeFrom(const ChannelDescription& 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(); @@ -454,19 +415,6 @@ class TC_PROTO_API ChannelInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ChannelInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ChannelInfo& from); - void MergeFrom(const ChannelInfo& 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(); @@ -548,19 +496,6 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ChannelState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ChannelState& from); - void MergeFrom(const ChannelState& 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(); @@ -763,19 +698,6 @@ class TC_PROTO_API MemberAccountInfo : public ::google::protobuf::Message { // 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(); @@ -847,19 +769,6 @@ class TC_PROTO_API MemberState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemberState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberState& from); - void MergeFrom(const MemberState& 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(); @@ -925,7 +834,6 @@ class TC_PROTO_API MemberState : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; ::google::protobuf::uint64 privileges_; ::bgs::protocol::channel::v1::MemberAccountInfo* info_; friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto(); @@ -965,19 +873,6 @@ class TC_PROTO_API Member : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Member* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Member& from); - void MergeFrom(const Member& 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(); @@ -1058,19 +953,6 @@ class TC_PROTO_API SubscriberId : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscriberId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscriberId& from); - void MergeFrom(const SubscriberId& 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(); diff --git a/src/server/proto/Client/club_ban.pb.cc b/src/server/proto/Client/club_ban.pb.cc index dbaf88af545..974c08ee893 100644 --- a/src/server/proto/Client/club_ban.pb.cc +++ b/src/server/proto/Client/club_ban.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_ban.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -126,7 +124,7 @@ void protobuf_AddDesc_club_5fban_2eproto() { "\030\003 \001(\0132\'.bgs.protocol.club.v1.MemberDesc" "ription\022-\n\tattribute\030\004 \003(\0132\032.bgs.protoco" "l.v2.Attribute\022\016\n\006reason\030\005 \001(\t\022\025\n\rcreati" - "on_time\030\006 \001(\004B\002H\001", 497); + "on_time\030\006 \001(\004B\002H\002", 497); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_ban.proto", &protobuf_RegisterTypes); AddBanOptions::default_instance_ = new AddBanOptions(); @@ -210,257 +208,9 @@ AddBanOptions* AddBanOptions::New() const { return new AddBanOptions; } -void AddBanOptions::Clear() { - if (_has_bits_[0 / 32] & 5) { - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_reason()) { - if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reason_->clear(); - } - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AddBanOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AddBanOptions) - 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.club.v1.MemberId target_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_target_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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_reason; - break; - } - - // optional string reason = 3; - case 3: { - if (tag == 26) { - parse_reason: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "reason"); - } 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.club.v1.AddBanOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AddBanOptions) - return false; -#undef DO_ -} - -void AddBanOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AddBanOptions) - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->target_id(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - // optional string reason = 3; - if (has_reason()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AddBanOptions) -} - -::google::protobuf::uint8* AddBanOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AddBanOptions) - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->target_id(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->attribute(i), target); - } - - // optional string reason = 3; - if (has_reason()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AddBanOptions) - return target; -} - -int AddBanOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_id()); - } - - // optional string reason = 3; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - } - // repeated .bgs.protocol.v2.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 AddBanOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AddBanOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AddBanOptions::MergeFrom(const AddBanOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.target_id()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AddBanOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AddBanOptions::CopyFrom(const AddBanOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddBanOptions::IsInitialized() const { - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - return true; -} - void AddBanOptions::Swap(AddBanOptions* other) { if (other != this) { - std::swap(target_id_, other->target_id_); - attribute_.Swap(&other->attribute_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AddBanOptions::GetMetadata() const { @@ -550,391 +300,9 @@ ClubBan* ClubBan::New() const { return new ClubBan; } -void ClubBan::Clear() { - if (_has_bits_[0 / 32] & 55) { - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_battle_tag()) { - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - battle_tag_->clear(); - } - } - if (has_creator()) { - if (creator_ != NULL) creator_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - if (has_reason()) { - if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reason_->clear(); - } - } - creation_time_ = GOOGLE_ULONGLONG(0); - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubBan::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubBan) - 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.club.v1.MemberId id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_id())); - } 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->ExpectTag(26)) goto parse_creator; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 3; - case 3: { - if (tag == 26) { - parse_creator: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_creator())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.Attribute attribute = 4; - case 4: { - if (tag == 34) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_attribute; - if (input->ExpectTag(42)) goto parse_reason; - break; - } - - // optional string reason = 5; - case 5: { - if (tag == 42) { - parse_reason: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "reason"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 6; - case 6: { - if (tag == 48) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_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.club.v1.ClubBan) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubBan) - return false; -#undef DO_ -} - -void ClubBan::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubBan) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->id(), 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); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 3; - if (has_creator()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->creator(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 4; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->attribute(i), output); - } - - // optional string reason = 5; - if (has_reason()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->reason(), output); - } - - // optional uint64 creation_time = 6; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->creation_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubBan) -} - -::google::protobuf::uint8* ClubBan::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubBan) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->id(), 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); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 3; - if (has_creator()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->creator(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 4; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->attribute(i), target); - } - - // optional string reason = 5; - if (has_reason()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->reason(), target); - } - - // optional uint64 creation_time = 6; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->creation_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubBan) - return target; -} - -int ClubBan::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->id()); - } - - // optional string battle_tag = 2; - if (has_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->battle_tag()); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 3; - if (has_creator()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->creator()); - } - - // optional string reason = 5; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - // optional uint64 creation_time = 6; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 4; - 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 ClubBan::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubBan* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubBan::MergeFrom(const ClubBan& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.id()); - } - if (from.has_battle_tag()) { - set_battle_tag(from.battle_tag()); - } - if (from.has_creator()) { - mutable_creator()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.creator()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubBan::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubBan::CopyFrom(const ClubBan& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubBan::IsInitialized() const { - if (has_id()) { - if (!this->id().IsInitialized()) return false; - } - if (has_creator()) { - if (!this->creator().IsInitialized()) return false; - } - return true; -} - void ClubBan::Swap(ClubBan* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(battle_tag_, other->battle_tag_); - std::swap(creator_, other->creator_); - attribute_.Swap(&other->attribute_); - std::swap(reason_, other->reason_); - std::swap(creation_time_, other->creation_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubBan::GetMetadata() const { diff --git a/src/server/proto/Client/club_ban.pb.h b/src/server/proto/Client/club_ban.pb.h index b5a7c32b2ae..735539a5e71 100644 --- a/src/server/proto/Client/club_ban.pb.h +++ b/src/server/proto/Client/club_ban.pb.h @@ -73,19 +73,6 @@ class TC_PROTO_API AddBanOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AddBanOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AddBanOptions& from); - void MergeFrom(const AddBanOptions& 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(); @@ -182,19 +169,6 @@ class TC_PROTO_API ClubBan : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubBan* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubBan& from); - void MergeFrom(const ClubBan& 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(); diff --git a/src/server/proto/Client/club_core.pb.cc b/src/server/proto/Client/club_core.pb.cc index 7c275a3a9db..498cc062348 100644 --- a/src/server/proto/Client/club_core.pb.cc +++ b/src/server/proto/Client/club_core.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_core.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -510,7 +508,7 @@ void protobuf_AddDesc_club_5fcore_2eproto() { "on\030\003 \001(\r\"\210\001\n\026ClubSettingsAssignment\0228\n\006s" "tream\030\001 \003(\0132$.bgs.protocol.club.v1.Strea" "mSettingsB\002\030\001\0224\n\010settings\030\002 \001(\0132\".bgs.pr" - "otocol.club.v1.ClubSettingsB\002H\001", 3191); + "otocol.club.v1.ClubSettingsB\002H\002", 3191); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_core.proto", &protobuf_RegisterTypes); AvatarId::default_instance_ = new AvatarId(); @@ -609,157 +607,9 @@ AvatarId* AvatarId::New() const { return new AvatarId; } -void AvatarId::Clear() { - id_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AvatarId::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AvatarId) - 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 id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 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.club.v1.AvatarId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AvatarId) - return false; -#undef DO_ -} - -void AvatarId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AvatarId) - // optional uint32 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AvatarId) -} - -::google::protobuf::uint8* AvatarId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AvatarId) - // optional uint32 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, 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.club.v1.AvatarId) - return target; -} - -int AvatarId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->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 AvatarId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AvatarId* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AvatarId::MergeFrom(const AvatarId& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AvatarId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AvatarId::CopyFrom(const AvatarId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AvatarId::IsInitialized() const { - return true; -} - void AvatarId::Swap(AvatarId* other) { if (other != this) { - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AvatarId::GetMetadata() const { @@ -833,174 +683,9 @@ SetBroadcastOptions* SetBroadcastOptions::New() const { return new SetBroadcastOptions; } -void SetBroadcastOptions::Clear() { - if (has_content()) { - if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - content_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SetBroadcastOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SetBroadcastOptions) - 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 content = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_content())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "content"); - } 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.club.v1.SetBroadcastOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SetBroadcastOptions) - return false; -#undef DO_ -} - -void SetBroadcastOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SetBroadcastOptions) - // optional string content = 1; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->content(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SetBroadcastOptions) -} - -::google::protobuf::uint8* SetBroadcastOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SetBroadcastOptions) - // optional string content = 1; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->content(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SetBroadcastOptions) - return target; -} - -int SetBroadcastOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string content = 1; - if (has_content()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->content()); - } - - } - 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 SetBroadcastOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SetBroadcastOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SetBroadcastOptions::MergeFrom(const SetBroadcastOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_content()) { - set_content(from.content()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SetBroadcastOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SetBroadcastOptions::CopyFrom(const SetBroadcastOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SetBroadcastOptions::IsInitialized() const { - return true; -} - void SetBroadcastOptions::Swap(SetBroadcastOptions* other) { if (other != this) { - std::swap(content_, other->content_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SetBroadcastOptions::GetMetadata() const { @@ -1080,256 +765,9 @@ Broadcast* Broadcast::New() const { return new Broadcast; } -void Broadcast::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_content()) { - if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - content_->clear(); - } - } - if (has_creator()) { - if (creator_ != NULL) creator_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - creation_time_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Broadcast::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.Broadcast) - 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 content = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_content())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "content"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_creator; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 2; - case 2: { - if (tag == 18) { - parse_creator: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_creator())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 3; - case 3: { - if (tag == 24) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_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.club.v1.Broadcast) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.Broadcast) - return false; -#undef DO_ -} - -void Broadcast::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.Broadcast) - // optional string content = 1; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->content(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 2; - if (has_creator()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->creator(), output); - } - - // optional uint64 creation_time = 3; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->creation_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.Broadcast) -} - -::google::protobuf::uint8* Broadcast::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.Broadcast) - // optional string content = 1; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->content(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 2; - if (has_creator()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->creator(), target); - } - - // optional uint64 creation_time = 3; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->creation_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.Broadcast) - return target; -} - -int Broadcast::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string content = 1; - if (has_content()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->content()); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 2; - if (has_creator()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->creator()); - } - - // optional uint64 creation_time = 3; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_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 Broadcast::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Broadcast* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Broadcast::MergeFrom(const Broadcast& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_content()) { - set_content(from.content()); - } - if (from.has_creator()) { - mutable_creator()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.creator()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Broadcast::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Broadcast::CopyFrom(const Broadcast& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Broadcast::IsInitialized() const { - if (has_creator()) { - if (!this->creator().IsInitialized()) return false; - } - return true; -} - void Broadcast::Swap(Broadcast* other) { if (other != this) { - std::swap(content_, other->content_); - std::swap(creator_, other->creator_); - std::swap(creation_time_, other->creation_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Broadcast::GetMetadata() const { @@ -1405,211 +843,9 @@ UniqueClubType* UniqueClubType::New() const { return new UniqueClubType; } -void UniqueClubType::Clear() { - if (_has_bits_[0 / 32] & 3) { - program_ = 0u; - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UniqueClubType::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UniqueClubType) - 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 program = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // optional string name = 2; - case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } 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.club.v1.UniqueClubType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UniqueClubType) - return false; -#undef DO_ -} - -void UniqueClubType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UniqueClubType) - // optional fixed32 program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->program(), output); - } - - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UniqueClubType) -} - -::google::protobuf::uint8* UniqueClubType::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UniqueClubType) - // optional fixed32 program = 1; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->program(), target); - } - - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UniqueClubType) - return target; -} - -int UniqueClubType::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 program = 1; - if (has_program()) { - total_size += 1 + 4; - } - - // optional string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - } - 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 UniqueClubType::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UniqueClubType* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UniqueClubType::MergeFrom(const UniqueClubType& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_name()) { - set_name(from.name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UniqueClubType::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UniqueClubType::CopyFrom(const UniqueClubType& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UniqueClubType::IsInitialized() const { - return true; -} - void UniqueClubType::Swap(UniqueClubType* other) { if (other != this) { - std::swap(program_, other->program_); - std::swap(name_, other->name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UniqueClubType::GetMetadata() const { @@ -1712,532 +948,9 @@ ClubCreateOptions* ClubCreateOptions::New() const { return new ClubCreateOptions; } -void ClubCreateOptions::Clear() { - if (_has_bits_[0 / 32] & 253) { - if (has_type()) { - if (type_ != NULL) type_->::bgs::protocol::club::v1::UniqueClubType::Clear(); - } - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_description()) { - if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - description_->clear(); - } - } - if (has_avatar()) { - if (avatar_ != NULL) avatar_->::bgs::protocol::club::v1::AvatarId::Clear(); - } - privacy_level_ = 0; - if (has_short_name()) { - if (short_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - short_name_->clear(); - } - } - if (has_member()) { - if (member_ != NULL) member_->::bgs::protocol::club::v1::CreateMemberOptions::Clear(); - } - } - if (has_stream()) { - if (stream_ != NULL) stream_->::bgs::protocol::club::v1::CreateStreamOptions::Clear(); - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubCreateOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubCreateOptions) - 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.club.v1.UniqueClubType type = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_type())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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_name; - break; - } - - // optional string name = 3; - case 3: { - if (tag == 26) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_description; - break; - } - - // optional string description = 4; - case 4: { - if (tag == 34) { - parse_description: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "description"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_avatar; - break; - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - case 5: { - if (tag == 42) { - parse_avatar: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatar())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_privacy_level; - break; - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - case 6: { - if (tag == 48) { - parse_privacy_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::PrivacyLevel_IsValid(value)) { - set_privacy_level(static_cast< ::bgs::protocol::club::v1::PrivacyLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_short_name; - break; - } - - // optional string short_name = 7; - case 7: { - if (tag == 58) { - parse_short_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "short_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_member; - break; - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions member = 10; - case 10: { - if (tag == 82) { - parse_member: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_stream; - break; - } - - // optional .bgs.protocol.club.v1.CreateStreamOptions stream = 11; - case 11: { - if (tag == 90) { - parse_stream: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_stream())); - } 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.club.v1.ClubCreateOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubCreateOptions) - return false; -#undef DO_ -} - -void ClubCreateOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubCreateOptions) - // optional .bgs.protocol.club.v1.UniqueClubType type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->type(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - // optional string description = 4; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->description(), output); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->avatar(), output); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->privacy_level(), output); - } - - // optional string short_name = 7; - if (has_short_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "short_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->short_name(), output); - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions member = 10; - if (has_member()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->member(), output); - } - - // optional .bgs.protocol.club.v1.CreateStreamOptions stream = 11; - if (has_stream()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, this->stream(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubCreateOptions) -} - -::google::protobuf::uint8* ClubCreateOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubCreateOptions) - // optional .bgs.protocol.club.v1.UniqueClubType type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->type(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->attribute(i), target); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), target); - } - - // optional string description = 4; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->description(), target); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->avatar(), target); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->privacy_level(), target); - } - - // optional string short_name = 7; - if (has_short_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "short_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->short_name(), target); - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions member = 10; - if (has_member()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->member(), target); - } - - // optional .bgs.protocol.club.v1.CreateStreamOptions stream = 11; - if (has_stream()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 11, this->stream(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubCreateOptions) - return target; -} - -int ClubCreateOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.UniqueClubType type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->type()); - } - - // optional string name = 3; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string description = 4; - if (has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatar()); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->privacy_level()); - } - - // optional string short_name = 7; - if (has_short_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_name()); - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions member = 10; - if (has_member()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional .bgs.protocol.club.v1.CreateStreamOptions stream = 11; - if (has_stream()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream()); - } - - } - // repeated .bgs.protocol.v2.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 ClubCreateOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubCreateOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubCreateOptions::MergeFrom(const ClubCreateOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_type()) { - mutable_type()->::bgs::protocol::club::v1::UniqueClubType::MergeFrom(from.type()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_description()) { - set_description(from.description()); - } - if (from.has_avatar()) { - mutable_avatar()->::bgs::protocol::club::v1::AvatarId::MergeFrom(from.avatar()); - } - if (from.has_privacy_level()) { - set_privacy_level(from.privacy_level()); - } - if (from.has_short_name()) { - set_short_name(from.short_name()); - } - if (from.has_member()) { - mutable_member()->::bgs::protocol::club::v1::CreateMemberOptions::MergeFrom(from.member()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_stream()) { - mutable_stream()->::bgs::protocol::club::v1::CreateStreamOptions::MergeFrom(from.stream()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubCreateOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubCreateOptions::CopyFrom(const ClubCreateOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubCreateOptions::IsInitialized() const { - if (has_member()) { - if (!this->member().IsInitialized()) return false; - } - return true; -} - void ClubCreateOptions::Swap(ClubCreateOptions* other) { if (other != this) { - std::swap(type_, other->type_); - attribute_.Swap(&other->attribute_); - std::swap(name_, other->name_); - std::swap(description_, other->description_); - std::swap(avatar_, other->avatar_); - std::swap(privacy_level_, other->privacy_level_); - std::swap(short_name_, other->short_name_); - std::swap(member_, other->member_); - std::swap(stream_, other->stream_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubCreateOptions::GetMetadata() const { @@ -2353,815 +1066,44 @@ Club* Club::New() const { return new Club; } -void Club::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 251) { - id_ = GOOGLE_ULONGLONG(0); - if (has_type()) { - if (type_ != NULL) type_->::bgs::protocol::club::v1::UniqueClubType::Clear(); - } - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_description()) { - if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - description_->clear(); - } - } - if (has_broadcast()) { - if (broadcast_ != NULL) broadcast_->::bgs::protocol::club::v1::Broadcast::Clear(); - } - if (has_avatar()) { - if (avatar_ != NULL) avatar_->::bgs::protocol::club::v1::AvatarId::Clear(); - } - privacy_level_ = 0; - } - if (_has_bits_[8 / 32] & 24320) { - ZR_(visibility_level_, creation_time_); - member_count_ = 0u; - if (has_stream_position()) { - if (stream_position_ != NULL) stream_position_->::bgs::protocol::club::v1::StreamPosition::Clear(); - } - if (has_role_set()) { - if (role_set_ != NULL) role_set_->::bgs::protocol::club::v1::ClubRoleSet::Clear(); - } - if (has_short_name()) { - if (short_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - short_name_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ +void Club::Swap(Club* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - attribute_.Clear(); - leader_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Club::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.Club) - 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 uint64 id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_type; - break; - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - case 2: { - if (tag == 18) { - parse_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_type())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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->ExpectTag(34)) goto parse_name; - break; - } - - // optional string name = 4; - case 4: { - if (tag == 34) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_description; - break; - } - - // optional string description = 5; - case 5: { - if (tag == 42) { - parse_description: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "description"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_broadcast; - break; - } - - // optional .bgs.protocol.club.v1.Broadcast broadcast = 6; - case 6: { - if (tag == 50) { - parse_broadcast: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_broadcast())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_avatar; - break; - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 7; - case 7: { - if (tag == 58) { - parse_avatar: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatar())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_privacy_level; - break; - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 8; - case 8: { - if (tag == 64) { - parse_privacy_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::PrivacyLevel_IsValid(value)) { - set_privacy_level(static_cast< ::bgs::protocol::club::v1::PrivacyLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(8, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_visibility_level; - break; - } - - // optional .bgs.protocol.club.v1.VisibilityLevel visibility_level = 9; - case 9: { - if (tag == 72) { - parse_visibility_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::VisibilityLevel_IsValid(value)) { - set_visibility_level(static_cast< ::bgs::protocol::club::v1::VisibilityLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(9, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_member_count; - break; - } - - // optional uint32 member_count = 10; - case 10: { - if (tag == 80) { - parse_member_count: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &member_count_))); - set_has_member_count(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 11; - case 11: { - if (tag == 88) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(98)) goto parse_stream_position; - break; - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 12; - case 12: { - if (tag == 98) { - parse_stream_position: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_stream_position())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(106)) goto parse_role_set; - break; - } - - // optional .bgs.protocol.club.v1.ClubRoleSet role_set = 13; - case 13: { - if (tag == 106) { - parse_role_set: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_role_set())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(114)) goto parse_leader; - break; - } - - // repeated .bgs.protocol.club.v1.MemberDescription leader = 14; - case 14: { - if (tag == 114) { - parse_leader: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_leader())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(114)) goto parse_leader; - if (input->ExpectTag(122)) goto parse_short_name; - break; - } - - // optional string short_name = 15; - case 15: { - if (tag == 122) { - parse_short_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "short_name"); - } 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.club.v1.Club) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.Club) - return false; -#undef DO_ -} - -void Club::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.Club) - // optional uint64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output); - } +::google::protobuf::Metadata Club::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Club_descriptor_; + metadata.reflection = Club_reflection_; + return metadata; +} - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->type(), output); - } +// =================================================================== - // repeated .bgs.protocol.v2.Attribute attribute = 3; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->attribute(i), output); - } +#ifndef _MSC_VER +const int ClubDescription::kIdFieldNumber; +const int ClubDescription::kTypeFieldNumber; +const int ClubDescription::kNameFieldNumber; +const int ClubDescription::kDescriptionFieldNumber; +const int ClubDescription::kAvatarFieldNumber; +const int ClubDescription::kPrivacyLevelFieldNumber; +const int ClubDescription::kVisibilityLevelFieldNumber; +const int ClubDescription::kMemberCountFieldNumber; +const int ClubDescription::kLeaderFieldNumber; +const int ClubDescription::kCreationTimeFieldNumber; +#endif // !_MSC_VER - // optional string name = 4; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->name(), output); - } +ClubDescription::ClubDescription() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.club.v1.ClubDescription) +} - // optional string description = 5; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->description(), output); - } - - // optional .bgs.protocol.club.v1.Broadcast broadcast = 6; - if (has_broadcast()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->broadcast(), output); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 7; - if (has_avatar()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->avatar(), output); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 8; - if (has_privacy_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 8, this->privacy_level(), output); - } - - // optional .bgs.protocol.club.v1.VisibilityLevel visibility_level = 9; - if (has_visibility_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 9, this->visibility_level(), output); - } - - // optional uint32 member_count = 10; - if (has_member_count()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->member_count(), output); - } - - // optional uint64 creation_time = 11; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_time(), output); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 12; - if (has_stream_position()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 12, this->stream_position(), output); - } - - // optional .bgs.protocol.club.v1.ClubRoleSet role_set = 13; - if (has_role_set()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 13, this->role_set(), output); - } - - // repeated .bgs.protocol.club.v1.MemberDescription leader = 14; - for (int i = 0; i < this->leader_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 14, this->leader(i), output); - } - - // optional string short_name = 15; - if (has_short_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "short_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 15, this->short_name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.Club) -} - -::google::protobuf::uint8* Club::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.Club) - // optional uint64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->type(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 3; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->attribute(i), target); - } - - // optional string name = 4; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->name(), target); - } - - // optional string description = 5; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->description(), target); - } - - // optional .bgs.protocol.club.v1.Broadcast broadcast = 6; - if (has_broadcast()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->broadcast(), target); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 7; - if (has_avatar()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->avatar(), target); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 8; - if (has_privacy_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 8, this->privacy_level(), target); - } - - // optional .bgs.protocol.club.v1.VisibilityLevel visibility_level = 9; - if (has_visibility_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 9, this->visibility_level(), target); - } - - // optional uint32 member_count = 10; - if (has_member_count()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->member_count(), target); - } - - // optional uint64 creation_time = 11; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_time(), target); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 12; - if (has_stream_position()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 12, this->stream_position(), target); - } - - // optional .bgs.protocol.club.v1.ClubRoleSet role_set = 13; - if (has_role_set()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 13, this->role_set(), target); - } - - // repeated .bgs.protocol.club.v1.MemberDescription leader = 14; - for (int i = 0; i < this->leader_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 14, this->leader(i), target); - } - - // optional string short_name = 15; - if (has_short_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "short_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 15, this->short_name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.Club) - return target; -} - -int Club::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->type()); - } - - // optional string name = 4; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string description = 5; - if (has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // optional .bgs.protocol.club.v1.Broadcast broadcast = 6; - if (has_broadcast()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->broadcast()); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 7; - if (has_avatar()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatar()); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 8; - if (has_privacy_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->privacy_level()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional .bgs.protocol.club.v1.VisibilityLevel visibility_level = 9; - if (has_visibility_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->visibility_level()); - } - - // optional uint32 member_count = 10; - if (has_member_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->member_count()); - } - - // optional uint64 creation_time = 11; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 12; - if (has_stream_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream_position()); - } - - // optional .bgs.protocol.club.v1.ClubRoleSet role_set = 13; - if (has_role_set()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->role_set()); - } - - // optional string short_name = 15; - if (has_short_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_name()); - } - - } - // repeated .bgs.protocol.v2.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)); - } - - // repeated .bgs.protocol.club.v1.MemberDescription leader = 14; - total_size += 1 * this->leader_size(); - for (int i = 0; i < this->leader_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->leader(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 Club::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Club* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Club::MergeFrom(const Club& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - leader_.MergeFrom(from.leader_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_type()) { - mutable_type()->::bgs::protocol::club::v1::UniqueClubType::MergeFrom(from.type()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_description()) { - set_description(from.description()); - } - if (from.has_broadcast()) { - mutable_broadcast()->::bgs::protocol::club::v1::Broadcast::MergeFrom(from.broadcast()); - } - if (from.has_avatar()) { - mutable_avatar()->::bgs::protocol::club::v1::AvatarId::MergeFrom(from.avatar()); - } - if (from.has_privacy_level()) { - set_privacy_level(from.privacy_level()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_visibility_level()) { - set_visibility_level(from.visibility_level()); - } - if (from.has_member_count()) { - set_member_count(from.member_count()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - if (from.has_stream_position()) { - mutable_stream_position()->::bgs::protocol::club::v1::StreamPosition::MergeFrom(from.stream_position()); - } - if (from.has_role_set()) { - mutable_role_set()->::bgs::protocol::club::v1::ClubRoleSet::MergeFrom(from.role_set()); - } - if (from.has_short_name()) { - set_short_name(from.short_name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Club::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Club::CopyFrom(const Club& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Club::IsInitialized() const { - if (has_broadcast()) { - if (!this->broadcast().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->leader())) return false; - return true; -} - -void Club::Swap(Club* other) { - if (other != this) { - std::swap(id_, other->id_); - std::swap(type_, other->type_); - attribute_.Swap(&other->attribute_); - std::swap(name_, other->name_); - std::swap(description_, other->description_); - std::swap(broadcast_, other->broadcast_); - std::swap(avatar_, other->avatar_); - std::swap(privacy_level_, other->privacy_level_); - std::swap(visibility_level_, other->visibility_level_); - std::swap(member_count_, other->member_count_); - std::swap(creation_time_, other->creation_time_); - std::swap(stream_position_, other->stream_position_); - std::swap(role_set_, other->role_set_); - leader_.Swap(&other->leader_); - std::swap(short_name_, other->short_name_); - 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 Club::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Club_descriptor_; - metadata.reflection = Club_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int ClubDescription::kIdFieldNumber; -const int ClubDescription::kTypeFieldNumber; -const int ClubDescription::kNameFieldNumber; -const int ClubDescription::kDescriptionFieldNumber; -const int ClubDescription::kAvatarFieldNumber; -const int ClubDescription::kPrivacyLevelFieldNumber; -const int ClubDescription::kVisibilityLevelFieldNumber; -const int ClubDescription::kMemberCountFieldNumber; -const int ClubDescription::kLeaderFieldNumber; -const int ClubDescription::kCreationTimeFieldNumber; -#endif // !_MSC_VER - -ClubDescription::ClubDescription() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.club.v1.ClubDescription) -} - -void ClubDescription::InitAsDefaultInstance() { - type_ = const_cast< ::bgs::protocol::club::v1::UniqueClubType*>(&::bgs::protocol::club::v1::UniqueClubType::default_instance()); - avatar_ = const_cast< ::bgs::protocol::club::v1::AvatarId*>(&::bgs::protocol::club::v1::AvatarId::default_instance()); -} +void ClubDescription::InitAsDefaultInstance() { + type_ = const_cast< ::bgs::protocol::club::v1::UniqueClubType*>(&::bgs::protocol::club::v1::UniqueClubType::default_instance()); + avatar_ = const_cast< ::bgs::protocol::club::v1::AvatarId*>(&::bgs::protocol::club::v1::AvatarId::default_instance()); +} ClubDescription::ClubDescription(const ClubDescription& from) : ::google::protobuf::Message() { @@ -3224,563 +1166,9 @@ ClubDescription* ClubDescription::New() const { return new ClubDescription; } -void ClubDescription::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(privacy_level_, visibility_level_); - id_ = GOOGLE_ULONGLONG(0); - if (has_type()) { - if (type_ != NULL) type_->::bgs::protocol::club::v1::UniqueClubType::Clear(); - } - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_description()) { - if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - description_->clear(); - } - } - if (has_avatar()) { - if (avatar_ != NULL) avatar_->::bgs::protocol::club::v1::AvatarId::Clear(); - } - member_count_ = 0u; - } - creation_time_ = GOOGLE_ULONGLONG(0); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - leader_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubDescription::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubDescription) - 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 uint64 id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_type; - break; - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - case 2: { - if (tag == 18) { - parse_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_type())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_name; - break; - } - - // optional string name = 3; - case 3: { - if (tag == 26) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_description; - break; - } - - // optional string description = 4; - case 4: { - if (tag == 34) { - parse_description: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "description"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_avatar; - break; - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - case 5: { - if (tag == 42) { - parse_avatar: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatar())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_privacy_level; - break; - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - case 6: { - if (tag == 48) { - parse_privacy_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::PrivacyLevel_IsValid(value)) { - set_privacy_level(static_cast< ::bgs::protocol::club::v1::PrivacyLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_visibility_level; - break; - } - - // optional .bgs.protocol.club.v1.VisibilityLevel visibility_level = 7; - case 7: { - if (tag == 56) { - parse_visibility_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::VisibilityLevel_IsValid(value)) { - set_visibility_level(static_cast< ::bgs::protocol::club::v1::VisibilityLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(7, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_member_count; - break; - } - - // optional uint32 member_count = 8; - case 8: { - if (tag == 64) { - parse_member_count: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &member_count_))); - set_has_member_count(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_leader; - break; - } - - // repeated .bgs.protocol.club.v1.MemberDescription leader = 9; - case 9: { - if (tag == 74) { - parse_leader: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_leader())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_leader; - if (input->ExpectTag(80)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 10; - case 10: { - if (tag == 80) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_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.club.v1.ClubDescription) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubDescription) - return false; -#undef DO_ -} - -void ClubDescription::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubDescription) - // optional uint64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->type(), output); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - // optional string description = 4; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->description(), output); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->avatar(), output); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->privacy_level(), output); - } - - // optional .bgs.protocol.club.v1.VisibilityLevel visibility_level = 7; - if (has_visibility_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->visibility_level(), output); - } - - // optional uint32 member_count = 8; - if (has_member_count()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->member_count(), output); - } - - // repeated .bgs.protocol.club.v1.MemberDescription leader = 9; - for (int i = 0; i < this->leader_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, this->leader(i), output); - } - - // optional uint64 creation_time = 10; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->creation_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubDescription) -} - -::google::protobuf::uint8* ClubDescription::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubDescription) - // optional uint64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->type(), target); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), target); - } - - // optional string description = 4; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->description(), target); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->avatar(), target); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->privacy_level(), target); - } - - // optional .bgs.protocol.club.v1.VisibilityLevel visibility_level = 7; - if (has_visibility_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 7, this->visibility_level(), target); - } - - // optional uint32 member_count = 8; - if (has_member_count()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->member_count(), target); - } - - // repeated .bgs.protocol.club.v1.MemberDescription leader = 9; - for (int i = 0; i < this->leader_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 9, this->leader(i), target); - } - - // optional uint64 creation_time = 10; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->creation_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubDescription) - return target; -} - -int ClubDescription::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->type()); - } - - // optional string name = 3; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string description = 4; - if (has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatar()); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->privacy_level()); - } - - // optional .bgs.protocol.club.v1.VisibilityLevel visibility_level = 7; - if (has_visibility_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->visibility_level()); - } - - // optional uint32 member_count = 8; - if (has_member_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->member_count()); - } - - } - if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) { - // optional uint64 creation_time = 10; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - } - // repeated .bgs.protocol.club.v1.MemberDescription leader = 9; - total_size += 1 * this->leader_size(); - for (int i = 0; i < this->leader_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->leader(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 ClubDescription::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubDescription* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubDescription::MergeFrom(const ClubDescription& from) { - GOOGLE_CHECK_NE(&from, this); - leader_.MergeFrom(from.leader_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_type()) { - mutable_type()->::bgs::protocol::club::v1::UniqueClubType::MergeFrom(from.type()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_description()) { - set_description(from.description()); - } - if (from.has_avatar()) { - mutable_avatar()->::bgs::protocol::club::v1::AvatarId::MergeFrom(from.avatar()); - } - if (from.has_privacy_level()) { - set_privacy_level(from.privacy_level()); - } - if (from.has_visibility_level()) { - set_visibility_level(from.visibility_level()); - } - if (from.has_member_count()) { - set_member_count(from.member_count()); - } - } - if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) { - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubDescription::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubDescription::CopyFrom(const ClubDescription& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubDescription::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->leader())) return false; - return true; -} - void ClubDescription::Swap(ClubDescription* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(type_, other->type_); - std::swap(name_, other->name_); - std::swap(description_, other->description_); - std::swap(avatar_, other->avatar_); - std::swap(privacy_level_, other->privacy_level_); - std::swap(visibility_level_, other->visibility_level_); - std::swap(member_count_, other->member_count_); - leader_.Swap(&other->leader_); - std::swap(creation_time_, other->creation_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubDescription::GetMetadata() const { @@ -3854,199 +1242,9 @@ ClubView* ClubView::New() const { return new ClubView; } -void ClubView::Clear() { - if (_has_bits_[0 / 32] & 3) { - club_id_ = GOOGLE_ULONGLONG(0); - if (has_marker()) { - if (marker_ != NULL) marker_->::bgs::protocol::ViewMarker::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubView::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubView) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_marker; - break; - } - - // optional .bgs.protocol.ViewMarker marker = 2; - case 2: { - if (tag == 18) { - parse_marker: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_marker())); - } 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.club.v1.ClubView) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubView) - return false; -#undef DO_ -} - -void ClubView::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubView) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - // optional .bgs.protocol.ViewMarker marker = 2; - if (has_marker()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->marker(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubView) -} - -::google::protobuf::uint8* ClubView::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubView) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - // optional .bgs.protocol.ViewMarker marker = 2; - if (has_marker()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->marker(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubView) - return target; -} - -int ClubView::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.ViewMarker marker = 2; - if (has_marker()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->marker()); - } - - } - 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 ClubView::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubView* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubView::MergeFrom(const ClubView& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_marker()) { - mutable_marker()->::bgs::protocol::ViewMarker::MergeFrom(from.marker()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubView::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubView::CopyFrom(const ClubView& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubView::IsInitialized() const { - return true; -} - void ClubView::Swap(ClubView* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - std::swap(marker_, other->marker_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubView::GetMetadata() const { @@ -4139,492 +1337,15 @@ const ClubStateOptions& ClubStateOptions::default_instance() { return *default_instance_; } -ClubStateOptions* ClubStateOptions::default_instance_ = NULL; - -ClubStateOptions* ClubStateOptions::New() const { - return new ClubStateOptions; -} - -void ClubStateOptions::Clear() { - if (_has_bits_[0 / 32] & 254) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_description()) { - if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - description_->clear(); - } - } - if (has_broadcast()) { - if (broadcast_ != NULL) broadcast_->::bgs::protocol::club::v1::SetBroadcastOptions::Clear(); - } - if (has_avatar()) { - if (avatar_ != NULL) avatar_->::bgs::protocol::club::v1::AvatarId::Clear(); - } - privacy_level_ = 0; - if (has_stream_position()) { - if (stream_position_ != NULL) stream_position_->::bgs::protocol::club::v1::StreamPosition::Clear(); - } - if (has_short_name()) { - if (short_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - short_name_->clear(); - } - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubStateOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubStateOptions) - 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.v2.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute; - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // optional string name = 2; - case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_description; - break; - } - - // optional string description = 3; - case 3: { - if (tag == 26) { - parse_description: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "description"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_broadcast; - break; - } - - // optional .bgs.protocol.club.v1.SetBroadcastOptions broadcast = 4; - case 4: { - if (tag == 34) { - parse_broadcast: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_broadcast())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_avatar; - break; - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - case 5: { - if (tag == 42) { - parse_avatar: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatar())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_privacy_level; - break; - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - case 6: { - if (tag == 48) { - parse_privacy_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::PrivacyLevel_IsValid(value)) { - set_privacy_level(static_cast< ::bgs::protocol::club::v1::PrivacyLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_stream_position; - break; - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 7; - case 7: { - if (tag == 58) { - parse_stream_position: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_stream_position())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_short_name; - break; - } - - // optional string short_name = 8; - case 8: { - if (tag == 66) { - parse_short_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "short_name"); - } 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.club.v1.ClubStateOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubStateOptions) - return false; -#undef DO_ -} - -void ClubStateOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubStateOptions) - // repeated .bgs.protocol.v2.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // optional string description = 3; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->description(), output); - } - - // optional .bgs.protocol.club.v1.SetBroadcastOptions broadcast = 4; - if (has_broadcast()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->broadcast(), output); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->avatar(), output); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->privacy_level(), output); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 7; - if (has_stream_position()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->stream_position(), output); - } - - // optional string short_name = 8; - if (has_short_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "short_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->short_name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubStateOptions) -} - -::google::protobuf::uint8* ClubStateOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubStateOptions) - // repeated .bgs.protocol.v2.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(i), target); - } - - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // optional string description = 3; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->description(), target); - } - - // optional .bgs.protocol.club.v1.SetBroadcastOptions broadcast = 4; - if (has_broadcast()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->broadcast(), target); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->avatar(), target); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->privacy_level(), target); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 7; - if (has_stream_position()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->stream_position(), target); - } - - // optional string short_name = 8; - if (has_short_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "short_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->short_name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubStateOptions) - return target; -} - -int ClubStateOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string description = 3; - if (has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // optional .bgs.protocol.club.v1.SetBroadcastOptions broadcast = 4; - if (has_broadcast()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->broadcast()); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 5; - if (has_avatar()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatar()); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 6; - if (has_privacy_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->privacy_level()); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 7; - if (has_stream_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream_position()); - } - - // optional string short_name = 8; - if (has_short_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_name()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 1; - 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 ClubStateOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubStateOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubStateOptions::MergeFrom(const ClubStateOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_description()) { - set_description(from.description()); - } - if (from.has_broadcast()) { - mutable_broadcast()->::bgs::protocol::club::v1::SetBroadcastOptions::MergeFrom(from.broadcast()); - } - if (from.has_avatar()) { - mutable_avatar()->::bgs::protocol::club::v1::AvatarId::MergeFrom(from.avatar()); - } - if (from.has_privacy_level()) { - set_privacy_level(from.privacy_level()); - } - if (from.has_stream_position()) { - mutable_stream_position()->::bgs::protocol::club::v1::StreamPosition::MergeFrom(from.stream_position()); - } - if (from.has_short_name()) { - set_short_name(from.short_name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubStateOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubStateOptions::CopyFrom(const ClubStateOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubStateOptions::IsInitialized() const { - return true; +ClubStateOptions* ClubStateOptions::default_instance_ = NULL; + +ClubStateOptions* ClubStateOptions::New() const { + return new ClubStateOptions; } void ClubStateOptions::Swap(ClubStateOptions* other) { if (other != this) { - attribute_.Swap(&other->attribute_); - std::swap(name_, other->name_); - std::swap(description_, other->description_); - std::swap(broadcast_, other->broadcast_); - std::swap(avatar_, other->avatar_); - std::swap(privacy_level_, other->privacy_level_); - std::swap(stream_position_, other->stream_position_); - std::swap(short_name_, other->short_name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubStateOptions::GetMetadata() const { @@ -4725,529 +1446,9 @@ ClubStateAssignment* ClubStateAssignment::New() const { return new ClubStateAssignment; } -void ClubStateAssignment::Clear() { - if (_has_bits_[0 / 32] & 253) { - club_id_ = GOOGLE_ULONGLONG(0); - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_description()) { - if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - description_->clear(); - } - } - if (has_broadcast()) { - if (broadcast_ != NULL) broadcast_->::bgs::protocol::club::v1::Broadcast::Clear(); - } - if (has_avatar()) { - if (avatar_ != NULL) avatar_->::bgs::protocol::club::v1::AvatarId::Clear(); - } - privacy_level_ = 0; - if (has_stream_position()) { - if (stream_position_ != NULL) stream_position_->::bgs::protocol::club::v1::StreamPosition::Clear(); - } - } - if (has_short_name()) { - if (short_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - short_name_->clear(); - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubStateAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubStateAssignment) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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_name; - break; - } - - // optional string name = 3; - case 3: { - if (tag == 26) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_description; - break; - } - - // optional string description = 4; - case 4: { - if (tag == 34) { - parse_description: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "description"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_broadcast; - break; - } - - // optional .bgs.protocol.club.v1.Broadcast broadcast = 5; - case 5: { - if (tag == 42) { - parse_broadcast: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_broadcast())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_avatar; - break; - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 6; - case 6: { - if (tag == 50) { - parse_avatar: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatar())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_privacy_level; - break; - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 7; - case 7: { - if (tag == 56) { - parse_privacy_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::PrivacyLevel_IsValid(value)) { - set_privacy_level(static_cast< ::bgs::protocol::club::v1::PrivacyLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(7, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_stream_position; - break; - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 8; - case 8: { - if (tag == 66) { - parse_stream_position: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_stream_position())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_short_name; - break; - } - - // optional string short_name = 9; - case 9: { - if (tag == 74) { - parse_short_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "short_name"); - } 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.club.v1.ClubStateAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubStateAssignment) - return false; -#undef DO_ -} - -void ClubStateAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubStateAssignment) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - // optional string description = 4; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->description(), output); - } - - // optional .bgs.protocol.club.v1.Broadcast broadcast = 5; - if (has_broadcast()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->broadcast(), output); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 6; - if (has_avatar()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->avatar(), output); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 7; - if (has_privacy_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->privacy_level(), output); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 8; - if (has_stream_position()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->stream_position(), output); - } - - // optional string short_name = 9; - if (has_short_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "short_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->short_name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubStateAssignment) -} - -::google::protobuf::uint8* ClubStateAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubStateAssignment) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->attribute(i), target); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), target); - } - - // optional string description = 4; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->description(), target); - } - - // optional .bgs.protocol.club.v1.Broadcast broadcast = 5; - if (has_broadcast()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->broadcast(), target); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 6; - if (has_avatar()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->avatar(), target); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 7; - if (has_privacy_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 7, this->privacy_level(), target); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 8; - if (has_stream_position()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->stream_position(), target); - } - - // optional string short_name = 9; - if (has_short_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->short_name().data(), this->short_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "short_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 9, this->short_name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubStateAssignment) - return target; -} - -int ClubStateAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional string name = 3; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string description = 4; - if (has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // optional .bgs.protocol.club.v1.Broadcast broadcast = 5; - if (has_broadcast()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->broadcast()); - } - - // optional .bgs.protocol.club.v1.AvatarId avatar = 6; - if (has_avatar()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatar()); - } - - // optional .bgs.protocol.club.v1.PrivacyLevel privacy_level = 7; - if (has_privacy_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->privacy_level()); - } - - // optional .bgs.protocol.club.v1.StreamPosition stream_position = 8; - if (has_stream_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream_position()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional string short_name = 9; - if (has_short_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_name()); - } - - } - // repeated .bgs.protocol.v2.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 ClubStateAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubStateAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubStateAssignment::MergeFrom(const ClubStateAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_description()) { - set_description(from.description()); - } - if (from.has_broadcast()) { - mutable_broadcast()->::bgs::protocol::club::v1::Broadcast::MergeFrom(from.broadcast()); - } - if (from.has_avatar()) { - mutable_avatar()->::bgs::protocol::club::v1::AvatarId::MergeFrom(from.avatar()); - } - if (from.has_privacy_level()) { - set_privacy_level(from.privacy_level()); - } - if (from.has_stream_position()) { - mutable_stream_position()->::bgs::protocol::club::v1::StreamPosition::MergeFrom(from.stream_position()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_short_name()) { - set_short_name(from.short_name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubStateAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubStateAssignment::CopyFrom(const ClubStateAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubStateAssignment::IsInitialized() const { - if (has_broadcast()) { - if (!this->broadcast().IsInitialized()) return false; - } - return true; -} - void ClubStateAssignment::Swap(ClubStateAssignment* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - attribute_.Swap(&other->attribute_); - std::swap(name_, other->name_); - std::swap(description_, other->description_); - std::swap(broadcast_, other->broadcast_); - std::swap(avatar_, other->avatar_); - std::swap(privacy_level_, other->privacy_level_); - std::swap(stream_position_, other->stream_position_); - std::swap(short_name_, other->short_name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubStateAssignment::GetMetadata() const { @@ -5319,213 +1520,9 @@ StreamSettings* StreamSettings::New() const { return new StreamSettings; } -void StreamSettings::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(stream_id_, filter_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamSettings::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamSettings) - 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 uint64 stream_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_filter; - break; - } - - // optional .bgs.protocol.club.v1.StreamNotificationFilter filter = 2; - case 2: { - if (tag == 16) { - parse_filter: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::StreamNotificationFilter_IsValid(value)) { - set_filter(static_cast< ::bgs::protocol::club::v1::StreamNotificationFilter >(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.club.v1.StreamSettings) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamSettings) - return false; -#undef DO_ -} - -void StreamSettings::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamSettings) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->stream_id(), output); - } - - // optional .bgs.protocol.club.v1.StreamNotificationFilter filter = 2; - if (has_filter()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->filter(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamSettings) -} - -::google::protobuf::uint8* StreamSettings::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamSettings) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->stream_id(), target); - } - - // optional .bgs.protocol.club.v1.StreamNotificationFilter filter = 2; - if (has_filter()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->filter(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamSettings) - return target; -} - -int StreamSettings::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 stream_id = 1; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.club.v1.StreamNotificationFilter filter = 2; - if (has_filter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->filter()); - } - - } - 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 StreamSettings::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamSettings* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamSettings::MergeFrom(const StreamSettings& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_filter()) { - set_filter(from.filter()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamSettings::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamSettings::CopyFrom(const StreamSettings& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamSettings::IsInitialized() const { - return true; -} - void StreamSettings::Swap(StreamSettings* other) { if (other != this) { - std::swap(stream_id_, other->stream_id_); - std::swap(filter_, other->filter_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamSettings::GetMetadata() const { @@ -5599,280 +1596,9 @@ ClubSettings* ClubSettings::New() const { return new ClubSettings; } -void ClubSettings::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(stream_notification_filter_all_, push_notification_filter_all_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - stream_.Clear(); - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSettings::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSettings) - 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.club.v1.StreamSettings stream = 1; - case 1: { - if (tag == 10) { - parse_stream: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_stream())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_stream; - if (input->ExpectTag(16)) goto parse_stream_notification_filter_all; - break; - } - - // optional bool stream_notification_filter_all = 2; - case 2: { - if (tag == 16) { - parse_stream_notification_filter_all: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &stream_notification_filter_all_))); - set_has_stream_notification_filter_all(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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->ExpectTag(32)) goto parse_push_notification_filter_all; - break; - } - - // optional bool push_notification_filter_all = 4; - case 4: { - if (tag == 32) { - parse_push_notification_filter_all: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &push_notification_filter_all_))); - set_has_push_notification_filter_all(); - } 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.club.v1.ClubSettings) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSettings) - return false; -#undef DO_ -} - -void ClubSettings::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSettings) - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1; - for (int i = 0; i < this->stream_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->stream(i), output); - } - - // optional bool stream_notification_filter_all = 2; - if (has_stream_notification_filter_all()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->stream_notification_filter_all(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 3; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->attribute(i), output); - } - - // optional bool push_notification_filter_all = 4; - if (has_push_notification_filter_all()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->push_notification_filter_all(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSettings) -} - -::google::protobuf::uint8* ClubSettings::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSettings) - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1; - for (int i = 0; i < this->stream_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->stream(i), target); - } - - // optional bool stream_notification_filter_all = 2; - if (has_stream_notification_filter_all()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->stream_notification_filter_all(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 3; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->attribute(i), target); - } - - // optional bool push_notification_filter_all = 4; - if (has_push_notification_filter_all()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->push_notification_filter_all(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSettings) - return target; -} - -int ClubSettings::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional bool stream_notification_filter_all = 2; - if (has_stream_notification_filter_all()) { - total_size += 1 + 1; - } - - // optional bool push_notification_filter_all = 4; - if (has_push_notification_filter_all()) { - total_size += 1 + 1; - } - - } - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1; - total_size += 1 * this->stream_size(); - for (int i = 0; i < this->stream_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream(i)); - } - - // repeated .bgs.protocol.v2.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 ClubSettings::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSettings* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSettings::MergeFrom(const ClubSettings& from) { - GOOGLE_CHECK_NE(&from, this); - stream_.MergeFrom(from.stream_); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_stream_notification_filter_all()) { - set_stream_notification_filter_all(from.stream_notification_filter_all()); - } - if (from.has_push_notification_filter_all()) { - set_push_notification_filter_all(from.push_notification_filter_all()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSettings::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSettings::CopyFrom(const ClubSettings& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSettings::IsInitialized() const { - return true; -} - void ClubSettings::Swap(ClubSettings* other) { if (other != this) { - stream_.Swap(&other->stream_); - std::swap(stream_notification_filter_all_, other->stream_notification_filter_all_); - attribute_.Swap(&other->attribute_); - std::swap(push_notification_filter_all_, other->push_notification_filter_all_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSettings::GetMetadata() const { @@ -5947,238 +1673,9 @@ ClubSettingsOptions* ClubSettingsOptions::New() const { return new ClubSettingsOptions; } -void ClubSettingsOptions::Clear() { - if (_has_bits_[0 / 32] & 6) { - if (has_settings()) { - if (settings_ != NULL) settings_->::bgs::protocol::club::v1::ClubSettings::Clear(); - } - version_ = 0u; - } - stream_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSettingsOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSettingsOptions) - 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.club.v1.StreamSettings stream = 1 [deprecated = true]; - case 1: { - if (tag == 10) { - parse_stream: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_stream())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_stream; - if (input->ExpectTag(18)) goto parse_settings; - break; - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 2; - case 2: { - if (tag == 18) { - parse_settings: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_settings())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_version; - break; - } - - // optional uint32 version = 3; - case 3: { - if (tag == 24) { - parse_version: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &version_))); - set_has_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.club.v1.ClubSettingsOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSettingsOptions) - return false; -#undef DO_ -} - -void ClubSettingsOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSettingsOptions) - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1 [deprecated = true]; - for (int i = 0; i < this->stream_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->stream(i), output); - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 2; - if (has_settings()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->settings(), output); - } - - // optional uint32 version = 3; - if (has_version()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->version(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSettingsOptions) -} - -::google::protobuf::uint8* ClubSettingsOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSettingsOptions) - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1 [deprecated = true]; - for (int i = 0; i < this->stream_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->stream(i), target); - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 2; - if (has_settings()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->settings(), target); - } - - // optional uint32 version = 3; - if (has_version()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->version(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSettingsOptions) - return target; -} - -int ClubSettingsOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional .bgs.protocol.club.v1.ClubSettings settings = 2; - if (has_settings()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->settings()); - } - - // optional uint32 version = 3; - if (has_version()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->version()); - } - - } - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1 [deprecated = true]; - total_size += 1 * this->stream_size(); - for (int i = 0; i < this->stream_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream(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 ClubSettingsOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSettingsOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSettingsOptions::MergeFrom(const ClubSettingsOptions& from) { - GOOGLE_CHECK_NE(&from, this); - stream_.MergeFrom(from.stream_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_settings()) { - mutable_settings()->::bgs::protocol::club::v1::ClubSettings::MergeFrom(from.settings()); - } - if (from.has_version()) { - set_version(from.version()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSettingsOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSettingsOptions::CopyFrom(const ClubSettingsOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSettingsOptions::IsInitialized() const { - return true; -} - void ClubSettingsOptions::Swap(ClubSettingsOptions* other) { if (other != this) { - stream_.Swap(&other->stream_); - std::swap(settings_, other->settings_); - std::swap(version_, other->version_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSettingsOptions::GetMetadata() const { @@ -6251,199 +1748,9 @@ ClubSettingsAssignment* ClubSettingsAssignment::New() const { return new ClubSettingsAssignment; } -void ClubSettingsAssignment::Clear() { - if (has_settings()) { - if (settings_ != NULL) settings_->::bgs::protocol::club::v1::ClubSettings::Clear(); - } - stream_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSettingsAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSettingsAssignment) - 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.club.v1.StreamSettings stream = 1 [deprecated = true]; - case 1: { - if (tag == 10) { - parse_stream: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_stream())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_stream; - if (input->ExpectTag(18)) goto parse_settings; - break; - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 2; - case 2: { - if (tag == 18) { - parse_settings: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_settings())); - } 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.club.v1.ClubSettingsAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSettingsAssignment) - return false; -#undef DO_ -} - -void ClubSettingsAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSettingsAssignment) - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1 [deprecated = true]; - for (int i = 0; i < this->stream_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->stream(i), output); - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 2; - if (has_settings()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->settings(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSettingsAssignment) -} - -::google::protobuf::uint8* ClubSettingsAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSettingsAssignment) - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1 [deprecated = true]; - for (int i = 0; i < this->stream_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->stream(i), target); - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 2; - if (has_settings()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->settings(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSettingsAssignment) - return target; -} - -int ClubSettingsAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional .bgs.protocol.club.v1.ClubSettings settings = 2; - if (has_settings()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->settings()); - } - - } - // repeated .bgs.protocol.club.v1.StreamSettings stream = 1 [deprecated = true]; - total_size += 1 * this->stream_size(); - for (int i = 0; i < this->stream_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream(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 ClubSettingsAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSettingsAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSettingsAssignment::MergeFrom(const ClubSettingsAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - stream_.MergeFrom(from.stream_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_settings()) { - mutable_settings()->::bgs::protocol::club::v1::ClubSettings::MergeFrom(from.settings()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSettingsAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSettingsAssignment::CopyFrom(const ClubSettingsAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSettingsAssignment::IsInitialized() const { - return true; -} - void ClubSettingsAssignment::Swap(ClubSettingsAssignment* other) { if (other != this) { - stream_.Swap(&other->stream_); - std::swap(settings_, other->settings_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSettingsAssignment::GetMetadata() const { diff --git a/src/server/proto/Client/club_core.pb.h b/src/server/proto/Client/club_core.pb.h index bb4a80f5ce3..62887a890b3 100644 --- a/src/server/proto/Client/club_core.pb.h +++ b/src/server/proto/Client/club_core.pb.h @@ -88,19 +88,6 @@ class TC_PROTO_API AvatarId : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AvatarId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AvatarId& from); - void MergeFrom(const AvatarId& 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(); @@ -167,19 +154,6 @@ class TC_PROTO_API SetBroadcastOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SetBroadcastOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SetBroadcastOptions& from); - void MergeFrom(const SetBroadcastOptions& 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(); @@ -251,19 +225,6 @@ class TC_PROTO_API Broadcast : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Broadcast* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Broadcast& from); - void MergeFrom(const Broadcast& 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(); @@ -357,19 +318,6 @@ class TC_PROTO_API UniqueClubType : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UniqueClubType* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UniqueClubType& from); - void MergeFrom(const UniqueClubType& 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(); @@ -451,19 +399,6 @@ class TC_PROTO_API ClubCreateOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubCreateOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubCreateOptions& from); - void MergeFrom(const ClubCreateOptions& 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(); @@ -636,19 +571,6 @@ class TC_PROTO_API Club : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Club* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Club& from); - void MergeFrom(const Club& 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(); @@ -886,19 +808,6 @@ class TC_PROTO_API ClubDescription : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubDescription* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubDescription& from); - void MergeFrom(const ClubDescription& 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(); @@ -1072,19 +981,6 @@ class TC_PROTO_API ClubView : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubView* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubView& from); - void MergeFrom(const ClubView& 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(); @@ -1163,19 +1059,6 @@ class TC_PROTO_API ClubStateOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubStateOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubStateOptions& from); - void MergeFrom(const ClubStateOptions& 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(); @@ -1336,19 +1219,6 @@ class TC_PROTO_API ClubStateAssignment : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubStateAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubStateAssignment& from); - void MergeFrom(const ClubStateAssignment& 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(); @@ -1519,19 +1389,6 @@ class TC_PROTO_API StreamSettings : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamSettings* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamSettings& from); - void MergeFrom(const StreamSettings& 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(); @@ -1608,19 +1465,6 @@ class TC_PROTO_API ClubSettings : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubSettings* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSettings& from); - void MergeFrom(const ClubSettings& 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(); @@ -1723,19 +1567,6 @@ class TC_PROTO_API ClubSettingsOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubSettingsOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSettingsOptions& from); - void MergeFrom(const ClubSettingsOptions& 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(); @@ -1827,19 +1658,6 @@ class TC_PROTO_API ClubSettingsAssignment : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubSettingsAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSettingsAssignment& from); - void MergeFrom(const ClubSettingsAssignment& 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(); diff --git a/src/server/proto/Client/club_enum.pb.cc b/src/server/proto/Client/club_enum.pb.cc index 20711a74247..c8a44fb5810 100644 --- a/src/server/proto/Client/club_enum.pb.cc +++ b/src/server/proto/Client/club_enum.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_enum.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -103,7 +101,7 @@ void protobuf_AddDesc_club_5fenum_2eproto() { "tionFilter\022#\n\037STREAM_NOTIFICATION_FILTER" "_NONE\020\000\022&\n\"STREAM_NOTIFICATION_FILTER_ME" "NTION\020\001\022\"\n\036STREAM_NOTIFICATION_FILTER_AL" - "L\020\002B\002H\001", 1087); + "L\020\002B\002H\002", 1087); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_enum.proto", &protobuf_RegisterTypes); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_club_5fenum_2eproto); diff --git a/src/server/proto/Client/club_invitation.pb.cc b/src/server/proto/Client/club_invitation.pb.cc index 546427f86da..cdf6379b055 100644 --- a/src/server/proto/Client/club_invitation.pb.cc +++ b/src/server/proto/Client/club_invitation.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_invitation.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -291,7 +289,7 @@ void protobuf_AddDesc_club_5finvitation_2eproto() { "gs.protocol.v2.Attribute\022\034\n\024current_rede" "em_count\030\006 \001(\r\022\034\n\024allowed_redeem_count\030\007" " \001(\r\022\025\n\rcreation_time\030\010 \001(\004\022\027\n\017expiratio" - "n_time\030\t \001(\004B\002H\001", 1736); + "n_time\030\t \001(\004B\002H\002", 1736); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_invitation.proto", &protobuf_RegisterTypes); ClubSlot::default_instance_ = new ClubSlot(); @@ -378,207 +376,9 @@ ClubSlot* ClubSlot::New() const { return new ClubSlot; } -void ClubSlot::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(default_stream_id_, role_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSlot::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSlot) - 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 role = 1; - case 1: { - if (tag == 8) { - 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->ExpectTag(16)) goto parse_default_stream_id; - break; - } - - // optional uint64 default_stream_id = 2; - case 2: { - if (tag == 16) { - parse_default_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &default_stream_id_))); - set_has_default_stream_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.club.v1.ClubSlot) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSlot) - return false; -#undef DO_ -} - -void ClubSlot::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSlot) - // optional uint32 role = 1; - if (has_role()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->role(), output); - } - - // optional uint64 default_stream_id = 2; - if (has_default_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->default_stream_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSlot) -} - -::google::protobuf::uint8* ClubSlot::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSlot) - // optional uint32 role = 1; - if (has_role()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->role(), target); - } - - // optional uint64 default_stream_id = 2; - if (has_default_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->default_stream_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSlot) - return target; -} - -int ClubSlot::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 role = 1; - if (has_role()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->role()); - } - - // optional uint64 default_stream_id = 2; - if (has_default_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->default_stream_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 ClubSlot::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSlot* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSlot::MergeFrom(const ClubSlot& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_role()) { - set_role(from.role()); - } - if (from.has_default_stream_id()) { - set_default_stream_id(from.default_stream_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSlot::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSlot::CopyFrom(const ClubSlot& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSlot::IsInitialized() const { - return true; -} - void ClubSlot::Swap(ClubSlot* other) { if (other != this) { - std::swap(role_, other->role_); - std::swap(default_stream_id_, other->default_stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSlot::GetMetadata() const { @@ -655,243 +455,9 @@ SendInvitationOptions* SendInvitationOptions::New() const { return new SendInvitationOptions; } -void SendInvitationOptions::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_slot()) { - if (slot_ != NULL) slot_->::bgs::protocol::club::v1::ClubSlot::Clear(); - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SendInvitationOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SendInvitationOptions) - 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.club.v1.MemberId target_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_target_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_slot; - break; - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 2; - case 2: { - if (tag == 18) { - parse_slot: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slot())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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.club.v1.SendInvitationOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SendInvitationOptions) - return false; -#undef DO_ -} - -void SendInvitationOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SendInvitationOptions) - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->target_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 2; - if (has_slot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->slot(), output); - } - - // repeated .bgs.protocol.v2.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.club.v1.SendInvitationOptions) -} - -::google::protobuf::uint8* SendInvitationOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SendInvitationOptions) - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->target_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 2; - if (has_slot()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->slot(), target); - } - - // repeated .bgs.protocol.v2.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.club.v1.SendInvitationOptions) - return target; -} - -int SendInvitationOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_id()); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 2; - if (has_slot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->slot()); - } - - } - // repeated .bgs.protocol.v2.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 SendInvitationOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SendInvitationOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SendInvitationOptions::MergeFrom(const SendInvitationOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.target_id()); - } - if (from.has_slot()) { - mutable_slot()->::bgs::protocol::club::v1::ClubSlot::MergeFrom(from.slot()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SendInvitationOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SendInvitationOptions::CopyFrom(const SendInvitationOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SendInvitationOptions::IsInitialized() const { - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - return true; -} - void SendInvitationOptions::Swap(SendInvitationOptions* other) { if (other != this) { - std::swap(target_id_, other->target_id_); - std::swap(slot_, other->slot_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SendInvitationOptions::GetMetadata() const { @@ -986,498 +552,9 @@ ClubInvitation* ClubInvitation::New() const { return new ClubInvitation; } -void ClubInvitation::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 223) { - ZR_(creation_time_, expiration_time_); - id_ = GOOGLE_ULONGLONG(0); - if (has_inviter()) { - if (inviter_ != NULL) inviter_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - if (has_invitee()) { - if (invitee_ != NULL) invitee_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - if (has_club()) { - if (club_ != NULL) club_->::bgs::protocol::club::v1::ClubDescription::Clear(); - } - if (has_slot()) { - if (slot_ != NULL) slot_->::bgs::protocol::club::v1::ClubSlot::Clear(); - } - } - if (has_suggester()) { - if (suggester_ != NULL) suggester_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubInvitation::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubInvitation) - 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 fixed64 id = 1; - case 1: { - if (tag == 9) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_inviter; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription inviter = 2; - case 2: { - if (tag == 18) { - parse_inviter: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_inviter())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_invitee; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription invitee = 3; - case 3: { - if (tag == 26) { - parse_invitee: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_invitee())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_club; - break; - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 4; - case 4: { - if (tag == 34) { - parse_club: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_slot; - break; - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 5; - case 5: { - if (tag == 42) { - parse_slot: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slot())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.Attribute attribute = 6; - case 6: { - if (tag == 50) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_attribute; - if (input->ExpectTag(56)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 7; - case 7: { - if (tag == 56) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_expiration_time; - break; - } - - // optional uint64 expiration_time = 8; - case 8: { - if (tag == 64) { - parse_expiration_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &expiration_time_))); - set_has_expiration_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_suggester; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription suggester = 9; - case 9: { - if (tag == 74) { - parse_suggester: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_suggester())); - } 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.club.v1.ClubInvitation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubInvitation) - return false; -#undef DO_ -} - -void ClubInvitation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubInvitation) - // optional fixed64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->id(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription inviter = 2; - if (has_inviter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->inviter(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription invitee = 3; - if (has_invitee()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->invitee(), output); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 4; - if (has_club()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->club(), output); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 5; - if (has_slot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->slot(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 6; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->attribute(i), output); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->creation_time(), output); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->expiration_time(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription suggester = 9; - if (has_suggester()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, this->suggester(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubInvitation) -} - -::google::protobuf::uint8* ClubInvitation::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubInvitation) - // optional fixed64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->id(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription inviter = 2; - if (has_inviter()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->inviter(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription invitee = 3; - if (has_invitee()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->invitee(), target); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 4; - if (has_club()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->club(), target); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 5; - if (has_slot()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->slot(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 6; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->attribute(i), target); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->creation_time(), target); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->expiration_time(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription suggester = 9; - if (has_suggester()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 9, this->suggester(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubInvitation) - return target; -} - -int ClubInvitation::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed64 id = 1; - if (has_id()) { - total_size += 1 + 8; - } - - // optional .bgs.protocol.club.v1.MemberDescription inviter = 2; - if (has_inviter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->inviter()); - } - - // optional .bgs.protocol.club.v1.MemberDescription invitee = 3; - if (has_invitee()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitee()); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 4; - if (has_club()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club()); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 5; - if (has_slot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->slot()); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->expiration_time()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional .bgs.protocol.club.v1.MemberDescription suggester = 9; - if (has_suggester()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->suggester()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 6; - 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 ClubInvitation::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubInvitation* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubInvitation::MergeFrom(const ClubInvitation& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_inviter()) { - mutable_inviter()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.inviter()); - } - if (from.has_invitee()) { - mutable_invitee()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.invitee()); - } - if (from.has_club()) { - mutable_club()->::bgs::protocol::club::v1::ClubDescription::MergeFrom(from.club()); - } - if (from.has_slot()) { - mutable_slot()->::bgs::protocol::club::v1::ClubSlot::MergeFrom(from.slot()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - if (from.has_expiration_time()) { - set_expiration_time(from.expiration_time()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_suggester()) { - mutable_suggester()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.suggester()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubInvitation::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubInvitation::CopyFrom(const ClubInvitation& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubInvitation::IsInitialized() const { - if (has_inviter()) { - if (!this->inviter().IsInitialized()) return false; - } - if (has_invitee()) { - if (!this->invitee().IsInitialized()) return false; - } - if (has_club()) { - if (!this->club().IsInitialized()) return false; - } - if (has_suggester()) { - if (!this->suggester().IsInitialized()) return false; - } - return true; -} - void ClubInvitation::Swap(ClubInvitation* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(inviter_, other->inviter_); - std::swap(invitee_, other->invitee_); - std::swap(club_, other->club_); - std::swap(slot_, other->slot_); - attribute_.Swap(&other->attribute_); - std::swap(creation_time_, other->creation_time_); - std::swap(expiration_time_, other->expiration_time_); - std::swap(suggester_, other->suggester_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubInvitation::GetMetadata() const { @@ -1554,243 +631,9 @@ SendSuggestionOptions* SendSuggestionOptions::New() const { return new SendSuggestionOptions; } -void SendSuggestionOptions::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_slot()) { - if (slot_ != NULL) slot_->::bgs::protocol::club::v1::ClubSlot::Clear(); - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SendSuggestionOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SendSuggestionOptions) - 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.club.v1.MemberId target_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_target_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_slot; - break; - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 2; - case 2: { - if (tag == 18) { - parse_slot: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slot())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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.club.v1.SendSuggestionOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SendSuggestionOptions) - return false; -#undef DO_ -} - -void SendSuggestionOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SendSuggestionOptions) - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->target_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 2; - if (has_slot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->slot(), output); - } - - // repeated .bgs.protocol.v2.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.club.v1.SendSuggestionOptions) -} - -::google::protobuf::uint8* SendSuggestionOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SendSuggestionOptions) - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->target_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 2; - if (has_slot()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->slot(), target); - } - - // repeated .bgs.protocol.v2.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.club.v1.SendSuggestionOptions) - return target; -} - -int SendSuggestionOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId target_id = 1; - if (has_target_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_id()); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 2; - if (has_slot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->slot()); - } - - } - // repeated .bgs.protocol.v2.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 SendSuggestionOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SendSuggestionOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SendSuggestionOptions::MergeFrom(const SendSuggestionOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.target_id()); - } - if (from.has_slot()) { - mutable_slot()->::bgs::protocol::club::v1::ClubSlot::MergeFrom(from.slot()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SendSuggestionOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SendSuggestionOptions::CopyFrom(const SendSuggestionOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SendSuggestionOptions::IsInitialized() const { - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - return true; -} - void SendSuggestionOptions::Swap(SendSuggestionOptions* other) { if (other != this) { - std::swap(target_id_, other->target_id_); - std::swap(slot_, other->slot_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SendSuggestionOptions::GetMetadata() const { @@ -1879,444 +722,9 @@ ClubSuggestion* ClubSuggestion::New() const { return new ClubSuggestion; } -void ClubSuggestion::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 223) { - ZR_(id_, club_id_); - ZR_(creation_time_, expiration_time_); - if (has_suggester()) { - if (suggester_ != NULL) suggester_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - if (has_suggestee()) { - if (suggestee_ != NULL) suggestee_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - if (has_slot()) { - if (slot_ != NULL) slot_->::bgs::protocol::club::v1::ClubSlot::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSuggestion::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSuggestion) - 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 fixed64 id = 1; - case 1: { - if (tag == 9) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_suggester; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription suggester = 3; - case 3: { - if (tag == 26) { - parse_suggester: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_suggester())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_suggestee; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription suggestee = 4; - case 4: { - if (tag == 34) { - parse_suggestee: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_suggestee())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_slot; - break; - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 5; - case 5: { - if (tag == 42) { - parse_slot: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slot())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.Attribute attribute = 6; - case 6: { - if (tag == 50) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_attribute; - if (input->ExpectTag(56)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 7; - case 7: { - if (tag == 56) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_expiration_time; - break; - } - - // optional uint64 expiration_time = 8; - case 8: { - if (tag == 64) { - parse_expiration_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &expiration_time_))); - set_has_expiration_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.club.v1.ClubSuggestion) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSuggestion) - return false; -#undef DO_ -} - -void ClubSuggestion::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSuggestion) - // optional fixed64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription suggester = 3; - if (has_suggester()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->suggester(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription suggestee = 4; - if (has_suggestee()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->suggestee(), output); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 5; - if (has_slot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->slot(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 6; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->attribute(i), output); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->creation_time(), output); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->expiration_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSuggestion) -} - -::google::protobuf::uint8* ClubSuggestion::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSuggestion) - // optional fixed64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription suggester = 3; - if (has_suggester()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->suggester(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription suggestee = 4; - if (has_suggestee()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->suggestee(), target); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 5; - if (has_slot()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->slot(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 6; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->attribute(i), target); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->creation_time(), target); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->expiration_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSuggestion) - return target; -} - -int ClubSuggestion::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed64 id = 1; - if (has_id()) { - total_size += 1 + 8; - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.MemberDescription suggester = 3; - if (has_suggester()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->suggester()); - } - - // optional .bgs.protocol.club.v1.MemberDescription suggestee = 4; - if (has_suggestee()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->suggestee()); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 5; - if (has_slot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->slot()); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->expiration_time()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 6; - 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 ClubSuggestion::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSuggestion* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSuggestion::MergeFrom(const ClubSuggestion& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_suggester()) { - mutable_suggester()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.suggester()); - } - if (from.has_suggestee()) { - mutable_suggestee()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.suggestee()); - } - if (from.has_slot()) { - mutable_slot()->::bgs::protocol::club::v1::ClubSlot::MergeFrom(from.slot()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - if (from.has_expiration_time()) { - set_expiration_time(from.expiration_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSuggestion::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSuggestion::CopyFrom(const ClubSuggestion& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSuggestion::IsInitialized() const { - if (has_suggester()) { - if (!this->suggester().IsInitialized()) return false; - } - if (has_suggestee()) { - if (!this->suggestee().IsInitialized()) return false; - } - return true; -} - void ClubSuggestion::Swap(ClubSuggestion* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(club_id_, other->club_id_); - std::swap(suggester_, other->suggester_); - std::swap(suggestee_, other->suggestee_); - std::swap(slot_, other->slot_); - attribute_.Swap(&other->attribute_); - std::swap(creation_time_, other->creation_time_); - std::swap(expiration_time_, other->expiration_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSuggestion::GetMetadata() const { @@ -2393,287 +801,9 @@ CreateTicketOptions* CreateTicketOptions::New() const { return new CreateTicketOptions; } -void CreateTicketOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 13) { - ZR_(expiration_time_, allowed_redeem_count_); - if (has_slot()) { - if (slot_ != NULL) slot_->::bgs::protocol::club::v1::ClubSlot::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateTicketOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateTicketOptions) - 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.club.v1.ClubSlot slot = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slot())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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_allowed_redeem_count; - break; - } - - // optional uint32 allowed_redeem_count = 3; - case 3: { - if (tag == 24) { - parse_allowed_redeem_count: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &allowed_redeem_count_))); - set_has_allowed_redeem_count(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_expiration_time; - break; - } - - // optional uint64 expiration_time = 4; - case 4: { - if (tag == 32) { - parse_expiration_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &expiration_time_))); - set_has_expiration_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.club.v1.CreateTicketOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateTicketOptions) - return false; -#undef DO_ -} - -void CreateTicketOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateTicketOptions) - // optional .bgs.protocol.club.v1.ClubSlot slot = 1; - if (has_slot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->slot(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - // optional uint32 allowed_redeem_count = 3; - if (has_allowed_redeem_count()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->allowed_redeem_count(), output); - } - - // optional uint64 expiration_time = 4; - if (has_expiration_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->expiration_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateTicketOptions) -} - -::google::protobuf::uint8* CreateTicketOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateTicketOptions) - // optional .bgs.protocol.club.v1.ClubSlot slot = 1; - if (has_slot()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->slot(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->attribute(i), target); - } - - // optional uint32 allowed_redeem_count = 3; - if (has_allowed_redeem_count()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->allowed_redeem_count(), target); - } - - // optional uint64 expiration_time = 4; - if (has_expiration_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->expiration_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateTicketOptions) - return target; -} - -int CreateTicketOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubSlot slot = 1; - if (has_slot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->slot()); - } - - // optional uint32 allowed_redeem_count = 3; - if (has_allowed_redeem_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->allowed_redeem_count()); - } - - // optional uint64 expiration_time = 4; - if (has_expiration_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->expiration_time()); - } - - } - // repeated .bgs.protocol.v2.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 CreateTicketOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateTicketOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateTicketOptions::MergeFrom(const CreateTicketOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_slot()) { - mutable_slot()->::bgs::protocol::club::v1::ClubSlot::MergeFrom(from.slot()); - } - if (from.has_allowed_redeem_count()) { - set_allowed_redeem_count(from.allowed_redeem_count()); - } - if (from.has_expiration_time()) { - set_expiration_time(from.expiration_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateTicketOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateTicketOptions::CopyFrom(const CreateTicketOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateTicketOptions::IsInitialized() const { - return true; -} - void CreateTicketOptions::Swap(CreateTicketOptions* other) { if (other != this) { - std::swap(slot_, other->slot_); - attribute_.Swap(&other->attribute_); - std::swap(allowed_redeem_count_, other->allowed_redeem_count_); - std::swap(expiration_time_, other->expiration_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateTicketOptions::GetMetadata() const { @@ -2768,504 +898,9 @@ ClubTicket* ClubTicket::New() const { return new ClubTicket; } -void ClubTicket::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 239) { - ZR_(current_redeem_count_, creation_time_); - if (has_id()) { - if (id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - id_->clear(); - } - } - if (has_creator()) { - if (creator_ != NULL) creator_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - if (has_club()) { - if (club_ != NULL) club_->::bgs::protocol::club::v1::ClubDescription::Clear(); - } - if (has_slot()) { - if (slot_ != NULL) slot_->::bgs::protocol::club::v1::ClubSlot::Clear(); - } - } - expiration_time_ = GOOGLE_ULONGLONG(0); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubTicket::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubTicket) - 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 id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "id"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_creator; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 2; - case 2: { - if (tag == 18) { - parse_creator: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_creator())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_club; - break; - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 3; - case 3: { - if (tag == 26) { - parse_club: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_slot; - break; - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 4; - case 4: { - if (tag == 34) { - parse_slot: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slot())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.Attribute attribute = 5; - case 5: { - if (tag == 42) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_attribute; - if (input->ExpectTag(48)) goto parse_current_redeem_count; - break; - } - - // optional uint32 current_redeem_count = 6; - case 6: { - if (tag == 48) { - parse_current_redeem_count: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, ¤t_redeem_count_))); - set_has_current_redeem_count(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_allowed_redeem_count; - break; - } - - // optional uint32 allowed_redeem_count = 7; - case 7: { - if (tag == 56) { - parse_allowed_redeem_count: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &allowed_redeem_count_))); - set_has_allowed_redeem_count(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 8; - case 8: { - if (tag == 64) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_expiration_time; - break; - } - - // optional uint64 expiration_time = 9; - case 9: { - if (tag == 72) { - parse_expiration_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &expiration_time_))); - set_has_expiration_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.club.v1.ClubTicket) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubTicket) - return false; -#undef DO_ -} - -void ClubTicket::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubTicket) - // optional string id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 2; - if (has_creator()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->creator(), output); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 3; - if (has_club()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->club(), output); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 4; - if (has_slot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->slot(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 5; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->attribute(i), output); - } - - // optional uint32 current_redeem_count = 6; - if (has_current_redeem_count()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->current_redeem_count(), output); - } - - // optional uint32 allowed_redeem_count = 7; - if (has_allowed_redeem_count()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->allowed_redeem_count(), output); - } - - // optional uint64 creation_time = 8; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->creation_time(), output); - } - - // optional uint64 expiration_time = 9; - if (has_expiration_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->expiration_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubTicket) -} - -::google::protobuf::uint8* ClubTicket::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubTicket) - // optional string id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 2; - if (has_creator()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->creator(), target); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 3; - if (has_club()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->club(), target); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 4; - if (has_slot()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->slot(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 5; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->attribute(i), target); - } - - // optional uint32 current_redeem_count = 6; - if (has_current_redeem_count()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->current_redeem_count(), target); - } - - // optional uint32 allowed_redeem_count = 7; - if (has_allowed_redeem_count()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->allowed_redeem_count(), target); - } - - // optional uint64 creation_time = 8; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->creation_time(), target); - } - - // optional uint64 expiration_time = 9; - if (has_expiration_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->expiration_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubTicket) - return target; -} - -int ClubTicket::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // optional .bgs.protocol.club.v1.MemberDescription creator = 2; - if (has_creator()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->creator()); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 3; - if (has_club()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club()); - } - - // optional .bgs.protocol.club.v1.ClubSlot slot = 4; - if (has_slot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->slot()); - } - - // optional uint32 current_redeem_count = 6; - if (has_current_redeem_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->current_redeem_count()); - } - - // optional uint32 allowed_redeem_count = 7; - if (has_allowed_redeem_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->allowed_redeem_count()); - } - - // optional uint64 creation_time = 8; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional uint64 expiration_time = 9; - if (has_expiration_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->expiration_time()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 5; - 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 ClubTicket::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubTicket* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubTicket::MergeFrom(const ClubTicket& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_creator()) { - mutable_creator()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.creator()); - } - if (from.has_club()) { - mutable_club()->::bgs::protocol::club::v1::ClubDescription::MergeFrom(from.club()); - } - if (from.has_slot()) { - mutable_slot()->::bgs::protocol::club::v1::ClubSlot::MergeFrom(from.slot()); - } - if (from.has_current_redeem_count()) { - set_current_redeem_count(from.current_redeem_count()); - } - if (from.has_allowed_redeem_count()) { - set_allowed_redeem_count(from.allowed_redeem_count()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_expiration_time()) { - set_expiration_time(from.expiration_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubTicket::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubTicket::CopyFrom(const ClubTicket& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubTicket::IsInitialized() const { - if (has_creator()) { - if (!this->creator().IsInitialized()) return false; - } - if (has_club()) { - if (!this->club().IsInitialized()) return false; - } - return true; -} - void ClubTicket::Swap(ClubTicket* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(creator_, other->creator_); - std::swap(club_, other->club_); - std::swap(slot_, other->slot_); - attribute_.Swap(&other->attribute_); - std::swap(current_redeem_count_, other->current_redeem_count_); - std::swap(allowed_redeem_count_, other->allowed_redeem_count_); - std::swap(creation_time_, other->creation_time_); - std::swap(expiration_time_, other->expiration_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubTicket::GetMetadata() const { diff --git a/src/server/proto/Client/club_invitation.pb.h b/src/server/proto/Client/club_invitation.pb.h index 08fdaa5c0c2..63096c64593 100644 --- a/src/server/proto/Client/club_invitation.pb.h +++ b/src/server/proto/Client/club_invitation.pb.h @@ -78,19 +78,6 @@ class TC_PROTO_API ClubSlot : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubSlot* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSlot& from); - void MergeFrom(const ClubSlot& 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(); @@ -167,19 +154,6 @@ class TC_PROTO_API SendInvitationOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SendInvitationOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SendInvitationOptions& from); - void MergeFrom(const SendInvitationOptions& 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(); @@ -273,19 +247,6 @@ class TC_PROTO_API ClubInvitation : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubInvitation* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubInvitation& from); - void MergeFrom(const ClubInvitation& 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(); @@ -445,19 +406,6 @@ class TC_PROTO_API SendSuggestionOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SendSuggestionOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SendSuggestionOptions& from); - void MergeFrom(const SendSuggestionOptions& 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(); @@ -551,19 +499,6 @@ class TC_PROTO_API ClubSuggestion : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubSuggestion* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSuggestion& from); - void MergeFrom(const ClubSuggestion& 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(); @@ -709,19 +644,6 @@ class TC_PROTO_API CreateTicketOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateTicketOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateTicketOptions& from); - void MergeFrom(const CreateTicketOptions& 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(); @@ -823,19 +745,6 @@ class TC_PROTO_API ClubTicket : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubTicket* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubTicket& from); - void MergeFrom(const ClubTicket& 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(); diff --git a/src/server/proto/Client/club_listener.pb.cc b/src/server/proto/Client/club_listener.pb.cc index 198530c5a39..a6c80e5f67b 100644 --- a/src/server/proto/Client/club_listener.pb.cc +++ b/src/server/proto/Client/club_listener.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_listener.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -125,7 +122,7 @@ void protobuf_AddDesc_club_5flistener_2eproto() { "Time\0227.bgs.protocol.club.v1.StreamAdvanc" "eViewTimeNotification\032\031.bgs.protocol.NO_" "RESPONSE\"\007\202\371+\003\010\233\001\032.\202\371+$\n\"bnet.protocol.c" - "lub.v1.ClubListener\212\371+\002\010\001B\005H\001\200\001\000", 2432); + "lub.v1.ClubListener\212\371+\002\010\001B\005H\002\200\001\000", 2432); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_listener.proto", &protobuf_RegisterTypes); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_club_5flistener_2eproto); @@ -139,7 +136,7 @@ struct StaticDescriptorInitializer_club_5flistener_2eproto { } static_descriptor_initializer_club_5flistener_2eproto_; // =================================================================== -ClubListener::ClubListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ClubListener::ClubListener(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ClubListener::~ClubListener() { @@ -151,134 +148,112 @@ google::protobuf::ServiceDescriptor const* ClubListener::descriptor() { } void ClubListener::OnSubscribe(::bgs::protocol::club::v1::SubscribeNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSubscribe(bgs.protocol.club.v1.SubscribeNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnSubscribe", "bgs.protocol.club.v1.SubscribeNotification", request); SendRequest(service_hash_, 1 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnUnsubscribe(::bgs::protocol::club::v1::UnsubscribeNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnUnsubscribe(bgs.protocol.club.v1.UnsubscribeNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnUnsubscribe", "bgs.protocol.club.v1.UnsubscribeNotification", request); SendRequest(service_hash_, 2 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStateChanged(::bgs::protocol::club::v1::StateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStateChanged(bgs.protocol.club.v1.StateChangedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStateChanged", "bgs.protocol.club.v1.StateChangedNotification", request); SendRequest(service_hash_, 3 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnSettingsChanged(::bgs::protocol::club::v1::SettingsChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSettingsChanged(bgs.protocol.club.v1.SettingsChangedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnSettingsChanged", "bgs.protocol.club.v1.SettingsChangedNotification", request); SendRequest(service_hash_, 4 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnMemberAdded(::bgs::protocol::club::v1::MemberAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnMemberAdded(bgs.protocol.club.v1.MemberAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnMemberAdded", "bgs.protocol.club.v1.MemberAddedNotification", request); SendRequest(service_hash_, 30 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnMemberRemoved(::bgs::protocol::club::v1::MemberRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnMemberRemoved(bgs.protocol.club.v1.MemberRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnMemberRemoved", "bgs.protocol.club.v1.MemberRemovedNotification", request); SendRequest(service_hash_, 31 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnMemberStateChanged(::bgs::protocol::club::v1::MemberStateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnMemberStateChanged(bgs.protocol.club.v1.MemberStateChangedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnMemberStateChanged", "bgs.protocol.club.v1.MemberStateChangedNotification", request); SendRequest(service_hash_, 32 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnSubscriberStateChanged(::bgs::protocol::club::v1::SubscriberStateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSubscriberStateChanged(bgs.protocol.club.v1.SubscriberStateChangedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnSubscriberStateChanged", "bgs.protocol.club.v1.SubscriberStateChangedNotification", request); SendRequest(service_hash_, 33 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnMemberRoleChanged(::bgs::protocol::club::v1::MemberRoleChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnMemberRoleChanged(bgs.protocol.club.v1.MemberRoleChangedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnMemberRoleChanged", "bgs.protocol.club.v1.MemberRoleChangedNotification", request); SendRequest(service_hash_, 34 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnInvitationAdded(::bgs::protocol::club::v1::InvitationAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnInvitationAdded(bgs.protocol.club.v1.InvitationAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnInvitationAdded", "bgs.protocol.club.v1.InvitationAddedNotification", request); SendRequest(service_hash_, 50 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnInvitationRemoved(::bgs::protocol::club::v1::InvitationRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnInvitationRemoved(bgs.protocol.club.v1.InvitationRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnInvitationRemoved", "bgs.protocol.club.v1.InvitationRemovedNotification", request); SendRequest(service_hash_, 51 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnSuggestionAdded(::bgs::protocol::club::v1::SuggestionAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSuggestionAdded(bgs.protocol.club.v1.SuggestionAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnSuggestionAdded", "bgs.protocol.club.v1.SuggestionAddedNotification", request); SendRequest(service_hash_, 70 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnSuggestionRemoved(::bgs::protocol::club::v1::SuggestionRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSuggestionRemoved(bgs.protocol.club.v1.SuggestionRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnSuggestionRemoved", "bgs.protocol.club.v1.SuggestionRemovedNotification", request); SendRequest(service_hash_, 71 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStreamAdded(::bgs::protocol::club::v1::StreamAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamAdded(bgs.protocol.club.v1.StreamAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStreamAdded", "bgs.protocol.club.v1.StreamAddedNotification", request); SendRequest(service_hash_, 100 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStreamRemoved(::bgs::protocol::club::v1::StreamRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamRemoved(bgs.protocol.club.v1.StreamRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStreamRemoved", "bgs.protocol.club.v1.StreamRemovedNotification", request); SendRequest(service_hash_, 101 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStreamStateChanged(::bgs::protocol::club::v1::StreamStateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamStateChanged(bgs.protocol.club.v1.StreamStateChangedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStreamStateChanged", "bgs.protocol.club.v1.StreamStateChangedNotification", request); SendRequest(service_hash_, 102 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStreamMessageAdded(::bgs::protocol::club::v1::StreamMessageAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamMessageAdded(bgs.protocol.club.v1.StreamMessageAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStreamMessageAdded", "bgs.protocol.club.v1.StreamMessageAddedNotification", request); SendRequest(service_hash_, 150 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStreamMessageUpdated(::bgs::protocol::club::v1::StreamMessageUpdatedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamMessageUpdated(bgs.protocol.club.v1.StreamMessageUpdatedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStreamMessageUpdated", "bgs.protocol.club.v1.StreamMessageUpdatedNotification", request); SendRequest(service_hash_, 152 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStreamTypingIndicator(::bgs::protocol::club::v1::StreamTypingIndicatorNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamTypingIndicator(bgs.protocol.club.v1.StreamTypingIndicatorNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStreamTypingIndicator", "bgs.protocol.club.v1.StreamTypingIndicatorNotification", request); SendRequest(service_hash_, 153 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStreamUnreadIndicator(::bgs::protocol::club::v1::StreamUnreadIndicatorNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamUnreadIndicator(bgs.protocol.club.v1.StreamUnreadIndicatorNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStreamUnreadIndicator", "bgs.protocol.club.v1.StreamUnreadIndicatorNotification", request); SendRequest(service_hash_, 154 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubListener::OnStreamAdvanceViewTime(::bgs::protocol::club::v1::StreamAdvanceViewTimeNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamAdvanceViewTime(bgs.protocol.club.v1.StreamAdvanceViewTimeNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubListener.OnStreamAdvanceViewTime", "bgs.protocol.club.v1.StreamAdvanceViewTimeNotification", request); SendRequest(service_hash_, 155 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } -void ClubListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) { - TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", - GetCallerInfo().c_str(), methodId); +void ClubListener::CallServerMethod(uint32 /*token*/, uint32 methodId, MessageBuffer /*buffer*/) { + LogDisallowedMethod(methodId); } // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/club_listener.pb.h b/src/server/proto/Client/club_listener.pb.h index d1a8cc7ac94..8c0dbc2c9cb 100644 --- a/src/server/proto/Client/club_listener.pb.h +++ b/src/server/proto/Client/club_listener.pb.h @@ -48,6 +48,10 @@ class TC_PROTO_API ClubListener : public ServiceBase public: explicit ClubListener(bool use_original_hash); + ClubListener(ClubListener const&) = delete; + ClubListener(ClubListener&&) = delete; + ClubListener& operator=(ClubListener const&) = delete; + ClubListener& operator=(ClubListener&&) = delete; virtual ~ClubListener(); typedef std::integral_constant OriginalHash; @@ -79,11 +83,6 @@ class TC_PROTO_API ClubListener : public ServiceBase void OnStreamAdvanceViewTime(::bgs::protocol::club::v1::StreamAdvanceViewTimeNotification const* request, bool client = false, bool server = false); void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final; - - private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ClubListener); }; // =================================================================== diff --git a/src/server/proto/Client/club_listener.proto b/src/server/proto/Client/club_listener.proto index 18d18f6c896..6ab55d30fa2 100644 --- a/src/server/proto/Client/club_listener.proto +++ b/src/server/proto/Client/club_listener.proto @@ -3,7 +3,7 @@ syntax = "proto2"; import "club_notification.proto"; package bgs.protocol.club.v1; -option optimize_for = SPEED; +option optimize_for = CODE_SIZE; option cc_generic_services = false; service ClubListener { diff --git a/src/server/proto/Client/club_member.pb.cc b/src/server/proto/Client/club_member.pb.cc index 24199d041b8..04be58ed0a5 100644 --- a/src/server/proto/Client/club_member.pb.cc +++ b/src/server/proto/Client/club_member.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_member.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -492,7 +490,7 @@ void protobuf_AddDesc_club_5fmember_2eproto() { "2#.bgs.protocol.club.v1.PresenceLevel\022\026\n" "\016moderator_mute\030\004 \001(\010\0229\n\rwhisper_level\030\005" " \001(\0162\".bgs.protocol.club.v1.WhisperLevel" - "\022\014\n\004note\030\006 \001(\tB\002H\001P\000", 2460); + "\022\014\n\004note\030\006 \001(\tB\002H\002P\000", 2460); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_member.proto", &protobuf_RegisterTypes); Member::default_instance_ = new Member(); @@ -573,7 +571,6 @@ void Member::SharedCtor() { _cached_size_ = 0; id_ = NULL; battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _role_cached_byte_size_ = 0; join_time_ = GOOGLE_ULONGLONG(0); presence_level_ = 0; moderator_mute_ = false; @@ -623,624 +620,9 @@ Member* Member::New() const { return new Member; } -void Member::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 243) { - ZR_(join_time_, whisper_level_); - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_battle_tag()) { - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - battle_tag_->clear(); - } - } - moderator_mute_ = false; - } - if (_has_bits_[8 / 32] & 1792) { - if (has_note()) { - if (note_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - note_->clear(); - } - } - active_ = false; - if (has_voice()) { - if (voice_ != NULL) voice_->::bgs::protocol::club::v1::MemberVoiceState::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - role_.Clear(); - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Member::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.Member) - 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 .bgs.protocol.club.v1.MemberId id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_id())); - } 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->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(34)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.Attribute attribute = 4; - case 4: { - if (tag == 34) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_attribute; - if (input->ExpectTag(40)) goto parse_join_time; - break; - } - - // optional uint64 join_time = 5; - case 5: { - if (tag == 40) { - parse_join_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &join_time_))); - set_has_join_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_presence_level; - break; - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 6; - case 6: { - if (tag == 48) { - parse_presence_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::PresenceLevel_IsValid(value)) { - set_presence_level(static_cast< ::bgs::protocol::club::v1::PresenceLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_moderator_mute; - break; - } - - // optional bool moderator_mute = 7; - case 7: { - if (tag == 56) { - parse_moderator_mute: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &moderator_mute_))); - set_has_moderator_mute(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_whisper_level; - break; - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 8; - case 8: { - if (tag == 64) { - parse_whisper_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::WhisperLevel_IsValid(value)) { - set_whisper_level(static_cast< ::bgs::protocol::club::v1::WhisperLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(8, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_note; - break; - } - - // optional string note = 9; - case 9: { - if (tag == 74) { - parse_note: - 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(400)) goto parse_active; - break; - } - - // optional bool active = 50; - case 50: { - if (tag == 400) { - 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(410)) goto parse_voice; - break; - } - - // optional .bgs.protocol.club.v1.MemberVoiceState voice = 51; - case 51: { - if (tag == 410) { - parse_voice: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_voice())); - } 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.club.v1.Member) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.Member) - return false; -#undef DO_ -} - -void Member::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.Member) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->id(), 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); - } - - // 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); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 4; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->attribute(i), output); - } - - // optional uint64 join_time = 5; - if (has_join_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->join_time(), output); - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 6; - if (has_presence_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->presence_level(), output); - } - - // optional bool moderator_mute = 7; - if (has_moderator_mute()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->moderator_mute(), output); - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 8; - if (has_whisper_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 8, this->whisper_level(), output); - } - - // optional string note = 9; - 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( - 9, this->note(), output); - } - - // optional bool active = 50; - if (has_active()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(50, this->active(), output); - } - - // optional .bgs.protocol.club.v1.MemberVoiceState voice = 51; - if (has_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 51, this->voice(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.Member) -} - -::google::protobuf::uint8* Member::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.Member) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->id(), 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); - } - - // 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); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 4; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->attribute(i), target); - } - - // optional uint64 join_time = 5; - if (has_join_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->join_time(), target); - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 6; - if (has_presence_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->presence_level(), target); - } - - // optional bool moderator_mute = 7; - if (has_moderator_mute()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->moderator_mute(), target); - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 8; - if (has_whisper_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 8, this->whisper_level(), target); - } - - // optional string note = 9; - 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( - 9, this->note(), target); - } - - // optional bool active = 50; - if (has_active()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(50, this->active(), target); - } - - // optional .bgs.protocol.club.v1.MemberVoiceState voice = 51; - if (has_voice()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 51, this->voice(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.Member) - return target; -} - -int Member::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->id()); - } - - // optional string battle_tag = 2; - if (has_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->battle_tag()); - } - - // optional uint64 join_time = 5; - if (has_join_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->join_time()); - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 6; - if (has_presence_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->presence_level()); - } - - // optional bool moderator_mute = 7; - if (has_moderator_mute()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 8; - if (has_whisper_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->whisper_level()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional string note = 9; - if (has_note()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->note()); - } - - // optional bool active = 50; - if (has_active()) { - total_size += 2 + 1; - } - - // optional .bgs.protocol.club.v1.MemberVoiceState voice = 51; - if (has_voice()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->voice()); - } - - } - // 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; - } - - // repeated .bgs.protocol.v2.Attribute attribute = 4; - 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 Member::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Member* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Member::MergeFrom(const Member& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.id()); - } - if (from.has_battle_tag()) { - set_battle_tag(from.battle_tag()); - } - if (from.has_join_time()) { - set_join_time(from.join_time()); - } - if (from.has_presence_level()) { - set_presence_level(from.presence_level()); - } - if (from.has_moderator_mute()) { - set_moderator_mute(from.moderator_mute()); - } - if (from.has_whisper_level()) { - set_whisper_level(from.whisper_level()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_note()) { - set_note(from.note()); - } - if (from.has_active()) { - set_active(from.active()); - } - if (from.has_voice()) { - mutable_voice()->::bgs::protocol::club::v1::MemberVoiceState::MergeFrom(from.voice()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Member::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Member::CopyFrom(const Member& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Member::IsInitialized() const { - if (has_id()) { - if (!this->id().IsInitialized()) return false; - } - return true; -} - void Member::Swap(Member* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(battle_tag_, other->battle_tag_); - role_.Swap(&other->role_); - attribute_.Swap(&other->attribute_); - std::swap(join_time_, other->join_time_); - std::swap(presence_level_, other->presence_level_); - std::swap(moderator_mute_, other->moderator_mute_); - std::swap(whisper_level_, other->whisper_level_); - std::swap(note_, other->note_); - std::swap(active_, other->active_); - std::swap(voice_, other->voice_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Member::GetMetadata() const { @@ -1314,202 +696,9 @@ MemberResult* MemberResult::New() const { return new MemberResult; } -void MemberResult::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - status_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberResult) - 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.club.v1.MemberId member_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_status; - break; - } - - // optional uint32 status = 2; - case 2: { - if (tag == 16) { - parse_status: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &status_))); - set_has_status(); - } 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.club.v1.MemberResult) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberResult) - return false; -#undef DO_ -} - -void MemberResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberResult) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member_id(), output); - } - - // optional uint32 status = 2; - if (has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->status(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberResult) -} - -::google::protobuf::uint8* MemberResult::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberResult) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member_id(), target); - } - - // optional uint32 status = 2; - if (has_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->status(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberResult) - return target; -} - -int MemberResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - // optional uint32 status = 2; - if (has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->status()); - } - - } - 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 MemberResult::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberResult* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberResult::MergeFrom(const MemberResult& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - if (from.has_status()) { - set_status(from.status()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberResult::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberResult::CopyFrom(const MemberResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberResult::IsInitialized() const { - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - return true; -} - void MemberResult::Swap(MemberResult* other) { if (other != this) { - std::swap(member_id_, other->member_id_); - std::swap(status_, other->status_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberResult::GetMetadata() const { @@ -1583,208 +772,9 @@ RemoveMemberOptions* RemoveMemberOptions::New() const { return new RemoveMemberOptions; } -void RemoveMemberOptions::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - reason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RemoveMemberOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.RemoveMemberOptions) - 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.club.v1.MemberId id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_reason; - break; - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 2; - case 2: { - if (tag == 16) { - parse_reason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::ClubRemovedReason_IsValid(value)) { - set_reason(static_cast< ::bgs::protocol::club::v1::ClubRemovedReason >(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.club.v1.RemoveMemberOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.RemoveMemberOptions) - return false; -#undef DO_ -} - -void RemoveMemberOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.RemoveMemberOptions) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->id(), output); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 2; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.RemoveMemberOptions) -} - -::google::protobuf::uint8* RemoveMemberOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.RemoveMemberOptions) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->id(), target); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 2; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.RemoveMemberOptions) - return target; -} - -int RemoveMemberOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->id()); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 2; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); - } - - } - 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 RemoveMemberOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RemoveMemberOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RemoveMemberOptions::MergeFrom(const RemoveMemberOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.id()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RemoveMemberOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RemoveMemberOptions::CopyFrom(const RemoveMemberOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RemoveMemberOptions::IsInitialized() const { - if (has_id()) { - if (!this->id().IsInitialized()) return false; - } - return true; -} - void RemoveMemberOptions::Swap(RemoveMemberOptions* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RemoveMemberOptions::GetMetadata() const { @@ -1858,208 +848,9 @@ MemberRemovedAssignment* MemberRemovedAssignment::New() const { return new MemberRemovedAssignment; } -void MemberRemovedAssignment::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - reason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberRemovedAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberRemovedAssignment) - 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.club.v1.MemberId id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_reason; - break; - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 2; - case 2: { - if (tag == 16) { - parse_reason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::ClubRemovedReason_IsValid(value)) { - set_reason(static_cast< ::bgs::protocol::club::v1::ClubRemovedReason >(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.club.v1.MemberRemovedAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberRemovedAssignment) - return false; -#undef DO_ -} - -void MemberRemovedAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberRemovedAssignment) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->id(), output); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 2; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberRemovedAssignment) -} - -::google::protobuf::uint8* MemberRemovedAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberRemovedAssignment) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->id(), target); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 2; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberRemovedAssignment) - return target; -} - -int MemberRemovedAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->id()); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 2; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); - } - - } - 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 MemberRemovedAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberRemovedAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberRemovedAssignment::MergeFrom(const MemberRemovedAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.id()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberRemovedAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberRemovedAssignment::CopyFrom(const MemberRemovedAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberRemovedAssignment::IsInitialized() const { - if (has_id()) { - if (!this->id().IsInitialized()) return false; - } - return true; -} - void MemberRemovedAssignment::Swap(MemberRemovedAssignment* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberRemovedAssignment::GetMetadata() const { @@ -2135,281 +926,9 @@ MemberVoiceOptions* MemberVoiceOptions::New() const { return new MemberVoiceOptions; } -void MemberVoiceOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(stream_id_, active_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberVoiceOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberVoiceOptions) - 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 uint64 stream_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_joined; - break; - } - - // optional bool joined = 2; - case 2: { - if (tag == 16) { - parse_joined: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &joined_))); - set_has_joined(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_microphone; - break; - } - - // optional .bgs.protocol.club.v1.VoiceMicrophoneState microphone = 3; - case 3: { - if (tag == 24) { - parse_microphone: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::VoiceMicrophoneState_IsValid(value)) { - set_microphone(static_cast< ::bgs::protocol::club::v1::VoiceMicrophoneState >(value)); - } else { - mutable_unknown_fields()->AddVarint(3, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_active; - break; - } - - // optional bool active = 4; - case 4: { - if (tag == 32) { - 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->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.club.v1.MemberVoiceOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberVoiceOptions) - return false; -#undef DO_ -} - -void MemberVoiceOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberVoiceOptions) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->stream_id(), output); - } - - // optional bool joined = 2; - if (has_joined()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->joined(), output); - } - - // optional .bgs.protocol.club.v1.VoiceMicrophoneState microphone = 3; - if (has_microphone()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->microphone(), output); - } - - // optional bool active = 4; - if (has_active()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->active(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberVoiceOptions) -} - -::google::protobuf::uint8* MemberVoiceOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberVoiceOptions) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->stream_id(), target); - } - - // optional bool joined = 2; - if (has_joined()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->joined(), target); - } - - // optional .bgs.protocol.club.v1.VoiceMicrophoneState microphone = 3; - if (has_microphone()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->microphone(), target); - } - - // optional bool active = 4; - if (has_active()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->active(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberVoiceOptions) - return target; -} - -int MemberVoiceOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 stream_id = 1; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional bool joined = 2; - if (has_joined()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.club.v1.VoiceMicrophoneState microphone = 3; - if (has_microphone()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->microphone()); - } - - // optional bool active = 4; - if (has_active()) { - 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 MemberVoiceOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberVoiceOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberVoiceOptions::MergeFrom(const MemberVoiceOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_joined()) { - set_joined(from.joined()); - } - if (from.has_microphone()) { - set_microphone(from.microphone()); - } - if (from.has_active()) { - set_active(from.active()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberVoiceOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberVoiceOptions::CopyFrom(const MemberVoiceOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberVoiceOptions::IsInitialized() const { - return true; -} - void MemberVoiceOptions::Swap(MemberVoiceOptions* other) { if (other != this) { - std::swap(stream_id_, other->stream_id_); - std::swap(joined_, other->joined_); - std::swap(microphone_, other->microphone_); - std::swap(active_, other->active_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberVoiceOptions::GetMetadata() const { @@ -2491,337 +1010,9 @@ MemberVoiceState* MemberVoiceState::New() const { return new MemberVoiceState; } -void MemberVoiceState::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(stream_id_, active_); - if (has_id()) { - if (id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - id_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberVoiceState::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberVoiceState) - 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 id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "id"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 2; - case 2: { - if (tag == 16) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_joined; - break; - } - - // optional bool joined = 3; - case 3: { - if (tag == 24) { - parse_joined: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &joined_))); - set_has_joined(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_microphone; - break; - } - - // optional .bgs.protocol.club.v1.VoiceMicrophoneState microphone = 4; - case 4: { - if (tag == 32) { - parse_microphone: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::VoiceMicrophoneState_IsValid(value)) { - set_microphone(static_cast< ::bgs::protocol::club::v1::VoiceMicrophoneState >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_active; - break; - } - - // optional bool active = 5; - case 5: { - if (tag == 40) { - 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->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.club.v1.MemberVoiceState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberVoiceState) - return false; -#undef DO_ -} - -void MemberVoiceState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberVoiceState) - // optional string id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stream_id(), output); - } - - // optional bool joined = 3; - if (has_joined()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->joined(), output); - } - - // optional .bgs.protocol.club.v1.VoiceMicrophoneState microphone = 4; - if (has_microphone()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->microphone(), output); - } - - // optional bool active = 5; - if (has_active()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->active(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberVoiceState) -} - -::google::protobuf::uint8* MemberVoiceState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberVoiceState) - // optional string id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stream_id(), target); - } - - // optional bool joined = 3; - if (has_joined()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->joined(), target); - } - - // optional .bgs.protocol.club.v1.VoiceMicrophoneState microphone = 4; - if (has_microphone()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->microphone(), target); - } - - // optional bool active = 5; - if (has_active()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->active(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberVoiceState) - return target; -} - -int MemberVoiceState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional bool joined = 3; - if (has_joined()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.club.v1.VoiceMicrophoneState microphone = 4; - if (has_microphone()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->microphone()); - } - - // optional bool active = 5; - if (has_active()) { - 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 MemberVoiceState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberVoiceState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberVoiceState::MergeFrom(const MemberVoiceState& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_joined()) { - set_joined(from.joined()); - } - if (from.has_microphone()) { - set_microphone(from.microphone()); - } - if (from.has_active()) { - set_active(from.active()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberVoiceState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberVoiceState::CopyFrom(const MemberVoiceState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberVoiceState::IsInitialized() const { - return true; -} - void MemberVoiceState::Swap(MemberVoiceState* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(stream_id_, other->stream_id_); - std::swap(joined_, other->joined_); - std::swap(microphone_, other->microphone_); - std::swap(active_, other->active_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberVoiceState::GetMetadata() const { @@ -2894,201 +1085,9 @@ CreateMemberOptions* CreateMemberOptions::New() const { return new CreateMemberOptions; } -void CreateMemberOptions::Clear() { - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateMemberOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateMemberOptions) - 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.club.v1.MemberId id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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->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.club.v1.CreateMemberOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateMemberOptions) - return false; -#undef DO_ -} - -void CreateMemberOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateMemberOptions) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->id(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateMemberOptions) -} - -::google::protobuf::uint8* CreateMemberOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateMemberOptions) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->id(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, 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.club.v1.CreateMemberOptions) - return target; -} - -int CreateMemberOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->id()); - } - - } - // repeated .bgs.protocol.v2.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 CreateMemberOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateMemberOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateMemberOptions::MergeFrom(const CreateMemberOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateMemberOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateMemberOptions::CopyFrom(const CreateMemberOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateMemberOptions::IsInitialized() const { - if (has_id()) { - if (!this->id().IsInitialized()) return false; - } - return true; -} - void CreateMemberOptions::Swap(CreateMemberOptions* other) { if (other != this) { - std::swap(id_, other->id_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateMemberOptions::GetMetadata() const { @@ -3166,219 +1165,9 @@ MemberDescription* MemberDescription::New() const { return new MemberDescription; } -void MemberDescription::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::club::v1::MemberId::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 MemberDescription::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberDescription) - 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.club.v1.MemberId id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_id())); - } 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.club.v1.MemberDescription) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberDescription) - return false; -#undef DO_ -} - -void MemberDescription::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberDescription) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->id(), 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.club.v1.MemberDescription) -} - -::google::protobuf::uint8* MemberDescription::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberDescription) - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->id(), 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.club.v1.MemberDescription) - return target; -} - -int MemberDescription::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->id()); - } - - // 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 MemberDescription::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberDescription* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberDescription::MergeFrom(const MemberDescription& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.id()); - } - if (from.has_battle_tag()) { - set_battle_tag(from.battle_tag()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberDescription::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberDescription::CopyFrom(const MemberDescription& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberDescription::IsInitialized() const { - if (has_id()) { - if (!this->id().IsInitialized()) return false; - } - return true; -} - void MemberDescription::Swap(MemberDescription* other) { if (other != this) { - std::swap(id_, other->id_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberDescription::GetMetadata() const { @@ -3416,7 +1205,6 @@ RoleOptions::RoleOptions(const RoleOptions& from) void RoleOptions::SharedCtor() { _cached_size_ = 0; member_id_ = NULL; - _role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -3452,225 +1240,9 @@ RoleOptions* RoleOptions::New() const { return new RoleOptions; } -void RoleOptions::Clear() { - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RoleOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.RoleOptions) - 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.club.v1.MemberId member_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_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->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.club.v1.RoleOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.RoleOptions) - return false; -#undef DO_ -} - -void RoleOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.RoleOptions) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member_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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.RoleOptions) -} - -::google::protobuf::uint8* RoleOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.RoleOptions) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member_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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.RoleOptions) - return target; -} - -int RoleOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_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; - } - - 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 RoleOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RoleOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RoleOptions::MergeFrom(const RoleOptions& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RoleOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RoleOptions::CopyFrom(const RoleOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RoleOptions::IsInitialized() const { - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - return true; -} - void RoleOptions::Swap(RoleOptions* other) { if (other != this) { - std::swap(member_id_, other->member_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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RoleOptions::GetMetadata() const { @@ -3708,261 +1280,44 @@ RoleAssignment::RoleAssignment(const RoleAssignment& from) void RoleAssignment::SharedCtor() { _cached_size_ = 0; member_id_ = NULL; - _role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -RoleAssignment::~RoleAssignment() { - // @@protoc_insertion_point(destructor:bgs.protocol.club.v1.RoleAssignment) - SharedDtor(); -} - -void RoleAssignment::SharedDtor() { - if (this != default_instance_) { - delete member_id_; - } -} - -void RoleAssignment::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* RoleAssignment::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RoleAssignment_descriptor_; -} - -const RoleAssignment& RoleAssignment::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_club_5fmember_2eproto(); - return *default_instance_; -} - -RoleAssignment* RoleAssignment::default_instance_ = NULL; - -RoleAssignment* RoleAssignment::New() const { - return new RoleAssignment; -} - -void RoleAssignment::Clear() { - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RoleAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.RoleAssignment) - 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.club.v1.MemberId member_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_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->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.club.v1.RoleAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.RoleAssignment) - return false; -#undef DO_ -} - -void RoleAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.RoleAssignment) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member_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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.RoleAssignment) -} - -::google::protobuf::uint8* RoleAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.RoleAssignment) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member_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); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.RoleAssignment) - return target; -} - -int RoleAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } +RoleAssignment::~RoleAssignment() { + // @@protoc_insertion_point(destructor:bgs.protocol.club.v1.RoleAssignment) + SharedDtor(); +} +void RoleAssignment::SharedDtor() { + if (this != default_instance_) { + delete member_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; - } +} - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void RoleAssignment::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RoleAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RoleAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void RoleAssignment::MergeFrom(const RoleAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* RoleAssignment::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RoleAssignment_descriptor_; } -void RoleAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const RoleAssignment& RoleAssignment::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_club_5fmember_2eproto(); + return *default_instance_; } -void RoleAssignment::CopyFrom(const RoleAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +RoleAssignment* RoleAssignment::default_instance_ = NULL; -bool RoleAssignment::IsInitialized() const { - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - return true; +RoleAssignment* RoleAssignment::New() const { + return new RoleAssignment; } void RoleAssignment::Swap(RoleAssignment* other) { if (other != this) { - std::swap(member_id_, other->member_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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RoleAssignment::GetMetadata() const { @@ -4035,201 +1390,9 @@ MemberAttributeAssignment* MemberAttributeAssignment::New() const { return new MemberAttributeAssignment; } -void MemberAttributeAssignment::Clear() { - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberAttributeAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberAttributeAssignment) - 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.club.v1.MemberId member_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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->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.club.v1.MemberAttributeAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberAttributeAssignment) - return false; -#undef DO_ -} - -void MemberAttributeAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberAttributeAssignment) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member_id(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberAttributeAssignment) -} - -::google::protobuf::uint8* MemberAttributeAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberAttributeAssignment) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member_id(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, 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.club.v1.MemberAttributeAssignment) - return target; -} - -int MemberAttributeAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - } - // repeated .bgs.protocol.v2.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 MemberAttributeAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberAttributeAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberAttributeAssignment::MergeFrom(const MemberAttributeAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberAttributeAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberAttributeAssignment::CopyFrom(const MemberAttributeAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberAttributeAssignment::IsInitialized() const { - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - return true; -} - void MemberAttributeAssignment::Swap(MemberAttributeAssignment* other) { if (other != this) { - std::swap(member_id_, other->member_id_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberAttributeAssignment::GetMetadata() const { @@ -4301,160 +1464,9 @@ SubscriberStateOptions* SubscriberStateOptions::New() const { return new SubscriberStateOptions; } -void SubscriberStateOptions::Clear() { - if (has_voice()) { - if (voice_ != NULL) voice_->::bgs::protocol::club::v1::MemberVoiceOptions::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscriberStateOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SubscriberStateOptions) - 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.club.v1.MemberVoiceOptions voice = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_voice())); - } 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.club.v1.SubscriberStateOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SubscriberStateOptions) - return false; -#undef DO_ -} - -void SubscriberStateOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SubscriberStateOptions) - // optional .bgs.protocol.club.v1.MemberVoiceOptions voice = 1; - if (has_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->voice(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SubscriberStateOptions) -} - -::google::protobuf::uint8* SubscriberStateOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SubscriberStateOptions) - // optional .bgs.protocol.club.v1.MemberVoiceOptions voice = 1; - if (has_voice()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->voice(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SubscriberStateOptions) - return target; -} - -int SubscriberStateOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberVoiceOptions voice = 1; - if (has_voice()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->voice()); - } - - } - 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 SubscriberStateOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscriberStateOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscriberStateOptions::MergeFrom(const SubscriberStateOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_voice()) { - mutable_voice()->::bgs::protocol::club::v1::MemberVoiceOptions::MergeFrom(from.voice()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscriberStateOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscriberStateOptions::CopyFrom(const SubscriberStateOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscriberStateOptions::IsInitialized() const { - return true; -} - void SubscriberStateOptions::Swap(SubscriberStateOptions* other) { if (other != this) { - std::swap(voice_, other->voice_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscriberStateOptions::GetMetadata() const { @@ -4532,240 +1544,9 @@ SubscriberStateAssignment* SubscriberStateAssignment::New() const { return new SubscriberStateAssignment; } -void SubscriberStateAssignment::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - active_ = false; - if (has_voice()) { - if (voice_ != NULL) voice_->::bgs::protocol::club::v1::MemberVoiceState::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscriberStateAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SubscriberStateAssignment) - 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.club.v1.MemberId member_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_active; - break; - } - - // optional bool active = 2; - case 2: { - if (tag == 16) { - 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(26)) goto parse_voice; - break; - } - - // optional .bgs.protocol.club.v1.MemberVoiceState voice = 3; - case 3: { - if (tag == 26) { - parse_voice: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_voice())); - } 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.club.v1.SubscriberStateAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SubscriberStateAssignment) - return false; -#undef DO_ -} - -void SubscriberStateAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SubscriberStateAssignment) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member_id(), output); - } - - // optional bool active = 2; - if (has_active()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->active(), output); - } - - // optional .bgs.protocol.club.v1.MemberVoiceState voice = 3; - if (has_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->voice(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SubscriberStateAssignment) -} - -::google::protobuf::uint8* SubscriberStateAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SubscriberStateAssignment) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member_id(), target); - } - - // optional bool active = 2; - if (has_active()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->active(), target); - } - - // optional .bgs.protocol.club.v1.MemberVoiceState voice = 3; - if (has_voice()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->voice(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SubscriberStateAssignment) - return target; -} - -int SubscriberStateAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - // optional bool active = 2; - if (has_active()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.club.v1.MemberVoiceState voice = 3; - if (has_voice()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->voice()); - } - - } - 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 SubscriberStateAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscriberStateAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscriberStateAssignment::MergeFrom(const SubscriberStateAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - if (from.has_active()) { - set_active(from.active()); - } - if (from.has_voice()) { - mutable_voice()->::bgs::protocol::club::v1::MemberVoiceState::MergeFrom(from.voice()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscriberStateAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscriberStateAssignment::CopyFrom(const SubscriberStateAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscriberStateAssignment::IsInitialized() const { - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - return true; -} - void SubscriberStateAssignment::Swap(SubscriberStateAssignment* other) { if (other != this) { - std::swap(member_id_, other->member_id_); - std::swap(active_, other->active_); - std::swap(voice_, other->voice_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscriberStateAssignment::GetMetadata() const { @@ -4846,349 +1627,9 @@ MemberStateOptions* MemberStateOptions::New() const { return new MemberStateOptions; } -void MemberStateOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 30) { - ZR_(presence_level_, moderator_mute_); - whisper_level_ = 0; - if (has_note()) { - if (note_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - note_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberStateOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberStateOptions) - 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.v2.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute; - if (input->ExpectTag(16)) goto parse_presence_level; - break; - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 2; - case 2: { - if (tag == 16) { - parse_presence_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::PresenceLevel_IsValid(value)) { - set_presence_level(static_cast< ::bgs::protocol::club::v1::PresenceLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_moderator_mute; - break; - } - - // optional bool moderator_mute = 3; - case 3: { - if (tag == 24) { - parse_moderator_mute: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &moderator_mute_))); - set_has_moderator_mute(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_whisper_level; - break; - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 4; - case 4: { - if (tag == 32) { - parse_whisper_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::WhisperLevel_IsValid(value)) { - set_whisper_level(static_cast< ::bgs::protocol::club::v1::WhisperLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_note; - break; - } - - // optional string note = 5; - case 5: { - if (tag == 42) { - parse_note: - 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->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.club.v1.MemberStateOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberStateOptions) - return false; -#undef DO_ -} - -void MemberStateOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberStateOptions) - // repeated .bgs.protocol.v2.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 2; - if (has_presence_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->presence_level(), output); - } - - // optional bool moderator_mute = 3; - if (has_moderator_mute()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->moderator_mute(), output); - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 4; - if (has_whisper_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->whisper_level(), output); - } - - // optional string note = 5; - 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( - 5, this->note(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberStateOptions) -} - -::google::protobuf::uint8* MemberStateOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberStateOptions) - // repeated .bgs.protocol.v2.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(i), target); - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 2; - if (has_presence_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->presence_level(), target); - } - - // optional bool moderator_mute = 3; - if (has_moderator_mute()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->moderator_mute(), target); - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 4; - if (has_whisper_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->whisper_level(), target); - } - - // optional string note = 5; - 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( - 5, this->note(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberStateOptions) - return target; -} - -int MemberStateOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 2; - if (has_presence_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->presence_level()); - } - - // optional bool moderator_mute = 3; - if (has_moderator_mute()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 4; - if (has_whisper_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->whisper_level()); - } - - // optional string note = 5; - if (has_note()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->note()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 1; - 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 MemberStateOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberStateOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberStateOptions::MergeFrom(const MemberStateOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_presence_level()) { - set_presence_level(from.presence_level()); - } - if (from.has_moderator_mute()) { - set_moderator_mute(from.moderator_mute()); - } - if (from.has_whisper_level()) { - set_whisper_level(from.whisper_level()); - } - if (from.has_note()) { - set_note(from.note()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberStateOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberStateOptions::CopyFrom(const MemberStateOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberStateOptions::IsInitialized() const { - return true; -} - void MemberStateOptions::Swap(MemberStateOptions* other) { if (other != this) { - attribute_.Swap(&other->attribute_); - std::swap(presence_level_, other->presence_level_); - std::swap(moderator_mute_, other->moderator_mute_); - std::swap(whisper_level_, other->whisper_level_); - std::swap(note_, other->note_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberStateOptions::GetMetadata() const { @@ -5273,391 +1714,9 @@ MemberStateAssignment* MemberStateAssignment::New() const { return new MemberStateAssignment; } -void MemberStateAssignment::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(presence_level_, moderator_mute_); - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - whisper_level_ = 0; - if (has_note()) { - if (note_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - note_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberStateAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberStateAssignment) - 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.club.v1.MemberId member_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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_presence_level; - break; - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 3; - case 3: { - if (tag == 24) { - parse_presence_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::PresenceLevel_IsValid(value)) { - set_presence_level(static_cast< ::bgs::protocol::club::v1::PresenceLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(3, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_moderator_mute; - break; - } - - // optional bool moderator_mute = 4; - case 4: { - if (tag == 32) { - parse_moderator_mute: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &moderator_mute_))); - set_has_moderator_mute(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_whisper_level; - break; - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 5; - case 5: { - if (tag == 40) { - parse_whisper_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::WhisperLevel_IsValid(value)) { - set_whisper_level(static_cast< ::bgs::protocol::club::v1::WhisperLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(5, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_note; - break; - } - - // optional string note = 6; - case 6: { - if (tag == 50) { - parse_note: - 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->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.club.v1.MemberStateAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberStateAssignment) - return false; -#undef DO_ -} - -void MemberStateAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberStateAssignment) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member_id(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 3; - if (has_presence_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->presence_level(), output); - } - - // optional bool moderator_mute = 4; - if (has_moderator_mute()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->moderator_mute(), output); - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 5; - if (has_whisper_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->whisper_level(), output); - } - - // optional string note = 6; - 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( - 6, this->note(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberStateAssignment) -} - -::google::protobuf::uint8* MemberStateAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberStateAssignment) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member_id(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->attribute(i), target); - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 3; - if (has_presence_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->presence_level(), target); - } - - // optional bool moderator_mute = 4; - if (has_moderator_mute()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->moderator_mute(), target); - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 5; - if (has_whisper_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->whisper_level(), target); - } - - // optional string note = 6; - 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( - 6, this->note(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberStateAssignment) - return target; -} - -int MemberStateAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - // optional .bgs.protocol.club.v1.PresenceLevel presence_level = 3; - if (has_presence_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->presence_level()); - } - - // optional bool moderator_mute = 4; - if (has_moderator_mute()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.club.v1.WhisperLevel whisper_level = 5; - if (has_whisper_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->whisper_level()); - } - - // optional string note = 6; - if (has_note()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->note()); - } - - } - // repeated .bgs.protocol.v2.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 MemberStateAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberStateAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberStateAssignment::MergeFrom(const MemberStateAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - if (from.has_presence_level()) { - set_presence_level(from.presence_level()); - } - if (from.has_moderator_mute()) { - set_moderator_mute(from.moderator_mute()); - } - if (from.has_whisper_level()) { - set_whisper_level(from.whisper_level()); - } - if (from.has_note()) { - set_note(from.note()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberStateAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberStateAssignment::CopyFrom(const MemberStateAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberStateAssignment::IsInitialized() const { - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - return true; -} - void MemberStateAssignment::Swap(MemberStateAssignment* other) { if (other != this) { - std::swap(member_id_, other->member_id_); - attribute_.Swap(&other->attribute_); - std::swap(presence_level_, other->presence_level_); - std::swap(moderator_mute_, other->moderator_mute_); - std::swap(whisper_level_, other->whisper_level_); - std::swap(note_, other->note_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberStateAssignment::GetMetadata() const { diff --git a/src/server/proto/Client/club_member.pb.h b/src/server/proto/Client/club_member.pb.h index a51c31b69f6..c36fb84033a 100644 --- a/src/server/proto/Client/club_member.pb.h +++ b/src/server/proto/Client/club_member.pb.h @@ -88,19 +88,6 @@ class TC_PROTO_API Member : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Member* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Member& from); - void MergeFrom(const Member& 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(); @@ -242,7 +229,6 @@ class TC_PROTO_API Member : public ::google::protobuf::Message { ::bgs::protocol::club::v1::MemberId* id_; ::std::string* battle_tag_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > attribute_; ::google::protobuf::uint64 join_time_; int presence_level_; @@ -288,19 +274,6 @@ class TC_PROTO_API MemberResult : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemberResult* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberResult& from); - void MergeFrom(const MemberResult& 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(); @@ -379,19 +352,6 @@ class TC_PROTO_API RemoveMemberOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RemoveMemberOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RemoveMemberOptions& from); - void MergeFrom(const RemoveMemberOptions& 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(); @@ -470,19 +430,6 @@ class TC_PROTO_API MemberRemovedAssignment : public ::google::protobuf::Message // implements Message ---------------------------------------------- MemberRemovedAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberRemovedAssignment& from); - void MergeFrom(const MemberRemovedAssignment& 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(); @@ -561,19 +508,6 @@ class TC_PROTO_API MemberVoiceOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemberVoiceOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberVoiceOptions& from); - void MergeFrom(const MemberVoiceOptions& 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(); @@ -670,19 +604,6 @@ class TC_PROTO_API MemberVoiceState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemberVoiceState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberVoiceState& from); - void MergeFrom(const MemberVoiceState& 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(); @@ -794,19 +715,6 @@ class TC_PROTO_API CreateMemberOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateMemberOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateMemberOptions& from); - void MergeFrom(const CreateMemberOptions& 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(); @@ -888,19 +796,6 @@ class TC_PROTO_API MemberDescription : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemberDescription* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberDescription& from); - void MergeFrom(const MemberDescription& 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(); @@ -984,19 +879,6 @@ class TC_PROTO_API RoleOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RoleOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RoleOptions& from); - void MergeFrom(const RoleOptions& 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(); @@ -1041,7 +923,6 @@ class TC_PROTO_API RoleOptions : public ::google::protobuf::Message { mutable int _cached_size_; ::bgs::protocol::club::v1::MemberId* member_id_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; friend void TC_PROTO_API protobuf_AddDesc_club_5fmember_2eproto(); friend void protobuf_AssignDesc_club_5fmember_2eproto(); friend void protobuf_ShutdownFile_club_5fmember_2eproto(); @@ -1079,19 +960,6 @@ class TC_PROTO_API RoleAssignment : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RoleAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RoleAssignment& from); - void MergeFrom(const RoleAssignment& 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(); @@ -1136,7 +1004,6 @@ class TC_PROTO_API RoleAssignment : public ::google::protobuf::Message { mutable int _cached_size_; ::bgs::protocol::club::v1::MemberId* member_id_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; friend void TC_PROTO_API protobuf_AddDesc_club_5fmember_2eproto(); friend void protobuf_AssignDesc_club_5fmember_2eproto(); friend void protobuf_ShutdownFile_club_5fmember_2eproto(); @@ -1174,19 +1041,6 @@ class TC_PROTO_API MemberAttributeAssignment : public ::google::protobuf::Messag // implements Message ---------------------------------------------- MemberAttributeAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberAttributeAssignment& from); - void MergeFrom(const MemberAttributeAssignment& 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(); @@ -1268,19 +1122,6 @@ class TC_PROTO_API SubscriberStateOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscriberStateOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscriberStateOptions& from); - void MergeFrom(const SubscriberStateOptions& 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(); @@ -1349,19 +1190,6 @@ class TC_PROTO_API SubscriberStateAssignment : public ::google::protobuf::Messag // implements Message ---------------------------------------------- SubscriberStateAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscriberStateAssignment& from); - void MergeFrom(const SubscriberStateAssignment& 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(); @@ -1452,19 +1280,6 @@ class TC_PROTO_API MemberStateOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemberStateOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberStateOptions& from); - void MergeFrom(const MemberStateOptions& 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(); @@ -1579,19 +1394,6 @@ class TC_PROTO_API MemberStateAssignment : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemberStateAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberStateAssignment& from); - void MergeFrom(const MemberStateAssignment& 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(); diff --git a/src/server/proto/Client/club_member_id.pb.cc b/src/server/proto/Client/club_member_id.pb.cc index b7b7cc2fb44..e00da71ba84 100644 --- a/src/server/proto/Client/club_member_id.pb.cc +++ b/src/server/proto/Client/club_member_id.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_member_id.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -91,7 +89,7 @@ void protobuf_AddDesc_club_5fmember_5fid_2eproto() { "proto\032\023account_types.proto\032\017rpc_types.pr" "oto\"]\n\010MemberId\0226\n\naccount_id\030\001 \001(\0132\".bg" "s.protocol.account.v1.AccountId\022\021\n\tuniqu" - "e_id\030\002 \001(\004:\006\202\371+\002\010\001B\002H\001", 222); + "e_id\030\002 \001(\004:\006\202\371+\002\010\001B\002H\002", 222); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_member_id.proto", &protobuf_RegisterTypes); MemberId::default_instance_ = new MemberId(); @@ -168,202 +166,9 @@ MemberId* MemberId::New() const { return new MemberId; } -void MemberId::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - unique_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberId::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberId) - 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_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_unique_id; - break; - } - - // optional uint64 unique_id = 2; - case 2: { - if (tag == 16) { - parse_unique_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &unique_id_))); - set_has_unique_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.club.v1.MemberId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberId) - return false; -#undef DO_ -} - -void MemberId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberId) - // optional .bgs.protocol.account.v1.AccountId account_id = 1; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_id(), output); - } - - // optional uint64 unique_id = 2; - if (has_unique_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->unique_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberId) -} - -::google::protobuf::uint8* MemberId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberId) - // optional .bgs.protocol.account.v1.AccountId account_id = 1; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_id(), target); - } - - // optional uint64 unique_id = 2; - if (has_unique_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->unique_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberId) - return target; -} - -int MemberId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId account_id = 1; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional uint64 unique_id = 2; - if (has_unique_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->unique_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 MemberId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberId* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberId::MergeFrom(const MemberId& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::account::v1::AccountId::MergeFrom(from.account_id()); - } - if (from.has_unique_id()) { - set_unique_id(from.unique_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberId::CopyFrom(const MemberId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberId::IsInitialized() const { - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; -} - void MemberId::Swap(MemberId* other) { if (other != this) { - std::swap(account_id_, other->account_id_); - std::swap(unique_id_, other->unique_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberId::GetMetadata() const { diff --git a/src/server/proto/Client/club_member_id.pb.h b/src/server/proto/Client/club_member_id.pb.h index 845913c2adf..ad9700ea0d0 100644 --- a/src/server/proto/Client/club_member_id.pb.h +++ b/src/server/proto/Client/club_member_id.pb.h @@ -72,19 +72,6 @@ class TC_PROTO_API MemberId : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MemberId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberId& from); - void MergeFrom(const MemberId& 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(); diff --git a/src/server/proto/Client/club_membership_listener.pb.cc b/src/server/proto/Client/club_membership_listener.pb.cc index 338eaa7d1bc..5cc33756f06 100644 --- a/src/server/proto/Client/club_membership_listener.pb.cc +++ b/src/server/proto/Client/club_membership_listener.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_membership_listener.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -313,7 +310,7 @@ void protobuf_AddDesc_club_5fmembership_5flistener_2eproto() { "1.membership.StreamMentionAdvanceViewTim" "eNotification\032\031.bgs.protocol.NO_RESPONSE" "\"\010\202\371+\004\010\010\030\001\032:\202\371+.\n,bnet.protocol.club.v1." - "ClubMembershipListener\212\371+\004\010\001\030\001B\005H\001\200\001\000", 2437); + "ClubMembershipListener\212\371+\004\010\001\030\001B\005H\002\200\001\000", 2437); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_membership_listener.proto", &protobuf_RegisterTypes); ClubAddedNotification::default_instance_ = new ClubAddedNotification(); @@ -406,208 +403,9 @@ ClubAddedNotification* ClubAddedNotification::New() const { return new ClubAddedNotification; } -void ClubAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_membership()) { - if (membership_ != NULL) membership_->::bgs::protocol::club::v1::ClubMembershipDescription::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.ClubAddedNotification) - 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.club.v1.MemberId 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(26)) goto parse_membership; - break; - } - - // optional .bgs.protocol.club.v1.ClubMembershipDescription membership = 3; - case 3: { - if (tag == 26) { - parse_membership: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_membership())); - } 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.club.v1.membership.ClubAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.ClubAddedNotification) - return false; -#undef DO_ -} - -void ClubAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.ClubAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubMembershipDescription membership = 3; - if (has_membership()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->membership(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.ClubAddedNotification) -} - -::google::protobuf::uint8* ClubAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.ClubAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubMembershipDescription membership = 3; - if (has_membership()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->membership(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.ClubAddedNotification) - return target; -} - -int ClubAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.ClubMembershipDescription membership = 3; - if (has_membership()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->membership()); - } - - } - 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 ClubAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubAddedNotification::MergeFrom(const ClubAddedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_membership()) { - mutable_membership()->::bgs::protocol::club::v1::ClubMembershipDescription::MergeFrom(from.membership()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubAddedNotification::CopyFrom(const ClubAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubAddedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_membership()) { - if (!this->membership().IsInitialized()) return false; - } - return true; -} - void ClubAddedNotification::Swap(ClubAddedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(membership_, other->membership_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubAddedNotification::GetMetadata() const { @@ -687,301 +485,9 @@ ClubRemovedNotification* ClubRemovedNotification::New() const { return new ClubRemovedNotification; } -void ClubRemovedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, reason_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.ClubRemovedNotification) - 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.club.v1.MemberId 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(26)) goto parse_member_id; - break; - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - case 3: { - if (tag == 26) { - parse_member_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 4; - case 4: { - if (tag == 32) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_reason; - break; - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 5; - case 5: { - if (tag == 40) { - parse_reason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::ClubRemovedReason_IsValid(value)) { - set_reason(static_cast< ::bgs::protocol::club::v1::ClubRemovedReason >(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.club.v1.membership.ClubRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.ClubRemovedNotification) - return false; -#undef DO_ -} - -void ClubRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.ClubRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->member_id(), output); - } - - // optional uint64 club_id = 4; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 5; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.ClubRemovedNotification) -} - -::google::protobuf::uint8* ClubRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.ClubRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->member_id(), target); - } - - // optional uint64 club_id = 4; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 5; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.ClubRemovedNotification) - return target; -} - -int ClubRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - // optional uint64 club_id = 4; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.ClubRemovedReason reason = 5; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); - } - - } - 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 ClubRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubRemovedNotification::MergeFrom(const ClubRemovedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubRemovedNotification::CopyFrom(const ClubRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubRemovedNotification::IsInitialized() const { - 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 ClubRemovedNotification::Swap(ClubRemovedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(member_id_, other->member_id_); - std::swap(club_id_, other->club_id_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubRemovedNotification::GetMetadata() const { @@ -1057,208 +563,9 @@ ReceivedInvitationAddedNotification* ReceivedInvitationAddedNotification::New() return new ReceivedInvitationAddedNotification; } -void ReceivedInvitationAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_invitation()) { - if (invitation_ != NULL) invitation_->::bgs::protocol::club::v1::ClubInvitation::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ReceivedInvitationAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification) - 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.club.v1.MemberId 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(26)) goto parse_invitation; - break; - } - - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 3; - case 3: { - if (tag == 26) { - parse_invitation: - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification) - return false; -#undef DO_ -} - -void ReceivedInvitationAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 3; - if (has_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->invitation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification) -} - -::google::protobuf::uint8* ReceivedInvitationAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 3; - if (has_invitation()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->invitation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification) - return target; -} - -int ReceivedInvitationAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 3; - if (has_invitation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation()); - } - - } - 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 ReceivedInvitationAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ReceivedInvitationAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ReceivedInvitationAddedNotification::MergeFrom(const ReceivedInvitationAddedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_invitation()) { - mutable_invitation()->::bgs::protocol::club::v1::ClubInvitation::MergeFrom(from.invitation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ReceivedInvitationAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReceivedInvitationAddedNotification::CopyFrom(const ReceivedInvitationAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReceivedInvitationAddedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_invitation()) { - if (!this->invitation().IsInitialized()) return false; - } - return true; -} - void ReceivedInvitationAddedNotification::Swap(ReceivedInvitationAddedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ReceivedInvitationAddedNotification::GetMetadata() const { @@ -1334,256 +641,9 @@ ReceivedInvitationRemovedNotification* ReceivedInvitationRemovedNotification::Ne return new ReceivedInvitationRemovedNotification; } -void ReceivedInvitationRemovedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(invitation_id_, reason_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ReceivedInvitationRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.ReceivedInvitationRemovedNotification) - 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.club.v1.MemberId 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(25)) goto parse_invitation_id; - break; - } - - // optional fixed64 invitation_id = 3; - case 3: { - if (tag == 25) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_reason; - break; - } - - // optional .bgs.protocol.InvitationRemovedReason reason = 4; - case 4: { - if (tag == 32) { - parse_reason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::InvitationRemovedReason_IsValid(value)) { - set_reason(static_cast< ::bgs::protocol::InvitationRemovedReason >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, 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.club.v1.membership.ReceivedInvitationRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.ReceivedInvitationRemovedNotification) - return false; -#undef DO_ -} - -void ReceivedInvitationRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.ReceivedInvitationRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->invitation_id(), output); - } - - // optional .bgs.protocol.InvitationRemovedReason reason = 4; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.ReceivedInvitationRemovedNotification) -} - -::google::protobuf::uint8* ReceivedInvitationRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.ReceivedInvitationRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->invitation_id(), target); - } - - // optional .bgs.protocol.InvitationRemovedReason reason = 4; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.ReceivedInvitationRemovedNotification) - return target; -} - -int ReceivedInvitationRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - // optional .bgs.protocol.InvitationRemovedReason reason = 4; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); - } - - } - 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 ReceivedInvitationRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ReceivedInvitationRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ReceivedInvitationRemovedNotification::MergeFrom(const ReceivedInvitationRemovedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ReceivedInvitationRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReceivedInvitationRemovedNotification::CopyFrom(const ReceivedInvitationRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReceivedInvitationRemovedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void ReceivedInvitationRemovedNotification::Swap(ReceivedInvitationRemovedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ReceivedInvitationRemovedNotification::GetMetadata() const { @@ -1659,205 +719,9 @@ SharedSettingsChangedNotification* SharedSettingsChangedNotification::New() cons return new SharedSettingsChangedNotification; } -void SharedSettingsChangedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_assignment()) { - if (assignment_ != NULL) assignment_->::bgs::protocol::club::v1::ClubSharedSettingsAssignment::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SharedSettingsChangedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.SharedSettingsChangedNotification) - 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 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(34)) goto parse_assignment; - break; - } - - // optional .bgs.protocol.club.v1.ClubSharedSettingsAssignment assignment = 4; - case 4: { - if (tag == 34) { - parse_assignment: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_assignment())); - } 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.club.v1.membership.SharedSettingsChangedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.SharedSettingsChangedNotification) - return false; -#undef DO_ -} - -void SharedSettingsChangedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.SharedSettingsChangedNotification) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubSharedSettingsAssignment assignment = 4; - if (has_assignment()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->assignment(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.SharedSettingsChangedNotification) -} - -::google::protobuf::uint8* SharedSettingsChangedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.SharedSettingsChangedNotification) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubSharedSettingsAssignment assignment = 4; - if (has_assignment()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->assignment(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.SharedSettingsChangedNotification) - return target; -} - -int SharedSettingsChangedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.ClubSharedSettingsAssignment assignment = 4; - if (has_assignment()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->assignment()); - } - - } - 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 SharedSettingsChangedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SharedSettingsChangedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SharedSettingsChangedNotification::MergeFrom(const SharedSettingsChangedNotification& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - if (from.has_assignment()) { - mutable_assignment()->::bgs::protocol::club::v1::ClubSharedSettingsAssignment::MergeFrom(from.assignment()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SharedSettingsChangedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SharedSettingsChangedNotification::CopyFrom(const SharedSettingsChangedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SharedSettingsChangedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SharedSettingsChangedNotification::Swap(SharedSettingsChangedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(assignment_, other->assignment_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SharedSettingsChangedNotification::GetMetadata() const { @@ -1933,208 +797,9 @@ StreamMentionAddedNotification* StreamMentionAddedNotification::New() const { return new StreamMentionAddedNotification; } -void StreamMentionAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_mention()) { - if (mention_ != NULL) mention_->::bgs::protocol::club::v1::StreamMention::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamMentionAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.StreamMentionAddedNotification) - 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.club.v1.MemberId 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(26)) goto parse_mention; - break; - } - - // optional .bgs.protocol.club.v1.StreamMention mention = 3; - case 3: { - if (tag == 26) { - parse_mention: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mention())); - } 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.club.v1.membership.StreamMentionAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.StreamMentionAddedNotification) - return false; -#undef DO_ -} - -void StreamMentionAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.StreamMentionAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.StreamMention mention = 3; - if (has_mention()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->mention(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.StreamMentionAddedNotification) -} - -::google::protobuf::uint8* StreamMentionAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.StreamMentionAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.StreamMention mention = 3; - if (has_mention()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->mention(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.StreamMentionAddedNotification) - return target; -} - -int StreamMentionAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.StreamMention mention = 3; - if (has_mention()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mention()); - } - - } - 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 StreamMentionAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamMentionAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamMentionAddedNotification::MergeFrom(const StreamMentionAddedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_mention()) { - mutable_mention()->::bgs::protocol::club::v1::StreamMention::MergeFrom(from.mention()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamMentionAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamMentionAddedNotification::CopyFrom(const StreamMentionAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamMentionAddedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_mention()) { - if (!this->mention().IsInitialized()) return false; - } - return true; -} - void StreamMentionAddedNotification::Swap(StreamMentionAddedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(mention_, other->mention_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamMentionAddedNotification::GetMetadata() const { @@ -2210,205 +875,9 @@ StreamMentionRemovedNotification* StreamMentionRemovedNotification::New() const return new StreamMentionRemovedNotification; } -void StreamMentionRemovedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_mention_id()) { - if (mention_id_ != NULL) mention_id_->::bgs::protocol::TimeSeriesId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamMentionRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.StreamMentionRemovedNotification) - 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 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(26)) goto parse_mention_id; - break; - } - - // optional .bgs.protocol.TimeSeriesId mention_id = 3; - case 3: { - if (tag == 26) { - parse_mention_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mention_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.club.v1.membership.StreamMentionRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.StreamMentionRemovedNotification) - return false; -#undef DO_ -} - -void StreamMentionRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.StreamMentionRemovedNotification) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.TimeSeriesId mention_id = 3; - if (has_mention_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->mention_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.StreamMentionRemovedNotification) -} - -::google::protobuf::uint8* StreamMentionRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.StreamMentionRemovedNotification) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.TimeSeriesId mention_id = 3; - if (has_mention_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->mention_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.StreamMentionRemovedNotification) - return target; -} - -int StreamMentionRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.TimeSeriesId mention_id = 3; - if (has_mention_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mention_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 StreamMentionRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamMentionRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamMentionRemovedNotification::MergeFrom(const StreamMentionRemovedNotification& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - if (from.has_mention_id()) { - mutable_mention_id()->::bgs::protocol::TimeSeriesId::MergeFrom(from.mention_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamMentionRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamMentionRemovedNotification::CopyFrom(const StreamMentionRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamMentionRemovedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void StreamMentionRemovedNotification::Swap(StreamMentionRemovedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(mention_id_, other->mention_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamMentionRemovedNotification::GetMetadata() const { @@ -2482,202 +951,9 @@ StreamMentionAdvanceViewTimeNotification* StreamMentionAdvanceViewTimeNotificati return new StreamMentionAdvanceViewTimeNotification; } -void StreamMentionAdvanceViewTimeNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - view_time_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamMentionAdvanceViewTimeNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.StreamMentionAdvanceViewTimeNotification) - 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 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(24)) goto parse_view_time; - break; - } - - // optional uint64 view_time = 3; - case 3: { - if (tag == 24) { - parse_view_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &view_time_))); - set_has_view_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.club.v1.membership.StreamMentionAdvanceViewTimeNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.StreamMentionAdvanceViewTimeNotification) - return false; -#undef DO_ -} - -void StreamMentionAdvanceViewTimeNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.StreamMentionAdvanceViewTimeNotification) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 view_time = 3; - if (has_view_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->view_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.StreamMentionAdvanceViewTimeNotification) -} - -::google::protobuf::uint8* StreamMentionAdvanceViewTimeNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.StreamMentionAdvanceViewTimeNotification) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 view_time = 3; - if (has_view_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->view_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.StreamMentionAdvanceViewTimeNotification) - return target; -} - -int StreamMentionAdvanceViewTimeNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 view_time = 3; - if (has_view_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->view_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 StreamMentionAdvanceViewTimeNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamMentionAdvanceViewTimeNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamMentionAdvanceViewTimeNotification::MergeFrom(const StreamMentionAdvanceViewTimeNotification& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - if (from.has_view_time()) { - set_view_time(from.view_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamMentionAdvanceViewTimeNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamMentionAdvanceViewTimeNotification::CopyFrom(const StreamMentionAdvanceViewTimeNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamMentionAdvanceViewTimeNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void StreamMentionAdvanceViewTimeNotification::Swap(StreamMentionAdvanceViewTimeNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(view_time_, other->view_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamMentionAdvanceViewTimeNotification::GetMetadata() const { @@ -2690,7 +966,7 @@ void StreamMentionAdvanceViewTimeNotification::Swap(StreamMentionAdvanceViewTime // =================================================================== -ClubMembershipListener::ClubMembershipListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ClubMembershipListener::ClubMembershipListener(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ClubMembershipListener::~ClubMembershipListener() { @@ -2702,56 +978,47 @@ google::protobuf::ServiceDescriptor const* ClubMembershipListener::descriptor() } void ClubMembershipListener::OnClubAdded(::bgs::protocol::club::v1::membership::ClubAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubMembershipListener.OnClubAdded(bgs.protocol.club.v1.membership.ClubAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubMembershipListener.OnClubAdded", "bgs.protocol.club.v1.membership.ClubAddedNotification", request); SendRequest(service_hash_, 1 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubMembershipListener::OnClubRemoved(::bgs::protocol::club::v1::membership::ClubRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubMembershipListener.OnClubRemoved(bgs.protocol.club.v1.membership.ClubRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubMembershipListener.OnClubRemoved", "bgs.protocol.club.v1.membership.ClubRemovedNotification", request); SendRequest(service_hash_, 2 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubMembershipListener::OnReceivedInvitationAdded(::bgs::protocol::club::v1::membership::ReceivedInvitationAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubMembershipListener.OnReceivedInvitationAdded(bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubMembershipListener.OnReceivedInvitationAdded", "bgs.protocol.club.v1.membership.ReceivedInvitationAddedNotification", request); SendRequest(service_hash_, 3 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubMembershipListener::OnReceivedInvitationRemoved(::bgs::protocol::club::v1::membership::ReceivedInvitationRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubMembershipListener.OnReceivedInvitationRemoved(bgs.protocol.club.v1.membership.ReceivedInvitationRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubMembershipListener.OnReceivedInvitationRemoved", "bgs.protocol.club.v1.membership.ReceivedInvitationRemovedNotification", request); SendRequest(service_hash_, 4 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubMembershipListener::OnSharedSettingsChanged(::bgs::protocol::club::v1::membership::SharedSettingsChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubMembershipListener.OnSharedSettingsChanged(bgs.protocol.club.v1.membership.SharedSettingsChangedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubMembershipListener.OnSharedSettingsChanged", "bgs.protocol.club.v1.membership.SharedSettingsChangedNotification", request); SendRequest(service_hash_, 5 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubMembershipListener::OnStreamMentionAdded(::bgs::protocol::club::v1::membership::StreamMentionAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubMembershipListener.OnStreamMentionAdded(bgs.protocol.club.v1.membership.StreamMentionAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubMembershipListener.OnStreamMentionAdded", "bgs.protocol.club.v1.membership.StreamMentionAddedNotification", request); SendRequest(service_hash_, 6 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubMembershipListener::OnStreamMentionRemoved(::bgs::protocol::club::v1::membership::StreamMentionRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubMembershipListener.OnStreamMentionRemoved(bgs.protocol.club.v1.membership.StreamMentionRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubMembershipListener.OnStreamMentionRemoved", "bgs.protocol.club.v1.membership.StreamMentionRemovedNotification", request); SendRequest(service_hash_, 7 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ClubMembershipListener::OnStreamMentionAdvanceViewTime(::bgs::protocol::club::v1::membership::StreamMentionAdvanceViewTimeNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubMembershipListener.OnStreamMentionAdvanceViewTime(bgs.protocol.club.v1.membership.StreamMentionAdvanceViewTimeNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ClubMembershipListener.OnStreamMentionAdvanceViewTime", "bgs.protocol.club.v1.membership.StreamMentionAdvanceViewTimeNotification", request); SendRequest(service_hash_, 8 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } -void ClubMembershipListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) { - TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", - GetCallerInfo().c_str(), methodId); +void ClubMembershipListener::CallServerMethod(uint32 /*token*/, uint32 methodId, MessageBuffer /*buffer*/) { + LogDisallowedMethod(methodId); } // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/club_membership_listener.pb.h b/src/server/proto/Client/club_membership_listener.pb.h index 2e9e90e0fe5..c68bb604bf1 100644 --- a/src/server/proto/Client/club_membership_listener.pb.h +++ b/src/server/proto/Client/club_membership_listener.pb.h @@ -81,19 +81,6 @@ class TC_PROTO_API ClubAddedNotification : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubAddedNotification& from); - void MergeFrom(const ClubAddedNotification& 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(); @@ -174,19 +161,6 @@ class TC_PROTO_API ClubRemovedNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- ClubRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubRemovedNotification& from); - void MergeFrom(const ClubRemovedNotification& 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(); @@ -287,19 +261,6 @@ class TC_PROTO_API ReceivedInvitationAddedNotification : public ::google::protob // implements Message ---------------------------------------------- ReceivedInvitationAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ReceivedInvitationAddedNotification& from); - void MergeFrom(const ReceivedInvitationAddedNotification& 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(); @@ -380,19 +341,6 @@ class TC_PROTO_API ReceivedInvitationRemovedNotification : public ::google::prot // implements Message ---------------------------------------------- ReceivedInvitationRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ReceivedInvitationRemovedNotification& from); - void MergeFrom(const ReceivedInvitationRemovedNotification& 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(); @@ -481,19 +429,6 @@ class TC_PROTO_API SharedSettingsChangedNotification : public ::google::protobuf // implements Message ---------------------------------------------- SharedSettingsChangedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SharedSettingsChangedNotification& from); - void MergeFrom(const SharedSettingsChangedNotification& 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(); @@ -574,19 +509,6 @@ class TC_PROTO_API StreamMentionAddedNotification : public ::google::protobuf::M // implements Message ---------------------------------------------- StreamMentionAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamMentionAddedNotification& from); - void MergeFrom(const StreamMentionAddedNotification& 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(); @@ -667,19 +589,6 @@ class TC_PROTO_API StreamMentionRemovedNotification : public ::google::protobuf: // implements Message ---------------------------------------------- StreamMentionRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamMentionRemovedNotification& from); - void MergeFrom(const StreamMentionRemovedNotification& 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(); @@ -760,19 +669,6 @@ class TC_PROTO_API StreamMentionAdvanceViewTimeNotification : public ::google::p // implements Message ---------------------------------------------- StreamMentionAdvanceViewTimeNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamMentionAdvanceViewTimeNotification& from); - void MergeFrom(const StreamMentionAdvanceViewTimeNotification& 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(); @@ -828,6 +724,10 @@ class TC_PROTO_API ClubMembershipListener : public ServiceBase public: explicit ClubMembershipListener(bool use_original_hash); + ClubMembershipListener(ClubMembershipListener const&) = delete; + ClubMembershipListener(ClubMembershipListener&&) = delete; + ClubMembershipListener& operator=(ClubMembershipListener const&) = delete; + ClubMembershipListener& operator=(ClubMembershipListener&&) = delete; virtual ~ClubMembershipListener(); typedef std::integral_constant OriginalHash; @@ -846,11 +746,6 @@ class TC_PROTO_API ClubMembershipListener : public ServiceBase void OnStreamMentionAdvanceViewTime(::bgs::protocol::club::v1::membership::StreamMentionAdvanceViewTimeNotification const* request, bool client = false, bool server = false); void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final; - - private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ClubMembershipListener); }; // =================================================================== diff --git a/src/server/proto/Client/club_membership_service.pb.cc b/src/server/proto/Client/club_membership_service.pb.cc index ff8ff808f42..847066329f5 100644 --- a/src/server/proto/Client/club_membership_service.pb.cc +++ b/src/server/proto/Client/club_membership_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_membership_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -351,7 +348,7 @@ void protobuf_AddDesc_club_5fmembership_5fservice_2eproto() { "StreamMentionViewTimeRequest\032\024.bgs.proto" "col.NoData\"\006\202\371+\002\010\007\032J\202\371+>\n+bnet.protocol." "club.v1.ClubMembershipService*\017club_memb" - "ership\212\371+\004\020\001\030\001B\005H\001\200\001\000", 2301); + "ership\212\371+\004\020\001\030\001B\005H\002\200\001\000", 2301); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_membership_service.proto", &protobuf_RegisterTypes); SubscribeRequest::default_instance_ = new SubscribeRequest(); @@ -448,208 +445,9 @@ SubscribeRequest* SubscribeRequest::New() const { return new SubscribeRequest; } -void SubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::ClubMembershipSubscribeOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.SubscribeRequest) - 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 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_options; - break; - } - - // optional .bgs.protocol.club.v1.ClubMembershipSubscribeOptions options = 2; - case 2: { - if (tag == 18) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.membership.SubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.SubscribeRequest) - return false; -#undef DO_ -} - -void SubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.SubscribeRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubMembershipSubscribeOptions options = 2; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.SubscribeRequest) -} - -::google::protobuf::uint8* SubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.SubscribeRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubMembershipSubscribeOptions options = 2; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.SubscribeRequest) - return target; -} - -int SubscribeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.ClubMembershipSubscribeOptions options = 2; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 SubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeRequest::MergeFrom(const SubscribeRequest& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::ClubMembershipSubscribeOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeRequest::CopyFrom(const SubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void SubscribeRequest::Swap(SubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeRequest::GetMetadata() const { @@ -721,163 +519,9 @@ SubscribeResponse* SubscribeResponse::New() const { return new SubscribeResponse; } -void SubscribeResponse::Clear() { - if (has_state()) { - if (state_ != NULL) state_->::bgs::protocol::club::v1::ClubMembershipState::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.club.v1.membership.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 .bgs.protocol.club.v1.ClubMembershipState state = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } 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.club.v1.membership.SubscribeResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.SubscribeResponse) - return false; -#undef DO_ -} - -void SubscribeResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.SubscribeResponse) - // optional .bgs.protocol.club.v1.ClubMembershipState state = 1; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->state(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.SubscribeResponse) -} - -::google::protobuf::uint8* SubscribeResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.SubscribeResponse) - // optional .bgs.protocol.club.v1.ClubMembershipState state = 1; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->state(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.SubscribeResponse) - return target; -} - -int SubscribeResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubMembershipState state = 1; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state()); - } - - } - 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( - &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); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_state()) { - mutable_state()->::bgs::protocol::club::v1::ClubMembershipState::MergeFrom(from.state()); - } - } - 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 (has_state()) { - if (!this->state().IsInitialized()) return false; - } - return true; -} - void SubscribeResponse::Swap(SubscribeResponse* other) { if (other != this) { - std::swap(state_, other->state_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeResponse::GetMetadata() const { @@ -949,163 +593,9 @@ UnsubscribeRequest* UnsubscribeRequest::New() const { return new UnsubscribeRequest; } -void UnsubscribeRequest::Clear() { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsubscribeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.UnsubscribeRequest) - 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 agent_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_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.club.v1.membership.UnsubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.UnsubscribeRequest) - return false; -#undef DO_ -} - -void UnsubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.UnsubscribeRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.UnsubscribeRequest) -} - -::google::protobuf::uint8* UnsubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.UnsubscribeRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.UnsubscribeRequest) - return target; -} - -int UnsubscribeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_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 UnsubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsubscribeRequest::MergeFrom(const UnsubscribeRequest& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsubscribeRequest::CopyFrom(const UnsubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsubscribeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UnsubscribeRequest::Swap(UnsubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsubscribeRequest::GetMetadata() const { @@ -1181,208 +671,9 @@ GetStateRequest* GetStateRequest::New() const { return new GetStateRequest; } -void GetStateRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::ClubMembershipGetStateOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.GetStateRequest) - 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 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_options; - break; - } - - // optional .bgs.protocol.club.v1.ClubMembershipGetStateOptions options = 2; - case 2: { - if (tag == 18) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.membership.GetStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.GetStateRequest) - return false; -#undef DO_ -} - -void GetStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.GetStateRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubMembershipGetStateOptions options = 2; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.GetStateRequest) -} - -::google::protobuf::uint8* GetStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.GetStateRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubMembershipGetStateOptions options = 2; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.GetStateRequest) - return target; -} - -int GetStateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.ClubMembershipGetStateOptions options = 2; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 GetStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStateRequest::MergeFrom(const GetStateRequest& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::ClubMembershipGetStateOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStateRequest::CopyFrom(const GetStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStateRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void GetStateRequest::Swap(GetStateRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStateRequest::GetMetadata() const { @@ -1454,163 +745,9 @@ GetStateResponse* GetStateResponse::New() const { return new GetStateResponse; } -void GetStateResponse::Clear() { - if (has_state()) { - if (state_ != NULL) state_->::bgs::protocol::club::v1::ClubMembershipState::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStateResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.GetStateResponse) - 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.club.v1.ClubMembershipState state = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } 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.club.v1.membership.GetStateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.GetStateResponse) - return false; -#undef DO_ -} - -void GetStateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.GetStateResponse) - // optional .bgs.protocol.club.v1.ClubMembershipState state = 1; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->state(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.GetStateResponse) -} - -::google::protobuf::uint8* GetStateResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.GetStateResponse) - // optional .bgs.protocol.club.v1.ClubMembershipState state = 1; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->state(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.GetStateResponse) - return target; -} - -int GetStateResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubMembershipState state = 1; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state()); - } - - } - 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 GetStateResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStateResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStateResponse::MergeFrom(const GetStateResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_state()) { - mutable_state()->::bgs::protocol::club::v1::ClubMembershipState::MergeFrom(from.state()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStateResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStateResponse::CopyFrom(const GetStateResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStateResponse::IsInitialized() const { - if (has_state()) { - if (!this->state().IsInitialized()) return false; - } - return true; -} - void GetStateResponse::Swap(GetStateResponse* other) { if (other != this) { - std::swap(state_, other->state_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStateResponse::GetMetadata() const { @@ -1686,205 +823,9 @@ UpdateClubSharedSettingsRequest* UpdateClubSharedSettingsRequest::New() const { return new UpdateClubSharedSettingsRequest; } -void UpdateClubSharedSettingsRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::ClubSharedSettingsOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateClubSharedSettingsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.UpdateClubSharedSettingsRequest) - 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 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_options; - break; - } - - // optional .bgs.protocol.club.v1.ClubSharedSettingsOptions options = 2; - case 2: { - if (tag == 18) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.membership.UpdateClubSharedSettingsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.UpdateClubSharedSettingsRequest) - return false; -#undef DO_ -} - -void UpdateClubSharedSettingsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.UpdateClubSharedSettingsRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubSharedSettingsOptions options = 2; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.UpdateClubSharedSettingsRequest) -} - -::google::protobuf::uint8* UpdateClubSharedSettingsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.UpdateClubSharedSettingsRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubSharedSettingsOptions options = 2; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.UpdateClubSharedSettingsRequest) - return target; -} - -int UpdateClubSharedSettingsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.ClubSharedSettingsOptions options = 2; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 UpdateClubSharedSettingsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateClubSharedSettingsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UpdateClubSharedSettingsRequest::MergeFrom(const UpdateClubSharedSettingsRequest& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::ClubSharedSettingsOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UpdateClubSharedSettingsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateClubSharedSettingsRequest::CopyFrom(const UpdateClubSharedSettingsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateClubSharedSettingsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UpdateClubSharedSettingsRequest::Swap(UpdateClubSharedSettingsRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateClubSharedSettingsRequest::GetMetadata() const { @@ -1962,240 +903,9 @@ GetStreamMentionsRequest* GetStreamMentionsRequest::New() const { return new GetStreamMentionsRequest; } -void GetStreamMentionsRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::GetEventOptions::Clear(); - } - fetch_messages_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamMentionsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.GetStreamMentionsRequest) - 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 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_options; - break; - } - - // optional .bgs.protocol.GetEventOptions options = 2; - case 2: { - if (tag == 18) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_fetch_messages; - break; - } - - // optional bool fetch_messages = 3; - case 3: { - if (tag == 24) { - parse_fetch_messages: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fetch_messages_))); - set_has_fetch_messages(); - } 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.club.v1.membership.GetStreamMentionsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.GetStreamMentionsRequest) - return false; -#undef DO_ -} - -void GetStreamMentionsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.GetStreamMentionsRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.GetEventOptions options = 2; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->options(), output); - } - - // optional bool fetch_messages = 3; - if (has_fetch_messages()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->fetch_messages(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.GetStreamMentionsRequest) -} - -::google::protobuf::uint8* GetStreamMentionsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.GetStreamMentionsRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.GetEventOptions options = 2; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->options(), target); - } - - // optional bool fetch_messages = 3; - if (has_fetch_messages()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->fetch_messages(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.GetStreamMentionsRequest) - return target; -} - -int GetStreamMentionsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.GetEventOptions options = 2; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - // optional bool fetch_messages = 3; - if (has_fetch_messages()) { - 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 GetStreamMentionsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamMentionsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamMentionsRequest::MergeFrom(const GetStreamMentionsRequest& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::GetEventOptions::MergeFrom(from.options()); - } - if (from.has_fetch_messages()) { - set_fetch_messages(from.fetch_messages()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamMentionsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamMentionsRequest::CopyFrom(const GetStreamMentionsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamMentionsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetStreamMentionsRequest::Swap(GetStreamMentionsRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(options_, other->options_); - std::swap(fetch_messages_, other->fetch_messages_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamMentionsRequest::GetMetadata() const { @@ -2266,197 +976,9 @@ GetStreamMentionsResponse* GetStreamMentionsResponse::New() const { return new GetStreamMentionsResponse; } -void GetStreamMentionsResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - mention_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamMentionsResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.GetStreamMentionsResponse) - 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.club.v1.StreamMention mention = 1; - case 1: { - if (tag == 10) { - parse_mention: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_mention())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_mention; - if (input->ExpectTag(16)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 2; - case 2: { - if (tag == 16) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.membership.GetStreamMentionsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.GetStreamMentionsResponse) - return false; -#undef DO_ -} - -void GetStreamMentionsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.GetStreamMentionsResponse) - // repeated .bgs.protocol.club.v1.StreamMention mention = 1; - for (int i = 0; i < this->mention_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->mention(i), output); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.GetStreamMentionsResponse) -} - -::google::protobuf::uint8* GetStreamMentionsResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.GetStreamMentionsResponse) - // repeated .bgs.protocol.club.v1.StreamMention mention = 1; - for (int i = 0; i < this->mention_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->mention(i), target); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.GetStreamMentionsResponse) - return target; -} - -int GetStreamMentionsResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint64 continuation = 2; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - // repeated .bgs.protocol.club.v1.StreamMention mention = 1; - total_size += 1 * this->mention_size(); - for (int i = 0; i < this->mention_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mention(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 GetStreamMentionsResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamMentionsResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamMentionsResponse::MergeFrom(const GetStreamMentionsResponse& from) { - GOOGLE_CHECK_NE(&from, this); - mention_.MergeFrom(from.mention_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamMentionsResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamMentionsResponse::CopyFrom(const GetStreamMentionsResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamMentionsResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->mention())) return false; - return true; -} - void GetStreamMentionsResponse::Swap(GetStreamMentionsResponse* other) { if (other != this) { - mention_.Swap(&other->mention_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamMentionsResponse::GetMetadata() const { @@ -2529,201 +1051,9 @@ RemoveStreamMentionsRequest* RemoveStreamMentionsRequest::New() const { return new RemoveStreamMentionsRequest; } -void RemoveStreamMentionsRequest::Clear() { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - mention_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RemoveStreamMentionsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.RemoveStreamMentionsRequest) - 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 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_mention_id; - break; - } - - // repeated .bgs.protocol.TimeSeriesId mention_id = 2; - case 2: { - if (tag == 18) { - parse_mention_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_mention_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_mention_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.club.v1.membership.RemoveStreamMentionsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.RemoveStreamMentionsRequest) - return false; -#undef DO_ -} - -void RemoveStreamMentionsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.RemoveStreamMentionsRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // repeated .bgs.protocol.TimeSeriesId mention_id = 2; - for (int i = 0; i < this->mention_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->mention_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.RemoveStreamMentionsRequest) -} - -::google::protobuf::uint8* RemoveStreamMentionsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.RemoveStreamMentionsRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // repeated .bgs.protocol.TimeSeriesId mention_id = 2; - for (int i = 0; i < this->mention_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->mention_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.club.v1.membership.RemoveStreamMentionsRequest) - return target; -} - -int RemoveStreamMentionsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - } - // repeated .bgs.protocol.TimeSeriesId mention_id = 2; - total_size += 1 * this->mention_id_size(); - for (int i = 0; i < this->mention_id_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mention_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 RemoveStreamMentionsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RemoveStreamMentionsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RemoveStreamMentionsRequest::MergeFrom(const RemoveStreamMentionsRequest& from) { - GOOGLE_CHECK_NE(&from, this); - mention_id_.MergeFrom(from.mention_id_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::account::v1::AccountId::MergeFrom(from.agent_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RemoveStreamMentionsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RemoveStreamMentionsRequest::CopyFrom(const RemoveStreamMentionsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RemoveStreamMentionsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void RemoveStreamMentionsRequest::Swap(RemoveStreamMentionsRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - mention_id_.Swap(&other->mention_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RemoveStreamMentionsRequest::GetMetadata() const { @@ -2795,163 +1125,9 @@ AdvanceStreamMentionViewTimeRequest* AdvanceStreamMentionViewTimeRequest::New() return new AdvanceStreamMentionViewTimeRequest; } -void AdvanceStreamMentionViewTimeRequest::Clear() { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AdvanceStreamMentionViewTimeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.membership.AdvanceStreamMentionViewTimeRequest) - 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 agent_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_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.club.v1.membership.AdvanceStreamMentionViewTimeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.membership.AdvanceStreamMentionViewTimeRequest) - return false; -#undef DO_ -} - -void AdvanceStreamMentionViewTimeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.membership.AdvanceStreamMentionViewTimeRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.membership.AdvanceStreamMentionViewTimeRequest) -} - -::google::protobuf::uint8* AdvanceStreamMentionViewTimeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.membership.AdvanceStreamMentionViewTimeRequest) - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.membership.AdvanceStreamMentionViewTimeRequest) - return target; -} - -int AdvanceStreamMentionViewTimeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_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 AdvanceStreamMentionViewTimeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AdvanceStreamMentionViewTimeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AdvanceStreamMentionViewTimeRequest::MergeFrom(const AdvanceStreamMentionViewTimeRequest& 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::account::v1::AccountId::MergeFrom(from.agent_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AdvanceStreamMentionViewTimeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AdvanceStreamMentionViewTimeRequest::CopyFrom(const AdvanceStreamMentionViewTimeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AdvanceStreamMentionViewTimeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void AdvanceStreamMentionViewTimeRequest::Swap(AdvanceStreamMentionViewTimeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AdvanceStreamMentionViewTimeRequest::GetMetadata() const { @@ -2964,7 +1140,7 @@ void AdvanceStreamMentionViewTimeRequest::Swap(AdvanceStreamMentionViewTimeReque // =================================================================== -ClubMembershipService::ClubMembershipService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ClubMembershipService::ClubMembershipService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ClubMembershipService::~ClubMembershipService() { @@ -2977,237 +1153,174 @@ google::protobuf::ServiceDescriptor const* ClubMembershipService::descriptor() { void ClubMembershipService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::club::v1::membership::SubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubMembershipService.Subscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.Subscribe(bgs.protocol.club.v1.membership.SubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::membership::SubscribeResponse::descriptor()); - ClubMembershipService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.Subscribe() returned bgs.protocol.club.v1.membership.SubscribeResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::membership::SubscribeResponse response; - uint32 status = HandleSubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleSubscribe(token, methodId, buffer); break; - } - case 2: { - ::bgs::protocol::club::v1::membership::UnsubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubMembershipService.Unsubscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.Unsubscribe(bgs.protocol.club.v1.membership.UnsubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubMembershipService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.Unsubscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnsubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 2: + ParseAndHandleUnsubscribe(token, methodId, buffer); break; - } - case 3: { - ::bgs::protocol::club::v1::membership::GetStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubMembershipService.GetState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.GetState(bgs.protocol.club.v1.membership.GetStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::membership::GetStateResponse::descriptor()); - ClubMembershipService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.GetState() returned bgs.protocol.club.v1.membership.GetStateResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::membership::GetStateResponse response; - uint32 status = HandleGetState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 3: + ParseAndHandleGetState(token, methodId, buffer); break; - } - case 4: { - ::bgs::protocol::club::v1::membership::UpdateClubSharedSettingsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubMembershipService.UpdateClubSharedSettings server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.UpdateClubSharedSettings(bgs.protocol.club.v1.membership.UpdateClubSharedSettingsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubMembershipService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.UpdateClubSharedSettings() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUpdateClubSharedSettings(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 4: + ParseAndHandleUpdateClubSharedSettings(token, methodId, buffer); break; - } - case 5: { - ::bgs::protocol::club::v1::membership::GetStreamMentionsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubMembershipService.GetStreamMentions server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.GetStreamMentions(bgs.protocol.club.v1.membership.GetStreamMentionsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::membership::GetStreamMentionsResponse::descriptor()); - ClubMembershipService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.GetStreamMentions() returned bgs.protocol.club.v1.membership.GetStreamMentionsResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::membership::GetStreamMentionsResponse response; - uint32 status = HandleGetStreamMentions(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 5: + ParseAndHandleGetStreamMentions(token, methodId, buffer); break; - } - case 6: { - ::bgs::protocol::club::v1::membership::RemoveStreamMentionsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubMembershipService.RemoveStreamMentions server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.RemoveStreamMentions(bgs.protocol.club.v1.membership.RemoveStreamMentionsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubMembershipService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.RemoveStreamMentions() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleRemoveStreamMentions(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 6: + ParseAndHandleRemoveStreamMentions(token, methodId, buffer); break; - } - case 7: { - ::bgs::protocol::club::v1::membership::AdvanceStreamMentionViewTimeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubMembershipService.AdvanceStreamMentionViewTime server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.AdvanceStreamMentionViewTime(bgs.protocol.club.v1.membership.AdvanceStreamMentionViewTimeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubMembershipService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubMembershipService.AdvanceStreamMentionViewTime() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleAdvanceStreamMentionViewTime(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 7: + ParseAndHandleAdvanceStreamMentionViewTime(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 ClubMembershipService::HandleSubscribe(::bgs::protocol::club::v1::membership::SubscribeRequest const* request, ::bgs::protocol::club::v1::membership::SubscribeResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubMembershipService.Subscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubMembershipService::HandleSubscribe(::bgs::protocol::club::v1::membership::SubscribeRequest const* request, ::bgs::protocol::club::v1::membership::SubscribeResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubMembershipService.Subscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubMembershipService::HandleUnsubscribe(::bgs::protocol::club::v1::membership::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubMembershipService.Unsubscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubMembershipService::HandleUnsubscribe(::bgs::protocol::club::v1::membership::UnsubscribeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubMembershipService.Unsubscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubMembershipService::HandleGetState(::bgs::protocol::club::v1::membership::GetStateRequest const* request, ::bgs::protocol::club::v1::membership::GetStateResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubMembershipService.GetState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubMembershipService::HandleGetState(::bgs::protocol::club::v1::membership::GetStateRequest const* request, ::bgs::protocol::club::v1::membership::GetStateResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubMembershipService.GetState", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubMembershipService::HandleUpdateClubSharedSettings(::bgs::protocol::club::v1::membership::UpdateClubSharedSettingsRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubMembershipService.UpdateClubSharedSettings({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubMembershipService::HandleUpdateClubSharedSettings(::bgs::protocol::club::v1::membership::UpdateClubSharedSettingsRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubMembershipService.UpdateClubSharedSettings", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubMembershipService::HandleGetStreamMentions(::bgs::protocol::club::v1::membership::GetStreamMentionsRequest const* request, ::bgs::protocol::club::v1::membership::GetStreamMentionsResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubMembershipService.GetStreamMentions({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubMembershipService::HandleGetStreamMentions(::bgs::protocol::club::v1::membership::GetStreamMentionsRequest const* request, ::bgs::protocol::club::v1::membership::GetStreamMentionsResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubMembershipService.GetStreamMentions", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubMembershipService::HandleRemoveStreamMentions(::bgs::protocol::club::v1::membership::RemoveStreamMentionsRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubMembershipService.RemoveStreamMentions({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubMembershipService::HandleRemoveStreamMentions(::bgs::protocol::club::v1::membership::RemoveStreamMentionsRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubMembershipService.RemoveStreamMentions", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubMembershipService::HandleAdvanceStreamMentionViewTime(::bgs::protocol::club::v1::membership::AdvanceStreamMentionViewTimeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubMembershipService.AdvanceStreamMentionViewTime({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubMembershipService::HandleAdvanceStreamMentionViewTime(::bgs::protocol::club::v1::membership::AdvanceStreamMentionViewTimeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubMembershipService.AdvanceStreamMentionViewTime", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void ClubMembershipService::ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::membership::SubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubMembershipService.Subscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubMembershipService.Subscribe", "bgs.protocol.club.v1.membership.SubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubMembershipService.Subscribe", ::bgs::protocol::club::v1::membership::SubscribeResponse::descriptor()); + ::bgs::protocol::club::v1::membership::SubscribeResponse response; + uint32 status = HandleSubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubMembershipService::ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::membership::UnsubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubMembershipService.Unsubscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubMembershipService.Unsubscribe", "bgs.protocol.club.v1.membership.UnsubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubMembershipService.Unsubscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnsubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubMembershipService::ParseAndHandleGetState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::membership::GetStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubMembershipService.GetState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubMembershipService.GetState", "bgs.protocol.club.v1.membership.GetStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubMembershipService.GetState", ::bgs::protocol::club::v1::membership::GetStateResponse::descriptor()); + ::bgs::protocol::club::v1::membership::GetStateResponse response; + uint32 status = HandleGetState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubMembershipService::ParseAndHandleUpdateClubSharedSettings(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::membership::UpdateClubSharedSettingsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubMembershipService.UpdateClubSharedSettings"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubMembershipService.UpdateClubSharedSettings", "bgs.protocol.club.v1.membership.UpdateClubSharedSettingsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubMembershipService.UpdateClubSharedSettings", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUpdateClubSharedSettings(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubMembershipService::ParseAndHandleGetStreamMentions(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::membership::GetStreamMentionsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubMembershipService.GetStreamMentions"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubMembershipService.GetStreamMentions", "bgs.protocol.club.v1.membership.GetStreamMentionsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubMembershipService.GetStreamMentions", ::bgs::protocol::club::v1::membership::GetStreamMentionsResponse::descriptor()); + ::bgs::protocol::club::v1::membership::GetStreamMentionsResponse response; + uint32 status = HandleGetStreamMentions(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubMembershipService::ParseAndHandleRemoveStreamMentions(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::membership::RemoveStreamMentionsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubMembershipService.RemoveStreamMentions"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubMembershipService.RemoveStreamMentions", "bgs.protocol.club.v1.membership.RemoveStreamMentionsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubMembershipService.RemoveStreamMentions", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleRemoveStreamMentions(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubMembershipService::ParseAndHandleAdvanceStreamMentionViewTime(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::membership::AdvanceStreamMentionViewTimeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubMembershipService.AdvanceStreamMentionViewTime"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubMembershipService.AdvanceStreamMentionViewTime", "bgs.protocol.club.v1.membership.AdvanceStreamMentionViewTimeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubMembershipService.AdvanceStreamMentionViewTime", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleAdvanceStreamMentionViewTime(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // @@protoc_insertion_point(namespace_scope) } // namespace membership diff --git a/src/server/proto/Client/club_membership_service.pb.h b/src/server/proto/Client/club_membership_service.pb.h index 4970f4160a6..2a002aa33de 100644 --- a/src/server/proto/Client/club_membership_service.pb.h +++ b/src/server/proto/Client/club_membership_service.pb.h @@ -84,19 +84,6 @@ class TC_PROTO_API SubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeRequest& from); - void MergeFrom(const SubscribeRequest& 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(); @@ -177,19 +164,6 @@ class TC_PROTO_API SubscribeResponse : public ::google::protobuf::Message { // 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(); @@ -258,19 +232,6 @@ class TC_PROTO_API UnsubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UnsubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsubscribeRequest& from); - void MergeFrom(const UnsubscribeRequest& 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(); @@ -339,19 +300,6 @@ class TC_PROTO_API GetStateRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStateRequest& from); - void MergeFrom(const GetStateRequest& 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(); @@ -432,19 +380,6 @@ class TC_PROTO_API GetStateResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetStateResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStateResponse& from); - void MergeFrom(const GetStateResponse& 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(); @@ -513,19 +448,6 @@ class TC_PROTO_API UpdateClubSharedSettingsRequest : public ::google::protobuf:: // implements Message ---------------------------------------------- UpdateClubSharedSettingsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateClubSharedSettingsRequest& from); - void MergeFrom(const UpdateClubSharedSettingsRequest& 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(); @@ -606,19 +528,6 @@ class TC_PROTO_API GetStreamMentionsRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- GetStreamMentionsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamMentionsRequest& from); - void MergeFrom(const GetStreamMentionsRequest& 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(); @@ -709,19 +618,6 @@ class TC_PROTO_API GetStreamMentionsResponse : public ::google::protobuf::Messag // implements Message ---------------------------------------------- GetStreamMentionsResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamMentionsResponse& from); - void MergeFrom(const GetStreamMentionsResponse& 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(); @@ -801,19 +697,6 @@ class TC_PROTO_API RemoveStreamMentionsRequest : public ::google::protobuf::Mess // implements Message ---------------------------------------------- RemoveStreamMentionsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RemoveStreamMentionsRequest& from); - void MergeFrom(const RemoveStreamMentionsRequest& 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(); @@ -895,19 +778,6 @@ class TC_PROTO_API AdvanceStreamMentionViewTimeRequest : public ::google::protob // implements Message ---------------------------------------------- AdvanceStreamMentionViewTimeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AdvanceStreamMentionViewTimeRequest& from); - void MergeFrom(const AdvanceStreamMentionViewTimeRequest& 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(); @@ -953,6 +823,10 @@ class TC_PROTO_API ClubMembershipService : public ServiceBase public: explicit ClubMembershipService(bool use_original_hash); + ClubMembershipService(ClubMembershipService const&) = delete; + ClubMembershipService(ClubMembershipService&&) = delete; + ClubMembershipService& operator=(ClubMembershipService const&) = delete; + ClubMembershipService& operator=(ClubMembershipService&&) = delete; virtual ~ClubMembershipService(); typedef std::integral_constant OriginalHash; @@ -973,9 +847,13 @@ class TC_PROTO_API ClubMembershipService : public ServiceBase virtual uint32 HandleAdvanceStreamMentionViewTime(::bgs::protocol::club::v1::membership::AdvanceStreamMentionViewTimeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ClubMembershipService); + void ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetState(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUpdateClubSharedSettings(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetStreamMentions(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRemoveStreamMentions(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleAdvanceStreamMentionViewTime(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/club_membership_types.pb.cc b/src/server/proto/Client/club_membership_types.pb.cc index 54917afccfc..1fbbaf196d2 100644 --- a/src/server/proto/Client/club_membership_types.pb.cc +++ b/src/server/proto/Client/club_membership_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_membership_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -297,7 +295,7 @@ void protobuf_AddDesc_club_5fmembership_5ftypes_2eproto() { "b_position\030\001 \001(\0132\".bgs.protocol.club.v1." "ClubPosition\"Y\n\034ClubSharedSettingsAssign" "ment\0229\n\rclub_position\030\001 \001(\0132\".bgs.protoc" - "ol.club.v1.ClubPositionB\002H\001", 1187); + "ol.club.v1.ClubPositionB\002H\002", 1187); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_membership_types.proto", &protobuf_RegisterTypes); ClubMembershipFilter::default_instance_ = new ClubMembershipFilter(); @@ -392,205 +390,9 @@ ClubMembershipFilter* ClubMembershipFilter::New() const { return new ClubMembershipFilter; } -void ClubMembershipFilter::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_type()) { - if (type_ != NULL) type_->::bgs::protocol::club::v1::UniqueClubType::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubMembershipFilter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubMembershipFilter) - 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.club.v1.MemberId member_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_type; - break; - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - case 2: { - if (tag == 18) { - parse_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_type())); - } 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.club.v1.ClubMembershipFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubMembershipFilter) - return false; -#undef DO_ -} - -void ClubMembershipFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubMembershipFilter) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member_id(), output); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->type(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubMembershipFilter) -} - -::google::protobuf::uint8* ClubMembershipFilter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubMembershipFilter) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member_id(), target); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->type(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubMembershipFilter) - return target; -} - -int ClubMembershipFilter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->type()); - } - - } - 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 ClubMembershipFilter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubMembershipFilter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubMembershipFilter::MergeFrom(const ClubMembershipFilter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - if (from.has_type()) { - mutable_type()->::bgs::protocol::club::v1::UniqueClubType::MergeFrom(from.type()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubMembershipFilter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubMembershipFilter::CopyFrom(const ClubMembershipFilter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubMembershipFilter::IsInitialized() const { - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - return true; -} - void ClubMembershipFilter::Swap(ClubMembershipFilter* other) { if (other != this) { - std::swap(member_id_, other->member_id_); - std::swap(type_, other->type_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubMembershipFilter::GetMetadata() const { @@ -659,156 +461,9 @@ ClubMembershipSubscribeOptions* ClubMembershipSubscribeOptions::New() const { return new ClubMembershipSubscribeOptions; } -void ClubMembershipSubscribeOptions::Clear() { - filter_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubMembershipSubscribeOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubMembershipSubscribeOptions) - 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.club.v1.ClubMembershipFilter filter = 1; - case 1: { - if (tag == 10) { - parse_filter: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_filter())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_filter; - 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.club.v1.ClubMembershipSubscribeOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubMembershipSubscribeOptions) - return false; -#undef DO_ -} - -void ClubMembershipSubscribeOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubMembershipSubscribeOptions) - // repeated .bgs.protocol.club.v1.ClubMembershipFilter filter = 1; - for (int i = 0; i < this->filter_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->filter(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubMembershipSubscribeOptions) -} - -::google::protobuf::uint8* ClubMembershipSubscribeOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubMembershipSubscribeOptions) - // repeated .bgs.protocol.club.v1.ClubMembershipFilter filter = 1; - for (int i = 0; i < this->filter_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->filter(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubMembershipSubscribeOptions) - return target; -} - -int ClubMembershipSubscribeOptions::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.club.v1.ClubMembershipFilter filter = 1; - total_size += 1 * this->filter_size(); - for (int i = 0; i < this->filter_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->filter(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 ClubMembershipSubscribeOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubMembershipSubscribeOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubMembershipSubscribeOptions::MergeFrom(const ClubMembershipSubscribeOptions& from) { - GOOGLE_CHECK_NE(&from, this); - filter_.MergeFrom(from.filter_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubMembershipSubscribeOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubMembershipSubscribeOptions::CopyFrom(const ClubMembershipSubscribeOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubMembershipSubscribeOptions::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->filter())) return false; - return true; -} - void ClubMembershipSubscribeOptions::Swap(ClubMembershipSubscribeOptions* other) { if (other != this) { - filter_.Swap(&other->filter_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubMembershipSubscribeOptions::GetMetadata() const { @@ -877,156 +532,9 @@ ClubMembershipGetStateOptions* ClubMembershipGetStateOptions::New() const { return new ClubMembershipGetStateOptions; } -void ClubMembershipGetStateOptions::Clear() { - filter_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubMembershipGetStateOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubMembershipGetStateOptions) - 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.club.v1.ClubMembershipFilter filter = 1; - case 1: { - if (tag == 10) { - parse_filter: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_filter())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_filter; - 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.club.v1.ClubMembershipGetStateOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubMembershipGetStateOptions) - return false; -#undef DO_ -} - -void ClubMembershipGetStateOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubMembershipGetStateOptions) - // repeated .bgs.protocol.club.v1.ClubMembershipFilter filter = 1; - for (int i = 0; i < this->filter_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->filter(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubMembershipGetStateOptions) -} - -::google::protobuf::uint8* ClubMembershipGetStateOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubMembershipGetStateOptions) - // repeated .bgs.protocol.club.v1.ClubMembershipFilter filter = 1; - for (int i = 0; i < this->filter_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->filter(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubMembershipGetStateOptions) - return target; -} - -int ClubMembershipGetStateOptions::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.club.v1.ClubMembershipFilter filter = 1; - total_size += 1 * this->filter_size(); - for (int i = 0; i < this->filter_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->filter(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 ClubMembershipGetStateOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubMembershipGetStateOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubMembershipGetStateOptions::MergeFrom(const ClubMembershipGetStateOptions& from) { - GOOGLE_CHECK_NE(&from, this); - filter_.MergeFrom(from.filter_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubMembershipGetStateOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubMembershipGetStateOptions::CopyFrom(const ClubMembershipGetStateOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubMembershipGetStateOptions::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->filter())) return false; - return true; -} - void ClubMembershipGetStateOptions::Swap(ClubMembershipGetStateOptions* other) { if (other != this) { - filter_.Swap(&other->filter_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubMembershipGetStateOptions::GetMetadata() const { @@ -1102,208 +610,9 @@ ClubMembershipDescription* ClubMembershipDescription::New() const { return new ClubMembershipDescription; } -void ClubMembershipDescription::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_club()) { - if (club_ != NULL) club_->::bgs::protocol::club::v1::ClubDescription::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubMembershipDescription::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubMembershipDescription) - 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.club.v1.MemberId member_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_club; - break; - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 2; - case 2: { - if (tag == 18) { - parse_club: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club())); - } 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.club.v1.ClubMembershipDescription) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubMembershipDescription) - return false; -#undef DO_ -} - -void ClubMembershipDescription::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubMembershipDescription) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 2; - if (has_club()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->club(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubMembershipDescription) -} - -::google::protobuf::uint8* ClubMembershipDescription::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubMembershipDescription) - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 2; - if (has_club()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->club(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubMembershipDescription) - return target; -} - -int ClubMembershipDescription::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId member_id = 1; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - // optional .bgs.protocol.club.v1.ClubDescription club = 2; - if (has_club()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club()); - } - - } - 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 ClubMembershipDescription::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubMembershipDescription* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubMembershipDescription::MergeFrom(const ClubMembershipDescription& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - if (from.has_club()) { - mutable_club()->::bgs::protocol::club::v1::ClubDescription::MergeFrom(from.club()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubMembershipDescription::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubMembershipDescription::CopyFrom(const ClubMembershipDescription& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubMembershipDescription::IsInitialized() const { - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - if (has_club()) { - if (!this->club().IsInitialized()) return false; - } - return true; -} - void ClubMembershipDescription::Swap(ClubMembershipDescription* other) { if (other != this) { - std::swap(member_id_, other->member_id_); - std::swap(club_, other->club_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubMembershipDescription::GetMetadata() const { @@ -1381,281 +690,9 @@ ClubMembershipState* ClubMembershipState::New() const { return new ClubMembershipState; } -void ClubMembershipState::Clear() { - if (_has_bits_[0 / 32] & 12) { - if (has_setting()) { - if (setting_ != NULL) setting_->::bgs::protocol::club::v1::ClubSharedSettings::Clear(); - } - if (has_mention_view()) { - if (mention_view_ != NULL) mention_view_->::bgs::protocol::ViewMarker::Clear(); - } - } - description_.Clear(); - invitation_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubMembershipState::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubMembershipState) - 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.club.v1.ClubMembershipDescription description = 1; - case 1: { - if (tag == 10) { - parse_description: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_description())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_description; - if (input->ExpectTag(18)) goto parse_invitation; - break; - } - - // repeated .bgs.protocol.club.v1.ClubInvitation invitation = 2; - case 2: { - if (tag == 18) { - parse_invitation: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_invitation())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_invitation; - if (input->ExpectTag(26)) goto parse_setting; - break; - } - - // optional .bgs.protocol.club.v1.ClubSharedSettings setting = 3; - case 3: { - if (tag == 26) { - parse_setting: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_setting())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_mention_view; - break; - } - - // optional .bgs.protocol.ViewMarker mention_view = 4; - case 4: { - if (tag == 34) { - parse_mention_view: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mention_view())); - } 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.club.v1.ClubMembershipState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubMembershipState) - return false; -#undef DO_ -} - -void ClubMembershipState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubMembershipState) - // repeated .bgs.protocol.club.v1.ClubMembershipDescription description = 1; - for (int i = 0; i < this->description_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->description(i), output); - } - - // repeated .bgs.protocol.club.v1.ClubInvitation invitation = 2; - for (int i = 0; i < this->invitation_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->invitation(i), output); - } - - // optional .bgs.protocol.club.v1.ClubSharedSettings setting = 3; - if (has_setting()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->setting(), output); - } - - // optional .bgs.protocol.ViewMarker mention_view = 4; - if (has_mention_view()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->mention_view(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubMembershipState) -} - -::google::protobuf::uint8* ClubMembershipState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubMembershipState) - // repeated .bgs.protocol.club.v1.ClubMembershipDescription description = 1; - for (int i = 0; i < this->description_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->description(i), target); - } - - // repeated .bgs.protocol.club.v1.ClubInvitation invitation = 2; - for (int i = 0; i < this->invitation_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->invitation(i), target); - } - - // optional .bgs.protocol.club.v1.ClubSharedSettings setting = 3; - if (has_setting()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->setting(), target); - } - - // optional .bgs.protocol.ViewMarker mention_view = 4; - if (has_mention_view()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->mention_view(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubMembershipState) - return target; -} - -int ClubMembershipState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { - // optional .bgs.protocol.club.v1.ClubSharedSettings setting = 3; - if (has_setting()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->setting()); - } - - // optional .bgs.protocol.ViewMarker mention_view = 4; - if (has_mention_view()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mention_view()); - } - - } - // repeated .bgs.protocol.club.v1.ClubMembershipDescription description = 1; - total_size += 1 * this->description_size(); - for (int i = 0; i < this->description_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->description(i)); - } - - // repeated .bgs.protocol.club.v1.ClubInvitation invitation = 2; - total_size += 1 * this->invitation_size(); - for (int i = 0; i < this->invitation_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation(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 ClubMembershipState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubMembershipState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubMembershipState::MergeFrom(const ClubMembershipState& from) { - GOOGLE_CHECK_NE(&from, this); - description_.MergeFrom(from.description_); - invitation_.MergeFrom(from.invitation_); - if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { - if (from.has_setting()) { - mutable_setting()->::bgs::protocol::club::v1::ClubSharedSettings::MergeFrom(from.setting()); - } - if (from.has_mention_view()) { - mutable_mention_view()->::bgs::protocol::ViewMarker::MergeFrom(from.mention_view()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubMembershipState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubMembershipState::CopyFrom(const ClubMembershipState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubMembershipState::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->description())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->invitation())) return false; - return true; -} - void ClubMembershipState::Swap(ClubMembershipState* other) { if (other != this) { - description_.Swap(&other->description_); - invitation_.Swap(&other->invitation_); - std::swap(setting_, other->setting_); - std::swap(mention_view_, other->mention_view_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubMembershipState::GetMetadata() const { @@ -1690,7 +727,6 @@ ClubPosition::ClubPosition(const ClubPosition& from) void ClubPosition::SharedCtor() { _cached_size_ = 0; - _club_id_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1725,178 +761,9 @@ ClubPosition* ClubPosition::New() const { return new ClubPosition; } -void ClubPosition::Clear() { - club_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubPosition::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubPosition) - 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 uint64 club_id = 1 [packed = true]; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_club_id()))); - } else if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 10, input, this->mutable_club_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.club.v1.ClubPosition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubPosition) - return false; -#undef DO_ -} - -void ClubPosition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubPosition) - // repeated uint64 club_id = 1 [packed = true]; - if (this->club_id_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_club_id_cached_byte_size_); - } - for (int i = 0; i < this->club_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag( - this->club_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubPosition) -} - -::google::protobuf::uint8* ClubPosition::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubPosition) - // repeated uint64 club_id = 1 [packed = true]; - if (this->club_id_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _club_id_cached_byte_size_, target); - } - for (int i = 0; i < this->club_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64NoTagToArray(this->club_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.club.v1.ClubPosition) - return target; -} - -int ClubPosition::ByteSize() const { - int total_size = 0; - - // repeated uint64 club_id = 1 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->club_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->club_id(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _club_id_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 ClubPosition::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubPosition* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubPosition::MergeFrom(const ClubPosition& from) { - GOOGLE_CHECK_NE(&from, this); - club_id_.MergeFrom(from.club_id_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubPosition::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubPosition::CopyFrom(const ClubPosition& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubPosition::IsInitialized() const { - return true; -} - void ClubPosition::Swap(ClubPosition* other) { if (other != this) { - club_id_.Swap(&other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubPosition::GetMetadata() const { @@ -1968,160 +835,9 @@ ClubSharedSettings* ClubSharedSettings::New() const { return new ClubSharedSettings; } -void ClubSharedSettings::Clear() { - if (has_club_position()) { - if (club_position_ != NULL) club_position_->::bgs::protocol::club::v1::ClubPosition::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSharedSettings::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSharedSettings) - 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.club.v1.ClubPosition club_position = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club_position())); - } 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.club.v1.ClubSharedSettings) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSharedSettings) - return false; -#undef DO_ -} - -void ClubSharedSettings::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSharedSettings) - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->club_position(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSharedSettings) -} - -::google::protobuf::uint8* ClubSharedSettings::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSharedSettings) - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->club_position(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSharedSettings) - return target; -} - -int ClubSharedSettings::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club_position()); - } - - } - 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 ClubSharedSettings::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSharedSettings* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSharedSettings::MergeFrom(const ClubSharedSettings& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_position()) { - mutable_club_position()->::bgs::protocol::club::v1::ClubPosition::MergeFrom(from.club_position()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSharedSettings::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSharedSettings::CopyFrom(const ClubSharedSettings& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSharedSettings::IsInitialized() const { - return true; -} - void ClubSharedSettings::Swap(ClubSharedSettings* other) { if (other != this) { - std::swap(club_position_, other->club_position_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSharedSettings::GetMetadata() const { @@ -2193,160 +909,9 @@ ClubSharedSettingsOptions* ClubSharedSettingsOptions::New() const { return new ClubSharedSettingsOptions; } -void ClubSharedSettingsOptions::Clear() { - if (has_club_position()) { - if (club_position_ != NULL) club_position_->::bgs::protocol::club::v1::ClubPosition::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSharedSettingsOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSharedSettingsOptions) - 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.club.v1.ClubPosition club_position = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club_position())); - } 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.club.v1.ClubSharedSettingsOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSharedSettingsOptions) - return false; -#undef DO_ -} - -void ClubSharedSettingsOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSharedSettingsOptions) - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->club_position(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSharedSettingsOptions) -} - -::google::protobuf::uint8* ClubSharedSettingsOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSharedSettingsOptions) - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->club_position(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSharedSettingsOptions) - return target; -} - -int ClubSharedSettingsOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club_position()); - } - - } - 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 ClubSharedSettingsOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSharedSettingsOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSharedSettingsOptions::MergeFrom(const ClubSharedSettingsOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_position()) { - mutable_club_position()->::bgs::protocol::club::v1::ClubPosition::MergeFrom(from.club_position()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSharedSettingsOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSharedSettingsOptions::CopyFrom(const ClubSharedSettingsOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSharedSettingsOptions::IsInitialized() const { - return true; -} - void ClubSharedSettingsOptions::Swap(ClubSharedSettingsOptions* other) { if (other != this) { - std::swap(club_position_, other->club_position_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSharedSettingsOptions::GetMetadata() const { @@ -2418,160 +983,9 @@ ClubSharedSettingsAssignment* ClubSharedSettingsAssignment::New() const { return new ClubSharedSettingsAssignment; } -void ClubSharedSettingsAssignment::Clear() { - if (has_club_position()) { - if (club_position_ != NULL) club_position_->::bgs::protocol::club::v1::ClubPosition::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSharedSettingsAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSharedSettingsAssignment) - 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.club.v1.ClubPosition club_position = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club_position())); - } 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.club.v1.ClubSharedSettingsAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSharedSettingsAssignment) - return false; -#undef DO_ -} - -void ClubSharedSettingsAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSharedSettingsAssignment) - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->club_position(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSharedSettingsAssignment) -} - -::google::protobuf::uint8* ClubSharedSettingsAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSharedSettingsAssignment) - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->club_position(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSharedSettingsAssignment) - return target; -} - -int ClubSharedSettingsAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubPosition club_position = 1; - if (has_club_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club_position()); - } - - } - 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 ClubSharedSettingsAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSharedSettingsAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSharedSettingsAssignment::MergeFrom(const ClubSharedSettingsAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_position()) { - mutable_club_position()->::bgs::protocol::club::v1::ClubPosition::MergeFrom(from.club_position()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSharedSettingsAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSharedSettingsAssignment::CopyFrom(const ClubSharedSettingsAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSharedSettingsAssignment::IsInitialized() const { - return true; -} - void ClubSharedSettingsAssignment::Swap(ClubSharedSettingsAssignment* other) { if (other != this) { - std::swap(club_position_, other->club_position_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSharedSettingsAssignment::GetMetadata() const { diff --git a/src/server/proto/Client/club_membership_types.pb.h b/src/server/proto/Client/club_membership_types.pb.h index 4c46eaed8f3..3f8c357213b 100644 --- a/src/server/proto/Client/club_membership_types.pb.h +++ b/src/server/proto/Client/club_membership_types.pb.h @@ -82,19 +82,6 @@ class TC_PROTO_API ClubMembershipFilter : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubMembershipFilter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubMembershipFilter& from); - void MergeFrom(const ClubMembershipFilter& 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(); @@ -175,19 +162,6 @@ class TC_PROTO_API ClubMembershipSubscribeOptions : public ::google::protobuf::M // implements Message ---------------------------------------------- ClubMembershipSubscribeOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubMembershipSubscribeOptions& from); - void MergeFrom(const ClubMembershipSubscribeOptions& 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(); @@ -257,19 +231,6 @@ class TC_PROTO_API ClubMembershipGetStateOptions : public ::google::protobuf::Me // implements Message ---------------------------------------------- ClubMembershipGetStateOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubMembershipGetStateOptions& from); - void MergeFrom(const ClubMembershipGetStateOptions& 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(); @@ -339,19 +300,6 @@ class TC_PROTO_API ClubMembershipDescription : public ::google::protobuf::Messag // implements Message ---------------------------------------------- ClubMembershipDescription* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubMembershipDescription& from); - void MergeFrom(const ClubMembershipDescription& 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(); @@ -432,19 +380,6 @@ class TC_PROTO_API ClubMembershipState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubMembershipState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubMembershipState& from); - void MergeFrom(const ClubMembershipState& 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(); @@ -551,19 +486,6 @@ class TC_PROTO_API ClubPosition : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubPosition* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubPosition& from); - void MergeFrom(const ClubPosition& 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(); @@ -596,7 +518,6 @@ class TC_PROTO_API ClubPosition : public ::google::protobuf::Message { ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > club_id_; - mutable int _club_id_cached_byte_size_; friend void TC_PROTO_API protobuf_AddDesc_club_5fmembership_5ftypes_2eproto(); friend void protobuf_AssignDesc_club_5fmembership_5ftypes_2eproto(); friend void protobuf_ShutdownFile_club_5fmembership_5ftypes_2eproto(); @@ -634,19 +555,6 @@ class TC_PROTO_API ClubSharedSettings : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubSharedSettings* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSharedSettings& from); - void MergeFrom(const ClubSharedSettings& 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(); @@ -715,19 +623,6 @@ class TC_PROTO_API ClubSharedSettingsOptions : public ::google::protobuf::Messag // implements Message ---------------------------------------------- ClubSharedSettingsOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSharedSettingsOptions& from); - void MergeFrom(const ClubSharedSettingsOptions& 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(); @@ -796,19 +691,6 @@ class TC_PROTO_API ClubSharedSettingsAssignment : public ::google::protobuf::Mes // implements Message ---------------------------------------------- ClubSharedSettingsAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSharedSettingsAssignment& from); - void MergeFrom(const ClubSharedSettingsAssignment& 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(); diff --git a/src/server/proto/Client/club_notification.pb.cc b/src/server/proto/Client/club_notification.pb.cc index 6957af70dd7..181acd24dcc 100644 --- a/src/server/proto/Client/club_notification.pb.cc +++ b/src/server/proto/Client/club_notification.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_notification.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -665,7 +663,7 @@ void protobuf_AddDesc_club_5fnotification_2eproto() { "fication\0220\n\010agent_id\030\001 \001(\0132\036.bgs.protoco" "l.club.v1.MemberId\022\017\n\007club_id\030\003 \001(\004\0229\n\004v" "iew\030\004 \003(\0132+.bgs.protocol.club.v1.StreamA" - "dvanceViewTimeB\002H\001P\000P\001", 3622); + "dvanceViewTimeB\002H\002P\000P\001", 3622); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_notification.proto", &protobuf_RegisterTypes); SubscribeNotification::default_instance_ = new SubscribeNotification(); @@ -798,368 +796,9 @@ SubscribeNotification* SubscribeNotification::New() const { return new SubscribeNotification; } -void SubscribeNotification::Clear() { - if (_has_bits_[0 / 32] & 63) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_club()) { - if (club_ != NULL) club_->::bgs::protocol::club::v1::Club::Clear(); - } - if (has_view()) { - if (view_ != NULL) view_->::bgs::protocol::club::v1::ClubView::Clear(); - } - if (has_settings()) { - if (settings_ != NULL) settings_->::bgs::protocol::club::v1::ClubSettings::Clear(); - } - if (has_member()) { - if (member_ != NULL) member_->::bgs::protocol::club::v1::Member::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SubscribeNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_club; - break; - } - - // optional .bgs.protocol.club.v1.Club club = 4; - case 4: { - if (tag == 34) { - parse_club: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_view; - break; - } - - // optional .bgs.protocol.club.v1.ClubView view = 5; - case 5: { - if (tag == 42) { - parse_view: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_view())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_settings; - break; - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 10; - case 10: { - if (tag == 82) { - parse_settings: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_settings())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_member; - break; - } - - // optional .bgs.protocol.club.v1.Member member = 11; - case 11: { - if (tag == 90) { - parse_member: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member())); - } 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.club.v1.SubscribeNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SubscribeNotification) - return false; -#undef DO_ -} - -void SubscribeNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SubscribeNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.Club club = 4; - if (has_club()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->club(), output); - } - - // optional .bgs.protocol.club.v1.ClubView view = 5; - if (has_view()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->view(), output); - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 10; - if (has_settings()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->settings(), output); - } - - // optional .bgs.protocol.club.v1.Member member = 11; - if (has_member()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, this->member(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SubscribeNotification) -} - -::google::protobuf::uint8* SubscribeNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SubscribeNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.Club club = 4; - if (has_club()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->club(), target); - } - - // optional .bgs.protocol.club.v1.ClubView view = 5; - if (has_view()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->view(), target); - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 10; - if (has_settings()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->settings(), target); - } - - // optional .bgs.protocol.club.v1.Member member = 11; - if (has_member()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 11, this->member(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SubscribeNotification) - return target; -} - -int SubscribeNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.Club club = 4; - if (has_club()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club()); - } - - // optional .bgs.protocol.club.v1.ClubView view = 5; - if (has_view()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->view()); - } - - // optional .bgs.protocol.club.v1.ClubSettings settings = 10; - if (has_settings()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->settings()); - } - - // optional .bgs.protocol.club.v1.Member member = 11; - if (has_member()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member()); - } - - } - 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 SubscribeNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeNotification::MergeFrom(const SubscribeNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_club()) { - mutable_club()->::bgs::protocol::club::v1::Club::MergeFrom(from.club()); - } - if (from.has_view()) { - mutable_view()->::bgs::protocol::club::v1::ClubView::MergeFrom(from.view()); - } - if (from.has_settings()) { - mutable_settings()->::bgs::protocol::club::v1::ClubSettings::MergeFrom(from.settings()); - } - if (from.has_member()) { - mutable_member()->::bgs::protocol::club::v1::Member::MergeFrom(from.member()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeNotification::CopyFrom(const SubscribeNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_club()) { - if (!this->club().IsInitialized()) return false; - } - if (has_member()) { - if (!this->member().IsInitialized()) return false; - } - return true; -} - void SubscribeNotification::Swap(SubscribeNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(club_, other->club_); - std::swap(view_, other->view_); - std::swap(settings_, other->settings_); - std::swap(member_, other->member_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeNotification::GetMetadata() const { @@ -1233,202 +872,9 @@ UnsubscribeNotification* UnsubscribeNotification::New() const { return new UnsubscribeNotification; } -void UnsubscribeNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsubscribeNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UnsubscribeNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_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.club.v1.UnsubscribeNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UnsubscribeNotification) - return false; -#undef DO_ -} - -void UnsubscribeNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UnsubscribeNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UnsubscribeNotification) -} - -::google::protobuf::uint8* UnsubscribeNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UnsubscribeNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UnsubscribeNotification) - return target; -} - -int UnsubscribeNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_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 UnsubscribeNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsubscribeNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsubscribeNotification::MergeFrom(const UnsubscribeNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsubscribeNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsubscribeNotification::CopyFrom(const UnsubscribeNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsubscribeNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UnsubscribeNotification::Swap(UnsubscribeNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsubscribeNotification::GetMetadata() const { @@ -1506,245 +952,9 @@ StateChangedNotification* StateChangedNotification::New() const { return new StateChangedNotification; } -void StateChangedNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_assignment()) { - if (assignment_ != NULL) assignment_->::bgs::protocol::club::v1::ClubStateAssignment::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StateChangedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StateChangedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_assignment; - break; - } - - // optional .bgs.protocol.club.v1.ClubStateAssignment assignment = 5; - case 5: { - if (tag == 42) { - parse_assignment: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_assignment())); - } 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.club.v1.StateChangedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StateChangedNotification) - return false; -#undef DO_ -} - -void StateChangedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StateChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubStateAssignment assignment = 5; - if (has_assignment()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->assignment(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StateChangedNotification) -} - -::google::protobuf::uint8* StateChangedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StateChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubStateAssignment assignment = 5; - if (has_assignment()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->assignment(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StateChangedNotification) - return target; -} - -int StateChangedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.ClubStateAssignment assignment = 5; - if (has_assignment()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->assignment()); - } - - } - 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 StateChangedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StateChangedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StateChangedNotification::MergeFrom(const StateChangedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_assignment()) { - mutable_assignment()->::bgs::protocol::club::v1::ClubStateAssignment::MergeFrom(from.assignment()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StateChangedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StateChangedNotification::CopyFrom(const StateChangedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StateChangedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_assignment()) { - if (!this->assignment().IsInitialized()) return false; - } - return true; -} - void StateChangedNotification::Swap(StateChangedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(assignment_, other->assignment_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StateChangedNotification::GetMetadata() const { @@ -1822,242 +1032,9 @@ SettingsChangedNotification* SettingsChangedNotification::New() const { return new SettingsChangedNotification; } -void SettingsChangedNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_assignment()) { - if (assignment_ != NULL) assignment_->::bgs::protocol::club::v1::ClubSettingsAssignment::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SettingsChangedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SettingsChangedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_assignment; - break; - } - - // optional .bgs.protocol.club.v1.ClubSettingsAssignment assignment = 4; - case 4: { - if (tag == 34) { - parse_assignment: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_assignment())); - } 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.club.v1.SettingsChangedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SettingsChangedNotification) - return false; -#undef DO_ -} - -void SettingsChangedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SettingsChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubSettingsAssignment assignment = 4; - if (has_assignment()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->assignment(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SettingsChangedNotification) -} - -::google::protobuf::uint8* SettingsChangedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SettingsChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubSettingsAssignment assignment = 4; - if (has_assignment()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->assignment(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SettingsChangedNotification) - return target; -} - -int SettingsChangedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.ClubSettingsAssignment assignment = 4; - if (has_assignment()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->assignment()); - } - - } - 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 SettingsChangedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SettingsChangedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SettingsChangedNotification::MergeFrom(const SettingsChangedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_assignment()) { - mutable_assignment()->::bgs::protocol::club::v1::ClubSettingsAssignment::MergeFrom(from.assignment()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SettingsChangedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SettingsChangedNotification::CopyFrom(const SettingsChangedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SettingsChangedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SettingsChangedNotification::Swap(SettingsChangedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(assignment_, other->assignment_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SettingsChangedNotification::GetMetadata() const { @@ -2132,241 +1109,9 @@ MemberAddedNotification* MemberAddedNotification::New() const { return new MemberAddedNotification; } -void MemberAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - member_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberAddedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_member; - break; - } - - // repeated .bgs.protocol.club.v1.Member member = 4; - case 4: { - if (tag == 34) { - parse_member: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_member())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_member; - 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.club.v1.MemberAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberAddedNotification) - return false; -#undef DO_ -} - -void MemberAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // repeated .bgs.protocol.club.v1.Member member = 4; - for (int i = 0; i < this->member_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->member(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberAddedNotification) -} - -::google::protobuf::uint8* MemberAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // repeated .bgs.protocol.club.v1.Member member = 4; - for (int i = 0; i < this->member_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->member(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberAddedNotification) - return target; -} - -int MemberAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - } - // repeated .bgs.protocol.club.v1.Member member = 4; - total_size += 1 * this->member_size(); - for (int i = 0; i < this->member_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member(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 MemberAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberAddedNotification::MergeFrom(const MemberAddedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - member_.MergeFrom(from.member_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberAddedNotification::CopyFrom(const MemberAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberAddedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->member())) return false; - return true; -} - void MemberAddedNotification::Swap(MemberAddedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - member_.Swap(&other->member_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberAddedNotification::GetMetadata() const { @@ -2441,267 +1186,35 @@ MemberRemovedNotification* MemberRemovedNotification::New() const { return new MemberRemovedNotification; } -void MemberRemovedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - member_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberRemovedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_member; - break; - } - - // repeated .bgs.protocol.club.v1.MemberRemovedAssignment member = 4; - case 4: { - if (tag == 34) { - parse_member: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_member())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_member; - 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.club.v1.MemberRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberRemovedNotification) - return false; -#undef DO_ -} - -void MemberRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // repeated .bgs.protocol.club.v1.MemberRemovedAssignment member = 4; - for (int i = 0; i < this->member_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->member(i), output); - } +void MemberRemovedNotification::Swap(MemberRemovedNotification* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberRemovedNotification) +::google::protobuf::Metadata MemberRemovedNotification::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MemberRemovedNotification_descriptor_; + metadata.reflection = MemberRemovedNotification_reflection_; + return metadata; } -::google::protobuf::uint8* MemberRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } +// =================================================================== - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } +#ifndef _MSC_VER +const int MemberStateChangedNotification::kAgentIdFieldNumber; +const int MemberStateChangedNotification::kClubIdFieldNumber; +const int MemberStateChangedNotification::kAssignmentFieldNumber; +#endif // !_MSC_VER - // repeated .bgs.protocol.club.v1.MemberRemovedAssignment member = 4; - for (int i = 0; i < this->member_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->member(i), target); - } +MemberStateChangedNotification::MemberStateChangedNotification() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.club.v1.MemberStateChangedNotification) +} - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberRemovedNotification) - return target; -} - -int MemberRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - } - // repeated .bgs.protocol.club.v1.MemberRemovedAssignment member = 4; - total_size += 1 * this->member_size(); - for (int i = 0; i < this->member_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member(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 MemberRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberRemovedNotification::MergeFrom(const MemberRemovedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - member_.MergeFrom(from.member_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberRemovedNotification::CopyFrom(const MemberRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberRemovedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->member())) return false; - return true; -} - -void MemberRemovedNotification::Swap(MemberRemovedNotification* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - member_.Swap(&other->member_); - 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 MemberRemovedNotification::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MemberRemovedNotification_descriptor_; - metadata.reflection = MemberRemovedNotification_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int MemberStateChangedNotification::kAgentIdFieldNumber; -const int MemberStateChangedNotification::kClubIdFieldNumber; -const int MemberStateChangedNotification::kAssignmentFieldNumber; -#endif // !_MSC_VER - -MemberStateChangedNotification::MemberStateChangedNotification() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.club.v1.MemberStateChangedNotification) -} - -void MemberStateChangedNotification::InitAsDefaultInstance() { - agent_id_ = const_cast< ::bgs::protocol::club::v1::MemberId*>(&::bgs::protocol::club::v1::MemberId::default_instance()); +void MemberStateChangedNotification::InitAsDefaultInstance() { + agent_id_ = const_cast< ::bgs::protocol::club::v1::MemberId*>(&::bgs::protocol::club::v1::MemberId::default_instance()); } MemberStateChangedNotification::MemberStateChangedNotification(const MemberStateChangedNotification& from) @@ -2750,241 +1263,9 @@ MemberStateChangedNotification* MemberStateChangedNotification::New() const { return new MemberStateChangedNotification; } -void MemberStateChangedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - assignment_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberStateChangedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberStateChangedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_assignment; - break; - } - - // repeated .bgs.protocol.club.v1.MemberStateAssignment assignment = 4; - case 4: { - if (tag == 34) { - parse_assignment: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_assignment())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_assignment; - 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.club.v1.MemberStateChangedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberStateChangedNotification) - return false; -#undef DO_ -} - -void MemberStateChangedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberStateChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // repeated .bgs.protocol.club.v1.MemberStateAssignment assignment = 4; - for (int i = 0; i < this->assignment_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->assignment(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberStateChangedNotification) -} - -::google::protobuf::uint8* MemberStateChangedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberStateChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // repeated .bgs.protocol.club.v1.MemberStateAssignment assignment = 4; - for (int i = 0; i < this->assignment_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->assignment(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberStateChangedNotification) - return target; -} - -int MemberStateChangedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - } - // repeated .bgs.protocol.club.v1.MemberStateAssignment assignment = 4; - total_size += 1 * this->assignment_size(); - for (int i = 0; i < this->assignment_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->assignment(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 MemberStateChangedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberStateChangedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberStateChangedNotification::MergeFrom(const MemberStateChangedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - assignment_.MergeFrom(from.assignment_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberStateChangedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberStateChangedNotification::CopyFrom(const MemberStateChangedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberStateChangedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->assignment())) return false; - return true; -} - void MemberStateChangedNotification::Swap(MemberStateChangedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - assignment_.Swap(&other->assignment_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberStateChangedNotification::GetMetadata() const { @@ -3059,241 +1340,9 @@ SubscriberStateChangedNotification* SubscriberStateChangedNotification::New() co return new SubscriberStateChangedNotification; } -void SubscriberStateChangedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - assignment_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscriberStateChangedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SubscriberStateChangedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_assignment; - break; - } - - // repeated .bgs.protocol.club.v1.SubscriberStateAssignment assignment = 4; - case 4: { - if (tag == 34) { - parse_assignment: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_assignment())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_assignment; - 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.club.v1.SubscriberStateChangedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SubscriberStateChangedNotification) - return false; -#undef DO_ -} - -void SubscriberStateChangedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SubscriberStateChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // repeated .bgs.protocol.club.v1.SubscriberStateAssignment assignment = 4; - for (int i = 0; i < this->assignment_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->assignment(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SubscriberStateChangedNotification) -} - -::google::protobuf::uint8* SubscriberStateChangedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SubscriberStateChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // repeated .bgs.protocol.club.v1.SubscriberStateAssignment assignment = 4; - for (int i = 0; i < this->assignment_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->assignment(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SubscriberStateChangedNotification) - return target; -} - -int SubscriberStateChangedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - } - // repeated .bgs.protocol.club.v1.SubscriberStateAssignment assignment = 4; - total_size += 1 * this->assignment_size(); - for (int i = 0; i < this->assignment_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->assignment(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 SubscriberStateChangedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscriberStateChangedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscriberStateChangedNotification::MergeFrom(const SubscriberStateChangedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - assignment_.MergeFrom(from.assignment_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscriberStateChangedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscriberStateChangedNotification::CopyFrom(const SubscriberStateChangedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscriberStateChangedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->assignment())) return false; - return true; -} - void SubscriberStateChangedNotification::Swap(SubscriberStateChangedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - assignment_.Swap(&other->assignment_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscriberStateChangedNotification::GetMetadata() const { @@ -3368,241 +1417,9 @@ MemberRoleChangedNotification* MemberRoleChangedNotification::New() const { return new MemberRoleChangedNotification; } -void MemberRoleChangedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - assignment_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MemberRoleChangedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MemberRoleChangedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_assignment; - break; - } - - // repeated .bgs.protocol.club.v1.RoleAssignment assignment = 4; - case 4: { - if (tag == 34) { - parse_assignment: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_assignment())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_assignment; - 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.club.v1.MemberRoleChangedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MemberRoleChangedNotification) - return false; -#undef DO_ -} - -void MemberRoleChangedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MemberRoleChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // repeated .bgs.protocol.club.v1.RoleAssignment assignment = 4; - for (int i = 0; i < this->assignment_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->assignment(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MemberRoleChangedNotification) -} - -::google::protobuf::uint8* MemberRoleChangedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MemberRoleChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // repeated .bgs.protocol.club.v1.RoleAssignment assignment = 4; - for (int i = 0; i < this->assignment_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->assignment(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.MemberRoleChangedNotification) - return target; -} - -int MemberRoleChangedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - } - // repeated .bgs.protocol.club.v1.RoleAssignment assignment = 4; - total_size += 1 * this->assignment_size(); - for (int i = 0; i < this->assignment_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->assignment(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 MemberRoleChangedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MemberRoleChangedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MemberRoleChangedNotification::MergeFrom(const MemberRoleChangedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - assignment_.MergeFrom(from.assignment_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MemberRoleChangedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemberRoleChangedNotification::CopyFrom(const MemberRoleChangedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MemberRoleChangedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->assignment())) return false; - return true; -} - void MemberRoleChangedNotification::Swap(MemberRoleChangedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - assignment_.Swap(&other->assignment_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MemberRoleChangedNotification::GetMetadata() const { @@ -3680,245 +1497,9 @@ InvitationAddedNotification* InvitationAddedNotification::New() const { return new InvitationAddedNotification; } -void InvitationAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_invitation()) { - if (invitation_ != NULL) invitation_->::bgs::protocol::club::v1::ClubInvitation::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool InvitationAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.InvitationAddedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_invitation; - break; - } - - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 4; - case 4: { - if (tag == 34) { - parse_invitation: - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.club.v1.InvitationAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.InvitationAddedNotification) - return false; -#undef DO_ -} - -void InvitationAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.InvitationAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 4; - if (has_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->invitation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.InvitationAddedNotification) -} - -::google::protobuf::uint8* InvitationAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.InvitationAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 4; - if (has_invitation()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->invitation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.InvitationAddedNotification) - return target; -} - -int InvitationAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 4; - if (has_invitation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation()); - } - - } - 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 InvitationAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const InvitationAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void InvitationAddedNotification::MergeFrom(const InvitationAddedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_invitation()) { - mutable_invitation()->::bgs::protocol::club::v1::ClubInvitation::MergeFrom(from.invitation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void InvitationAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InvitationAddedNotification::CopyFrom(const InvitationAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InvitationAddedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_invitation()) { - if (!this->invitation().IsInitialized()) return false; - } - return true; -} - void InvitationAddedNotification::Swap(InvitationAddedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata InvitationAddedNotification::GetMetadata() const { @@ -3996,292 +1577,9 @@ InvitationRemovedNotification* InvitationRemovedNotification::New() const { return new InvitationRemovedNotification; } -void InvitationRemovedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, reason_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool InvitationRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.InvitationRemovedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(33)) goto parse_invitation_id; - break; - } - - // optional fixed64 invitation_id = 4; - case 4: { - if (tag == 33) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_reason; - break; - } - - // optional .bgs.protocol.InvitationRemovedReason reason = 5; - case 5: { - if (tag == 40) { - parse_reason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::InvitationRemovedReason_IsValid(value)) { - set_reason(static_cast< ::bgs::protocol::InvitationRemovedReason >(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.club.v1.InvitationRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.InvitationRemovedNotification) - return false; -#undef DO_ -} - -void InvitationRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.InvitationRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional fixed64 invitation_id = 4; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->invitation_id(), output); - } - - // optional .bgs.protocol.InvitationRemovedReason reason = 5; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.InvitationRemovedNotification) -} - -::google::protobuf::uint8* InvitationRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.InvitationRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional fixed64 invitation_id = 4; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->invitation_id(), target); - } - - // optional .bgs.protocol.InvitationRemovedReason reason = 5; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.InvitationRemovedNotification) - return target; -} - -int InvitationRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 invitation_id = 4; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - // optional .bgs.protocol.InvitationRemovedReason reason = 5; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); - } - - } - 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 InvitationRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const InvitationRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void InvitationRemovedNotification::MergeFrom(const InvitationRemovedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void InvitationRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InvitationRemovedNotification::CopyFrom(const InvitationRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InvitationRemovedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void InvitationRemovedNotification::Swap(InvitationRemovedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata InvitationRemovedNotification::GetMetadata() const { @@ -4359,245 +1657,9 @@ SuggestionAddedNotification* SuggestionAddedNotification::New() const { return new SuggestionAddedNotification; } -void SuggestionAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_suggestion()) { - if (suggestion_ != NULL) suggestion_->::bgs::protocol::club::v1::ClubSuggestion::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SuggestionAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SuggestionAddedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_suggestion; - break; - } - - // optional .bgs.protocol.club.v1.ClubSuggestion suggestion = 4; - case 4: { - if (tag == 34) { - parse_suggestion: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_suggestion())); - } 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.club.v1.SuggestionAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SuggestionAddedNotification) - return false; -#undef DO_ -} - -void SuggestionAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SuggestionAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubSuggestion suggestion = 4; - if (has_suggestion()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->suggestion(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SuggestionAddedNotification) -} - -::google::protobuf::uint8* SuggestionAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SuggestionAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubSuggestion suggestion = 4; - if (has_suggestion()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->suggestion(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SuggestionAddedNotification) - return target; -} - -int SuggestionAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.ClubSuggestion suggestion = 4; - if (has_suggestion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->suggestion()); - } - - } - 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 SuggestionAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SuggestionAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SuggestionAddedNotification::MergeFrom(const SuggestionAddedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_suggestion()) { - mutable_suggestion()->::bgs::protocol::club::v1::ClubSuggestion::MergeFrom(from.suggestion()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SuggestionAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SuggestionAddedNotification::CopyFrom(const SuggestionAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SuggestionAddedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_suggestion()) { - if (!this->suggestion().IsInitialized()) return false; - } - return true; -} - void SuggestionAddedNotification::Swap(SuggestionAddedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(suggestion_, other->suggestion_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SuggestionAddedNotification::GetMetadata() const { @@ -4675,292 +1737,9 @@ SuggestionRemovedNotification* SuggestionRemovedNotification::New() const { return new SuggestionRemovedNotification; } -void SuggestionRemovedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, reason_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SuggestionRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SuggestionRemovedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(33)) goto parse_suggestion_id; - break; - } - - // optional fixed64 suggestion_id = 4; - case 4: { - if (tag == 33) { - parse_suggestion_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &suggestion_id_))); - set_has_suggestion_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_reason; - break; - } - - // optional .bgs.protocol.SuggestionRemovedReason reason = 5; - case 5: { - if (tag == 40) { - parse_reason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::SuggestionRemovedReason_IsValid(value)) { - set_reason(static_cast< ::bgs::protocol::SuggestionRemovedReason >(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.club.v1.SuggestionRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SuggestionRemovedNotification) - return false; -#undef DO_ -} - -void SuggestionRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SuggestionRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional fixed64 suggestion_id = 4; - if (has_suggestion_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->suggestion_id(), output); - } - - // optional .bgs.protocol.SuggestionRemovedReason reason = 5; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SuggestionRemovedNotification) -} - -::google::protobuf::uint8* SuggestionRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SuggestionRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional fixed64 suggestion_id = 4; - if (has_suggestion_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->suggestion_id(), target); - } - - // optional .bgs.protocol.SuggestionRemovedReason reason = 5; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SuggestionRemovedNotification) - return target; -} - -int SuggestionRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 suggestion_id = 4; - if (has_suggestion_id()) { - total_size += 1 + 8; - } - - // optional .bgs.protocol.SuggestionRemovedReason reason = 5; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); - } - - } - 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 SuggestionRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SuggestionRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SuggestionRemovedNotification::MergeFrom(const SuggestionRemovedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_suggestion_id()) { - set_suggestion_id(from.suggestion_id()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SuggestionRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SuggestionRemovedNotification::CopyFrom(const SuggestionRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SuggestionRemovedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SuggestionRemovedNotification::Swap(SuggestionRemovedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(suggestion_id_, other->suggestion_id_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SuggestionRemovedNotification::GetMetadata() const { @@ -5038,242 +1817,9 @@ StreamAddedNotification* StreamAddedNotification::New() const { return new StreamAddedNotification; } -void StreamAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_stream()) { - if (stream_ != NULL) stream_->::bgs::protocol::club::v1::Stream::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamAddedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_stream; - break; - } - - // optional .bgs.protocol.club.v1.Stream stream = 4; - case 4: { - if (tag == 34) { - parse_stream: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_stream())); - } 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.club.v1.StreamAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamAddedNotification) - return false; -#undef DO_ -} - -void StreamAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.Stream stream = 4; - if (has_stream()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->stream(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamAddedNotification) -} - -::google::protobuf::uint8* StreamAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.Stream stream = 4; - if (has_stream()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->stream(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamAddedNotification) - return target; -} - -int StreamAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.Stream stream = 4; - if (has_stream()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream()); - } - - } - 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 StreamAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamAddedNotification::MergeFrom(const StreamAddedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream()) { - mutable_stream()->::bgs::protocol::club::v1::Stream::MergeFrom(from.stream()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamAddedNotification::CopyFrom(const StreamAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamAddedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void StreamAddedNotification::Swap(StreamAddedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_, other->stream_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamAddedNotification::GetMetadata() const { @@ -5349,252 +1895,9 @@ StreamRemovedNotification* StreamRemovedNotification::New() const { return new StreamRemovedNotification; } -void StreamRemovedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamRemovedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 4; - case 4: { - if (tag == 32) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_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.club.v1.StreamRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamRemovedNotification) - return false; -#undef DO_ -} - -void StreamRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->stream_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamRemovedNotification) -} - -::google::protobuf::uint8* StreamRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamRemovedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->stream_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamRemovedNotification) - return target; -} - -int StreamRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_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 StreamRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamRemovedNotification::MergeFrom(const StreamRemovedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamRemovedNotification::CopyFrom(const StreamRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamRemovedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void StreamRemovedNotification::Swap(StreamRemovedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamRemovedNotification::GetMetadata() const { @@ -5651,315 +1954,32 @@ void StreamStateChangedNotification::SharedDtor() { delete agent_id_; delete assignment_; } -} - -void StreamStateChangedNotification::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* StreamStateChangedNotification::descriptor() { - protobuf_AssignDescriptorsOnce(); - return StreamStateChangedNotification_descriptor_; -} - -const StreamStateChangedNotification& StreamStateChangedNotification::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_club_5fnotification_2eproto(); - return *default_instance_; -} - -StreamStateChangedNotification* StreamStateChangedNotification::default_instance_ = NULL; - -StreamStateChangedNotification* StreamStateChangedNotification::New() const { - return new StreamStateChangedNotification; -} - -void StreamStateChangedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_assignment()) { - if (assignment_ != NULL) assignment_->::bgs::protocol::club::v1::StreamStateAssignment::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamStateChangedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamStateChangedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 4; - case 4: { - if (tag == 32) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_assignment; - break; - } - - // optional .bgs.protocol.club.v1.StreamStateAssignment assignment = 5; - case 5: { - if (tag == 42) { - parse_assignment: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_assignment())); - } 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.club.v1.StreamStateChangedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamStateChangedNotification) - return false; -#undef DO_ -} - -void StreamStateChangedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamStateChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->stream_id(), output); - } - - // optional .bgs.protocol.club.v1.StreamStateAssignment assignment = 5; - if (has_assignment()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->assignment(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamStateChangedNotification) -} - -::google::protobuf::uint8* StreamStateChangedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamStateChangedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->stream_id(), target); - } - - // optional .bgs.protocol.club.v1.StreamStateAssignment assignment = 5; - if (has_assignment()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->assignment(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamStateChangedNotification) - return target; -} - -int StreamStateChangedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.club.v1.StreamStateAssignment assignment = 5; - if (has_assignment()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->assignment()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +} + +void StreamStateChangedNotification::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void StreamStateChangedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamStateChangedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void StreamStateChangedNotification::MergeFrom(const StreamStateChangedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_assignment()) { - mutable_assignment()->::bgs::protocol::club::v1::StreamStateAssignment::MergeFrom(from.assignment()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* StreamStateChangedNotification::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StreamStateChangedNotification_descriptor_; } -void StreamStateChangedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const StreamStateChangedNotification& StreamStateChangedNotification::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_club_5fnotification_2eproto(); + return *default_instance_; } -void StreamStateChangedNotification::CopyFrom(const StreamStateChangedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +StreamStateChangedNotification* StreamStateChangedNotification::default_instance_ = NULL; -bool StreamStateChangedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; +StreamStateChangedNotification* StreamStateChangedNotification::New() const { + return new StreamStateChangedNotification; } void StreamStateChangedNotification::Swap(StreamStateChangedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(assignment_, other->assignment_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamStateChangedNotification::GetMetadata() const { @@ -6039,295 +2059,9 @@ StreamMessageAddedNotification* StreamMessageAddedNotification::New() const { return new StreamMessageAddedNotification; } -void StreamMessageAddedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_message()) { - if (message_ != NULL) message_->::bgs::protocol::club::v1::StreamMessage::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamMessageAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamMessageAddedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 4; - case 4: { - if (tag == 32) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_message; - break; - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - case 5: { - if (tag == 42) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } 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.club.v1.StreamMessageAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamMessageAddedNotification) - return false; -#undef DO_ -} - -void StreamMessageAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamMessageAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->stream_id(), output); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamMessageAddedNotification) -} - -::google::protobuf::uint8* StreamMessageAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamMessageAddedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->stream_id(), target); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamMessageAddedNotification) - return target; -} - -int StreamMessageAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - } - - } - 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 StreamMessageAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamMessageAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamMessageAddedNotification::MergeFrom(const StreamMessageAddedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_message()) { - mutable_message()->::bgs::protocol::club::v1::StreamMessage::MergeFrom(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamMessageAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamMessageAddedNotification::CopyFrom(const StreamMessageAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamMessageAddedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_message()) { - if (!this->message().IsInitialized()) return false; - } - return true; -} - void StreamMessageAddedNotification::Swap(StreamMessageAddedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamMessageAddedNotification::GetMetadata() const { @@ -6407,295 +2141,9 @@ StreamMessageUpdatedNotification* StreamMessageUpdatedNotification::New() const return new StreamMessageUpdatedNotification; } -void StreamMessageUpdatedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_message()) { - if (message_ != NULL) message_->::bgs::protocol::club::v1::StreamMessage::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamMessageUpdatedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamMessageUpdatedNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 4; - case 4: { - if (tag == 32) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_message; - break; - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - case 5: { - if (tag == 42) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } 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.club.v1.StreamMessageUpdatedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamMessageUpdatedNotification) - return false; -#undef DO_ -} - -void StreamMessageUpdatedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamMessageUpdatedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->stream_id(), output); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamMessageUpdatedNotification) -} - -::google::protobuf::uint8* StreamMessageUpdatedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamMessageUpdatedNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->stream_id(), target); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamMessageUpdatedNotification) - return target; -} - -int StreamMessageUpdatedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - } - - } - 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 StreamMessageUpdatedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamMessageUpdatedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamMessageUpdatedNotification::MergeFrom(const StreamMessageUpdatedNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_message()) { - mutable_message()->::bgs::protocol::club::v1::StreamMessage::MergeFrom(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamMessageUpdatedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamMessageUpdatedNotification::CopyFrom(const StreamMessageUpdatedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamMessageUpdatedNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_message()) { - if (!this->message().IsInitialized()) return false; - } - return true; -} - void StreamMessageUpdatedNotification::Swap(StreamMessageUpdatedNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamMessageUpdatedNotification::GetMetadata() const { @@ -6772,291 +2220,9 @@ StreamTypingIndicatorNotification* StreamTypingIndicatorNotification::New() cons return new StreamTypingIndicatorNotification; } -void StreamTypingIndicatorNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - indicator_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamTypingIndicatorNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamTypingIndicatorNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 4; - case 4: { - if (tag == 32) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_indicator; - break; - } - - // repeated .bgs.protocol.club.v1.StreamTypingIndicator indicator = 5; - case 5: { - if (tag == 42) { - parse_indicator: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_indicator())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_indicator; - 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.club.v1.StreamTypingIndicatorNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamTypingIndicatorNotification) - return false; -#undef DO_ -} - -void StreamTypingIndicatorNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamTypingIndicatorNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->stream_id(), output); - } - - // repeated .bgs.protocol.club.v1.StreamTypingIndicator indicator = 5; - for (int i = 0; i < this->indicator_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->indicator(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamTypingIndicatorNotification) -} - -::google::protobuf::uint8* StreamTypingIndicatorNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamTypingIndicatorNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->stream_id(), target); - } - - // repeated .bgs.protocol.club.v1.StreamTypingIndicator indicator = 5; - for (int i = 0; i < this->indicator_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->indicator(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamTypingIndicatorNotification) - return target; -} - -int StreamTypingIndicatorNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 4; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - } - // repeated .bgs.protocol.club.v1.StreamTypingIndicator indicator = 5; - total_size += 1 * this->indicator_size(); - for (int i = 0; i < this->indicator_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->indicator(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 StreamTypingIndicatorNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamTypingIndicatorNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamTypingIndicatorNotification::MergeFrom(const StreamTypingIndicatorNotification& from) { - GOOGLE_CHECK_NE(&from, this); - indicator_.MergeFrom(from.indicator_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamTypingIndicatorNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamTypingIndicatorNotification::CopyFrom(const StreamTypingIndicatorNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamTypingIndicatorNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->indicator())) return false; - return true; -} - void StreamTypingIndicatorNotification::Swap(StreamTypingIndicatorNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - indicator_.Swap(&other->indicator_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamTypingIndicatorNotification::GetMetadata() const { @@ -7138,285 +2304,9 @@ StreamUnreadIndicatorNotification* StreamUnreadIndicatorNotification::New() cons return new StreamUnreadIndicatorNotification; } -void StreamUnreadIndicatorNotification::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_event()) { - if (event_ != NULL) event_->::bgs::protocol::club::v1::StreamEventTime::Clear(); - } - if (has_message()) { - if (message_ != NULL) message_->::bgs::protocol::club::v1::StreamMessage::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamUnreadIndicatorNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamUnreadIndicatorNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_event; - break; - } - - // optional .bgs.protocol.club.v1.StreamEventTime event = 4; - case 4: { - if (tag == 34) { - parse_event: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_event())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_message; - break; - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - case 5: { - if (tag == 42) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } 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.club.v1.StreamUnreadIndicatorNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamUnreadIndicatorNotification) - return false; -#undef DO_ -} - -void StreamUnreadIndicatorNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamUnreadIndicatorNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.StreamEventTime event = 4; - if (has_event()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->event(), output); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamUnreadIndicatorNotification) -} - -::google::protobuf::uint8* StreamUnreadIndicatorNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamUnreadIndicatorNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.StreamEventTime event = 4; - if (has_event()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->event(), target); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamUnreadIndicatorNotification) - return target; -} - -int StreamUnreadIndicatorNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.StreamEventTime event = 4; - if (has_event()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->event()); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 5; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - } - - } - 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 StreamUnreadIndicatorNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamUnreadIndicatorNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamUnreadIndicatorNotification::MergeFrom(const StreamUnreadIndicatorNotification& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_event()) { - mutable_event()->::bgs::protocol::club::v1::StreamEventTime::MergeFrom(from.event()); - } - if (from.has_message()) { - mutable_message()->::bgs::protocol::club::v1::StreamMessage::MergeFrom(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamUnreadIndicatorNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamUnreadIndicatorNotification::CopyFrom(const StreamUnreadIndicatorNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamUnreadIndicatorNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_message()) { - if (!this->message().IsInitialized()) return false; - } - return true; -} - void StreamUnreadIndicatorNotification::Swap(StreamUnreadIndicatorNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(event_, other->event_); - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamUnreadIndicatorNotification::GetMetadata() const { @@ -7491,240 +2381,9 @@ StreamAdvanceViewTimeNotification* StreamAdvanceViewTimeNotification::New() cons return new StreamAdvanceViewTimeNotification; } -void StreamAdvanceViewTimeNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - view_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamAdvanceViewTimeNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamAdvanceViewTimeNotification) - 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.club.v1.MemberId 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(24)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 3; - case 3: { - if (tag == 24) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_view; - break; - } - - // repeated .bgs.protocol.club.v1.StreamAdvanceViewTime view = 4; - case 4: { - if (tag == 34) { - parse_view: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_view())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_view; - 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.club.v1.StreamAdvanceViewTimeNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamAdvanceViewTimeNotification) - return false; -#undef DO_ -} - -void StreamAdvanceViewTimeNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamAdvanceViewTimeNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->club_id(), output); - } - - // repeated .bgs.protocol.club.v1.StreamAdvanceViewTime view = 4; - for (int i = 0; i < this->view_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->view(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamAdvanceViewTimeNotification) -} - -::google::protobuf::uint8* StreamAdvanceViewTimeNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamAdvanceViewTimeNotification) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->club_id(), target); - } - - // repeated .bgs.protocol.club.v1.StreamAdvanceViewTime view = 4; - for (int i = 0; i < this->view_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->view(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamAdvanceViewTimeNotification) - return target; -} - -int StreamAdvanceViewTimeNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 3; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - } - // repeated .bgs.protocol.club.v1.StreamAdvanceViewTime view = 4; - total_size += 1 * this->view_size(); - for (int i = 0; i < this->view_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->view(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 StreamAdvanceViewTimeNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamAdvanceViewTimeNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamAdvanceViewTimeNotification::MergeFrom(const StreamAdvanceViewTimeNotification& from) { - GOOGLE_CHECK_NE(&from, this); - view_.MergeFrom(from.view_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamAdvanceViewTimeNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamAdvanceViewTimeNotification::CopyFrom(const StreamAdvanceViewTimeNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamAdvanceViewTimeNotification::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void StreamAdvanceViewTimeNotification::Swap(StreamAdvanceViewTimeNotification* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - view_.Swap(&other->view_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamAdvanceViewTimeNotification::GetMetadata() const { diff --git a/src/server/proto/Client/club_notification.pb.h b/src/server/proto/Client/club_notification.pb.h index 43d272dc791..c0a4fee213b 100644 --- a/src/server/proto/Client/club_notification.pb.h +++ b/src/server/proto/Client/club_notification.pb.h @@ -91,19 +91,6 @@ class TC_PROTO_API SubscribeNotification : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeNotification& from); - void MergeFrom(const SubscribeNotification& 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(); @@ -230,19 +217,6 @@ class TC_PROTO_API UnsubscribeNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- UnsubscribeNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsubscribeNotification& from); - void MergeFrom(const UnsubscribeNotification& 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(); @@ -321,19 +295,6 @@ class TC_PROTO_API StateChangedNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- StateChangedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StateChangedNotification& from); - void MergeFrom(const StateChangedNotification& 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(); @@ -424,19 +385,6 @@ class TC_PROTO_API SettingsChangedNotification : public ::google::protobuf::Mess // implements Message ---------------------------------------------- SettingsChangedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SettingsChangedNotification& from); - void MergeFrom(const SettingsChangedNotification& 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(); @@ -527,19 +475,6 @@ class TC_PROTO_API MemberAddedNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- MemberAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberAddedNotification& from); - void MergeFrom(const MemberAddedNotification& 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(); @@ -631,19 +566,6 @@ class TC_PROTO_API MemberRemovedNotification : public ::google::protobuf::Messag // implements Message ---------------------------------------------- MemberRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberRemovedNotification& from); - void MergeFrom(const MemberRemovedNotification& 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(); @@ -735,19 +657,6 @@ class TC_PROTO_API MemberStateChangedNotification : public ::google::protobuf::M // implements Message ---------------------------------------------- MemberStateChangedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberStateChangedNotification& from); - void MergeFrom(const MemberStateChangedNotification& 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(); @@ -839,19 +748,6 @@ class TC_PROTO_API SubscriberStateChangedNotification : public ::google::protobu // implements Message ---------------------------------------------- SubscriberStateChangedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscriberStateChangedNotification& from); - void MergeFrom(const SubscriberStateChangedNotification& 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(); @@ -943,19 +839,6 @@ class TC_PROTO_API MemberRoleChangedNotification : public ::google::protobuf::Me // implements Message ---------------------------------------------- MemberRoleChangedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MemberRoleChangedNotification& from); - void MergeFrom(const MemberRoleChangedNotification& 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(); @@ -1047,19 +930,6 @@ class TC_PROTO_API InvitationAddedNotification : public ::google::protobuf::Mess // implements Message ---------------------------------------------- InvitationAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InvitationAddedNotification& from); - void MergeFrom(const InvitationAddedNotification& 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(); @@ -1150,19 +1020,6 @@ class TC_PROTO_API InvitationRemovedNotification : public ::google::protobuf::Me // implements Message ---------------------------------------------- InvitationRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InvitationRemovedNotification& from); - void MergeFrom(const InvitationRemovedNotification& 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(); @@ -1261,19 +1118,6 @@ class TC_PROTO_API SuggestionAddedNotification : public ::google::protobuf::Mess // implements Message ---------------------------------------------- SuggestionAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SuggestionAddedNotification& from); - void MergeFrom(const SuggestionAddedNotification& 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(); @@ -1364,19 +1208,6 @@ class TC_PROTO_API SuggestionRemovedNotification : public ::google::protobuf::Me // implements Message ---------------------------------------------- SuggestionRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SuggestionRemovedNotification& from); - void MergeFrom(const SuggestionRemovedNotification& 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(); @@ -1475,19 +1306,6 @@ class TC_PROTO_API StreamAddedNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- StreamAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamAddedNotification& from); - void MergeFrom(const StreamAddedNotification& 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(); @@ -1578,19 +1396,6 @@ class TC_PROTO_API StreamRemovedNotification : public ::google::protobuf::Messag // implements Message ---------------------------------------------- StreamRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamRemovedNotification& from); - void MergeFrom(const StreamRemovedNotification& 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(); @@ -1679,19 +1484,6 @@ class TC_PROTO_API StreamStateChangedNotification : public ::google::protobuf::M // implements Message ---------------------------------------------- StreamStateChangedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamStateChangedNotification& from); - void MergeFrom(const StreamStateChangedNotification& 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(); @@ -1792,19 +1584,6 @@ class TC_PROTO_API StreamMessageAddedNotification : public ::google::protobuf::M // implements Message ---------------------------------------------- StreamMessageAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamMessageAddedNotification& from); - void MergeFrom(const StreamMessageAddedNotification& 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(); @@ -1905,19 +1684,6 @@ class TC_PROTO_API StreamMessageUpdatedNotification : public ::google::protobuf: // implements Message ---------------------------------------------- StreamMessageUpdatedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamMessageUpdatedNotification& from); - void MergeFrom(const StreamMessageUpdatedNotification& 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(); @@ -2018,19 +1784,6 @@ class TC_PROTO_API StreamTypingIndicatorNotification : public ::google::protobuf // implements Message ---------------------------------------------- StreamTypingIndicatorNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamTypingIndicatorNotification& from); - void MergeFrom(const StreamTypingIndicatorNotification& 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(); @@ -2132,19 +1885,6 @@ class TC_PROTO_API StreamUnreadIndicatorNotification : public ::google::protobuf // implements Message ---------------------------------------------- StreamUnreadIndicatorNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamUnreadIndicatorNotification& from); - void MergeFrom(const StreamUnreadIndicatorNotification& 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(); @@ -2247,19 +1987,6 @@ class TC_PROTO_API StreamAdvanceViewTimeNotification : public ::google::protobuf // implements Message ---------------------------------------------- StreamAdvanceViewTimeNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamAdvanceViewTimeNotification& from); - void MergeFrom(const StreamAdvanceViewTimeNotification& 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(); diff --git a/src/server/proto/Client/club_range_set.pb.cc b/src/server/proto/Client/club_range_set.pb.cc index 4b4067587db..c68add24403 100644 --- a/src/server/proto/Client/club_range_set.pb.cc +++ b/src/server/proto/Client/club_range_set.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_range_set.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -268,7 +266,7 @@ void protobuf_AddDesc_club_5frange_5fset_2eproto() { "\n\017ClubBanRangeSet\022-\n\005count\030\001 \001(\0132\036.bgs.p" "rotocol.UnsignedIntRange\0224\n\014reason_range" "\030\003 \001(\0132\036.bgs.protocol.UnsignedIntRangeB\002" - "H\001", 1482); + "H\002", 1482); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_range_set.proto", &protobuf_RegisterTypes); ClubTypeRangeSet::default_instance_ = new ClubTypeRangeSet(); @@ -391,528 +389,9 @@ ClubTypeRangeSet* ClubTypeRangeSet::New() const { return new ClubTypeRangeSet; } -void ClubTypeRangeSet::Clear() { - if (_has_bits_[0 / 32] & 255) { - if (has_name_range()) { - if (name_range_ != NULL) name_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_description_range()) { - if (description_range_ != NULL) description_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_broadcast_range()) { - if (broadcast_range_ != NULL) broadcast_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_short_name_range()) { - if (short_name_range_ != NULL) short_name_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_member()) { - if (member_ != NULL) member_->::bgs::protocol::club::v1::ClubMemberRangeSet::Clear(); - } - if (has_stream()) { - if (stream_ != NULL) stream_->::bgs::protocol::club::v1::ClubStreamRangeSet::Clear(); - } - if (has_invitation()) { - if (invitation_ != NULL) invitation_->::bgs::protocol::club::v1::ClubInvitationRangeSet::Clear(); - } - if (has_suggestion()) { - if (suggestion_ != NULL) suggestion_->::bgs::protocol::club::v1::ClubSuggestionRangeSet::Clear(); - } - } - if (_has_bits_[8 / 32] & 768) { - if (has_ticket()) { - if (ticket_ != NULL) ticket_->::bgs::protocol::club::v1::ClubTicketRangeSet::Clear(); - } - if (has_ban()) { - if (ban_ != NULL) ban_->::bgs::protocol::club::v1::ClubBanRangeSet::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubTypeRangeSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubTypeRangeSet) - 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 .bgs.protocol.UnsignedIntRange name_range = 2; - case 2: { - if (tag == 18) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_name_range())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_description_range; - break; - } - - // optional .bgs.protocol.UnsignedIntRange description_range = 3; - case 3: { - if (tag == 26) { - parse_description_range: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_description_range())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_broadcast_range; - break; - } - - // optional .bgs.protocol.UnsignedIntRange broadcast_range = 4; - case 4: { - if (tag == 34) { - parse_broadcast_range: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_broadcast_range())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_short_name_range; - break; - } - - // optional .bgs.protocol.UnsignedIntRange short_name_range = 7; - case 7: { - if (tag == 58) { - parse_short_name_range: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_short_name_range())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(202)) goto parse_member; - break; - } - - // optional .bgs.protocol.club.v1.ClubMemberRangeSet member = 25; - case 25: { - if (tag == 202) { - parse_member: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(210)) goto parse_stream; - break; - } - - // optional .bgs.protocol.club.v1.ClubStreamRangeSet stream = 26; - case 26: { - if (tag == 210) { - parse_stream: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_stream())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(218)) goto parse_invitation; - break; - } - - // optional .bgs.protocol.club.v1.ClubInvitationRangeSet invitation = 27; - case 27: { - if (tag == 218) { - parse_invitation: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_invitation())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(226)) goto parse_suggestion; - break; - } - - // optional .bgs.protocol.club.v1.ClubSuggestionRangeSet suggestion = 28; - case 28: { - if (tag == 226) { - parse_suggestion: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_suggestion())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(234)) goto parse_ticket; - break; - } - - // optional .bgs.protocol.club.v1.ClubTicketRangeSet ticket = 29; - case 29: { - if (tag == 234) { - parse_ticket: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_ticket())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(242)) goto parse_ban; - break; - } - - // optional .bgs.protocol.club.v1.ClubBanRangeSet ban = 30; - case 30: { - if (tag == 242) { - parse_ban: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_ban())); - } 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.club.v1.ClubTypeRangeSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubTypeRangeSet) - return false; -#undef DO_ -} - -void ClubTypeRangeSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubTypeRangeSet) - // optional .bgs.protocol.UnsignedIntRange name_range = 2; - if (has_name_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->name_range(), output); - } - - // optional .bgs.protocol.UnsignedIntRange description_range = 3; - if (has_description_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->description_range(), output); - } - - // optional .bgs.protocol.UnsignedIntRange broadcast_range = 4; - if (has_broadcast_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->broadcast_range(), output); - } - - // optional .bgs.protocol.UnsignedIntRange short_name_range = 7; - if (has_short_name_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->short_name_range(), output); - } - - // optional .bgs.protocol.club.v1.ClubMemberRangeSet member = 25; - if (has_member()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 25, this->member(), output); - } - - // optional .bgs.protocol.club.v1.ClubStreamRangeSet stream = 26; - if (has_stream()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 26, this->stream(), output); - } - - // optional .bgs.protocol.club.v1.ClubInvitationRangeSet invitation = 27; - if (has_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 27, this->invitation(), output); - } - - // optional .bgs.protocol.club.v1.ClubSuggestionRangeSet suggestion = 28; - if (has_suggestion()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 28, this->suggestion(), output); - } - - // optional .bgs.protocol.club.v1.ClubTicketRangeSet ticket = 29; - if (has_ticket()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 29, this->ticket(), output); - } - - // optional .bgs.protocol.club.v1.ClubBanRangeSet ban = 30; - if (has_ban()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 30, this->ban(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubTypeRangeSet) -} - -::google::protobuf::uint8* ClubTypeRangeSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubTypeRangeSet) - // optional .bgs.protocol.UnsignedIntRange name_range = 2; - if (has_name_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->name_range(), target); - } - - // optional .bgs.protocol.UnsignedIntRange description_range = 3; - if (has_description_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->description_range(), target); - } - - // optional .bgs.protocol.UnsignedIntRange broadcast_range = 4; - if (has_broadcast_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->broadcast_range(), target); - } - - // optional .bgs.protocol.UnsignedIntRange short_name_range = 7; - if (has_short_name_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->short_name_range(), target); - } - - // optional .bgs.protocol.club.v1.ClubMemberRangeSet member = 25; - if (has_member()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 25, this->member(), target); - } - - // optional .bgs.protocol.club.v1.ClubStreamRangeSet stream = 26; - if (has_stream()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 26, this->stream(), target); - } - - // optional .bgs.protocol.club.v1.ClubInvitationRangeSet invitation = 27; - if (has_invitation()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 27, this->invitation(), target); - } - - // optional .bgs.protocol.club.v1.ClubSuggestionRangeSet suggestion = 28; - if (has_suggestion()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 28, this->suggestion(), target); - } - - // optional .bgs.protocol.club.v1.ClubTicketRangeSet ticket = 29; - if (has_ticket()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 29, this->ticket(), target); - } - - // optional .bgs.protocol.club.v1.ClubBanRangeSet ban = 30; - if (has_ban()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 30, this->ban(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubTypeRangeSet) - return target; -} - -int ClubTypeRangeSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange name_range = 2; - if (has_name_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->name_range()); - } - - // optional .bgs.protocol.UnsignedIntRange description_range = 3; - if (has_description_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->description_range()); - } - - // optional .bgs.protocol.UnsignedIntRange broadcast_range = 4; - if (has_broadcast_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->broadcast_range()); - } - - // optional .bgs.protocol.UnsignedIntRange short_name_range = 7; - if (has_short_name_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->short_name_range()); - } - - // optional .bgs.protocol.club.v1.ClubMemberRangeSet member = 25; - if (has_member()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member()); - } - - // optional .bgs.protocol.club.v1.ClubStreamRangeSet stream = 26; - if (has_stream()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream()); - } - - // optional .bgs.protocol.club.v1.ClubInvitationRangeSet invitation = 27; - if (has_invitation()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation()); - } - - // optional .bgs.protocol.club.v1.ClubSuggestionRangeSet suggestion = 28; - if (has_suggestion()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->suggestion()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional .bgs.protocol.club.v1.ClubTicketRangeSet ticket = 29; - if (has_ticket()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ticket()); - } - - // optional .bgs.protocol.club.v1.ClubBanRangeSet ban = 30; - if (has_ban()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ban()); - } - - } - 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 ClubTypeRangeSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubTypeRangeSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubTypeRangeSet::MergeFrom(const ClubTypeRangeSet& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name_range()) { - mutable_name_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.name_range()); - } - if (from.has_description_range()) { - mutable_description_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.description_range()); - } - if (from.has_broadcast_range()) { - mutable_broadcast_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.broadcast_range()); - } - if (from.has_short_name_range()) { - mutable_short_name_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.short_name_range()); - } - if (from.has_member()) { - mutable_member()->::bgs::protocol::club::v1::ClubMemberRangeSet::MergeFrom(from.member()); - } - if (from.has_stream()) { - mutable_stream()->::bgs::protocol::club::v1::ClubStreamRangeSet::MergeFrom(from.stream()); - } - if (from.has_invitation()) { - mutable_invitation()->::bgs::protocol::club::v1::ClubInvitationRangeSet::MergeFrom(from.invitation()); - } - if (from.has_suggestion()) { - mutable_suggestion()->::bgs::protocol::club::v1::ClubSuggestionRangeSet::MergeFrom(from.suggestion()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_ticket()) { - mutable_ticket()->::bgs::protocol::club::v1::ClubTicketRangeSet::MergeFrom(from.ticket()); - } - if (from.has_ban()) { - mutable_ban()->::bgs::protocol::club::v1::ClubBanRangeSet::MergeFrom(from.ban()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubTypeRangeSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubTypeRangeSet::CopyFrom(const ClubTypeRangeSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubTypeRangeSet::IsInitialized() const { - return true; -} - void ClubTypeRangeSet::Swap(ClubTypeRangeSet* other) { if (other != this) { - std::swap(name_range_, other->name_range_); - std::swap(description_range_, other->description_range_); - std::swap(broadcast_range_, other->broadcast_range_); - std::swap(short_name_range_, other->short_name_range_); - std::swap(member_, other->member_); - std::swap(stream_, other->stream_); - std::swap(invitation_, other->invitation_); - std::swap(suggestion_, other->suggestion_); - std::swap(ticket_, other->ticket_); - std::swap(ban_, other->ban_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubTypeRangeSet::GetMetadata() const { @@ -996,282 +475,9 @@ ClubMemberRangeSet* ClubMemberRangeSet::New() const { return new ClubMemberRangeSet; } -void ClubMemberRangeSet::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_count()) { - if (count_ != NULL) count_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_voice()) { - if (voice_ != NULL) voice_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_stream_subscriptions()) { - if (stream_subscriptions_ != NULL) stream_subscriptions_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_note_range()) { - if (note_range_ != NULL) note_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubMemberRangeSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubMemberRangeSet) - 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.UnsignedIntRange count = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_count())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_voice; - break; - } - - // optional .bgs.protocol.UnsignedIntRange voice = 3; - case 3: { - if (tag == 26) { - parse_voice: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_voice())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_stream_subscriptions; - break; - } - - // optional .bgs.protocol.UnsignedIntRange stream_subscriptions = 5; - case 5: { - if (tag == 42) { - parse_stream_subscriptions: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_stream_subscriptions())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_note_range; - break; - } - - // optional .bgs.protocol.UnsignedIntRange note_range = 7; - case 7: { - if (tag == 58) { - parse_note_range: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_note_range())); - } 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.club.v1.ClubMemberRangeSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubMemberRangeSet) - return false; -#undef DO_ -} - -void ClubMemberRangeSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubMemberRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->count(), output); - } - - // optional .bgs.protocol.UnsignedIntRange voice = 3; - if (has_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->voice(), output); - } - - // optional .bgs.protocol.UnsignedIntRange stream_subscriptions = 5; - if (has_stream_subscriptions()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->stream_subscriptions(), output); - } - - // optional .bgs.protocol.UnsignedIntRange note_range = 7; - if (has_note_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->note_range(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubMemberRangeSet) -} - -::google::protobuf::uint8* ClubMemberRangeSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubMemberRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->count(), target); - } - - // optional .bgs.protocol.UnsignedIntRange voice = 3; - if (has_voice()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->voice(), target); - } - - // optional .bgs.protocol.UnsignedIntRange stream_subscriptions = 5; - if (has_stream_subscriptions()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->stream_subscriptions(), target); - } - - // optional .bgs.protocol.UnsignedIntRange note_range = 7; - if (has_note_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->note_range(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubMemberRangeSet) - return target; -} - -int ClubMemberRangeSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->count()); - } - - // optional .bgs.protocol.UnsignedIntRange voice = 3; - if (has_voice()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->voice()); - } - - // optional .bgs.protocol.UnsignedIntRange stream_subscriptions = 5; - if (has_stream_subscriptions()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream_subscriptions()); - } - - // optional .bgs.protocol.UnsignedIntRange note_range = 7; - if (has_note_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->note_range()); - } - - } - 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 ClubMemberRangeSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubMemberRangeSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubMemberRangeSet::MergeFrom(const ClubMemberRangeSet& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_count()) { - mutable_count()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.count()); - } - if (from.has_voice()) { - mutable_voice()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.voice()); - } - if (from.has_stream_subscriptions()) { - mutable_stream_subscriptions()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.stream_subscriptions()); - } - if (from.has_note_range()) { - mutable_note_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.note_range()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubMemberRangeSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubMemberRangeSet::CopyFrom(const ClubMemberRangeSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubMemberRangeSet::IsInitialized() const { - return true; -} - void ClubMemberRangeSet::Swap(ClubMemberRangeSet* other) { if (other != this) { - std::swap(count_, other->count_); - std::swap(voice_, other->voice_); - std::swap(stream_subscriptions_, other->stream_subscriptions_); - std::swap(note_range_, other->note_range_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubMemberRangeSet::GetMetadata() const { @@ -1355,282 +561,9 @@ ClubStreamRangeSet* ClubStreamRangeSet::New() const { return new ClubStreamRangeSet; } -void ClubStreamRangeSet::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_count()) { - if (count_ != NULL) count_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_name_range()) { - if (name_range_ != NULL) name_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_subject_range()) { - if (subject_range_ != NULL) subject_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_message_range()) { - if (message_range_ != NULL) message_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubStreamRangeSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubStreamRangeSet) - 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.UnsignedIntRange count = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_count())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_name_range; - break; - } - - // optional .bgs.protocol.UnsignedIntRange name_range = 3; - case 3: { - if (tag == 26) { - parse_name_range: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_name_range())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_subject_range; - break; - } - - // optional .bgs.protocol.UnsignedIntRange subject_range = 4; - case 4: { - if (tag == 34) { - parse_subject_range: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_subject_range())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_message_range; - break; - } - - // optional .bgs.protocol.UnsignedIntRange message_range = 5; - case 5: { - if (tag == 42) { - parse_message_range: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message_range())); - } 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.club.v1.ClubStreamRangeSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubStreamRangeSet) - return false; -#undef DO_ -} - -void ClubStreamRangeSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubStreamRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->count(), output); - } - - // optional .bgs.protocol.UnsignedIntRange name_range = 3; - if (has_name_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->name_range(), output); - } - - // optional .bgs.protocol.UnsignedIntRange subject_range = 4; - if (has_subject_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->subject_range(), output); - } - - // optional .bgs.protocol.UnsignedIntRange message_range = 5; - if (has_message_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->message_range(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubStreamRangeSet) -} - -::google::protobuf::uint8* ClubStreamRangeSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubStreamRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->count(), target); - } - - // optional .bgs.protocol.UnsignedIntRange name_range = 3; - if (has_name_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->name_range(), target); - } - - // optional .bgs.protocol.UnsignedIntRange subject_range = 4; - if (has_subject_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->subject_range(), target); - } - - // optional .bgs.protocol.UnsignedIntRange message_range = 5; - if (has_message_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->message_range(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubStreamRangeSet) - return target; -} - -int ClubStreamRangeSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->count()); - } - - // optional .bgs.protocol.UnsignedIntRange name_range = 3; - if (has_name_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->name_range()); - } - - // optional .bgs.protocol.UnsignedIntRange subject_range = 4; - if (has_subject_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->subject_range()); - } - - // optional .bgs.protocol.UnsignedIntRange message_range = 5; - if (has_message_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message_range()); - } - - } - 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 ClubStreamRangeSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubStreamRangeSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubStreamRangeSet::MergeFrom(const ClubStreamRangeSet& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_count()) { - mutable_count()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.count()); - } - if (from.has_name_range()) { - mutable_name_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.name_range()); - } - if (from.has_subject_range()) { - mutable_subject_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.subject_range()); - } - if (from.has_message_range()) { - mutable_message_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.message_range()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubStreamRangeSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubStreamRangeSet::CopyFrom(const ClubStreamRangeSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubStreamRangeSet::IsInitialized() const { - return true; -} - void ClubStreamRangeSet::Swap(ClubStreamRangeSet* other) { if (other != this) { - std::swap(count_, other->count_); - std::swap(name_range_, other->name_range_); - std::swap(subject_range_, other->subject_range_); - std::swap(message_range_, other->message_range_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubStreamRangeSet::GetMetadata() const { @@ -1702,160 +635,9 @@ ClubInvitationRangeSet* ClubInvitationRangeSet::New() const { return new ClubInvitationRangeSet; } -void ClubInvitationRangeSet::Clear() { - if (has_count()) { - if (count_ != NULL) count_->::bgs::protocol::UnsignedIntRange::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubInvitationRangeSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubInvitationRangeSet) - 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.UnsignedIntRange count = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_count())); - } 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.club.v1.ClubInvitationRangeSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubInvitationRangeSet) - return false; -#undef DO_ -} - -void ClubInvitationRangeSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubInvitationRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->count(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubInvitationRangeSet) -} - -::google::protobuf::uint8* ClubInvitationRangeSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubInvitationRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->count(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubInvitationRangeSet) - return target; -} - -int ClubInvitationRangeSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->count()); - } - - } - 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 ClubInvitationRangeSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubInvitationRangeSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubInvitationRangeSet::MergeFrom(const ClubInvitationRangeSet& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_count()) { - mutable_count()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.count()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubInvitationRangeSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubInvitationRangeSet::CopyFrom(const ClubInvitationRangeSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubInvitationRangeSet::IsInitialized() const { - return true; -} - void ClubInvitationRangeSet::Swap(ClubInvitationRangeSet* other) { if (other != this) { - std::swap(count_, other->count_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubInvitationRangeSet::GetMetadata() const { @@ -1927,160 +709,9 @@ ClubSuggestionRangeSet* ClubSuggestionRangeSet::New() const { return new ClubSuggestionRangeSet; } -void ClubSuggestionRangeSet::Clear() { - if (has_count()) { - if (count_ != NULL) count_->::bgs::protocol::UnsignedIntRange::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubSuggestionRangeSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubSuggestionRangeSet) - 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.UnsignedIntRange count = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_count())); - } 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.club.v1.ClubSuggestionRangeSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubSuggestionRangeSet) - return false; -#undef DO_ -} - -void ClubSuggestionRangeSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubSuggestionRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->count(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubSuggestionRangeSet) -} - -::google::protobuf::uint8* ClubSuggestionRangeSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubSuggestionRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->count(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubSuggestionRangeSet) - return target; -} - -int ClubSuggestionRangeSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->count()); - } - - } - 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 ClubSuggestionRangeSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubSuggestionRangeSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubSuggestionRangeSet::MergeFrom(const ClubSuggestionRangeSet& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_count()) { - mutable_count()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.count()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubSuggestionRangeSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubSuggestionRangeSet::CopyFrom(const ClubSuggestionRangeSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubSuggestionRangeSet::IsInitialized() const { - return true; -} - void ClubSuggestionRangeSet::Swap(ClubSuggestionRangeSet* other) { if (other != this) { - std::swap(count_, other->count_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubSuggestionRangeSet::GetMetadata() const { @@ -2152,160 +783,9 @@ ClubTicketRangeSet* ClubTicketRangeSet::New() const { return new ClubTicketRangeSet; } -void ClubTicketRangeSet::Clear() { - if (has_count()) { - if (count_ != NULL) count_->::bgs::protocol::UnsignedIntRange::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubTicketRangeSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubTicketRangeSet) - 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.UnsignedIntRange count = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_count())); - } 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.club.v1.ClubTicketRangeSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubTicketRangeSet) - return false; -#undef DO_ -} - -void ClubTicketRangeSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubTicketRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->count(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubTicketRangeSet) -} - -::google::protobuf::uint8* ClubTicketRangeSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubTicketRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->count(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubTicketRangeSet) - return target; -} - -int ClubTicketRangeSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->count()); - } - - } - 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 ClubTicketRangeSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubTicketRangeSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubTicketRangeSet::MergeFrom(const ClubTicketRangeSet& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_count()) { - mutable_count()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.count()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubTicketRangeSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubTicketRangeSet::CopyFrom(const ClubTicketRangeSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubTicketRangeSet::IsInitialized() const { - return true; -} - void ClubTicketRangeSet::Swap(ClubTicketRangeSet* other) { if (other != this) { - std::swap(count_, other->count_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubTicketRangeSet::GetMetadata() const { @@ -2381,202 +861,9 @@ ClubBanRangeSet* ClubBanRangeSet::New() const { return new ClubBanRangeSet; } -void ClubBanRangeSet::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_count()) { - if (count_ != NULL) count_->::bgs::protocol::UnsignedIntRange::Clear(); - } - if (has_reason_range()) { - if (reason_range_ != NULL) reason_range_->::bgs::protocol::UnsignedIntRange::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubBanRangeSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubBanRangeSet) - 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.UnsignedIntRange count = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_count())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_reason_range; - break; - } - - // optional .bgs.protocol.UnsignedIntRange reason_range = 3; - case 3: { - if (tag == 26) { - parse_reason_range: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reason_range())); - } 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.club.v1.ClubBanRangeSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubBanRangeSet) - return false; -#undef DO_ -} - -void ClubBanRangeSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubBanRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->count(), output); - } - - // optional .bgs.protocol.UnsignedIntRange reason_range = 3; - if (has_reason_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->reason_range(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubBanRangeSet) -} - -::google::protobuf::uint8* ClubBanRangeSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubBanRangeSet) - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->count(), target); - } - - // optional .bgs.protocol.UnsignedIntRange reason_range = 3; - if (has_reason_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->reason_range(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubBanRangeSet) - return target; -} - -int ClubBanRangeSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange count = 1; - if (has_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->count()); - } - - // optional .bgs.protocol.UnsignedIntRange reason_range = 3; - if (has_reason_range()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reason_range()); - } - - } - 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 ClubBanRangeSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubBanRangeSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubBanRangeSet::MergeFrom(const ClubBanRangeSet& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_count()) { - mutable_count()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.count()); - } - if (from.has_reason_range()) { - mutable_reason_range()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.reason_range()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubBanRangeSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubBanRangeSet::CopyFrom(const ClubBanRangeSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubBanRangeSet::IsInitialized() const { - return true; -} - void ClubBanRangeSet::Swap(ClubBanRangeSet* other) { if (other != this) { - std::swap(count_, other->count_); - std::swap(reason_range_, other->reason_range_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubBanRangeSet::GetMetadata() const { diff --git a/src/server/proto/Client/club_range_set.pb.h b/src/server/proto/Client/club_range_set.pb.h index e8e5fb6ca65..bfca963e96a 100644 --- a/src/server/proto/Client/club_range_set.pb.h +++ b/src/server/proto/Client/club_range_set.pb.h @@ -76,19 +76,6 @@ class TC_PROTO_API ClubTypeRangeSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubTypeRangeSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubTypeRangeSet& from); - void MergeFrom(const ClubTypeRangeSet& 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(); @@ -265,19 +252,6 @@ class TC_PROTO_API ClubMemberRangeSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubMemberRangeSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubMemberRangeSet& from); - void MergeFrom(const ClubMemberRangeSet& 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(); @@ -382,19 +356,6 @@ class TC_PROTO_API ClubStreamRangeSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubStreamRangeSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubStreamRangeSet& from); - void MergeFrom(const ClubStreamRangeSet& 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(); @@ -499,19 +460,6 @@ class TC_PROTO_API ClubInvitationRangeSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubInvitationRangeSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubInvitationRangeSet& from); - void MergeFrom(const ClubInvitationRangeSet& 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(); @@ -580,19 +528,6 @@ class TC_PROTO_API ClubSuggestionRangeSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubSuggestionRangeSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubSuggestionRangeSet& from); - void MergeFrom(const ClubSuggestionRangeSet& 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(); @@ -661,19 +596,6 @@ class TC_PROTO_API ClubTicketRangeSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubTicketRangeSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubTicketRangeSet& from); - void MergeFrom(const ClubTicketRangeSet& 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(); @@ -742,19 +664,6 @@ class TC_PROTO_API ClubBanRangeSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubBanRangeSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubBanRangeSet& from); - void MergeFrom(const ClubBanRangeSet& 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(); diff --git a/src/server/proto/Client/club_request.pb.cc b/src/server/proto/Client/club_request.pb.cc index 81a2b5ef10d..fdd0d7a4ed5 100644 --- a/src/server/proto/Client/club_request.pb.cc +++ b/src/server/proto/Client/club_request.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_request.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -2277,7 +2275,7 @@ void protobuf_AddDesc_club_5frequest_2eproto() { "iceRequest\0220\n\010agent_id\030\001 \001(\0132\036.bgs.proto" "col.club.v1.MemberId\022\027\n\007club_id\030\002 \001(\004B\006\202" "\371+\002\020\001\022\021\n\tstream_id\030\003 \001(\004\0221\n\ttarget_id\030\004 " - "\001(\0132\036.bgs.protocol.club.v1.MemberIdB\002H\001P" + "\001(\0132\036.bgs.protocol.club.v1.MemberIdB\002H\002P" "\000", 10321); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_request.proto", &protobuf_RegisterTypes); @@ -2519,202 +2517,9 @@ SubscribeRequest* SubscribeRequest::New() const { return new SubscribeRequest; } -void SubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SubscribeRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_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.club.v1.SubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SubscribeRequest) - return false; -#undef DO_ -} - -void SubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SubscribeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SubscribeRequest) -} - -::google::protobuf::uint8* SubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SubscribeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SubscribeRequest) - return target; -} - -int SubscribeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_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 SubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeRequest::MergeFrom(const SubscribeRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeRequest::CopyFrom(const SubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SubscribeRequest::Swap(SubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeRequest::GetMetadata() const { @@ -2788,202 +2593,9 @@ UnsubscribeRequest* UnsubscribeRequest::New() const { return new UnsubscribeRequest; } -void UnsubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsubscribeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UnsubscribeRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_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.club.v1.UnsubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UnsubscribeRequest) - return false; -#undef DO_ -} - -void UnsubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UnsubscribeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UnsubscribeRequest) -} - -::google::protobuf::uint8* UnsubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UnsubscribeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UnsubscribeRequest) - return target; -} - -int UnsubscribeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_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 UnsubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsubscribeRequest::MergeFrom(const UnsubscribeRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsubscribeRequest::CopyFrom(const UnsubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsubscribeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UnsubscribeRequest::Swap(UnsubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsubscribeRequest::GetMetadata() const { @@ -3059,208 +2671,9 @@ CreateRequest* CreateRequest::New() const { return new CreateRequest; } -void CreateRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::ClubCreateOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateRequest) - 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.club.v1.MemberId 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_options; - break; - } - - // optional .bgs.protocol.club.v1.ClubCreateOptions options = 2; - case 2: { - if (tag == 18) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.CreateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateRequest) - return false; -#undef DO_ -} - -void CreateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubCreateOptions options = 2; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateRequest) -} - -::google::protobuf::uint8* CreateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubCreateOptions options = 2; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateRequest) - return target; -} - -int CreateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.ClubCreateOptions options = 2; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 CreateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateRequest::MergeFrom(const CreateRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::ClubCreateOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateRequest::CopyFrom(const CreateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void CreateRequest::Swap(CreateRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateRequest::GetMetadata() const { @@ -3330,157 +2743,9 @@ CreateResponse* CreateResponse::New() const { return new CreateResponse; } -void CreateResponse::Clear() { - club_id_ = GOOGLE_ULONGLONG(0); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateResponse) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_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.club.v1.CreateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateResponse) - return false; -#undef DO_ -} - -void CreateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateResponse) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateResponse) -} - -::google::protobuf::uint8* CreateResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateResponse) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateResponse) - return target; -} - -int CreateResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_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 CreateResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateResponse::MergeFrom(const CreateResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateResponse::CopyFrom(const CreateResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateResponse::IsInitialized() const { - return true; -} - void CreateResponse::Swap(CreateResponse* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateResponse::GetMetadata() const { @@ -3554,202 +2819,9 @@ DestroyRequest* DestroyRequest::New() const { return new DestroyRequest; } -void DestroyRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DestroyRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.DestroyRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_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.club.v1.DestroyRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.DestroyRequest) - return false; -#undef DO_ -} - -void DestroyRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.DestroyRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.DestroyRequest) -} - -::google::protobuf::uint8* DestroyRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.DestroyRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.DestroyRequest) - return target; -} - -int DestroyRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_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 DestroyRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DestroyRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DestroyRequest::MergeFrom(const DestroyRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DestroyRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DestroyRequest::CopyFrom(const DestroyRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DestroyRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void DestroyRequest::Swap(DestroyRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DestroyRequest::GetMetadata() const { @@ -3823,202 +2895,9 @@ GetDescriptionRequest* GetDescriptionRequest::New() const { return new GetDescriptionRequest; } -void GetDescriptionRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetDescriptionRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetDescriptionRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_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.club.v1.GetDescriptionRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetDescriptionRequest) - return false; -#undef DO_ -} - -void GetDescriptionRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetDescriptionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetDescriptionRequest) -} - -::google::protobuf::uint8* GetDescriptionRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetDescriptionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetDescriptionRequest) - return target; -} - -int GetDescriptionRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_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 GetDescriptionRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetDescriptionRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetDescriptionRequest::MergeFrom(const GetDescriptionRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetDescriptionRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetDescriptionRequest::CopyFrom(const GetDescriptionRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetDescriptionRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetDescriptionRequest::Swap(GetDescriptionRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetDescriptionRequest::GetMetadata() const { @@ -4090,174 +2969,20 @@ GetDescriptionResponse* GetDescriptionResponse::New() const { return new GetDescriptionResponse; } -void GetDescriptionResponse::Clear() { - if (has_club()) { - if (club_ != NULL) club_->::bgs::protocol::club::v1::ClubDescription::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetDescriptionResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetDescriptionResponse) - 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.club.v1.ClubDescription club = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_club())); - } 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.club.v1.GetDescriptionResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetDescriptionResponse) - return false; -#undef DO_ -} - -void GetDescriptionResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetDescriptionResponse) - // optional .bgs.protocol.club.v1.ClubDescription club = 1; - if (has_club()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->club(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetDescriptionResponse) +void GetDescriptionResponse::Swap(GetDescriptionResponse* other) { + if (other != this) { + GetReflection()->Swap(this, other);} } -::google::protobuf::uint8* GetDescriptionResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetDescriptionResponse) - // optional .bgs.protocol.club.v1.ClubDescription club = 1; - if (has_club()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->club(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetDescriptionResponse) - return target; +::google::protobuf::Metadata GetDescriptionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetDescriptionResponse_descriptor_; + metadata.reflection = GetDescriptionResponse_reflection_; + return metadata; } -int GetDescriptionResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubDescription club = 1; - if (has_club()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->club()); - } - - } - 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 GetDescriptionResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetDescriptionResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetDescriptionResponse::MergeFrom(const GetDescriptionResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club()) { - mutable_club()->::bgs::protocol::club::v1::ClubDescription::MergeFrom(from.club()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetDescriptionResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetDescriptionResponse::CopyFrom(const GetDescriptionResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetDescriptionResponse::IsInitialized() const { - if (has_club()) { - if (!this->club().IsInitialized()) return false; - } - return true; -} - -void GetDescriptionResponse::Swap(GetDescriptionResponse* other) { - if (other != this) { - std::swap(club_, other->club_); - 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 GetDescriptionResponse::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GetDescriptionResponse_descriptor_; - metadata.reflection = GetDescriptionResponse_reflection_; - return metadata; -} - -// =================================================================== +// =================================================================== #ifndef _MSC_VER const int GetClubTypeRequest::kAgentIdFieldNumber; @@ -4322,205 +3047,9 @@ GetClubTypeRequest* GetClubTypeRequest::New() const { return new GetClubTypeRequest; } -void GetClubTypeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_type()) { - if (type_ != NULL) type_->::bgs::protocol::club::v1::UniqueClubType::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetClubTypeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetClubTypeRequest) - 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.club.v1.MemberId 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_type; - break; - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - case 2: { - if (tag == 18) { - parse_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_type())); - } 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.club.v1.GetClubTypeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetClubTypeRequest) - return false; -#undef DO_ -} - -void GetClubTypeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetClubTypeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->type(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetClubTypeRequest) -} - -::google::protobuf::uint8* GetClubTypeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetClubTypeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->type(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetClubTypeRequest) - return target; -} - -int GetClubTypeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional .bgs.protocol.club.v1.UniqueClubType type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->type()); - } - - } - 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 GetClubTypeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetClubTypeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetClubTypeRequest::MergeFrom(const GetClubTypeRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_type()) { - mutable_type()->::bgs::protocol::club::v1::UniqueClubType::MergeFrom(from.type()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetClubTypeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetClubTypeRequest::CopyFrom(const GetClubTypeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetClubTypeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetClubTypeRequest::Swap(GetClubTypeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(type_, other->type_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetClubTypeRequest::GetMetadata() const { @@ -4600,242 +3129,9 @@ GetClubTypeResponse* GetClubTypeResponse::New() const { return new GetClubTypeResponse; } -void GetClubTypeResponse::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_type()) { - if (type_ != NULL) type_->::bgs::protocol::club::v1::UniqueClubType::Clear(); - } - if (has_role_set()) { - if (role_set_ != NULL) role_set_->::bgs::protocol::club::v1::ClubRoleSet::Clear(); - } - if (has_range_set()) { - if (range_set_ != NULL) range_set_->::bgs::protocol::club::v1::ClubTypeRangeSet::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetClubTypeResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetClubTypeResponse) - 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.club.v1.UniqueClubType type = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_type())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_role_set; - break; - } - - // optional .bgs.protocol.club.v1.ClubRoleSet role_set = 2; - case 2: { - if (tag == 18) { - parse_role_set: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_role_set())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_range_set; - break; - } - - // optional .bgs.protocol.club.v1.ClubTypeRangeSet range_set = 3; - case 3: { - if (tag == 26) { - parse_range_set: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_range_set())); - } 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.club.v1.GetClubTypeResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetClubTypeResponse) - return false; -#undef DO_ -} - -void GetClubTypeResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetClubTypeResponse) - // optional .bgs.protocol.club.v1.UniqueClubType type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->type(), output); - } - - // optional .bgs.protocol.club.v1.ClubRoleSet role_set = 2; - if (has_role_set()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->role_set(), output); - } - - // optional .bgs.protocol.club.v1.ClubTypeRangeSet range_set = 3; - if (has_range_set()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->range_set(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetClubTypeResponse) -} - -::google::protobuf::uint8* GetClubTypeResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetClubTypeResponse) - // optional .bgs.protocol.club.v1.UniqueClubType type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->type(), target); - } - - // optional .bgs.protocol.club.v1.ClubRoleSet role_set = 2; - if (has_role_set()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->role_set(), target); - } - - // optional .bgs.protocol.club.v1.ClubTypeRangeSet range_set = 3; - if (has_range_set()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->range_set(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetClubTypeResponse) - return target; -} - -int GetClubTypeResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.UniqueClubType type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->type()); - } - - // optional .bgs.protocol.club.v1.ClubRoleSet role_set = 2; - if (has_role_set()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->role_set()); - } - - // optional .bgs.protocol.club.v1.ClubTypeRangeSet range_set = 3; - if (has_range_set()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->range_set()); - } - - } - 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 GetClubTypeResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetClubTypeResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetClubTypeResponse::MergeFrom(const GetClubTypeResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_type()) { - mutable_type()->::bgs::protocol::club::v1::UniqueClubType::MergeFrom(from.type()); - } - if (from.has_role_set()) { - mutable_role_set()->::bgs::protocol::club::v1::ClubRoleSet::MergeFrom(from.role_set()); - } - if (from.has_range_set()) { - mutable_range_set()->::bgs::protocol::club::v1::ClubTypeRangeSet::MergeFrom(from.range_set()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetClubTypeResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetClubTypeResponse::CopyFrom(const GetClubTypeResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetClubTypeResponse::IsInitialized() const { - return true; -} - void GetClubTypeResponse::Swap(GetClubTypeResponse* other) { if (other != this) { - std::swap(type_, other->type_); - std::swap(role_set_, other->role_set_); - std::swap(range_set_, other->range_set_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetClubTypeResponse::GetMetadata() const { @@ -4913,242 +3209,9 @@ UpdateClubStateRequest* UpdateClubStateRequest::New() const { return new UpdateClubStateRequest; } -void UpdateClubStateRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::ClubStateOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateClubStateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UpdateClubStateRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.ClubStateOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.UpdateClubStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UpdateClubStateRequest) - return false; -#undef DO_ -} - -void UpdateClubStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UpdateClubStateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubStateOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UpdateClubStateRequest) -} - -::google::protobuf::uint8* UpdateClubStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UpdateClubStateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubStateOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UpdateClubStateRequest) - return target; -} - -int UpdateClubStateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.ClubStateOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 UpdateClubStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateClubStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UpdateClubStateRequest::MergeFrom(const UpdateClubStateRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::ClubStateOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UpdateClubStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateClubStateRequest::CopyFrom(const UpdateClubStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateClubStateRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UpdateClubStateRequest::Swap(UpdateClubStateRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateClubStateRequest::GetMetadata() const { @@ -5226,242 +3289,9 @@ UpdateClubSettingsRequest* UpdateClubSettingsRequest::New() const { return new UpdateClubSettingsRequest; } -void UpdateClubSettingsRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::ClubSettingsOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateClubSettingsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UpdateClubSettingsRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.ClubSettingsOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.UpdateClubSettingsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UpdateClubSettingsRequest) - return false; -#undef DO_ -} - -void UpdateClubSettingsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UpdateClubSettingsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.ClubSettingsOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UpdateClubSettingsRequest) -} - -::google::protobuf::uint8* UpdateClubSettingsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UpdateClubSettingsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.ClubSettingsOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UpdateClubSettingsRequest) - return target; -} - -int UpdateClubSettingsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.ClubSettingsOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 UpdateClubSettingsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateClubSettingsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UpdateClubSettingsRequest::MergeFrom(const UpdateClubSettingsRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::ClubSettingsOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UpdateClubSettingsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateClubSettingsRequest::CopyFrom(const UpdateClubSettingsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateClubSettingsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UpdateClubSettingsRequest::Swap(UpdateClubSettingsRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateClubSettingsRequest::GetMetadata() const { @@ -5539,245 +3369,9 @@ AddMemberRequest* AddMemberRequest::New() const { return new AddMemberRequest; } -void AddMemberRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::CreateMemberOptions::Clear(); - } - } - ::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.club.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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.AddMemberRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AddMemberRequest) - return false; -#undef DO_ -} - -void AddMemberRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AddMemberRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AddMemberRequest) -} - -::google::protobuf::uint8* AddMemberRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AddMemberRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AddMemberRequest) - return target; -} - -int AddMemberRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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( - &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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::CreateMemberOptions::MergeFrom(from.options()); - } - } - 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_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void AddMemberRequest::Swap(AddMemberRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AddMemberRequest::GetMetadata() const { @@ -5855,256 +3449,20 @@ JoinRequest* JoinRequest::New() const { return new JoinRequest; } -void JoinRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::CreateMemberOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool JoinRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.JoinRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.JoinRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.JoinRequest) - return false; -#undef DO_ -} - -void JoinRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.JoinRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.JoinRequest) +void JoinRequest::Swap(JoinRequest* other) { + if (other != this) { + GetReflection()->Swap(this, other);} } -::google::protobuf::uint8* JoinRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.JoinRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } +::google::protobuf::Metadata JoinRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = JoinRequest_descriptor_; + metadata.reflection = JoinRequest_reflection_; + return metadata; +} - // optional .bgs.protocol.club.v1.CreateMemberOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.JoinRequest) - return target; -} - -int JoinRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.CreateMemberOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 JoinRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const JoinRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void JoinRequest::MergeFrom(const JoinRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::CreateMemberOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void JoinRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void JoinRequest::CopyFrom(const JoinRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool JoinRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - -void JoinRequest::Swap(JoinRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - 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 JoinRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = JoinRequest_descriptor_; - metadata.reflection = JoinRequest_reflection_; - return metadata; -} - -// =================================================================== +// =================================================================== #ifndef _MSC_VER const int LeaveRequest::kAgentIdFieldNumber; @@ -6167,202 +3525,9 @@ LeaveRequest* LeaveRequest::New() const { return new LeaveRequest; } -void LeaveRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool LeaveRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.LeaveRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_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.club.v1.LeaveRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.LeaveRequest) - return false; -#undef DO_ -} - -void LeaveRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.LeaveRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.LeaveRequest) -} - -::google::protobuf::uint8* LeaveRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.LeaveRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.LeaveRequest) - return target; -} - -int LeaveRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_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 LeaveRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LeaveRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void LeaveRequest::MergeFrom(const LeaveRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LeaveRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LeaveRequest::CopyFrom(const LeaveRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LeaveRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void LeaveRequest::Swap(LeaveRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata LeaveRequest::GetMetadata() const { @@ -6440,245 +3605,9 @@ KickRequest* KickRequest::New() const { return new KickRequest; } -void KickRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool KickRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.KickRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_target_id; - break; - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - case 3: { - if (tag == 26) { - 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.club.v1.KickRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.KickRequest) - return false; -#undef DO_ -} - -void KickRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.KickRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->target_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.KickRequest) -} - -::google::protobuf::uint8* KickRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.KickRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, 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.club.v1.KickRequest) - return target; -} - -int KickRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - 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 KickRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const KickRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void KickRequest::MergeFrom(const KickRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.target_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void KickRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void KickRequest::CopyFrom(const KickRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KickRequest::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 KickRequest::Swap(KickRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata KickRequest::GetMetadata() const { @@ -6756,245 +3685,9 @@ GetMemberRequest* GetMemberRequest::New() const { return new GetMemberRequest; } -void GetMemberRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetMemberRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetMemberRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_member_id; - break; - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - case 3: { - if (tag == 26) { - 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.club.v1.GetMemberRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetMemberRequest) - return false; -#undef DO_ -} - -void GetMemberRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetMemberRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->member_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetMemberRequest) -} - -::google::protobuf::uint8* GetMemberRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetMemberRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, 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.club.v1.GetMemberRequest) - return target; -} - -int GetMemberRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - 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 GetMemberRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetMemberRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetMemberRequest::MergeFrom(const GetMemberRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetMemberRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetMemberRequest::CopyFrom(const GetMemberRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetMemberRequest::IsInitialized() const { - 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 GetMemberRequest::Swap(GetMemberRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetMemberRequest::GetMetadata() const { @@ -7066,163 +3759,9 @@ GetMemberResponse* GetMemberResponse::New() const { return new GetMemberResponse; } -void GetMemberResponse::Clear() { - if (has_member()) { - if (member_ != NULL) member_->::bgs::protocol::club::v1::Member::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetMemberResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetMemberResponse) - 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.club.v1.Member member = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member())); - } 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.club.v1.GetMemberResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetMemberResponse) - return false; -#undef DO_ -} - -void GetMemberResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetMemberResponse) - // optional .bgs.protocol.club.v1.Member member = 1; - if (has_member()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetMemberResponse) -} - -::google::protobuf::uint8* GetMemberResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetMemberResponse) - // optional .bgs.protocol.club.v1.Member member = 1; - if (has_member()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetMemberResponse) - return target; -} - -int GetMemberResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.Member member = 1; - if (has_member()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member()); - } - - } - 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 GetMemberResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetMemberResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetMemberResponse::MergeFrom(const GetMemberResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_member()) { - mutable_member()->::bgs::protocol::club::v1::Member::MergeFrom(from.member()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetMemberResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetMemberResponse::CopyFrom(const GetMemberResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetMemberResponse::IsInitialized() const { - if (has_member()) { - if (!this->member().IsInitialized()) return false; - } - return true; -} - void GetMemberResponse::Swap(GetMemberResponse* other) { if (other != this) { - std::swap(member_, other->member_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetMemberResponse::GetMetadata() const { @@ -7298,252 +3837,9 @@ GetMembersRequest* GetMembersRequest::New() const { return new GetMembersRequest; } -void GetMembersRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, continuation_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetMembersRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetMembersRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 4; - case 4: { - if (tag == 32) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetMembersRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetMembersRequest) - return false; -#undef DO_ -} - -void GetMembersRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetMembersRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 continuation = 4; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetMembersRequest) -} - -::google::protobuf::uint8* GetMembersRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetMembersRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 continuation = 4; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetMembersRequest) - return target; -} - -int GetMembersRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 continuation = 4; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - 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 GetMembersRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetMembersRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetMembersRequest::MergeFrom(const GetMembersRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetMembersRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetMembersRequest::CopyFrom(const GetMembersRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetMembersRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetMembersRequest::Swap(GetMembersRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetMembersRequest::GetMetadata() const { @@ -7614,208 +3910,20 @@ GetMembersResponse* GetMembersResponse::New() const { return new GetMembersResponse; } -void GetMembersResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - member_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetMembersResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetMembersResponse) - 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.club.v1.Member member = 1; - case 1: { - if (tag == 10) { - parse_member: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_member())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_member; - if (input->ExpectTag(16)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 2; - case 2: { - if (tag == 16) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetMembersResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetMembersResponse) - return false; -#undef DO_ -} - -void GetMembersResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetMembersResponse) - // repeated .bgs.protocol.club.v1.Member member = 1; - for (int i = 0; i < this->member_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->member(i), output); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->continuation(), output); - } +void GetMembersResponse::Swap(GetMembersResponse* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetMembersResponse) +::google::protobuf::Metadata GetMembersResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetMembersResponse_descriptor_; + metadata.reflection = GetMembersResponse_reflection_; + return metadata; } -::google::protobuf::uint8* GetMembersResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetMembersResponse) - // repeated .bgs.protocol.club.v1.Member member = 1; - for (int i = 0; i < this->member_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->member(i), target); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetMembersResponse) - return target; -} - -int GetMembersResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint64 continuation = 2; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - // repeated .bgs.protocol.club.v1.Member member = 1; - total_size += 1 * this->member_size(); - for (int i = 0; i < this->member_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member(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 GetMembersResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetMembersResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetMembersResponse::MergeFrom(const GetMembersResponse& from) { - GOOGLE_CHECK_NE(&from, this); - member_.MergeFrom(from.member_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetMembersResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetMembersResponse::CopyFrom(const GetMembersResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetMembersResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->member())) return false; - return true; -} - -void GetMembersResponse::Swap(GetMembersResponse* other) { - if (other != this) { - member_.Swap(&other->member_); - std::swap(continuation_, other->continuation_); - 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 GetMembersResponse::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GetMembersResponse_descriptor_; - metadata.reflection = GetMembersResponse_reflection_; - return metadata; -} - -// =================================================================== +// =================================================================== #ifndef _MSC_VER const int UpdateMemberStateRequest::kAgentIdFieldNumber; @@ -7886,285 +3994,9 @@ UpdateMemberStateRequest* UpdateMemberStateRequest::New() const { return new UpdateMemberStateRequest; } -void UpdateMemberStateRequest::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::MemberStateOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateMemberStateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UpdateMemberStateRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_member_id; - break; - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - case 3: { - if (tag == 26) { - parse_member_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.MemberStateOptions options = 5; - case 5: { - if (tag == 42) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.UpdateMemberStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UpdateMemberStateRequest) - return false; -#undef DO_ -} - -void UpdateMemberStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UpdateMemberStateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->member_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberStateOptions options = 5; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UpdateMemberStateRequest) -} - -::google::protobuf::uint8* UpdateMemberStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UpdateMemberStateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->member_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberStateOptions options = 5; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UpdateMemberStateRequest) - return target; -} - -int UpdateMemberStateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 3; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - // optional .bgs.protocol.club.v1.MemberStateOptions options = 5; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 UpdateMemberStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateMemberStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UpdateMemberStateRequest::MergeFrom(const UpdateMemberStateRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::MemberStateOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UpdateMemberStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateMemberStateRequest::CopyFrom(const UpdateMemberStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateMemberStateRequest::IsInitialized() const { - 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 UpdateMemberStateRequest::Swap(UpdateMemberStateRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(member_id_, other->member_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateMemberStateRequest::GetMetadata() const { @@ -8242,242 +4074,9 @@ UpdateSubscriberStateRequest* UpdateSubscriberStateRequest::New() const { return new UpdateSubscriberStateRequest; } -void UpdateSubscriberStateRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::SubscriberStateOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateSubscriberStateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UpdateSubscriberStateRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.SubscriberStateOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.UpdateSubscriberStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UpdateSubscriberStateRequest) - return false; -#undef DO_ -} - -void UpdateSubscriberStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UpdateSubscriberStateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.SubscriberStateOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UpdateSubscriberStateRequest) -} - -::google::protobuf::uint8* UpdateSubscriberStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UpdateSubscriberStateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.SubscriberStateOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UpdateSubscriberStateRequest) - return target; -} - -int UpdateSubscriberStateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.SubscriberStateOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 UpdateSubscriberStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateSubscriberStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UpdateSubscriberStateRequest::MergeFrom(const UpdateSubscriberStateRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::SubscriberStateOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UpdateSubscriberStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateSubscriberStateRequest::CopyFrom(const UpdateSubscriberStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateSubscriberStateRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UpdateSubscriberStateRequest::Swap(UpdateSubscriberStateRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateSubscriberStateRequest::GetMetadata() const { @@ -8555,245 +4154,9 @@ AssignRoleRequest* AssignRoleRequest::New() const { return new AssignRoleRequest; } -void AssignRoleRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::RoleOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AssignRoleRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AssignRoleRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.RoleOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.AssignRoleRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AssignRoleRequest) - return false; -#undef DO_ -} - -void AssignRoleRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AssignRoleRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.RoleOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AssignRoleRequest) -} - -::google::protobuf::uint8* AssignRoleRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AssignRoleRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.RoleOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AssignRoleRequest) - return target; -} - -int AssignRoleRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.RoleOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 AssignRoleRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AssignRoleRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AssignRoleRequest::MergeFrom(const AssignRoleRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::RoleOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AssignRoleRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AssignRoleRequest::CopyFrom(const AssignRoleRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AssignRoleRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void AssignRoleRequest::Swap(AssignRoleRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AssignRoleRequest::GetMetadata() const { @@ -8871,245 +4234,9 @@ UnassignRoleRequest* UnassignRoleRequest::New() const { return new UnassignRoleRequest; } -void UnassignRoleRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::RoleOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnassignRoleRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UnassignRoleRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.RoleOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.UnassignRoleRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UnassignRoleRequest) - return false; -#undef DO_ -} - -void UnassignRoleRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UnassignRoleRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.RoleOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UnassignRoleRequest) -} - -::google::protobuf::uint8* UnassignRoleRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UnassignRoleRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.RoleOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UnassignRoleRequest) - return target; -} - -int UnassignRoleRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.RoleOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 UnassignRoleRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnassignRoleRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnassignRoleRequest::MergeFrom(const UnassignRoleRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::RoleOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnassignRoleRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnassignRoleRequest::CopyFrom(const UnassignRoleRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnassignRoleRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void UnassignRoleRequest::Swap(UnassignRoleRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnassignRoleRequest::GetMetadata() const { @@ -9187,245 +4314,9 @@ SendInvitationRequest* SendInvitationRequest::New() const { return new SendInvitationRequest; } -void SendInvitationRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::SendInvitationOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SendInvitationRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SendInvitationRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.SendInvitationOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.SendInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SendInvitationRequest) - return false; -#undef DO_ -} - -void SendInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SendInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.SendInvitationOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SendInvitationRequest) -} - -::google::protobuf::uint8* SendInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SendInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.SendInvitationOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SendInvitationRequest) - return target; -} - -int SendInvitationRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.SendInvitationOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 SendInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SendInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SendInvitationRequest::MergeFrom(const SendInvitationRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::SendInvitationOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SendInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SendInvitationRequest::CopyFrom(const SendInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SendInvitationRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void SendInvitationRequest::Swap(SendInvitationRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SendInvitationRequest::GetMetadata() const { @@ -9501,251 +4392,10 @@ AcceptInvitationRequest* AcceptInvitationRequest::New() const { return new AcceptInvitationRequest; } -void AcceptInvitationRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, invitation_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AcceptInvitationRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AcceptInvitationRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_invitation_id; - break; - } - - // optional fixed64 invitation_id = 3; - case 3: { - if (tag == 25) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_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.club.v1.AcceptInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AcceptInvitationRequest) - return false; -#undef DO_ -} - -void AcceptInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AcceptInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->invitation_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AcceptInvitationRequest) -} - -::google::protobuf::uint8* AcceptInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AcceptInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->invitation_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AcceptInvitationRequest) - return target; -} - -int AcceptInvitationRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - } - 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 AcceptInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AcceptInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AcceptInvitationRequest::MergeFrom(const AcceptInvitationRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AcceptInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AcceptInvitationRequest::CopyFrom(const AcceptInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AcceptInvitationRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - -void AcceptInvitationRequest::Swap(AcceptInvitationRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} +void AcceptInvitationRequest::Swap(AcceptInvitationRequest* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} ::google::protobuf::Metadata AcceptInvitationRequest::GetMetadata() const { protobuf_AssignDescriptorsOnce(); @@ -9820,250 +4470,9 @@ DeclineInvitationRequest* DeclineInvitationRequest::New() const { return new DeclineInvitationRequest; } -void DeclineInvitationRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, invitation_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DeclineInvitationRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.DeclineInvitationRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_invitation_id; - break; - } - - // optional fixed64 invitation_id = 3; - case 3: { - if (tag == 25) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_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.club.v1.DeclineInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.DeclineInvitationRequest) - return false; -#undef DO_ -} - -void DeclineInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.DeclineInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->invitation_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.DeclineInvitationRequest) -} - -::google::protobuf::uint8* DeclineInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.DeclineInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->invitation_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.DeclineInvitationRequest) - return target; -} - -int DeclineInvitationRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - } - 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 DeclineInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DeclineInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DeclineInvitationRequest::MergeFrom(const DeclineInvitationRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DeclineInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeclineInvitationRequest::CopyFrom(const DeclineInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeclineInvitationRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void DeclineInvitationRequest::Swap(DeclineInvitationRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DeclineInvitationRequest::GetMetadata() const { @@ -10139,250 +4548,9 @@ RevokeInvitationRequest* RevokeInvitationRequest::New() const { return new RevokeInvitationRequest; } -void RevokeInvitationRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, invitation_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RevokeInvitationRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.RevokeInvitationRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_invitation_id; - break; - } - - // optional fixed64 invitation_id = 3; - case 3: { - if (tag == 25) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_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.club.v1.RevokeInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.RevokeInvitationRequest) - return false; -#undef DO_ -} - -void RevokeInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.RevokeInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->invitation_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.RevokeInvitationRequest) -} - -::google::protobuf::uint8* RevokeInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.RevokeInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->invitation_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.RevokeInvitationRequest) - return target; -} - -int RevokeInvitationRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - } - 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 RevokeInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RevokeInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RevokeInvitationRequest::MergeFrom(const RevokeInvitationRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RevokeInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RevokeInvitationRequest::CopyFrom(const RevokeInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RevokeInvitationRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void RevokeInvitationRequest::Swap(RevokeInvitationRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RevokeInvitationRequest::GetMetadata() const { @@ -10458,250 +4626,9 @@ GetInvitationRequest* GetInvitationRequest::New() const { return new GetInvitationRequest; } -void GetInvitationRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, invitation_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetInvitationRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetInvitationRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_invitation_id; - break; - } - - // optional fixed64 invitation_id = 3; - case 3: { - if (tag == 25) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_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.club.v1.GetInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetInvitationRequest) - return false; -#undef DO_ -} - -void GetInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->invitation_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetInvitationRequest) -} - -::google::protobuf::uint8* GetInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetInvitationRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->invitation_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetInvitationRequest) - return target; -} - -int GetInvitationRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 invitation_id = 3; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - } - 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 GetInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetInvitationRequest::MergeFrom(const GetInvitationRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetInvitationRequest::CopyFrom(const GetInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetInvitationRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetInvitationRequest::Swap(GetInvitationRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetInvitationRequest::GetMetadata() const { @@ -10773,163 +4700,9 @@ GetInvitationResponse* GetInvitationResponse::New() const { return new GetInvitationResponse; } -void GetInvitationResponse::Clear() { - if (has_invitation()) { - if (invitation_ != NULL) invitation_->::bgs::protocol::club::v1::ClubInvitation::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetInvitationResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetInvitationResponse) - 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.club.v1.ClubInvitation invitation = 1; - case 1: { - if (tag == 10) { - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.club.v1.GetInvitationResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetInvitationResponse) - return false; -#undef DO_ -} - -void GetInvitationResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetInvitationResponse) - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 1; - if (has_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->invitation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetInvitationResponse) -} - -::google::protobuf::uint8* GetInvitationResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetInvitationResponse) - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 1; - if (has_invitation()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->invitation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetInvitationResponse) - return target; -} - -int GetInvitationResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubInvitation invitation = 1; - if (has_invitation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation()); - } - - } - 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 GetInvitationResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetInvitationResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetInvitationResponse::MergeFrom(const GetInvitationResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_invitation()) { - mutable_invitation()->::bgs::protocol::club::v1::ClubInvitation::MergeFrom(from.invitation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetInvitationResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetInvitationResponse::CopyFrom(const GetInvitationResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetInvitationResponse::IsInitialized() const { - if (has_invitation()) { - if (!this->invitation().IsInitialized()) return false; - } - return true; -} - void GetInvitationResponse::Swap(GetInvitationResponse* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetInvitationResponse::GetMetadata() const { @@ -11005,274 +4778,31 @@ GetInvitationsRequest* GetInvitationsRequest::New() const { return new GetInvitationsRequest; } -void GetInvitationsRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) +void GetInvitationsRequest::Swap(GetInvitationsRequest* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} -#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) +::google::protobuf::Metadata GetInvitationsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetInvitationsRequest_descriptor_; + metadata.reflection = GetInvitationsRequest_reflection_; + return metadata; +} - if (_has_bits_[0 / 32] & 7) { - ZR_(club_id_, continuation_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } +// =================================================================== -#undef OFFSET_OF_FIELD_ -#undef ZR_ +#ifndef _MSC_VER +const int GetInvitationsResponse::kInvitationFieldNumber; +const int GetInvitationsResponse::kContinuationFieldNumber; +#endif // !_MSC_VER - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetInvitationsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetInvitationsRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 3; - case 3: { - if (tag == 24) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetInvitationsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetInvitationsRequest) - return false; -#undef DO_ -} - -void GetInvitationsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetInvitationsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetInvitationsRequest) -} - -::google::protobuf::uint8* GetInvitationsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetInvitationsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetInvitationsRequest) - return target; -} - -int GetInvitationsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - 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 GetInvitationsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetInvitationsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetInvitationsRequest::MergeFrom(const GetInvitationsRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetInvitationsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetInvitationsRequest::CopyFrom(const GetInvitationsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetInvitationsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - -void GetInvitationsRequest::Swap(GetInvitationsRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(continuation_, other->continuation_); - 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 GetInvitationsRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GetInvitationsRequest_descriptor_; - metadata.reflection = GetInvitationsRequest_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int GetInvitationsResponse::kInvitationFieldNumber; -const int GetInvitationsResponse::kContinuationFieldNumber; -#endif // !_MSC_VER - -GetInvitationsResponse::GetInvitationsResponse() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.club.v1.GetInvitationsResponse) -} +GetInvitationsResponse::GetInvitationsResponse() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.club.v1.GetInvitationsResponse) +} void GetInvitationsResponse::InitAsDefaultInstance() { } @@ -11321,197 +4851,9 @@ GetInvitationsResponse* GetInvitationsResponse::New() const { return new GetInvitationsResponse; } -void GetInvitationsResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - invitation_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetInvitationsResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetInvitationsResponse) - 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.club.v1.ClubInvitation invitation = 1; - case 1: { - if (tag == 10) { - parse_invitation: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_invitation())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_invitation; - if (input->ExpectTag(16)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 2; - case 2: { - if (tag == 16) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetInvitationsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetInvitationsResponse) - return false; -#undef DO_ -} - -void GetInvitationsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetInvitationsResponse) - // repeated .bgs.protocol.club.v1.ClubInvitation invitation = 1; - for (int i = 0; i < this->invitation_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->invitation(i), output); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetInvitationsResponse) -} - -::google::protobuf::uint8* GetInvitationsResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetInvitationsResponse) - // repeated .bgs.protocol.club.v1.ClubInvitation invitation = 1; - for (int i = 0; i < this->invitation_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->invitation(i), target); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetInvitationsResponse) - return target; -} - -int GetInvitationsResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint64 continuation = 2; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - // repeated .bgs.protocol.club.v1.ClubInvitation invitation = 1; - total_size += 1 * this->invitation_size(); - for (int i = 0; i < this->invitation_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation(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 GetInvitationsResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetInvitationsResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetInvitationsResponse::MergeFrom(const GetInvitationsResponse& from) { - GOOGLE_CHECK_NE(&from, this); - invitation_.MergeFrom(from.invitation_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetInvitationsResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetInvitationsResponse::CopyFrom(const GetInvitationsResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetInvitationsResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->invitation())) return false; - return true; -} - void GetInvitationsResponse::Swap(GetInvitationsResponse* other) { if (other != this) { - invitation_.Swap(&other->invitation_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetInvitationsResponse::GetMetadata() const { @@ -11589,245 +4931,9 @@ SendSuggestionRequest* SendSuggestionRequest::New() const { return new SendSuggestionRequest; } -void SendSuggestionRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::SendSuggestionOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SendSuggestionRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SendSuggestionRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.SendSuggestionOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.SendSuggestionRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SendSuggestionRequest) - return false; -#undef DO_ -} - -void SendSuggestionRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SendSuggestionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.SendSuggestionOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SendSuggestionRequest) -} - -::google::protobuf::uint8* SendSuggestionRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SendSuggestionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.SendSuggestionOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SendSuggestionRequest) - return target; -} - -int SendSuggestionRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.SendSuggestionOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 SendSuggestionRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SendSuggestionRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SendSuggestionRequest::MergeFrom(const SendSuggestionRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::SendSuggestionOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SendSuggestionRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SendSuggestionRequest::CopyFrom(const SendSuggestionRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SendSuggestionRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void SendSuggestionRequest::Swap(SendSuggestionRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SendSuggestionRequest::GetMetadata() const { @@ -11903,250 +5009,9 @@ AcceptSuggestionRequest* AcceptSuggestionRequest::New() const { return new AcceptSuggestionRequest; } -void AcceptSuggestionRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, suggestion_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AcceptSuggestionRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AcceptSuggestionRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_suggestion_id; - break; - } - - // optional fixed64 suggestion_id = 3; - case 3: { - if (tag == 25) { - parse_suggestion_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &suggestion_id_))); - set_has_suggestion_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.club.v1.AcceptSuggestionRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AcceptSuggestionRequest) - return false; -#undef DO_ -} - -void AcceptSuggestionRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AcceptSuggestionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->suggestion_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AcceptSuggestionRequest) -} - -::google::protobuf::uint8* AcceptSuggestionRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AcceptSuggestionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->suggestion_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AcceptSuggestionRequest) - return target; -} - -int AcceptSuggestionRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - total_size += 1 + 8; - } - - } - 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 AcceptSuggestionRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AcceptSuggestionRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AcceptSuggestionRequest::MergeFrom(const AcceptSuggestionRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_suggestion_id()) { - set_suggestion_id(from.suggestion_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AcceptSuggestionRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AcceptSuggestionRequest::CopyFrom(const AcceptSuggestionRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AcceptSuggestionRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void AcceptSuggestionRequest::Swap(AcceptSuggestionRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(suggestion_id_, other->suggestion_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AcceptSuggestionRequest::GetMetadata() const { @@ -12222,250 +5087,9 @@ DeclineSuggestionRequest* DeclineSuggestionRequest::New() const { return new DeclineSuggestionRequest; } -void DeclineSuggestionRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, suggestion_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DeclineSuggestionRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.DeclineSuggestionRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_suggestion_id; - break; - } - - // optional fixed64 suggestion_id = 3; - case 3: { - if (tag == 25) { - parse_suggestion_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &suggestion_id_))); - set_has_suggestion_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.club.v1.DeclineSuggestionRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.DeclineSuggestionRequest) - return false; -#undef DO_ -} - -void DeclineSuggestionRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.DeclineSuggestionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->suggestion_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.DeclineSuggestionRequest) -} - -::google::protobuf::uint8* DeclineSuggestionRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.DeclineSuggestionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->suggestion_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.DeclineSuggestionRequest) - return target; -} - -int DeclineSuggestionRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - total_size += 1 + 8; - } - - } - 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 DeclineSuggestionRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DeclineSuggestionRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DeclineSuggestionRequest::MergeFrom(const DeclineSuggestionRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_suggestion_id()) { - set_suggestion_id(from.suggestion_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DeclineSuggestionRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeclineSuggestionRequest::CopyFrom(const DeclineSuggestionRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeclineSuggestionRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void DeclineSuggestionRequest::Swap(DeclineSuggestionRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(suggestion_id_, other->suggestion_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DeclineSuggestionRequest::GetMetadata() const { @@ -12541,265 +5165,24 @@ GetSuggestionRequest* GetSuggestionRequest::New() const { return new GetSuggestionRequest; } -void GetSuggestionRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) +void GetSuggestionRequest::Swap(GetSuggestionRequest* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} -#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) +::google::protobuf::Metadata GetSuggestionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetSuggestionRequest_descriptor_; + metadata.reflection = GetSuggestionRequest_reflection_; + return metadata; +} - if (_has_bits_[0 / 32] & 7) { - ZR_(club_id_, suggestion_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } +// =================================================================== -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetSuggestionRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetSuggestionRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_suggestion_id; - break; - } - - // optional fixed64 suggestion_id = 3; - case 3: { - if (tag == 25) { - parse_suggestion_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &suggestion_id_))); - set_has_suggestion_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.club.v1.GetSuggestionRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetSuggestionRequest) - return false; -#undef DO_ -} - -void GetSuggestionRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetSuggestionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->suggestion_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetSuggestionRequest) -} - -::google::protobuf::uint8* GetSuggestionRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetSuggestionRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->suggestion_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetSuggestionRequest) - return target; -} - -int GetSuggestionRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional fixed64 suggestion_id = 3; - if (has_suggestion_id()) { - total_size += 1 + 8; - } - - } - 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 GetSuggestionRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetSuggestionRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetSuggestionRequest::MergeFrom(const GetSuggestionRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_suggestion_id()) { - set_suggestion_id(from.suggestion_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetSuggestionRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetSuggestionRequest::CopyFrom(const GetSuggestionRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetSuggestionRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - -void GetSuggestionRequest::Swap(GetSuggestionRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(suggestion_id_, other->suggestion_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 GetSuggestionRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GetSuggestionRequest_descriptor_; - metadata.reflection = GetSuggestionRequest_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int GetSuggestionResponse::kSuggestionFieldNumber; -#endif // !_MSC_VER +#ifndef _MSC_VER +const int GetSuggestionResponse::kSuggestionFieldNumber; +#endif // !_MSC_VER GetSuggestionResponse::GetSuggestionResponse() : ::google::protobuf::Message() { @@ -12856,163 +5239,9 @@ GetSuggestionResponse* GetSuggestionResponse::New() const { return new GetSuggestionResponse; } -void GetSuggestionResponse::Clear() { - if (has_suggestion()) { - if (suggestion_ != NULL) suggestion_->::bgs::protocol::club::v1::ClubSuggestion::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetSuggestionResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetSuggestionResponse) - 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.club.v1.ClubSuggestion suggestion = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_suggestion())); - } 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.club.v1.GetSuggestionResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetSuggestionResponse) - return false; -#undef DO_ -} - -void GetSuggestionResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetSuggestionResponse) - // optional .bgs.protocol.club.v1.ClubSuggestion suggestion = 1; - if (has_suggestion()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->suggestion(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetSuggestionResponse) -} - -::google::protobuf::uint8* GetSuggestionResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetSuggestionResponse) - // optional .bgs.protocol.club.v1.ClubSuggestion suggestion = 1; - if (has_suggestion()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->suggestion(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetSuggestionResponse) - return target; -} - -int GetSuggestionResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubSuggestion suggestion = 1; - if (has_suggestion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->suggestion()); - } - - } - 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 GetSuggestionResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetSuggestionResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetSuggestionResponse::MergeFrom(const GetSuggestionResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_suggestion()) { - mutable_suggestion()->::bgs::protocol::club::v1::ClubSuggestion::MergeFrom(from.suggestion()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetSuggestionResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetSuggestionResponse::CopyFrom(const GetSuggestionResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetSuggestionResponse::IsInitialized() const { - if (has_suggestion()) { - if (!this->suggestion().IsInitialized()) return false; - } - return true; -} - void GetSuggestionResponse::Swap(GetSuggestionResponse* other) { if (other != this) { - std::swap(suggestion_, other->suggestion_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetSuggestionResponse::GetMetadata() const { @@ -13088,252 +5317,9 @@ GetSuggestionsRequest* GetSuggestionsRequest::New() const { return new GetSuggestionsRequest; } -void GetSuggestionsRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, continuation_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetSuggestionsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetSuggestionsRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 3; - case 3: { - if (tag == 24) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetSuggestionsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetSuggestionsRequest) - return false; -#undef DO_ -} - -void GetSuggestionsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetSuggestionsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetSuggestionsRequest) -} - -::google::protobuf::uint8* GetSuggestionsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetSuggestionsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetSuggestionsRequest) - return target; -} - -int GetSuggestionsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - 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 GetSuggestionsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetSuggestionsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetSuggestionsRequest::MergeFrom(const GetSuggestionsRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetSuggestionsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetSuggestionsRequest::CopyFrom(const GetSuggestionsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetSuggestionsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetSuggestionsRequest::Swap(GetSuggestionsRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetSuggestionsRequest::GetMetadata() const { @@ -13404,197 +5390,9 @@ GetSuggestionsResponse* GetSuggestionsResponse::New() const { return new GetSuggestionsResponse; } -void GetSuggestionsResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - suggestion_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetSuggestionsResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetSuggestionsResponse) - 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.club.v1.ClubSuggestion suggestion = 1; - case 1: { - if (tag == 10) { - parse_suggestion: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_suggestion())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_suggestion; - if (input->ExpectTag(16)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 2; - case 2: { - if (tag == 16) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetSuggestionsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetSuggestionsResponse) - return false; -#undef DO_ -} - -void GetSuggestionsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetSuggestionsResponse) - // repeated .bgs.protocol.club.v1.ClubSuggestion suggestion = 1; - for (int i = 0; i < this->suggestion_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->suggestion(i), output); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetSuggestionsResponse) -} - -::google::protobuf::uint8* GetSuggestionsResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetSuggestionsResponse) - // repeated .bgs.protocol.club.v1.ClubSuggestion suggestion = 1; - for (int i = 0; i < this->suggestion_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->suggestion(i), target); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetSuggestionsResponse) - return target; -} - -int GetSuggestionsResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint64 continuation = 2; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - // repeated .bgs.protocol.club.v1.ClubSuggestion suggestion = 1; - total_size += 1 * this->suggestion_size(); - for (int i = 0; i < this->suggestion_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->suggestion(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 GetSuggestionsResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetSuggestionsResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetSuggestionsResponse::MergeFrom(const GetSuggestionsResponse& from) { - GOOGLE_CHECK_NE(&from, this); - suggestion_.MergeFrom(from.suggestion_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetSuggestionsResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetSuggestionsResponse::CopyFrom(const GetSuggestionsResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetSuggestionsResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->suggestion())) return false; - return true; -} - void GetSuggestionsResponse::Swap(GetSuggestionsResponse* other) { if (other != this) { - suggestion_.Swap(&other->suggestion_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetSuggestionsResponse::GetMetadata() const { @@ -13672,242 +5470,9 @@ CreateTicketRequest* CreateTicketRequest::New() const { return new CreateTicketRequest; } -void CreateTicketRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::CreateTicketOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateTicketRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateTicketRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.CreateTicketOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.CreateTicketRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateTicketRequest) - return false; -#undef DO_ -} - -void CreateTicketRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateTicketRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.CreateTicketOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateTicketRequest) -} - -::google::protobuf::uint8* CreateTicketRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateTicketRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.CreateTicketOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateTicketRequest) - return target; -} - -int CreateTicketRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.CreateTicketOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 CreateTicketRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateTicketRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateTicketRequest::MergeFrom(const CreateTicketRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::CreateTicketOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateTicketRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateTicketRequest::CopyFrom(const CreateTicketRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateTicketRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void CreateTicketRequest::Swap(CreateTicketRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateTicketRequest::GetMetadata() const { @@ -13979,163 +5544,9 @@ CreateTicketResponse* CreateTicketResponse::New() const { return new CreateTicketResponse; } -void CreateTicketResponse::Clear() { - if (has_ticket()) { - if (ticket_ != NULL) ticket_->::bgs::protocol::club::v1::ClubTicket::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateTicketResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateTicketResponse) - 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.club.v1.ClubTicket ticket = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_ticket())); - } 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.club.v1.CreateTicketResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateTicketResponse) - return false; -#undef DO_ -} - -void CreateTicketResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateTicketResponse) - // optional .bgs.protocol.club.v1.ClubTicket ticket = 1; - if (has_ticket()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->ticket(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateTicketResponse) -} - -::google::protobuf::uint8* CreateTicketResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateTicketResponse) - // optional .bgs.protocol.club.v1.ClubTicket ticket = 1; - if (has_ticket()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->ticket(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateTicketResponse) - return target; -} - -int CreateTicketResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubTicket ticket = 1; - if (has_ticket()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ticket()); - } - - } - 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 CreateTicketResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateTicketResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateTicketResponse::MergeFrom(const CreateTicketResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_ticket()) { - mutable_ticket()->::bgs::protocol::club::v1::ClubTicket::MergeFrom(from.ticket()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateTicketResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateTicketResponse::CopyFrom(const CreateTicketResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateTicketResponse::IsInitialized() const { - if (has_ticket()) { - if (!this->ticket().IsInitialized()) return false; - } - return true; -} - void CreateTicketResponse::Swap(CreateTicketResponse* other) { if (other != this) { - std::swap(ticket_, other->ticket_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateTicketResponse::GetMetadata() const { @@ -14215,256 +5626,9 @@ DestroyTicketRequest* DestroyTicketRequest::New() const { return new DestroyTicketRequest; } -void DestroyTicketRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_ticket_id()) { - if (ticket_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - ticket_id_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DestroyTicketRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.DestroyTicketRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_ticket_id; - break; - } - - // optional string ticket_id = 3; - case 3: { - if (tag == 26) { - parse_ticket_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_ticket_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "ticket_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.club.v1.DestroyTicketRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.DestroyTicketRequest) - return false; -#undef DO_ -} - -void DestroyTicketRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.DestroyTicketRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "ticket_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->ticket_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.DestroyTicketRequest) -} - -::google::protobuf::uint8* DestroyTicketRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.DestroyTicketRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "ticket_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->ticket_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.DestroyTicketRequest) - return target; -} - -int DestroyTicketRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->ticket_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 DestroyTicketRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DestroyTicketRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DestroyTicketRequest::MergeFrom(const DestroyTicketRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_ticket_id()) { - set_ticket_id(from.ticket_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DestroyTicketRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DestroyTicketRequest::CopyFrom(const DestroyTicketRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DestroyTicketRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void DestroyTicketRequest::Swap(DestroyTicketRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(ticket_id_, other->ticket_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DestroyTicketRequest::GetMetadata() const { @@ -14542,219 +5706,9 @@ RedeemTicketRequest* RedeemTicketRequest::New() const { return new RedeemTicketRequest; } -void RedeemTicketRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_ticket_id()) { - if (ticket_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - ticket_id_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RedeemTicketRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.RedeemTicketRequest) - 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.club.v1.MemberId 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(26)) goto parse_ticket_id; - break; - } - - // optional string ticket_id = 3; - case 3: { - if (tag == 26) { - parse_ticket_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_ticket_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "ticket_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.club.v1.RedeemTicketRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.RedeemTicketRequest) - return false; -#undef DO_ -} - -void RedeemTicketRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.RedeemTicketRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "ticket_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->ticket_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.RedeemTicketRequest) -} - -::google::protobuf::uint8* RedeemTicketRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.RedeemTicketRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "ticket_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->ticket_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.RedeemTicketRequest) - return target; -} - -int RedeemTicketRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->ticket_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 RedeemTicketRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RedeemTicketRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RedeemTicketRequest::MergeFrom(const RedeemTicketRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_ticket_id()) { - set_ticket_id(from.ticket_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RedeemTicketRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RedeemTicketRequest::CopyFrom(const RedeemTicketRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RedeemTicketRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void RedeemTicketRequest::Swap(RedeemTicketRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(ticket_id_, other->ticket_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RedeemTicketRequest::GetMetadata() const { @@ -14832,219 +5786,9 @@ GetTicketRequest* GetTicketRequest::New() const { return new GetTicketRequest; } -void GetTicketRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_ticket_id()) { - if (ticket_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - ticket_id_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetTicketRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetTicketRequest) - 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.club.v1.MemberId 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(26)) goto parse_ticket_id; - break; - } - - // optional string ticket_id = 3; - case 3: { - if (tag == 26) { - parse_ticket_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_ticket_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "ticket_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.club.v1.GetTicketRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetTicketRequest) - return false; -#undef DO_ -} - -void GetTicketRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetTicketRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "ticket_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->ticket_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetTicketRequest) -} - -::google::protobuf::uint8* GetTicketRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetTicketRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->ticket_id().data(), this->ticket_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "ticket_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->ticket_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetTicketRequest) - return target; -} - -int GetTicketRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional string ticket_id = 3; - if (has_ticket_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->ticket_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 GetTicketRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetTicketRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetTicketRequest::MergeFrom(const GetTicketRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_ticket_id()) { - set_ticket_id(from.ticket_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetTicketRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetTicketRequest::CopyFrom(const GetTicketRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetTicketRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetTicketRequest::Swap(GetTicketRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(ticket_id_, other->ticket_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetTicketRequest::GetMetadata() const { @@ -15116,163 +5860,9 @@ GetTicketResponse* GetTicketResponse::New() const { return new GetTicketResponse; } -void GetTicketResponse::Clear() { - if (has_ticket()) { - if (ticket_ != NULL) ticket_->::bgs::protocol::club::v1::ClubTicket::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetTicketResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetTicketResponse) - 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.club.v1.ClubTicket ticket = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_ticket())); - } 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.club.v1.GetTicketResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetTicketResponse) - return false; -#undef DO_ -} - -void GetTicketResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetTicketResponse) - // optional .bgs.protocol.club.v1.ClubTicket ticket = 1; - if (has_ticket()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->ticket(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetTicketResponse) -} - -::google::protobuf::uint8* GetTicketResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetTicketResponse) - // optional .bgs.protocol.club.v1.ClubTicket ticket = 1; - if (has_ticket()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->ticket(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetTicketResponse) - return target; -} - -int GetTicketResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubTicket ticket = 1; - if (has_ticket()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ticket()); - } - - } - 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 GetTicketResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetTicketResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetTicketResponse::MergeFrom(const GetTicketResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_ticket()) { - mutable_ticket()->::bgs::protocol::club::v1::ClubTicket::MergeFrom(from.ticket()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetTicketResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetTicketResponse::CopyFrom(const GetTicketResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetTicketResponse::IsInitialized() const { - if (has_ticket()) { - if (!this->ticket().IsInitialized()) return false; - } - return true; -} - void GetTicketResponse::Swap(GetTicketResponse* other) { if (other != this) { - std::swap(ticket_, other->ticket_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetTicketResponse::GetMetadata() const { @@ -15348,252 +5938,9 @@ GetTicketsRequest* GetTicketsRequest::New() const { return new GetTicketsRequest; } -void GetTicketsRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, continuation_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetTicketsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetTicketsRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 3; - case 3: { - if (tag == 24) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetTicketsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetTicketsRequest) - return false; -#undef DO_ -} - -void GetTicketsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetTicketsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetTicketsRequest) -} - -::google::protobuf::uint8* GetTicketsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetTicketsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetTicketsRequest) - return target; -} - -int GetTicketsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - 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 GetTicketsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetTicketsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetTicketsRequest::MergeFrom(const GetTicketsRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetTicketsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetTicketsRequest::CopyFrom(const GetTicketsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetTicketsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetTicketsRequest::Swap(GetTicketsRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetTicketsRequest::GetMetadata() const { @@ -15664,197 +6011,9 @@ GetTicketsResponse* GetTicketsResponse::New() const { return new GetTicketsResponse; } -void GetTicketsResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - ticket_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetTicketsResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetTicketsResponse) - 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.club.v1.ClubTicket ticket = 1; - case 1: { - if (tag == 10) { - parse_ticket: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_ticket())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_ticket; - if (input->ExpectTag(16)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 2; - case 2: { - if (tag == 16) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetTicketsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetTicketsResponse) - return false; -#undef DO_ -} - -void GetTicketsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetTicketsResponse) - // repeated .bgs.protocol.club.v1.ClubTicket ticket = 1; - for (int i = 0; i < this->ticket_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->ticket(i), output); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetTicketsResponse) -} - -::google::protobuf::uint8* GetTicketsResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetTicketsResponse) - // repeated .bgs.protocol.club.v1.ClubTicket ticket = 1; - for (int i = 0; i < this->ticket_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->ticket(i), target); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetTicketsResponse) - return target; -} - -int GetTicketsResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint64 continuation = 2; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - // repeated .bgs.protocol.club.v1.ClubTicket ticket = 1; - total_size += 1 * this->ticket_size(); - for (int i = 0; i < this->ticket_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ticket(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 GetTicketsResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetTicketsResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetTicketsResponse::MergeFrom(const GetTicketsResponse& from) { - GOOGLE_CHECK_NE(&from, this); - ticket_.MergeFrom(from.ticket_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetTicketsResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetTicketsResponse::CopyFrom(const GetTicketsResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetTicketsResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->ticket())) return false; - return true; -} - void GetTicketsResponse::Swap(GetTicketsResponse* other) { if (other != this) { - ticket_.Swap(&other->ticket_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetTicketsResponse::GetMetadata() const { @@ -15932,256 +6091,20 @@ AddBanRequest* AddBanRequest::New() const { return new AddBanRequest; } -void AddBanRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::AddBanOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AddBanRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AddBanRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.AddBanOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.AddBanRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AddBanRequest) - return false; -#undef DO_ -} - -void AddBanRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AddBanRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.AddBanOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } +void AddBanRequest::Swap(AddBanRequest* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AddBanRequest) +::google::protobuf::Metadata AddBanRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AddBanRequest_descriptor_; + metadata.reflection = AddBanRequest_reflection_; + return metadata; } -::google::protobuf::uint8* AddBanRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AddBanRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.AddBanOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AddBanRequest) - return target; -} - -int AddBanRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.AddBanOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 AddBanRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AddBanRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AddBanRequest::MergeFrom(const AddBanRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::AddBanOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AddBanRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AddBanRequest::CopyFrom(const AddBanRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddBanRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - -void AddBanRequest::Swap(AddBanRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - 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 AddBanRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AddBanRequest_descriptor_; - metadata.reflection = AddBanRequest_reflection_; - return metadata; -} - -// =================================================================== +// =================================================================== #ifndef _MSC_VER const int RemoveBanRequest::kAgentIdFieldNumber; @@ -16248,245 +6171,9 @@ RemoveBanRequest* RemoveBanRequest::New() const { return new RemoveBanRequest; } -void RemoveBanRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RemoveBanRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.RemoveBanRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_target_id; - break; - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - case 3: { - if (tag == 26) { - 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.club.v1.RemoveBanRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.RemoveBanRequest) - return false; -#undef DO_ -} - -void RemoveBanRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.RemoveBanRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->target_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.RemoveBanRequest) -} - -::google::protobuf::uint8* RemoveBanRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.RemoveBanRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, 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.club.v1.RemoveBanRequest) - return target; -} - -int RemoveBanRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - 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 RemoveBanRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RemoveBanRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RemoveBanRequest::MergeFrom(const RemoveBanRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.target_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RemoveBanRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RemoveBanRequest::CopyFrom(const RemoveBanRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RemoveBanRequest::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 RemoveBanRequest::Swap(RemoveBanRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RemoveBanRequest::GetMetadata() const { @@ -16564,245 +6251,9 @@ GetBanRequest* GetBanRequest::New() const { return new GetBanRequest; } -void GetBanRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetBanRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetBanRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_target_id; - break; - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - case 3: { - if (tag == 26) { - 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.club.v1.GetBanRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetBanRequest) - return false; -#undef DO_ -} - -void GetBanRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetBanRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->target_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetBanRequest) -} - -::google::protobuf::uint8* GetBanRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetBanRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, 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.club.v1.GetBanRequest) - return target; -} - -int GetBanRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 3; - 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 GetBanRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetBanRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetBanRequest::MergeFrom(const GetBanRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.target_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetBanRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetBanRequest::CopyFrom(const GetBanRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetBanRequest::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 GetBanRequest::Swap(GetBanRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetBanRequest::GetMetadata() const { @@ -16874,163 +6325,9 @@ GetBanResponse* GetBanResponse::New() const { return new GetBanResponse; } -void GetBanResponse::Clear() { - if (has_ban()) { - if (ban_ != NULL) ban_->::bgs::protocol::club::v1::ClubBan::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetBanResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetBanResponse) - 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.club.v1.ClubBan ban = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_ban())); - } 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.club.v1.GetBanResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetBanResponse) - return false; -#undef DO_ -} - -void GetBanResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetBanResponse) - // optional .bgs.protocol.club.v1.ClubBan ban = 1; - if (has_ban()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->ban(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetBanResponse) -} - -::google::protobuf::uint8* GetBanResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetBanResponse) - // optional .bgs.protocol.club.v1.ClubBan ban = 1; - if (has_ban()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->ban(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetBanResponse) - return target; -} - -int GetBanResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.ClubBan ban = 1; - if (has_ban()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ban()); - } - - } - 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 GetBanResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetBanResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetBanResponse::MergeFrom(const GetBanResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_ban()) { - mutable_ban()->::bgs::protocol::club::v1::ClubBan::MergeFrom(from.ban()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetBanResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetBanResponse::CopyFrom(const GetBanResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetBanResponse::IsInitialized() const { - if (has_ban()) { - if (!this->ban().IsInitialized()) return false; - } - return true; -} - void GetBanResponse::Swap(GetBanResponse* other) { if (other != this) { - std::swap(ban_, other->ban_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetBanResponse::GetMetadata() const { @@ -17106,252 +6403,9 @@ GetBansRequest* GetBansRequest::New() const { return new GetBansRequest; } -void GetBansRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, continuation_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetBansRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetBansRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 3; - case 3: { - if (tag == 24) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetBansRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetBansRequest) - return false; -#undef DO_ -} - -void GetBansRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetBansRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetBansRequest) -} - -::google::protobuf::uint8* GetBansRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetBansRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetBansRequest) - return target; -} - -int GetBansRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - 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 GetBansRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetBansRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetBansRequest::MergeFrom(const GetBansRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetBansRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetBansRequest::CopyFrom(const GetBansRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetBansRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetBansRequest::Swap(GetBansRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetBansRequest::GetMetadata() const { @@ -17422,197 +6476,9 @@ GetBansResponse* GetBansResponse::New() const { return new GetBansResponse; } -void GetBansResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - ban_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetBansResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetBansResponse) - 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.club.v1.ClubBan ban = 1; - case 1: { - if (tag == 10) { - parse_ban: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_ban())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_ban; - if (input->ExpectTag(16)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 2; - case 2: { - if (tag == 16) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetBansResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetBansResponse) - return false; -#undef DO_ -} - -void GetBansResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetBansResponse) - // repeated .bgs.protocol.club.v1.ClubBan ban = 1; - for (int i = 0; i < this->ban_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->ban(i), output); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetBansResponse) -} - -::google::protobuf::uint8* GetBansResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetBansResponse) - // repeated .bgs.protocol.club.v1.ClubBan ban = 1; - for (int i = 0; i < this->ban_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->ban(i), target); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetBansResponse) - return target; -} - -int GetBansResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint64 continuation = 2; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - // repeated .bgs.protocol.club.v1.ClubBan ban = 1; - total_size += 1 * this->ban_size(); - for (int i = 0; i < this->ban_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->ban(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 GetBansResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetBansResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetBansResponse::MergeFrom(const GetBansResponse& from) { - GOOGLE_CHECK_NE(&from, this); - ban_.MergeFrom(from.ban_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetBansResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetBansResponse::CopyFrom(const GetBansResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetBansResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->ban())) return false; - return true; -} - void GetBansResponse::Swap(GetBansResponse* other) { if (other != this) { - ban_.Swap(&other->ban_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetBansResponse::GetMetadata() const { @@ -17687,246 +6553,9 @@ SubscribeStreamRequest* SubscribeStreamRequest::New() const { return new SubscribeStreamRequest; } -void SubscribeStreamRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - stream_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeStreamRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SubscribeStreamRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // repeated uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 24, input, this->mutable_stream_id()))); - } else if (tag == 26) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_stream_id()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_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.club.v1.SubscribeStreamRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SubscribeStreamRequest) - return false; -#undef DO_ -} - -void SubscribeStreamRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SubscribeStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // repeated uint64 stream_id = 3; - for (int i = 0; i < this->stream_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64( - 3, this->stream_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SubscribeStreamRequest) -} - -::google::protobuf::uint8* SubscribeStreamRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SubscribeStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // repeated uint64 stream_id = 3; - for (int i = 0; i < this->stream_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64ToArray(3, this->stream_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.club.v1.SubscribeStreamRequest) - return target; -} - -int SubscribeStreamRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - } - // repeated uint64 stream_id = 3; - { - int data_size = 0; - for (int i = 0; i < this->stream_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->stream_id(i)); - } - total_size += 1 * this->stream_id_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 SubscribeStreamRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeStreamRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeStreamRequest::MergeFrom(const SubscribeStreamRequest& from) { - GOOGLE_CHECK_NE(&from, this); - stream_id_.MergeFrom(from.stream_id_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeStreamRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeStreamRequest::CopyFrom(const SubscribeStreamRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeStreamRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - -void SubscribeStreamRequest::Swap(SubscribeStreamRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - stream_id_.Swap(&other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } +void SubscribeStreamRequest::Swap(SubscribeStreamRequest* other) { + if (other != this) { + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeStreamRequest::GetMetadata() const { @@ -18001,246 +6630,9 @@ UnsubscribeStreamRequest* UnsubscribeStreamRequest::New() const { return new UnsubscribeStreamRequest; } -void UnsubscribeStreamRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - stream_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsubscribeStreamRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UnsubscribeStreamRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // repeated uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 24, input, this->mutable_stream_id()))); - } else if (tag == 26) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_stream_id()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_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.club.v1.UnsubscribeStreamRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UnsubscribeStreamRequest) - return false; -#undef DO_ -} - -void UnsubscribeStreamRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UnsubscribeStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // repeated uint64 stream_id = 3; - for (int i = 0; i < this->stream_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64( - 3, this->stream_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UnsubscribeStreamRequest) -} - -::google::protobuf::uint8* UnsubscribeStreamRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UnsubscribeStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // repeated uint64 stream_id = 3; - for (int i = 0; i < this->stream_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64ToArray(3, this->stream_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.club.v1.UnsubscribeStreamRequest) - return target; -} - -int UnsubscribeStreamRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - } - // repeated uint64 stream_id = 3; - { - int data_size = 0; - for (int i = 0; i < this->stream_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->stream_id(i)); - } - total_size += 1 * this->stream_id_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 UnsubscribeStreamRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsubscribeStreamRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsubscribeStreamRequest::MergeFrom(const UnsubscribeStreamRequest& from) { - GOOGLE_CHECK_NE(&from, this); - stream_id_.MergeFrom(from.stream_id_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsubscribeStreamRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsubscribeStreamRequest::CopyFrom(const UnsubscribeStreamRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsubscribeStreamRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UnsubscribeStreamRequest::Swap(UnsubscribeStreamRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - stream_id_.Swap(&other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsubscribeStreamRequest::GetMetadata() const { @@ -18318,242 +6710,9 @@ CreateStreamRequest* CreateStreamRequest::New() const { return new CreateStreamRequest; } -void CreateStreamRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::CreateStreamOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateStreamRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateStreamRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.CreateStreamOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.CreateStreamRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateStreamRequest) - return false; -#undef DO_ -} - -void CreateStreamRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.club.v1.CreateStreamOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateStreamRequest) -} - -::google::protobuf::uint8* CreateStreamRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.club.v1.CreateStreamOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateStreamRequest) - return target; -} - -int CreateStreamRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.club.v1.CreateStreamOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 CreateStreamRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateStreamRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateStreamRequest::MergeFrom(const CreateStreamRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::CreateStreamOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateStreamRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateStreamRequest::CopyFrom(const CreateStreamRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateStreamRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void CreateStreamRequest::Swap(CreateStreamRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateStreamRequest::GetMetadata() const { @@ -18625,207 +6784,9 @@ CreateStreamResponse* CreateStreamResponse::New() const { return new CreateStreamResponse; } -void CreateStreamResponse::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateStreamResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateStreamResponse) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 2; - case 2: { - if (tag == 16) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_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.club.v1.CreateStreamResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateStreamResponse) - return false; -#undef DO_ -} - -void CreateStreamResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateStreamResponse) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stream_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateStreamResponse) -} - -::google::protobuf::uint8* CreateStreamResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateStreamResponse) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stream_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateStreamResponse) - return target; -} - -int CreateStreamResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_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 CreateStreamResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateStreamResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateStreamResponse::MergeFrom(const CreateStreamResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateStreamResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateStreamResponse::CopyFrom(const CreateStreamResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateStreamResponse::IsInitialized() const { - return true; -} - void CreateStreamResponse::Swap(CreateStreamResponse* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateStreamResponse::GetMetadata() const { @@ -18901,252 +6862,9 @@ DestroyStreamRequest* DestroyStreamRequest::New() const { return new DestroyStreamRequest; } -void DestroyStreamRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DestroyStreamRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.DestroyStreamRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_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.club.v1.DestroyStreamRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.DestroyStreamRequest) - return false; -#undef DO_ -} - -void DestroyStreamRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.DestroyStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.DestroyStreamRequest) -} - -::google::protobuf::uint8* DestroyStreamRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.DestroyStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.DestroyStreamRequest) - return target; -} - -int DestroyStreamRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_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 DestroyStreamRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DestroyStreamRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DestroyStreamRequest::MergeFrom(const DestroyStreamRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DestroyStreamRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DestroyStreamRequest::CopyFrom(const DestroyStreamRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DestroyStreamRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void DestroyStreamRequest::Swap(DestroyStreamRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DestroyStreamRequest::GetMetadata() const { @@ -19222,252 +6940,9 @@ GetStreamRequest* GetStreamRequest::New() const { return new GetStreamRequest; } -void GetStreamRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_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.club.v1.GetStreamRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamRequest) - return false; -#undef DO_ -} - -void GetStreamRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamRequest) -} - -::google::protobuf::uint8* GetStreamRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamRequest) - return target; -} - -int GetStreamRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_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 GetStreamRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamRequest::MergeFrom(const GetStreamRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamRequest::CopyFrom(const GetStreamRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetStreamRequest::Swap(GetStreamRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamRequest::GetMetadata() const { @@ -19539,160 +7014,9 @@ GetStreamResponse* GetStreamResponse::New() const { return new GetStreamResponse; } -void GetStreamResponse::Clear() { - if (has_stream()) { - if (stream_ != NULL) stream_->::bgs::protocol::club::v1::Stream::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamResponse) - 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.club.v1.Stream stream = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_stream())); - } 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.club.v1.GetStreamResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamResponse) - return false; -#undef DO_ -} - -void GetStreamResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamResponse) - // optional .bgs.protocol.club.v1.Stream stream = 1; - if (has_stream()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->stream(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamResponse) -} - -::google::protobuf::uint8* GetStreamResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamResponse) - // optional .bgs.protocol.club.v1.Stream stream = 1; - if (has_stream()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->stream(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamResponse) - return target; -} - -int GetStreamResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.Stream stream = 1; - if (has_stream()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream()); - } - - } - 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 GetStreamResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamResponse::MergeFrom(const GetStreamResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_stream()) { - mutable_stream()->::bgs::protocol::club::v1::Stream::MergeFrom(from.stream()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamResponse::CopyFrom(const GetStreamResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamResponse::IsInitialized() const { - return true; -} - void GetStreamResponse::Swap(GetStreamResponse* other) { if (other != this) { - std::swap(stream_, other->stream_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamResponse::GetMetadata() const { @@ -19768,252 +7092,9 @@ GetStreamsRequest* GetStreamsRequest::New() const { return new GetStreamsRequest; } -void GetStreamsRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, continuation_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamsRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamsRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 3; - case 3: { - if (tag == 24) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetStreamsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamsRequest) - return false; -#undef DO_ -} - -void GetStreamsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamsRequest) -} - -::google::protobuf::uint8* GetStreamsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamsRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamsRequest) - return target; -} - -int GetStreamsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - 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 GetStreamsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamsRequest::MergeFrom(const GetStreamsRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamsRequest::CopyFrom(const GetStreamsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetStreamsRequest::Swap(GetStreamsRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamsRequest::GetMetadata() const { @@ -20085,234 +7166,9 @@ GetStreamsResponse* GetStreamsResponse::New() const { return new GetStreamsResponse; } -void GetStreamsResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - stream_.Clear(); - view_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamsResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamsResponse) - 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.club.v1.Stream stream = 1; - case 1: { - if (tag == 10) { - parse_stream: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_stream())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_stream; - if (input->ExpectTag(18)) goto parse_view; - break; - } - - // repeated .bgs.protocol.club.v1.StreamView view = 2; - case 2: { - if (tag == 18) { - parse_view: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_view())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_view; - if (input->ExpectTag(24)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 3; - case 3: { - if (tag == 24) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetStreamsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamsResponse) - return false; -#undef DO_ -} - -void GetStreamsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamsResponse) - // repeated .bgs.protocol.club.v1.Stream stream = 1; - for (int i = 0; i < this->stream_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->stream(i), output); - } - - // repeated .bgs.protocol.club.v1.StreamView view = 2; - for (int i = 0; i < this->view_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->view(i), output); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamsResponse) -} - -::google::protobuf::uint8* GetStreamsResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamsResponse) - // repeated .bgs.protocol.club.v1.Stream stream = 1; - for (int i = 0; i < this->stream_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->stream(i), target); - } - - // repeated .bgs.protocol.club.v1.StreamView view = 2; - for (int i = 0; i < this->view_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->view(i), target); - } - - // optional uint64 continuation = 3; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamsResponse) - return target; -} - -int GetStreamsResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { - // optional uint64 continuation = 3; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - // repeated .bgs.protocol.club.v1.Stream stream = 1; - total_size += 1 * this->stream_size(); - for (int i = 0; i < this->stream_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->stream(i)); - } - - // repeated .bgs.protocol.club.v1.StreamView view = 2; - total_size += 1 * this->view_size(); - for (int i = 0; i < this->view_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->view(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 GetStreamsResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamsResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamsResponse::MergeFrom(const GetStreamsResponse& from) { - GOOGLE_CHECK_NE(&from, this); - stream_.MergeFrom(from.stream_); - view_.MergeFrom(from.view_); - if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamsResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamsResponse::CopyFrom(const GetStreamsResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamsResponse::IsInitialized() const { - return true; -} - void GetStreamsResponse::Swap(GetStreamsResponse* other) { if (other != this) { - stream_.Swap(&other->stream_); - view_.Swap(&other->view_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamsResponse::GetMetadata() const { @@ -20347,337 +7203,54 @@ UpdateStreamStateRequest::UpdateStreamStateRequest(const UpdateStreamStateReques : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.club.v1.UpdateStreamStateRequest) -} - -void UpdateStreamStateRequest::SharedCtor() { - _cached_size_ = 0; - agent_id_ = NULL; - club_id_ = GOOGLE_ULONGLONG(0); - stream_id_ = GOOGLE_ULONGLONG(0); - options_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -UpdateStreamStateRequest::~UpdateStreamStateRequest() { - // @@protoc_insertion_point(destructor:bgs.protocol.club.v1.UpdateStreamStateRequest) - SharedDtor(); -} - -void UpdateStreamStateRequest::SharedDtor() { - if (this != default_instance_) { - delete agent_id_; - delete options_; - } -} - -void UpdateStreamStateRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* UpdateStreamStateRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return UpdateStreamStateRequest_descriptor_; -} - -const UpdateStreamStateRequest& UpdateStreamStateRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_club_5frequest_2eproto(); - return *default_instance_; -} - -UpdateStreamStateRequest* UpdateStreamStateRequest::default_instance_ = NULL; - -UpdateStreamStateRequest* UpdateStreamStateRequest::New() const { - return new UpdateStreamStateRequest; -} - -void UpdateStreamStateRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::StreamStateOptions::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateStreamStateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.UpdateStreamStateRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.StreamStateOptions options = 5; - case 5: { - if (tag == 42) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.UpdateStreamStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.UpdateStreamStateRequest) - return false; -#undef DO_ -} - -void UpdateStreamStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.UpdateStreamStateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional .bgs.protocol.club.v1.StreamStateOptions options = 5; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.UpdateStreamStateRequest) -} - -::google::protobuf::uint8* UpdateStreamStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.UpdateStreamStateRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } + // @@protoc_insertion_point(copy_constructor:bgs.protocol.club.v1.UpdateStreamStateRequest) +} - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } +void UpdateStreamStateRequest::SharedCtor() { + _cached_size_ = 0; + agent_id_ = NULL; + club_id_ = GOOGLE_ULONGLONG(0); + stream_id_ = GOOGLE_ULONGLONG(0); + options_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} - // optional .bgs.protocol.club.v1.StreamStateOptions options = 5; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->options(), target); - } +UpdateStreamStateRequest::~UpdateStreamStateRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.club.v1.UpdateStreamStateRequest) + SharedDtor(); +} - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); +void UpdateStreamStateRequest::SharedDtor() { + if (this != default_instance_) { + delete agent_id_; + delete options_; } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.UpdateStreamStateRequest) - return target; -} - -int UpdateStreamStateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.club.v1.StreamStateOptions options = 5; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } +} - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void UpdateStreamStateRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void UpdateStreamStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateStreamStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void UpdateStreamStateRequest::MergeFrom(const UpdateStreamStateRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::StreamStateOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* UpdateStreamStateRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UpdateStreamStateRequest_descriptor_; } -void UpdateStreamStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const UpdateStreamStateRequest& UpdateStreamStateRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_club_5frequest_2eproto(); + return *default_instance_; } -void UpdateStreamStateRequest::CopyFrom(const UpdateStreamStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +UpdateStreamStateRequest* UpdateStreamStateRequest::default_instance_ = NULL; -bool UpdateStreamStateRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; +UpdateStreamStateRequest* UpdateStreamStateRequest::New() const { + return new UpdateStreamStateRequest; } void UpdateStreamStateRequest::Swap(UpdateStreamStateRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateStreamStateRequest::GetMetadata() const { @@ -20755,286 +7328,9 @@ SetStreamFocusRequest* SetStreamFocusRequest::New() const { return new SetStreamFocusRequest; } -void SetStreamFocusRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, focus_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SetStreamFocusRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SetStreamFocusRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_focus; - break; - } - - // optional bool focus = 4; - case 4: { - if (tag == 32) { - parse_focus: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &focus_))); - set_has_focus(); - } 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.club.v1.SetStreamFocusRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SetStreamFocusRequest) - return false; -#undef DO_ -} - -void SetStreamFocusRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SetStreamFocusRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional bool focus = 4; - if (has_focus()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->focus(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SetStreamFocusRequest) -} - -::google::protobuf::uint8* SetStreamFocusRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SetStreamFocusRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional bool focus = 4; - if (has_focus()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->focus(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SetStreamFocusRequest) - return target; -} - -int SetStreamFocusRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional bool focus = 4; - if (has_focus()) { - 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 SetStreamFocusRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SetStreamFocusRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SetStreamFocusRequest::MergeFrom(const SetStreamFocusRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_focus()) { - set_focus(from.focus()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SetStreamFocusRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SetStreamFocusRequest::CopyFrom(const SetStreamFocusRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SetStreamFocusRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SetStreamFocusRequest::Swap(SetStreamFocusRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(focus_, other->focus_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SetStreamFocusRequest::GetMetadata() const { @@ -21114,295 +7410,9 @@ CreateMessageRequest* CreateMessageRequest::New() const { return new CreateMessageRequest; } -void CreateMessageRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::CreateMessageOptions::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateMessageRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateMessageRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.CreateMessageOptions options = 4; - case 4: { - if (tag == 34) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.CreateMessageRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateMessageRequest) - return false; -#undef DO_ -} - -void CreateMessageRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateMessageRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional .bgs.protocol.club.v1.CreateMessageOptions options = 4; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateMessageRequest) -} - -::google::protobuf::uint8* CreateMessageRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateMessageRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional .bgs.protocol.club.v1.CreateMessageOptions options = 4; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateMessageRequest) - return target; -} - -int CreateMessageRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.club.v1.CreateMessageOptions options = 4; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 CreateMessageRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateMessageRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateMessageRequest::MergeFrom(const CreateMessageRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::CreateMessageOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateMessageRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateMessageRequest::CopyFrom(const CreateMessageRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateMessageRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void CreateMessageRequest::Swap(CreateMessageRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateMessageRequest::GetMetadata() const { @@ -21474,163 +7484,9 @@ CreateMessageResponse* CreateMessageResponse::New() const { return new CreateMessageResponse; } -void CreateMessageResponse::Clear() { - if (has_message()) { - if (message_ != NULL) message_->::bgs::protocol::club::v1::StreamMessage::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateMessageResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateMessageResponse) - 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.club.v1.StreamMessage message = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } 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.club.v1.CreateMessageResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateMessageResponse) - return false; -#undef DO_ -} - -void CreateMessageResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateMessageResponse) - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateMessageResponse) -} - -::google::protobuf::uint8* CreateMessageResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateMessageResponse) - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateMessageResponse) - return target; -} - -int CreateMessageResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - } - - } - 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 CreateMessageResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateMessageResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateMessageResponse::MergeFrom(const CreateMessageResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_message()) { - mutable_message()->::bgs::protocol::club::v1::StreamMessage::MergeFrom(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateMessageResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateMessageResponse::CopyFrom(const CreateMessageResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateMessageResponse::IsInitialized() const { - if (has_message()) { - if (!this->message().IsInitialized()) return false; - } - return true; -} - void CreateMessageResponse::Swap(CreateMessageResponse* other) { if (other != this) { - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateMessageResponse::GetMetadata() const { @@ -21710,292 +7566,9 @@ DestroyMessageRequest* DestroyMessageRequest::New() const { return new DestroyMessageRequest; } -void DestroyMessageRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_message_id()) { - if (message_id_ != NULL) message_id_->::bgs::protocol::MessageId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DestroyMessageRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.DestroyMessageRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_message_id; - break; - } - - // optional .bgs.protocol.MessageId message_id = 4; - case 4: { - if (tag == 34) { - parse_message_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message_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.club.v1.DestroyMessageRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.DestroyMessageRequest) - return false; -#undef DO_ -} - -void DestroyMessageRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.DestroyMessageRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->message_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.DestroyMessageRequest) -} - -::google::protobuf::uint8* DestroyMessageRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.DestroyMessageRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->message_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.DestroyMessageRequest) - return target; -} - -int DestroyMessageRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message_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 DestroyMessageRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DestroyMessageRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DestroyMessageRequest::MergeFrom(const DestroyMessageRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_message_id()) { - mutable_message_id()->::bgs::protocol::MessageId::MergeFrom(from.message_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DestroyMessageRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DestroyMessageRequest::CopyFrom(const DestroyMessageRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DestroyMessageRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void DestroyMessageRequest::Swap(DestroyMessageRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(message_id_, other->message_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DestroyMessageRequest::GetMetadata() const { @@ -22052,178 +7625,24 @@ void DestroyMessageResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* DestroyMessageResponse::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DestroyMessageResponse_descriptor_; -} - -const DestroyMessageResponse& DestroyMessageResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_club_5frequest_2eproto(); - return *default_instance_; -} - -DestroyMessageResponse* DestroyMessageResponse::default_instance_ = NULL; - -DestroyMessageResponse* DestroyMessageResponse::New() const { - return new DestroyMessageResponse; -} - -void DestroyMessageResponse::Clear() { - if (has_message()) { - if (message_ != NULL) message_->::bgs::protocol::club::v1::StreamMessage::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DestroyMessageResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.DestroyMessageResponse) - 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.club.v1.StreamMessage message = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } 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.club.v1.DestroyMessageResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.DestroyMessageResponse) - return false; -#undef DO_ -} - -void DestroyMessageResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.DestroyMessageResponse) - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.DestroyMessageResponse) -} - -::google::protobuf::uint8* DestroyMessageResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.DestroyMessageResponse) - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.DestroyMessageResponse) - return target; -} - -int DestroyMessageResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - } - - } - 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 DestroyMessageResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DestroyMessageResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DestroyMessageResponse::MergeFrom(const DestroyMessageResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_message()) { - mutable_message()->::bgs::protocol::club::v1::StreamMessage::MergeFrom(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); + protobuf_AssignDescriptorsOnce(); + return DestroyMessageResponse_descriptor_; } -void DestroyMessageResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const DestroyMessageResponse& DestroyMessageResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_club_5frequest_2eproto(); + return *default_instance_; } -void DestroyMessageResponse::CopyFrom(const DestroyMessageResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +DestroyMessageResponse* DestroyMessageResponse::default_instance_ = NULL; -bool DestroyMessageResponse::IsInitialized() const { - if (has_message()) { - if (!this->message().IsInitialized()) return false; - } - return true; +DestroyMessageResponse* DestroyMessageResponse::New() const { + return new DestroyMessageResponse; } void DestroyMessageResponse::Swap(DestroyMessageResponse* other) { if (other != this) { - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DestroyMessageResponse::GetMetadata() const { @@ -22307,335 +7726,9 @@ EditMessageRequest* EditMessageRequest::New() const { return new EditMessageRequest; } -void EditMessageRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_message_id()) { - if (message_id_ != NULL) message_id_->::bgs::protocol::MessageId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::club::v1::CreateMessageOptions::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EditMessageRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.EditMessageRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_message_id; - break; - } - - // optional .bgs.protocol.MessageId message_id = 4; - case 4: { - if (tag == 34) { - parse_message_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_options; - break; - } - - // optional .bgs.protocol.club.v1.CreateMessageOptions options = 5; - case 5: { - if (tag == 42) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.EditMessageRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.EditMessageRequest) - return false; -#undef DO_ -} - -void EditMessageRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.EditMessageRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->message_id(), output); - } - - // optional .bgs.protocol.club.v1.CreateMessageOptions options = 5; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.EditMessageRequest) -} - -::google::protobuf::uint8* EditMessageRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.EditMessageRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->message_id(), target); - } - - // optional .bgs.protocol.club.v1.CreateMessageOptions options = 5; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.EditMessageRequest) - return target; -} - -int EditMessageRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message_id()); - } - - // optional .bgs.protocol.club.v1.CreateMessageOptions options = 5; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 EditMessageRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EditMessageRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EditMessageRequest::MergeFrom(const EditMessageRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_message_id()) { - mutable_message_id()->::bgs::protocol::MessageId::MergeFrom(from.message_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::club::v1::CreateMessageOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EditMessageRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EditMessageRequest::CopyFrom(const EditMessageRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EditMessageRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_options()) { - if (!this->options().IsInitialized()) return false; - } - return true; -} - void EditMessageRequest::Swap(EditMessageRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(message_id_, other->message_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EditMessageRequest::GetMetadata() const { @@ -22707,163 +7800,9 @@ EditMessageResponse* EditMessageResponse::New() const { return new EditMessageResponse; } -void EditMessageResponse::Clear() { - if (has_message()) { - if (message_ != NULL) message_->::bgs::protocol::club::v1::StreamMessage::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EditMessageResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.EditMessageResponse) - 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.club.v1.StreamMessage message = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } 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.club.v1.EditMessageResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.EditMessageResponse) - return false; -#undef DO_ -} - -void EditMessageResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.EditMessageResponse) - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.EditMessageResponse) -} - -::google::protobuf::uint8* EditMessageResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.EditMessageResponse) - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.EditMessageResponse) - return target; -} - -int EditMessageResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - } - - } - 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 EditMessageResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EditMessageResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EditMessageResponse::MergeFrom(const EditMessageResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_message()) { - mutable_message()->::bgs::protocol::club::v1::StreamMessage::MergeFrom(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EditMessageResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EditMessageResponse::CopyFrom(const EditMessageResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EditMessageResponse::IsInitialized() const { - if (has_message()) { - if (!this->message().IsInitialized()) return false; - } - return true; -} - void EditMessageResponse::Swap(EditMessageResponse* other) { if (other != this) { - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EditMessageResponse::GetMetadata() const { @@ -22939,252 +7878,9 @@ SetMessagePinnedRequest* SetMessagePinnedRequest::New() const { return new SetMessagePinnedRequest; } -void SetMessagePinnedRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SetMessagePinnedRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SetMessagePinnedRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_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.club.v1.SetMessagePinnedRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SetMessagePinnedRequest) - return false; -#undef DO_ -} - -void SetMessagePinnedRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SetMessagePinnedRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SetMessagePinnedRequest) -} - -::google::protobuf::uint8* SetMessagePinnedRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SetMessagePinnedRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SetMessagePinnedRequest) - return target; -} - -int SetMessagePinnedRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_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 SetMessagePinnedRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SetMessagePinnedRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SetMessagePinnedRequest::MergeFrom(const SetMessagePinnedRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SetMessagePinnedRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SetMessagePinnedRequest::CopyFrom(const SetMessagePinnedRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SetMessagePinnedRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SetMessagePinnedRequest::Swap(SetMessagePinnedRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SetMessagePinnedRequest::GetMetadata() const { @@ -23262,294 +7958,9 @@ SetTypingIndicatorRequest* SetTypingIndicatorRequest::New() const { return new SetTypingIndicatorRequest; } -void SetTypingIndicatorRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, indicator_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SetTypingIndicatorRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.SetTypingIndicatorRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_indicator; - break; - } - - // optional .bgs.protocol.TypingIndicator indicator = 4; - case 4: { - if (tag == 32) { - parse_indicator: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::TypingIndicator_IsValid(value)) { - set_indicator(static_cast< ::bgs::protocol::TypingIndicator >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, 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.club.v1.SetTypingIndicatorRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.SetTypingIndicatorRequest) - return false; -#undef DO_ -} - -void SetTypingIndicatorRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.SetTypingIndicatorRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional .bgs.protocol.TypingIndicator indicator = 4; - if (has_indicator()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->indicator(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.SetTypingIndicatorRequest) -} - -::google::protobuf::uint8* SetTypingIndicatorRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.SetTypingIndicatorRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional .bgs.protocol.TypingIndicator indicator = 4; - if (has_indicator()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->indicator(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.SetTypingIndicatorRequest) - return target; -} - -int SetTypingIndicatorRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.TypingIndicator indicator = 4; - if (has_indicator()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->indicator()); - } - - } - 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 SetTypingIndicatorRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SetTypingIndicatorRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SetTypingIndicatorRequest::MergeFrom(const SetTypingIndicatorRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_indicator()) { - set_indicator(from.indicator()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SetTypingIndicatorRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SetTypingIndicatorRequest::CopyFrom(const SetTypingIndicatorRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SetTypingIndicatorRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SetTypingIndicatorRequest::Swap(SetTypingIndicatorRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(indicator_, other->indicator_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SetTypingIndicatorRequest::GetMetadata() const { @@ -23588,353 +7999,47 @@ AdvanceStreamViewTimeRequest::AdvanceStreamViewTimeRequest(const AdvanceStreamVi void AdvanceStreamViewTimeRequest::SharedCtor() { _cached_size_ = 0; - agent_id_ = NULL; - club_id_ = GOOGLE_ULONGLONG(0); - stream_id_deprecated_ = GOOGLE_ULONGLONG(0); - _stream_id_cached_byte_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdvanceStreamViewTimeRequest::~AdvanceStreamViewTimeRequest() { - // @@protoc_insertion_point(destructor:bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) - SharedDtor(); -} - -void AdvanceStreamViewTimeRequest::SharedDtor() { - if (this != default_instance_) { - delete agent_id_; - } -} - -void AdvanceStreamViewTimeRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AdvanceStreamViewTimeRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AdvanceStreamViewTimeRequest_descriptor_; -} - -const AdvanceStreamViewTimeRequest& AdvanceStreamViewTimeRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_club_5frequest_2eproto(); - return *default_instance_; -} - -AdvanceStreamViewTimeRequest* AdvanceStreamViewTimeRequest::default_instance_ = NULL; - -AdvanceStreamViewTimeRequest* AdvanceStreamViewTimeRequest::New() const { - return new AdvanceStreamViewTimeRequest; -} - -void AdvanceStreamViewTimeRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_deprecated_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - stream_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AdvanceStreamViewTimeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id_deprecated; - break; - } - - // optional uint64 stream_id_deprecated = 3 [deprecated = true]; - case 3: { - if (tag == 24) { - parse_stream_id_deprecated: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_deprecated_))); - set_has_stream_id_deprecated(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_stream_id; - break; - } - - // repeated uint64 stream_id = 4 [packed = true]; - case 4: { - if (tag == 34) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_stream_id()))); - } else if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 34, input, this->mutable_stream_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.club.v1.AdvanceStreamViewTimeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) - return false; -#undef DO_ -} - -void AdvanceStreamViewTimeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id_deprecated = 3 [deprecated = true]; - if (has_stream_id_deprecated()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id_deprecated(), output); - } - - // repeated uint64 stream_id = 4 [packed = true]; - if (this->stream_id_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_stream_id_cached_byte_size_); - } - for (int i = 0; i < this->stream_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag( - this->stream_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) -} - -::google::protobuf::uint8* AdvanceStreamViewTimeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id_deprecated = 3 [deprecated = true]; - if (has_stream_id_deprecated()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id_deprecated(), target); - } - - // repeated uint64 stream_id = 4 [packed = true]; - if (this->stream_id_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _stream_id_cached_byte_size_, target); - } - for (int i = 0; i < this->stream_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64NoTagToArray(this->stream_id(i), target); - } + agent_id_ = NULL; + club_id_ = GOOGLE_ULONGLONG(0); + stream_id_deprecated_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) - return target; -} - -int AdvanceStreamViewTimeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id_deprecated = 3 [deprecated = true]; - if (has_stream_id_deprecated()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id_deprecated()); - } +AdvanceStreamViewTimeRequest::~AdvanceStreamViewTimeRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) + SharedDtor(); +} +void AdvanceStreamViewTimeRequest::SharedDtor() { + if (this != default_instance_) { + delete agent_id_; } - // repeated uint64 stream_id = 4 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->stream_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->stream_id(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _stream_id_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()); - } +void AdvanceStreamViewTimeRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AdvanceStreamViewTimeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AdvanceStreamViewTimeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void AdvanceStreamViewTimeRequest::MergeFrom(const AdvanceStreamViewTimeRequest& from) { - GOOGLE_CHECK_NE(&from, this); - stream_id_.MergeFrom(from.stream_id_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id_deprecated()) { - set_stream_id_deprecated(from.stream_id_deprecated()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* AdvanceStreamViewTimeRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AdvanceStreamViewTimeRequest_descriptor_; } -void AdvanceStreamViewTimeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const AdvanceStreamViewTimeRequest& AdvanceStreamViewTimeRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_club_5frequest_2eproto(); + return *default_instance_; } -void AdvanceStreamViewTimeRequest::CopyFrom(const AdvanceStreamViewTimeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +AdvanceStreamViewTimeRequest* AdvanceStreamViewTimeRequest::default_instance_ = NULL; -bool AdvanceStreamViewTimeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; +AdvanceStreamViewTimeRequest* AdvanceStreamViewTimeRequest::New() const { + return new AdvanceStreamViewTimeRequest; } void AdvanceStreamViewTimeRequest::Swap(AdvanceStreamViewTimeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_deprecated_, other->stream_id_deprecated_); - stream_id_.Swap(&other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AdvanceStreamViewTimeRequest::GetMetadata() const { @@ -24010,252 +8115,9 @@ AdvanceStreamMentionViewTimeRequest* AdvanceStreamMentionViewTimeRequest::New() return new AdvanceStreamMentionViewTimeRequest; } -void AdvanceStreamMentionViewTimeRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AdvanceStreamMentionViewTimeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AdvanceStreamMentionViewTimeRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_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.club.v1.AdvanceStreamMentionViewTimeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AdvanceStreamMentionViewTimeRequest) - return false; -#undef DO_ -} - -void AdvanceStreamMentionViewTimeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AdvanceStreamMentionViewTimeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AdvanceStreamMentionViewTimeRequest) -} - -::google::protobuf::uint8* AdvanceStreamMentionViewTimeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AdvanceStreamMentionViewTimeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AdvanceStreamMentionViewTimeRequest) - return target; -} - -int AdvanceStreamMentionViewTimeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_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 AdvanceStreamMentionViewTimeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AdvanceStreamMentionViewTimeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AdvanceStreamMentionViewTimeRequest::MergeFrom(const AdvanceStreamMentionViewTimeRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AdvanceStreamMentionViewTimeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AdvanceStreamMentionViewTimeRequest::CopyFrom(const AdvanceStreamMentionViewTimeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AdvanceStreamMentionViewTimeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void AdvanceStreamMentionViewTimeRequest::Swap(AdvanceStreamMentionViewTimeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AdvanceStreamMentionViewTimeRequest::GetMetadata() const { @@ -24329,202 +8191,9 @@ AdvanceActivityViewTimeRequest* AdvanceActivityViewTimeRequest::New() const { return new AdvanceActivityViewTimeRequest; } -void AdvanceActivityViewTimeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AdvanceActivityViewTimeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.AdvanceActivityViewTimeRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_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.club.v1.AdvanceActivityViewTimeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.AdvanceActivityViewTimeRequest) - return false; -#undef DO_ -} - -void AdvanceActivityViewTimeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.AdvanceActivityViewTimeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.AdvanceActivityViewTimeRequest) -} - -::google::protobuf::uint8* AdvanceActivityViewTimeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.AdvanceActivityViewTimeRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.AdvanceActivityViewTimeRequest) - return target; -} - -int AdvanceActivityViewTimeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_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 AdvanceActivityViewTimeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AdvanceActivityViewTimeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AdvanceActivityViewTimeRequest::MergeFrom(const AdvanceActivityViewTimeRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AdvanceActivityViewTimeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AdvanceActivityViewTimeRequest::CopyFrom(const AdvanceActivityViewTimeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AdvanceActivityViewTimeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void AdvanceActivityViewTimeRequest::Swap(AdvanceActivityViewTimeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AdvanceActivityViewTimeRequest::GetMetadata() const { @@ -24604,292 +8273,9 @@ GetStreamHistoryRequest* GetStreamHistoryRequest::New() const { return new GetStreamHistoryRequest; } -void GetStreamHistoryRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::GetEventOptions::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamHistoryRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamHistoryRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_options; - break; - } - - // optional .bgs.protocol.GetEventOptions options = 4; - case 4: { - if (tag == 34) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.GetStreamHistoryRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamHistoryRequest) - return false; -#undef DO_ -} - -void GetStreamHistoryRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamHistoryRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional .bgs.protocol.GetEventOptions options = 4; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamHistoryRequest) -} - -::google::protobuf::uint8* GetStreamHistoryRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamHistoryRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional .bgs.protocol.GetEventOptions options = 4; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamHistoryRequest) - return target; -} - -int GetStreamHistoryRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.GetEventOptions options = 4; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 GetStreamHistoryRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamHistoryRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamHistoryRequest::MergeFrom(const GetStreamHistoryRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::GetEventOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamHistoryRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamHistoryRequest::CopyFrom(const GetStreamHistoryRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamHistoryRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetStreamHistoryRequest::Swap(GetStreamHistoryRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamHistoryRequest::GetMetadata() const { @@ -24960,197 +8346,9 @@ GetStreamHistoryResponse* GetStreamHistoryResponse::New() const { return new GetStreamHistoryResponse; } -void GetStreamHistoryResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - message_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamHistoryResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamHistoryResponse) - 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.club.v1.StreamMessage message = 1; - case 1: { - if (tag == 10) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_message())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_message; - if (input->ExpectTag(16)) goto parse_continuation; - break; - } - - // optional uint64 continuation = 2; - case 2: { - if (tag == 16) { - parse_continuation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetStreamHistoryResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamHistoryResponse) - return false; -#undef DO_ -} - -void GetStreamHistoryResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamHistoryResponse) - // repeated .bgs.protocol.club.v1.StreamMessage message = 1; - for (int i = 0; i < this->message_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->message(i), output); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamHistoryResponse) -} - -::google::protobuf::uint8* GetStreamHistoryResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamHistoryResponse) - // repeated .bgs.protocol.club.v1.StreamMessage message = 1; - for (int i = 0; i < this->message_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->message(i), target); - } - - // optional uint64 continuation = 2; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamHistoryResponse) - return target; -} - -int GetStreamHistoryResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint64 continuation = 2; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - // repeated .bgs.protocol.club.v1.StreamMessage message = 1; - total_size += 1 * this->message_size(); - for (int i = 0; i < this->message_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message(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 GetStreamHistoryResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamHistoryResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamHistoryResponse::MergeFrom(const GetStreamHistoryResponse& from) { - GOOGLE_CHECK_NE(&from, this); - message_.MergeFrom(from.message_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamHistoryResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamHistoryResponse::CopyFrom(const GetStreamHistoryResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamHistoryResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->message())) return false; - return true; -} - void GetStreamHistoryResponse::Swap(GetStreamHistoryResponse* other) { if (other != this) { - message_.Swap(&other->message_); - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamHistoryResponse::GetMetadata() const { @@ -25214,308 +8412,25 @@ void GetStreamMessageRequest::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* GetStreamMessageRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GetStreamMessageRequest_descriptor_; -} - -const GetStreamMessageRequest& GetStreamMessageRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_club_5frequest_2eproto(); - return *default_instance_; -} - -GetStreamMessageRequest* GetStreamMessageRequest::default_instance_ = NULL; - -GetStreamMessageRequest* GetStreamMessageRequest::New() const { - return new GetStreamMessageRequest; -} - -void GetStreamMessageRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_message_id()) { - if (message_id_ != NULL) message_id_->::bgs::protocol::MessageId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamMessageRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamMessageRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_message_id; - break; - } - - // optional .bgs.protocol.MessageId message_id = 4; - case 4: { - if (tag == 34) { - parse_message_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message_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.club.v1.GetStreamMessageRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamMessageRequest) - return false; -#undef DO_ -} - -void GetStreamMessageRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamMessageRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->message_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamMessageRequest) -} - -::google::protobuf::uint8* GetStreamMessageRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamMessageRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->message_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamMessageRequest) - return target; -} - -int GetStreamMessageRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.MessageId message_id = 4; - if (has_message_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message_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 GetStreamMessageRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamMessageRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamMessageRequest::MergeFrom(const GetStreamMessageRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_message_id()) { - mutable_message_id()->::bgs::protocol::MessageId::MergeFrom(from.message_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamMessageRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const ::google::protobuf::Descriptor* GetStreamMessageRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetStreamMessageRequest_descriptor_; } -void GetStreamMessageRequest::CopyFrom(const GetStreamMessageRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const GetStreamMessageRequest& GetStreamMessageRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_club_5frequest_2eproto(); + return *default_instance_; } -bool GetStreamMessageRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; +GetStreamMessageRequest* GetStreamMessageRequest::default_instance_ = NULL; + +GetStreamMessageRequest* GetStreamMessageRequest::New() const { + return new GetStreamMessageRequest; } void GetStreamMessageRequest::Swap(GetStreamMessageRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(message_id_, other->message_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamMessageRequest::GetMetadata() const { @@ -25587,163 +8502,9 @@ GetStreamMessageResponse* GetStreamMessageResponse::New() const { return new GetStreamMessageResponse; } -void GetStreamMessageResponse::Clear() { - if (has_message()) { - if (message_ != NULL) message_->::bgs::protocol::club::v1::StreamMessage::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamMessageResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamMessageResponse) - 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.club.v1.StreamMessage message = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } 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.club.v1.GetStreamMessageResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamMessageResponse) - return false; -#undef DO_ -} - -void GetStreamMessageResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamMessageResponse) - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamMessageResponse) -} - -::google::protobuf::uint8* GetStreamMessageResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamMessageResponse) - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamMessageResponse) - return target; -} - -int GetStreamMessageResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.StreamMessage message = 1; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - } - - } - 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 GetStreamMessageResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamMessageResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamMessageResponse::MergeFrom(const GetStreamMessageResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_message()) { - mutable_message()->::bgs::protocol::club::v1::StreamMessage::MergeFrom(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamMessageResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamMessageResponse::CopyFrom(const GetStreamMessageResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamMessageResponse::IsInitialized() const { - if (has_message()) { - if (!this->message().IsInitialized()) return false; - } - return true; -} - void GetStreamMessageResponse::Swap(GetStreamMessageResponse* other) { if (other != this) { - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamMessageResponse::GetMetadata() const { @@ -25821,242 +8582,9 @@ GetClubActivityRequest* GetClubActivityRequest::New() const { return new GetClubActivityRequest; } -void GetClubActivityRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - club_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::GetEventOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetClubActivityRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetClubActivityRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_options; - break; - } - - // optional .bgs.protocol.GetEventOptions options = 3; - case 3: { - if (tag == 26) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.club.v1.GetClubActivityRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetClubActivityRequest) - return false; -#undef DO_ -} - -void GetClubActivityRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetClubActivityRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional .bgs.protocol.GetEventOptions options = 3; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetClubActivityRequest) -} - -::google::protobuf::uint8* GetClubActivityRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetClubActivityRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional .bgs.protocol.GetEventOptions options = 3; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->options(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetClubActivityRequest) - return target; -} - -int GetClubActivityRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional .bgs.protocol.GetEventOptions options = 3; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 GetClubActivityRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetClubActivityRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetClubActivityRequest::MergeFrom(const GetClubActivityRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::GetEventOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetClubActivityRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetClubActivityRequest::CopyFrom(const GetClubActivityRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetClubActivityRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetClubActivityRequest::Swap(GetClubActivityRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetClubActivityRequest::GetMetadata() const { @@ -26126,157 +8654,9 @@ GetClubActivityResponse* GetClubActivityResponse::New() const { return new GetClubActivityResponse; } -void GetClubActivityResponse::Clear() { - continuation_ = GOOGLE_ULONGLONG(0); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetClubActivityResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetClubActivityResponse) - 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 uint64 continuation = 2; - case 2: { - if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &continuation_))); - set_has_continuation(); - } 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.club.v1.GetClubActivityResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetClubActivityResponse) - return false; -#undef DO_ -} - -void GetClubActivityResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetClubActivityResponse) - // optional uint64 continuation = 2; - if (has_continuation()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->continuation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetClubActivityResponse) -} - -::google::protobuf::uint8* GetClubActivityResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetClubActivityResponse) - // optional uint64 continuation = 2; - if (has_continuation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->continuation(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetClubActivityResponse) - return target; -} - -int GetClubActivityResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 continuation = 2; - if (has_continuation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->continuation()); - } - - } - 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 GetClubActivityResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetClubActivityResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetClubActivityResponse::MergeFrom(const GetClubActivityResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_continuation()) { - set_continuation(from.continuation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetClubActivityResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetClubActivityResponse::CopyFrom(const GetClubActivityResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetClubActivityResponse::IsInitialized() const { - return true; -} - void GetClubActivityResponse::Swap(GetClubActivityResponse* other) { if (other != this) { - std::swap(continuation_, other->continuation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetClubActivityResponse::GetMetadata() const { @@ -26354,288 +8734,9 @@ GetStreamVoiceTokenRequest* GetStreamVoiceTokenRequest::New() const { return new GetStreamVoiceTokenRequest; } -void GetStreamVoiceTokenRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, version_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamVoiceTokenRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamVoiceTokenRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_version; - break; - } - - // optional uint32 version = 4; - case 4: { - if (tag == 32) { - parse_version: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &version_))); - set_has_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.club.v1.GetStreamVoiceTokenRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamVoiceTokenRequest) - return false; -#undef DO_ -} - -void GetStreamVoiceTokenRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamVoiceTokenRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional uint32 version = 4; - if (has_version()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->version(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamVoiceTokenRequest) -} - -::google::protobuf::uint8* GetStreamVoiceTokenRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamVoiceTokenRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional uint32 version = 4; - if (has_version()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->version(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamVoiceTokenRequest) - return target; -} - -int GetStreamVoiceTokenRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional uint32 version = 4; - if (has_version()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->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 GetStreamVoiceTokenRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamVoiceTokenRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamVoiceTokenRequest::MergeFrom(const GetStreamVoiceTokenRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_version()) { - set_version(from.version()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamVoiceTokenRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamVoiceTokenRequest::CopyFrom(const GetStreamVoiceTokenRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamVoiceTokenRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetStreamVoiceTokenRequest::Swap(GetStreamVoiceTokenRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(version_, other->version_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamVoiceTokenRequest::GetMetadata() const { @@ -26713,216 +8814,9 @@ GetStreamVoiceTokenResponse* GetStreamVoiceTokenResponse::New() const { return new GetStreamVoiceTokenResponse; } -void GetStreamVoiceTokenResponse::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_channel_uri()) { - if (channel_uri_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - channel_uri_->clear(); - } - } - if (has_credentials()) { - if (credentials_ != NULL) credentials_->::bgs::protocol::VoiceCredentials::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetStreamVoiceTokenResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.GetStreamVoiceTokenResponse) - 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 channel_uri = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_channel_uri())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_uri().data(), this->channel_uri().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "channel_uri"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_credentials; - break; - } - - // optional .bgs.protocol.VoiceCredentials credentials = 2; - case 2: { - if (tag == 18) { - parse_credentials: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_credentials())); - } 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.club.v1.GetStreamVoiceTokenResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.GetStreamVoiceTokenResponse) - return false; -#undef DO_ -} - -void GetStreamVoiceTokenResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.GetStreamVoiceTokenResponse) - // optional string channel_uri = 1; - if (has_channel_uri()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_uri().data(), this->channel_uri().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "channel_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->channel_uri(), output); - } - - // optional .bgs.protocol.VoiceCredentials credentials = 2; - if (has_credentials()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->credentials(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.GetStreamVoiceTokenResponse) -} - -::google::protobuf::uint8* GetStreamVoiceTokenResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.GetStreamVoiceTokenResponse) - // optional string channel_uri = 1; - if (has_channel_uri()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->channel_uri().data(), this->channel_uri().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "channel_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->channel_uri(), target); - } - - // optional .bgs.protocol.VoiceCredentials credentials = 2; - if (has_credentials()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->credentials(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.GetStreamVoiceTokenResponse) - return target; -} - -int GetStreamVoiceTokenResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string channel_uri = 1; - if (has_channel_uri()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->channel_uri()); - } - - // optional .bgs.protocol.VoiceCredentials credentials = 2; - if (has_credentials()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->credentials()); - } - - } - 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 GetStreamVoiceTokenResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetStreamVoiceTokenResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetStreamVoiceTokenResponse::MergeFrom(const GetStreamVoiceTokenResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_channel_uri()) { - set_channel_uri(from.channel_uri()); - } - if (from.has_credentials()) { - mutable_credentials()->::bgs::protocol::VoiceCredentials::MergeFrom(from.credentials()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetStreamVoiceTokenResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStreamVoiceTokenResponse::CopyFrom(const GetStreamVoiceTokenResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStreamVoiceTokenResponse::IsInitialized() const { - return true; -} - void GetStreamVoiceTokenResponse::Swap(GetStreamVoiceTokenResponse* other) { if (other != this) { - std::swap(channel_uri_, other->channel_uri_); - std::swap(credentials_, other->credentials_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetStreamVoiceTokenResponse::GetMetadata() const { @@ -27002,295 +8896,9 @@ KickFromStreamVoiceRequest* KickFromStreamVoiceRequest::New() const { return new KickFromStreamVoiceRequest; } -void KickFromStreamVoiceRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool KickFromStreamVoiceRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.KickFromStreamVoiceRequest) - 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.club.v1.MemberId 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(16)) goto parse_club_id; - break; - } - - // optional uint64 club_id = 2; - case 2: { - if (tag == 16) { - parse_club_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 3; - case 3: { - if (tag == 24) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_target_id; - break; - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 4; - case 4: { - if (tag == 34) { - 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.club.v1.KickFromStreamVoiceRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.KickFromStreamVoiceRequest) - return false; -#undef DO_ -} - -void KickFromStreamVoiceRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.KickFromStreamVoiceRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->club_id(), output); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stream_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 4; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->target_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.KickFromStreamVoiceRequest) -} - -::google::protobuf::uint8* KickFromStreamVoiceRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.KickFromStreamVoiceRequest) - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->club_id(), target); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stream_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 4; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, 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.club.v1.KickFromStreamVoiceRequest) - return target; -} - -int KickFromStreamVoiceRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint64 club_id = 2; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 3; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.club.v1.MemberId target_id = 4; - 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 KickFromStreamVoiceRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const KickFromStreamVoiceRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void KickFromStreamVoiceRequest::MergeFrom(const KickFromStreamVoiceRequest& 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::club::v1::MemberId::MergeFrom(from.agent_id()); - } - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.target_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void KickFromStreamVoiceRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void KickFromStreamVoiceRequest::CopyFrom(const KickFromStreamVoiceRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KickFromStreamVoiceRequest::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 KickFromStreamVoiceRequest::Swap(KickFromStreamVoiceRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata KickFromStreamVoiceRequest::GetMetadata() const { diff --git a/src/server/proto/Client/club_request.pb.h b/src/server/proto/Client/club_request.pb.h index 29ed9775653..785929abdaa 100644 --- a/src/server/proto/Client/club_request.pb.h +++ b/src/server/proto/Client/club_request.pb.h @@ -152,19 +152,6 @@ class TC_PROTO_API SubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeRequest& from); - void MergeFrom(const SubscribeRequest& 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(); @@ -243,19 +230,6 @@ class TC_PROTO_API UnsubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UnsubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsubscribeRequest& from); - void MergeFrom(const UnsubscribeRequest& 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(); @@ -334,19 +308,6 @@ class TC_PROTO_API CreateRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateRequest& from); - void MergeFrom(const CreateRequest& 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(); @@ -427,19 +388,6 @@ class TC_PROTO_API CreateResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateResponse& from); - void MergeFrom(const CreateResponse& 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(); @@ -506,19 +454,6 @@ class TC_PROTO_API DestroyRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- DestroyRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DestroyRequest& from); - void MergeFrom(const DestroyRequest& 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(); @@ -597,19 +532,6 @@ class TC_PROTO_API GetDescriptionRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetDescriptionRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetDescriptionRequest& from); - void MergeFrom(const GetDescriptionRequest& 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(); @@ -688,19 +610,6 @@ class TC_PROTO_API GetDescriptionResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetDescriptionResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetDescriptionResponse& from); - void MergeFrom(const GetDescriptionResponse& 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(); @@ -769,19 +678,6 @@ class TC_PROTO_API GetClubTypeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetClubTypeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetClubTypeRequest& from); - void MergeFrom(const GetClubTypeRequest& 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(); @@ -862,19 +758,6 @@ class TC_PROTO_API GetClubTypeResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetClubTypeResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetClubTypeResponse& from); - void MergeFrom(const GetClubTypeResponse& 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(); @@ -967,19 +850,6 @@ class TC_PROTO_API UpdateClubStateRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UpdateClubStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateClubStateRequest& from); - void MergeFrom(const UpdateClubStateRequest& 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(); @@ -1070,19 +940,6 @@ class TC_PROTO_API UpdateClubSettingsRequest : public ::google::protobuf::Messag // implements Message ---------------------------------------------- UpdateClubSettingsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateClubSettingsRequest& from); - void MergeFrom(const UpdateClubSettingsRequest& 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(); @@ -1173,19 +1030,6 @@ class TC_PROTO_API AddMemberRequest : public ::google::protobuf::Message { // 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(); @@ -1276,19 +1120,6 @@ class TC_PROTO_API JoinRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- JoinRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const JoinRequest& from); - void MergeFrom(const JoinRequest& 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(); @@ -1379,19 +1210,6 @@ class TC_PROTO_API LeaveRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- LeaveRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const LeaveRequest& from); - void MergeFrom(const LeaveRequest& 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(); @@ -1470,19 +1288,6 @@ class TC_PROTO_API KickRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- KickRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const KickRequest& from); - void MergeFrom(const KickRequest& 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(); @@ -1573,19 +1378,6 @@ class TC_PROTO_API GetMemberRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetMemberRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetMemberRequest& from); - void MergeFrom(const GetMemberRequest& 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(); @@ -1676,19 +1468,6 @@ class TC_PROTO_API GetMemberResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetMemberResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetMemberResponse& from); - void MergeFrom(const GetMemberResponse& 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(); @@ -1757,19 +1536,6 @@ class TC_PROTO_API GetMembersRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetMembersRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetMembersRequest& from); - void MergeFrom(const GetMembersRequest& 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(); @@ -1858,19 +1624,6 @@ class TC_PROTO_API GetMembersResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetMembersResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetMembersResponse& from); - void MergeFrom(const GetMembersResponse& 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(); @@ -1950,19 +1703,6 @@ class TC_PROTO_API UpdateMemberStateRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- UpdateMemberStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateMemberStateRequest& from); - void MergeFrom(const UpdateMemberStateRequest& 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(); @@ -2065,19 +1805,6 @@ class TC_PROTO_API UpdateSubscriberStateRequest : public ::google::protobuf::Mes // implements Message ---------------------------------------------- UpdateSubscriberStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateSubscriberStateRequest& from); - void MergeFrom(const UpdateSubscriberStateRequest& 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(); @@ -2168,19 +1895,6 @@ class TC_PROTO_API AssignRoleRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AssignRoleRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AssignRoleRequest& from); - void MergeFrom(const AssignRoleRequest& 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(); @@ -2271,19 +1985,6 @@ class TC_PROTO_API UnassignRoleRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UnassignRoleRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnassignRoleRequest& from); - void MergeFrom(const UnassignRoleRequest& 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(); @@ -2374,19 +2075,6 @@ class TC_PROTO_API SendInvitationRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SendInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SendInvitationRequest& from); - void MergeFrom(const SendInvitationRequest& 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(); @@ -2477,19 +2165,6 @@ class TC_PROTO_API AcceptInvitationRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- AcceptInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AcceptInvitationRequest& from); - void MergeFrom(const AcceptInvitationRequest& 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(); @@ -2578,19 +2253,6 @@ class TC_PROTO_API DeclineInvitationRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- DeclineInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DeclineInvitationRequest& from); - void MergeFrom(const DeclineInvitationRequest& 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(); @@ -2679,19 +2341,6 @@ class TC_PROTO_API RevokeInvitationRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- RevokeInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RevokeInvitationRequest& from); - void MergeFrom(const RevokeInvitationRequest& 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(); @@ -2780,19 +2429,6 @@ class TC_PROTO_API GetInvitationRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetInvitationRequest& from); - void MergeFrom(const GetInvitationRequest& 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(); @@ -2881,19 +2517,6 @@ class TC_PROTO_API GetInvitationResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetInvitationResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetInvitationResponse& from); - void MergeFrom(const GetInvitationResponse& 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(); @@ -2962,19 +2585,6 @@ class TC_PROTO_API GetInvitationsRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetInvitationsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetInvitationsRequest& from); - void MergeFrom(const GetInvitationsRequest& 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(); @@ -3063,19 +2673,6 @@ class TC_PROTO_API GetInvitationsResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetInvitationsResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetInvitationsResponse& from); - void MergeFrom(const GetInvitationsResponse& 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(); @@ -3155,19 +2752,6 @@ class TC_PROTO_API SendSuggestionRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SendSuggestionRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SendSuggestionRequest& from); - void MergeFrom(const SendSuggestionRequest& 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(); @@ -3258,19 +2842,6 @@ class TC_PROTO_API AcceptSuggestionRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- AcceptSuggestionRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AcceptSuggestionRequest& from); - void MergeFrom(const AcceptSuggestionRequest& 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(); @@ -3359,19 +2930,6 @@ class TC_PROTO_API DeclineSuggestionRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- DeclineSuggestionRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DeclineSuggestionRequest& from); - void MergeFrom(const DeclineSuggestionRequest& 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(); @@ -3460,19 +3018,6 @@ class TC_PROTO_API GetSuggestionRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetSuggestionRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetSuggestionRequest& from); - void MergeFrom(const GetSuggestionRequest& 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(); @@ -3561,19 +3106,6 @@ class TC_PROTO_API GetSuggestionResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetSuggestionResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetSuggestionResponse& from); - void MergeFrom(const GetSuggestionResponse& 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(); @@ -3642,19 +3174,6 @@ class TC_PROTO_API GetSuggestionsRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetSuggestionsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetSuggestionsRequest& from); - void MergeFrom(const GetSuggestionsRequest& 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(); @@ -3743,19 +3262,6 @@ class TC_PROTO_API GetSuggestionsResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetSuggestionsResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetSuggestionsResponse& from); - void MergeFrom(const GetSuggestionsResponse& 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(); @@ -3835,19 +3341,6 @@ class TC_PROTO_API CreateTicketRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateTicketRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateTicketRequest& from); - void MergeFrom(const CreateTicketRequest& 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(); @@ -3938,19 +3431,6 @@ class TC_PROTO_API CreateTicketResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateTicketResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateTicketResponse& from); - void MergeFrom(const CreateTicketResponse& 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(); @@ -4019,19 +3499,6 @@ class TC_PROTO_API DestroyTicketRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- DestroyTicketRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DestroyTicketRequest& from); - void MergeFrom(const DestroyTicketRequest& 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(); @@ -4125,19 +3592,6 @@ class TC_PROTO_API RedeemTicketRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RedeemTicketRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RedeemTicketRequest& from); - void MergeFrom(const RedeemTicketRequest& 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(); @@ -4221,19 +3675,6 @@ class TC_PROTO_API GetTicketRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetTicketRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetTicketRequest& from); - void MergeFrom(const GetTicketRequest& 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(); @@ -4317,19 +3758,6 @@ class TC_PROTO_API GetTicketResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetTicketResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetTicketResponse& from); - void MergeFrom(const GetTicketResponse& 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(); @@ -4398,19 +3826,6 @@ class TC_PROTO_API GetTicketsRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetTicketsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetTicketsRequest& from); - void MergeFrom(const GetTicketsRequest& 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(); @@ -4499,19 +3914,6 @@ class TC_PROTO_API GetTicketsResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetTicketsResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetTicketsResponse& from); - void MergeFrom(const GetTicketsResponse& 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(); @@ -4591,19 +3993,6 @@ class TC_PROTO_API AddBanRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- AddBanRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AddBanRequest& from); - void MergeFrom(const AddBanRequest& 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(); @@ -4694,19 +4083,6 @@ class TC_PROTO_API RemoveBanRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RemoveBanRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RemoveBanRequest& from); - void MergeFrom(const RemoveBanRequest& 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(); @@ -4797,19 +4173,6 @@ class TC_PROTO_API GetBanRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetBanRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetBanRequest& from); - void MergeFrom(const GetBanRequest& 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(); @@ -4900,19 +4263,6 @@ class TC_PROTO_API GetBanResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetBanResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetBanResponse& from); - void MergeFrom(const GetBanResponse& 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(); @@ -4981,19 +4331,6 @@ class TC_PROTO_API GetBansRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetBansRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetBansRequest& from); - void MergeFrom(const GetBansRequest& 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(); @@ -5082,19 +4419,6 @@ class TC_PROTO_API GetBansResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetBansResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetBansResponse& from); - void MergeFrom(const GetBansResponse& 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(); @@ -5174,19 +4498,6 @@ class TC_PROTO_API SubscribeStreamRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeStreamRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeStreamRequest& from); - void MergeFrom(const SubscribeStreamRequest& 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(); @@ -5278,19 +4589,6 @@ class TC_PROTO_API UnsubscribeStreamRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- UnsubscribeStreamRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsubscribeStreamRequest& from); - void MergeFrom(const UnsubscribeStreamRequest& 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(); @@ -5382,19 +4680,6 @@ class TC_PROTO_API CreateStreamRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateStreamRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateStreamRequest& from); - void MergeFrom(const CreateStreamRequest& 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(); @@ -5485,19 +4770,6 @@ class TC_PROTO_API CreateStreamResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateStreamResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateStreamResponse& from); - void MergeFrom(const CreateStreamResponse& 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(); @@ -5574,19 +4846,6 @@ class TC_PROTO_API DestroyStreamRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- DestroyStreamRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DestroyStreamRequest& from); - void MergeFrom(const DestroyStreamRequest& 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(); @@ -5675,19 +4934,6 @@ class TC_PROTO_API GetStreamRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetStreamRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamRequest& from); - void MergeFrom(const GetStreamRequest& 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(); @@ -5776,19 +5022,6 @@ class TC_PROTO_API GetStreamResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetStreamResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamResponse& from); - void MergeFrom(const GetStreamResponse& 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(); @@ -5857,19 +5090,6 @@ class TC_PROTO_API GetStreamsRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetStreamsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamsRequest& from); - void MergeFrom(const GetStreamsRequest& 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(); @@ -5958,19 +5178,6 @@ class TC_PROTO_API GetStreamsResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetStreamsResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamsResponse& from); - void MergeFrom(const GetStreamsResponse& 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(); @@ -6063,19 +5270,6 @@ class TC_PROTO_API UpdateStreamStateRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- UpdateStreamStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateStreamStateRequest& from); - void MergeFrom(const UpdateStreamStateRequest& 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(); @@ -6176,19 +5370,6 @@ class TC_PROTO_API SetStreamFocusRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SetStreamFocusRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SetStreamFocusRequest& from); - void MergeFrom(const SetStreamFocusRequest& 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(); @@ -6287,19 +5468,6 @@ class TC_PROTO_API CreateMessageRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateMessageRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateMessageRequest& from); - void MergeFrom(const CreateMessageRequest& 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(); @@ -6400,19 +5568,6 @@ class TC_PROTO_API CreateMessageResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateMessageResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateMessageResponse& from); - void MergeFrom(const CreateMessageResponse& 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(); @@ -6481,19 +5636,6 @@ class TC_PROTO_API DestroyMessageRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- DestroyMessageRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DestroyMessageRequest& from); - void MergeFrom(const DestroyMessageRequest& 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(); @@ -6594,19 +5736,6 @@ class TC_PROTO_API DestroyMessageResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- DestroyMessageResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DestroyMessageResponse& from); - void MergeFrom(const DestroyMessageResponse& 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(); @@ -6675,19 +5804,6 @@ class TC_PROTO_API EditMessageRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EditMessageRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EditMessageRequest& from); - void MergeFrom(const EditMessageRequest& 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(); @@ -6800,19 +5916,6 @@ class TC_PROTO_API EditMessageResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EditMessageResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EditMessageResponse& from); - void MergeFrom(const EditMessageResponse& 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(); @@ -6881,19 +5984,6 @@ class TC_PROTO_API SetMessagePinnedRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- SetMessagePinnedRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SetMessagePinnedRequest& from); - void MergeFrom(const SetMessagePinnedRequest& 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(); @@ -6982,19 +6072,6 @@ class TC_PROTO_API SetTypingIndicatorRequest : public ::google::protobuf::Messag // implements Message ---------------------------------------------- SetTypingIndicatorRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SetTypingIndicatorRequest& from); - void MergeFrom(const SetTypingIndicatorRequest& 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(); @@ -7093,19 +6170,6 @@ class TC_PROTO_API AdvanceStreamViewTimeRequest : public ::google::protobuf::Mes // implements Message ---------------------------------------------- AdvanceStreamViewTimeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AdvanceStreamViewTimeRequest& from); - void MergeFrom(const AdvanceStreamViewTimeRequest& 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(); @@ -7170,7 +6234,6 @@ class TC_PROTO_API AdvanceStreamViewTimeRequest : public ::google::protobuf::Mes ::google::protobuf::uint64 club_id_; ::google::protobuf::uint64 stream_id_deprecated_; ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > stream_id_; - mutable int _stream_id_cached_byte_size_; friend void TC_PROTO_API protobuf_AddDesc_club_5frequest_2eproto(); friend void protobuf_AssignDesc_club_5frequest_2eproto(); friend void protobuf_ShutdownFile_club_5frequest_2eproto(); @@ -7208,19 +6271,6 @@ class TC_PROTO_API AdvanceStreamMentionViewTimeRequest : public ::google::protob // implements Message ---------------------------------------------- AdvanceStreamMentionViewTimeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AdvanceStreamMentionViewTimeRequest& from); - void MergeFrom(const AdvanceStreamMentionViewTimeRequest& 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(); @@ -7309,19 +6359,6 @@ class TC_PROTO_API AdvanceActivityViewTimeRequest : public ::google::protobuf::M // implements Message ---------------------------------------------- AdvanceActivityViewTimeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AdvanceActivityViewTimeRequest& from); - void MergeFrom(const AdvanceActivityViewTimeRequest& 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(); @@ -7400,19 +6437,6 @@ class TC_PROTO_API GetStreamHistoryRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- GetStreamHistoryRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamHistoryRequest& from); - void MergeFrom(const GetStreamHistoryRequest& 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(); @@ -7513,19 +6537,6 @@ class TC_PROTO_API GetStreamHistoryResponse : public ::google::protobuf::Message // implements Message ---------------------------------------------- GetStreamHistoryResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamHistoryResponse& from); - void MergeFrom(const GetStreamHistoryResponse& 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(); @@ -7605,19 +6616,6 @@ class TC_PROTO_API GetStreamMessageRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- GetStreamMessageRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamMessageRequest& from); - void MergeFrom(const GetStreamMessageRequest& 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(); @@ -7718,19 +6716,6 @@ class TC_PROTO_API GetStreamMessageResponse : public ::google::protobuf::Message // implements Message ---------------------------------------------- GetStreamMessageResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamMessageResponse& from); - void MergeFrom(const GetStreamMessageResponse& 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(); @@ -7799,19 +6784,6 @@ class TC_PROTO_API GetClubActivityRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetClubActivityRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetClubActivityRequest& from); - void MergeFrom(const GetClubActivityRequest& 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(); @@ -7902,19 +6874,6 @@ class TC_PROTO_API GetClubActivityResponse : public ::google::protobuf::Message // implements Message ---------------------------------------------- GetClubActivityResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetClubActivityResponse& from); - void MergeFrom(const GetClubActivityResponse& 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(); @@ -7981,19 +6940,6 @@ class TC_PROTO_API GetStreamVoiceTokenRequest : public ::google::protobuf::Messa // implements Message ---------------------------------------------- GetStreamVoiceTokenRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamVoiceTokenRequest& from); - void MergeFrom(const GetStreamVoiceTokenRequest& 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(); @@ -8092,19 +7038,6 @@ class TC_PROTO_API GetStreamVoiceTokenResponse : public ::google::protobuf::Mess // implements Message ---------------------------------------------- GetStreamVoiceTokenResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetStreamVoiceTokenResponse& from); - void MergeFrom(const GetStreamVoiceTokenResponse& 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(); @@ -8188,19 +7121,6 @@ class TC_PROTO_API KickFromStreamVoiceRequest : public ::google::protobuf::Messa // implements Message ---------------------------------------------- KickFromStreamVoiceRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const KickFromStreamVoiceRequest& from); - void MergeFrom(const KickFromStreamVoiceRequest& 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(); diff --git a/src/server/proto/Client/club_role.pb.cc b/src/server/proto/Client/club_role.pb.cc index 2e5cf2bdbeb..90e06b87705 100644 --- a/src/server/proto/Client/club_role.pb.cc +++ b/src/server/proto/Client/club_role.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_role.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -229,7 +227,7 @@ void protobuf_AddDesc_club_5frole_2eproto() { "bgs.protocol.club.v1.ClubRole\022\030\n\014default" "_role\030\005 \003(\rB\002\020\001\022,\n$assignment_respects_r" "elegation_chain\030\006 \001(\010\022\017\n\007subtype\030\007 \001(\tB\002" - "H\001", 1882); + "H\002", 1882); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_role.proto", &protobuf_RegisterTypes); ClubPrivilegeSet::default_instance_ = new ClubPrivilegeSet(); @@ -402,1844 +400,9 @@ ClubPrivilegeSet* ClubPrivilegeSet::New() const { return new ClubPrivilegeSet; } -void ClubPrivilegeSet::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(can_destroy_, can_add_member_); - } - if (_has_bits_[8 / 32] & 65280) { - ZR_(can_kick_member_, can_set_other_member_note_); - } - if (_has_bits_[16 / 32] & 16711680) { - ZR_(can_use_voice_, can_get_suggestion_); - } - if (_has_bits_[24 / 32] & 4278190080) { - ZR_(can_suggest_member_, can_remove_ban_); - } - if (_has_bits_[32 / 32] & 255) { - ZR_(can_create_stream_, can_set_stream_voice_level_); - } - if (_has_bits_[40 / 32] & 65280) { - ZR_(can_create_message_, can_mention_member_); - } - can_mention_role_ = false; - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubPrivilegeSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubPrivilegeSet) - 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 bool can_destroy = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_destroy_))); - set_has_can_destroy(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_can_set_attribute; - break; - } - - // optional bool can_set_attribute = 10; - case 10: { - if (tag == 80) { - parse_can_set_attribute: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_attribute_))); - set_has_can_set_attribute(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_can_set_name; - break; - } - - // optional bool can_set_name = 11; - case 11: { - if (tag == 88) { - parse_can_set_name: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_name_))); - set_has_can_set_name(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(96)) goto parse_can_set_description; - break; - } - - // optional bool can_set_description = 12; - case 12: { - if (tag == 96) { - parse_can_set_description: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_description_))); - set_has_can_set_description(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(104)) goto parse_can_set_avatar; - break; - } - - // optional bool can_set_avatar = 13; - case 13: { - if (tag == 104) { - parse_can_set_avatar: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_avatar_))); - set_has_can_set_avatar(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(112)) goto parse_can_set_broadcast; - break; - } - - // optional bool can_set_broadcast = 14; - case 14: { - if (tag == 112) { - parse_can_set_broadcast: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_broadcast_))); - set_has_can_set_broadcast(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(120)) goto parse_can_set_privacy_level; - break; - } - - // optional bool can_set_privacy_level = 15; - case 15: { - if (tag == 120) { - parse_can_set_privacy_level: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_privacy_level_))); - set_has_can_set_privacy_level(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(232)) goto parse_can_add_member; - break; - } - - // optional bool can_add_member = 29; - case 29: { - if (tag == 232) { - parse_can_add_member: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_add_member_))); - set_has_can_add_member(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(240)) goto parse_can_kick_member; - break; - } - - // optional bool can_kick_member = 30; - case 30: { - if (tag == 240) { - parse_can_kick_member: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_kick_member_))); - set_has_can_kick_member(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(248)) goto parse_can_set_own_member_attribute; - break; - } - - // optional bool can_set_own_member_attribute = 31; - case 31: { - if (tag == 248) { - parse_can_set_own_member_attribute: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_own_member_attribute_))); - set_has_can_set_own_member_attribute(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(256)) goto parse_can_set_other_member_attribute; - break; - } - - // optional bool can_set_other_member_attribute = 32; - case 32: { - if (tag == 256) { - parse_can_set_other_member_attribute: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_other_member_attribute_))); - set_has_can_set_other_member_attribute(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(264)) goto parse_can_set_own_voice_state; - break; - } - - // optional bool can_set_own_voice_state = 33; - case 33: { - if (tag == 264) { - parse_can_set_own_voice_state: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_own_voice_state_))); - set_has_can_set_own_voice_state(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(272)) goto parse_can_set_own_presence_level; - break; - } - - // optional bool can_set_own_presence_level = 34; - case 34: { - if (tag == 272) { - parse_can_set_own_presence_level: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_own_presence_level_))); - set_has_can_set_own_presence_level(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(280)) goto parse_can_set_own_whisper_level; - break; - } - - // optional bool can_set_own_whisper_level = 35; - case 35: { - if (tag == 280) { - parse_can_set_own_whisper_level: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_own_whisper_level_))); - set_has_can_set_own_whisper_level(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(288)) goto parse_can_set_own_member_note; - break; - } - - // optional bool can_set_own_member_note = 36; - case 36: { - if (tag == 288) { - parse_can_set_own_member_note: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_own_member_note_))); - set_has_can_set_own_member_note(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(296)) goto parse_can_set_other_member_note; - break; - } - - // optional bool can_set_other_member_note = 37; - case 37: { - if (tag == 296) { - parse_can_set_other_member_note: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_other_member_note_))); - set_has_can_set_other_member_note(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(400)) goto parse_can_use_voice; - break; - } - - // optional bool can_use_voice = 50; - case 50: { - if (tag == 400) { - parse_can_use_voice: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_use_voice_))); - set_has_can_use_voice(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(408)) goto parse_can_voice_mute_member_for_all; - break; - } - - // optional bool can_voice_mute_member_for_all = 51; - case 51: { - if (tag == 408) { - parse_can_voice_mute_member_for_all: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_voice_mute_member_for_all_))); - set_has_can_voice_mute_member_for_all(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(560)) goto parse_can_get_invitation; - break; - } - - // optional bool can_get_invitation = 70; - case 70: { - if (tag == 560) { - parse_can_get_invitation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_get_invitation_))); - set_has_can_get_invitation(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(568)) goto parse_can_send_invitation; - break; - } - - // optional bool can_send_invitation = 71; - case 71: { - if (tag == 568) { - parse_can_send_invitation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_send_invitation_))); - set_has_can_send_invitation(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(576)) goto parse_can_send_guest_invitation; - break; - } - - // optional bool can_send_guest_invitation = 72; - case 72: { - if (tag == 576) { - parse_can_send_guest_invitation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_send_guest_invitation_))); - set_has_can_send_guest_invitation(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(584)) goto parse_can_revoke_own_invitation; - break; - } - - // optional bool can_revoke_own_invitation = 73; - case 73: { - if (tag == 584) { - parse_can_revoke_own_invitation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_revoke_own_invitation_))); - set_has_can_revoke_own_invitation(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(592)) goto parse_can_revoke_other_invitation; - break; - } - - // optional bool can_revoke_other_invitation = 74; - case 74: { - if (tag == 592) { - parse_can_revoke_other_invitation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_revoke_other_invitation_))); - set_has_can_revoke_other_invitation(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(720)) goto parse_can_get_suggestion; - break; - } - - // optional bool can_get_suggestion = 90; - case 90: { - if (tag == 720) { - parse_can_get_suggestion: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_get_suggestion_))); - set_has_can_get_suggestion(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(728)) goto parse_can_suggest_member; - break; - } - - // optional bool can_suggest_member = 91; - case 91: { - if (tag == 728) { - parse_can_suggest_member: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_suggest_member_))); - set_has_can_suggest_member(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(736)) goto parse_can_approve_member; - break; - } - - // optional bool can_approve_member = 92; - case 92: { - if (tag == 736) { - parse_can_approve_member: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_approve_member_))); - set_has_can_approve_member(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(880)) goto parse_can_get_ticket; - break; - } - - // optional bool can_get_ticket = 110; - case 110: { - if (tag == 880) { - parse_can_get_ticket: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_get_ticket_))); - set_has_can_get_ticket(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(888)) goto parse_can_create_ticket; - break; - } - - // optional bool can_create_ticket = 111; - case 111: { - if (tag == 888) { - parse_can_create_ticket: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_create_ticket_))); - set_has_can_create_ticket(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(896)) goto parse_can_destroy_ticket; - break; - } - - // optional bool can_destroy_ticket = 112; - case 112: { - if (tag == 896) { - parse_can_destroy_ticket: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_destroy_ticket_))); - set_has_can_destroy_ticket(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1040)) goto parse_can_get_ban; - break; - } - - // optional bool can_get_ban = 130; - case 130: { - if (tag == 1040) { - parse_can_get_ban: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_get_ban_))); - set_has_can_get_ban(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1048)) goto parse_can_add_ban; - break; - } - - // optional bool can_add_ban = 131; - case 131: { - if (tag == 1048) { - parse_can_add_ban: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_add_ban_))); - set_has_can_add_ban(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1056)) goto parse_can_remove_ban; - break; - } - - // optional bool can_remove_ban = 132; - case 132: { - if (tag == 1056) { - parse_can_remove_ban: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_remove_ban_))); - set_has_can_remove_ban(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1120)) goto parse_can_create_stream; - break; - } - - // optional bool can_create_stream = 140; - case 140: { - if (tag == 1120) { - parse_can_create_stream: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_create_stream_))); - set_has_can_create_stream(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1128)) goto parse_can_destroy_stream; - break; - } - - // optional bool can_destroy_stream = 141; - case 141: { - if (tag == 1128) { - parse_can_destroy_stream: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_destroy_stream_))); - set_has_can_destroy_stream(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1136)) goto parse_can_set_stream_position; - break; - } - - // optional bool can_set_stream_position = 142; - case 142: { - if (tag == 1136) { - parse_can_set_stream_position: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_stream_position_))); - set_has_can_set_stream_position(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1144)) goto parse_can_set_stream_attribute; - break; - } - - // optional bool can_set_stream_attribute = 143; - case 143: { - if (tag == 1144) { - parse_can_set_stream_attribute: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_stream_attribute_))); - set_has_can_set_stream_attribute(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1152)) goto parse_can_set_stream_name; - break; - } - - // optional bool can_set_stream_name = 144; - case 144: { - if (tag == 1152) { - parse_can_set_stream_name: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_stream_name_))); - set_has_can_set_stream_name(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1160)) goto parse_can_set_stream_subject; - break; - } - - // optional bool can_set_stream_subject = 145; - case 145: { - if (tag == 1160) { - parse_can_set_stream_subject: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_stream_subject_))); - set_has_can_set_stream_subject(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1168)) goto parse_can_set_stream_access; - break; - } - - // optional bool can_set_stream_access = 146; - case 146: { - if (tag == 1168) { - parse_can_set_stream_access: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_stream_access_))); - set_has_can_set_stream_access(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1176)) goto parse_can_set_stream_voice_level; - break; - } - - // optional bool can_set_stream_voice_level = 147; - case 147: { - if (tag == 1176) { - parse_can_set_stream_voice_level: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_set_stream_voice_level_))); - set_has_can_set_stream_voice_level(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1440)) goto parse_can_create_message; - break; - } - - // optional bool can_create_message = 180; - case 180: { - if (tag == 1440) { - parse_can_create_message: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_create_message_))); - set_has_can_create_message(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1448)) goto parse_can_destroy_own_message; - break; - } - - // optional bool can_destroy_own_message = 181; - case 181: { - if (tag == 1448) { - parse_can_destroy_own_message: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_destroy_own_message_))); - set_has_can_destroy_own_message(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1456)) goto parse_can_destroy_other_message; - break; - } - - // optional bool can_destroy_other_message = 182; - case 182: { - if (tag == 1456) { - parse_can_destroy_other_message: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_destroy_other_message_))); - set_has_can_destroy_other_message(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1464)) goto parse_can_edit_own_message; - break; - } - - // optional bool can_edit_own_message = 183; - case 183: { - if (tag == 1464) { - parse_can_edit_own_message: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_edit_own_message_))); - set_has_can_edit_own_message(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1472)) goto parse_can_pin_message; - break; - } - - // optional bool can_pin_message = 184; - case 184: { - if (tag == 1472) { - parse_can_pin_message: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_pin_message_))); - set_has_can_pin_message(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1480)) goto parse_can_mention_all; - break; - } - - // optional bool can_mention_all = 185; - case 185: { - if (tag == 1480) { - parse_can_mention_all: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_mention_all_))); - set_has_can_mention_all(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1488)) goto parse_can_mention_here; - break; - } - - // optional bool can_mention_here = 186; - case 186: { - if (tag == 1488) { - parse_can_mention_here: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_mention_here_))); - set_has_can_mention_here(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1496)) goto parse_can_mention_member; - break; - } - - // optional bool can_mention_member = 187; - case 187: { - if (tag == 1496) { - parse_can_mention_member: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_mention_member_))); - set_has_can_mention_member(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1504)) goto parse_can_mention_role; - break; - } - - // optional bool can_mention_role = 188; - case 188: { - if (tag == 1504) { - parse_can_mention_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &can_mention_role_))); - set_has_can_mention_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.club.v1.ClubPrivilegeSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubPrivilegeSet) - return false; -#undef DO_ -} - -void ClubPrivilegeSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubPrivilegeSet) - // optional bool can_destroy = 1; - if (has_can_destroy()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->can_destroy(), output); - } - - // optional bool can_set_attribute = 10; - if (has_can_set_attribute()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->can_set_attribute(), output); - } - - // optional bool can_set_name = 11; - if (has_can_set_name()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->can_set_name(), output); - } - - // optional bool can_set_description = 12; - if (has_can_set_description()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->can_set_description(), output); - } - - // optional bool can_set_avatar = 13; - if (has_can_set_avatar()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->can_set_avatar(), output); - } - - // optional bool can_set_broadcast = 14; - if (has_can_set_broadcast()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->can_set_broadcast(), output); - } - - // optional bool can_set_privacy_level = 15; - if (has_can_set_privacy_level()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->can_set_privacy_level(), output); - } - - // optional bool can_add_member = 29; - if (has_can_add_member()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(29, this->can_add_member(), output); - } - - // optional bool can_kick_member = 30; - if (has_can_kick_member()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(30, this->can_kick_member(), output); - } - - // optional bool can_set_own_member_attribute = 31; - if (has_can_set_own_member_attribute()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->can_set_own_member_attribute(), output); - } - - // optional bool can_set_other_member_attribute = 32; - if (has_can_set_other_member_attribute()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(32, this->can_set_other_member_attribute(), output); - } - - // optional bool can_set_own_voice_state = 33; - if (has_can_set_own_voice_state()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->can_set_own_voice_state(), output); - } - - // optional bool can_set_own_presence_level = 34; - if (has_can_set_own_presence_level()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(34, this->can_set_own_presence_level(), output); - } - - // optional bool can_set_own_whisper_level = 35; - if (has_can_set_own_whisper_level()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(35, this->can_set_own_whisper_level(), output); - } - - // optional bool can_set_own_member_note = 36; - if (has_can_set_own_member_note()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(36, this->can_set_own_member_note(), output); - } - - // optional bool can_set_other_member_note = 37; - if (has_can_set_other_member_note()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(37, this->can_set_other_member_note(), output); - } - - // optional bool can_use_voice = 50; - if (has_can_use_voice()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(50, this->can_use_voice(), output); - } - - // optional bool can_voice_mute_member_for_all = 51; - if (has_can_voice_mute_member_for_all()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(51, this->can_voice_mute_member_for_all(), output); - } - - // optional bool can_get_invitation = 70; - if (has_can_get_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(70, this->can_get_invitation(), output); - } - - // optional bool can_send_invitation = 71; - if (has_can_send_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(71, this->can_send_invitation(), output); - } - - // optional bool can_send_guest_invitation = 72; - if (has_can_send_guest_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(72, this->can_send_guest_invitation(), output); - } - - // optional bool can_revoke_own_invitation = 73; - if (has_can_revoke_own_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(73, this->can_revoke_own_invitation(), output); - } - - // optional bool can_revoke_other_invitation = 74; - if (has_can_revoke_other_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(74, this->can_revoke_other_invitation(), output); - } - - // optional bool can_get_suggestion = 90; - if (has_can_get_suggestion()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(90, this->can_get_suggestion(), output); - } - - // optional bool can_suggest_member = 91; - if (has_can_suggest_member()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(91, this->can_suggest_member(), output); - } - - // optional bool can_approve_member = 92; - if (has_can_approve_member()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(92, this->can_approve_member(), output); - } - - // optional bool can_get_ticket = 110; - if (has_can_get_ticket()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(110, this->can_get_ticket(), output); - } - - // optional bool can_create_ticket = 111; - if (has_can_create_ticket()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(111, this->can_create_ticket(), output); - } - - // optional bool can_destroy_ticket = 112; - if (has_can_destroy_ticket()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(112, this->can_destroy_ticket(), output); - } - - // optional bool can_get_ban = 130; - if (has_can_get_ban()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(130, this->can_get_ban(), output); - } - - // optional bool can_add_ban = 131; - if (has_can_add_ban()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(131, this->can_add_ban(), output); - } - - // optional bool can_remove_ban = 132; - if (has_can_remove_ban()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(132, this->can_remove_ban(), output); - } - - // optional bool can_create_stream = 140; - if (has_can_create_stream()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(140, this->can_create_stream(), output); - } - - // optional bool can_destroy_stream = 141; - if (has_can_destroy_stream()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(141, this->can_destroy_stream(), output); - } - - // optional bool can_set_stream_position = 142; - if (has_can_set_stream_position()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(142, this->can_set_stream_position(), output); - } - - // optional bool can_set_stream_attribute = 143; - if (has_can_set_stream_attribute()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(143, this->can_set_stream_attribute(), output); - } - - // optional bool can_set_stream_name = 144; - if (has_can_set_stream_name()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(144, this->can_set_stream_name(), output); - } - - // optional bool can_set_stream_subject = 145; - if (has_can_set_stream_subject()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(145, this->can_set_stream_subject(), output); - } - - // optional bool can_set_stream_access = 146; - if (has_can_set_stream_access()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(146, this->can_set_stream_access(), output); - } - - // optional bool can_set_stream_voice_level = 147; - if (has_can_set_stream_voice_level()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(147, this->can_set_stream_voice_level(), output); - } - - // optional bool can_create_message = 180; - if (has_can_create_message()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(180, this->can_create_message(), output); - } - - // optional bool can_destroy_own_message = 181; - if (has_can_destroy_own_message()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(181, this->can_destroy_own_message(), output); - } - - // optional bool can_destroy_other_message = 182; - if (has_can_destroy_other_message()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(182, this->can_destroy_other_message(), output); - } - - // optional bool can_edit_own_message = 183; - if (has_can_edit_own_message()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(183, this->can_edit_own_message(), output); - } - - // optional bool can_pin_message = 184; - if (has_can_pin_message()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(184, this->can_pin_message(), output); - } - - // optional bool can_mention_all = 185; - if (has_can_mention_all()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(185, this->can_mention_all(), output); - } - - // optional bool can_mention_here = 186; - if (has_can_mention_here()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(186, this->can_mention_here(), output); - } - - // optional bool can_mention_member = 187; - if (has_can_mention_member()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(187, this->can_mention_member(), output); - } - - // optional bool can_mention_role = 188; - if (has_can_mention_role()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(188, this->can_mention_role(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubPrivilegeSet) -} - -::google::protobuf::uint8* ClubPrivilegeSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubPrivilegeSet) - // optional bool can_destroy = 1; - if (has_can_destroy()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->can_destroy(), target); - } - - // optional bool can_set_attribute = 10; - if (has_can_set_attribute()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->can_set_attribute(), target); - } - - // optional bool can_set_name = 11; - if (has_can_set_name()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->can_set_name(), target); - } - - // optional bool can_set_description = 12; - if (has_can_set_description()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->can_set_description(), target); - } - - // optional bool can_set_avatar = 13; - if (has_can_set_avatar()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->can_set_avatar(), target); - } - - // optional bool can_set_broadcast = 14; - if (has_can_set_broadcast()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->can_set_broadcast(), target); - } - - // optional bool can_set_privacy_level = 15; - if (has_can_set_privacy_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->can_set_privacy_level(), target); - } - - // optional bool can_add_member = 29; - if (has_can_add_member()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(29, this->can_add_member(), target); - } - - // optional bool can_kick_member = 30; - if (has_can_kick_member()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(30, this->can_kick_member(), target); - } - - // optional bool can_set_own_member_attribute = 31; - if (has_can_set_own_member_attribute()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->can_set_own_member_attribute(), target); - } - - // optional bool can_set_other_member_attribute = 32; - if (has_can_set_other_member_attribute()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(32, this->can_set_other_member_attribute(), target); - } - - // optional bool can_set_own_voice_state = 33; - if (has_can_set_own_voice_state()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->can_set_own_voice_state(), target); - } - - // optional bool can_set_own_presence_level = 34; - if (has_can_set_own_presence_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(34, this->can_set_own_presence_level(), target); - } - - // optional bool can_set_own_whisper_level = 35; - if (has_can_set_own_whisper_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(35, this->can_set_own_whisper_level(), target); - } - - // optional bool can_set_own_member_note = 36; - if (has_can_set_own_member_note()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(36, this->can_set_own_member_note(), target); - } - - // optional bool can_set_other_member_note = 37; - if (has_can_set_other_member_note()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(37, this->can_set_other_member_note(), target); - } - - // optional bool can_use_voice = 50; - if (has_can_use_voice()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(50, this->can_use_voice(), target); - } - - // optional bool can_voice_mute_member_for_all = 51; - if (has_can_voice_mute_member_for_all()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(51, this->can_voice_mute_member_for_all(), target); - } - - // optional bool can_get_invitation = 70; - if (has_can_get_invitation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(70, this->can_get_invitation(), target); - } - - // optional bool can_send_invitation = 71; - if (has_can_send_invitation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(71, this->can_send_invitation(), target); - } - - // optional bool can_send_guest_invitation = 72; - if (has_can_send_guest_invitation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(72, this->can_send_guest_invitation(), target); - } - - // optional bool can_revoke_own_invitation = 73; - if (has_can_revoke_own_invitation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(73, this->can_revoke_own_invitation(), target); - } - - // optional bool can_revoke_other_invitation = 74; - if (has_can_revoke_other_invitation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(74, this->can_revoke_other_invitation(), target); - } - - // optional bool can_get_suggestion = 90; - if (has_can_get_suggestion()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(90, this->can_get_suggestion(), target); - } - - // optional bool can_suggest_member = 91; - if (has_can_suggest_member()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(91, this->can_suggest_member(), target); - } - - // optional bool can_approve_member = 92; - if (has_can_approve_member()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(92, this->can_approve_member(), target); - } - - // optional bool can_get_ticket = 110; - if (has_can_get_ticket()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(110, this->can_get_ticket(), target); - } - - // optional bool can_create_ticket = 111; - if (has_can_create_ticket()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(111, this->can_create_ticket(), target); - } - - // optional bool can_destroy_ticket = 112; - if (has_can_destroy_ticket()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(112, this->can_destroy_ticket(), target); - } - - // optional bool can_get_ban = 130; - if (has_can_get_ban()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(130, this->can_get_ban(), target); - } - - // optional bool can_add_ban = 131; - if (has_can_add_ban()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(131, this->can_add_ban(), target); - } - - // optional bool can_remove_ban = 132; - if (has_can_remove_ban()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(132, this->can_remove_ban(), target); - } - - // optional bool can_create_stream = 140; - if (has_can_create_stream()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(140, this->can_create_stream(), target); - } - - // optional bool can_destroy_stream = 141; - if (has_can_destroy_stream()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(141, this->can_destroy_stream(), target); - } - - // optional bool can_set_stream_position = 142; - if (has_can_set_stream_position()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(142, this->can_set_stream_position(), target); - } - - // optional bool can_set_stream_attribute = 143; - if (has_can_set_stream_attribute()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(143, this->can_set_stream_attribute(), target); - } - - // optional bool can_set_stream_name = 144; - if (has_can_set_stream_name()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(144, this->can_set_stream_name(), target); - } - - // optional bool can_set_stream_subject = 145; - if (has_can_set_stream_subject()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(145, this->can_set_stream_subject(), target); - } - - // optional bool can_set_stream_access = 146; - if (has_can_set_stream_access()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(146, this->can_set_stream_access(), target); - } - - // optional bool can_set_stream_voice_level = 147; - if (has_can_set_stream_voice_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(147, this->can_set_stream_voice_level(), target); - } - - // optional bool can_create_message = 180; - if (has_can_create_message()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(180, this->can_create_message(), target); - } - - // optional bool can_destroy_own_message = 181; - if (has_can_destroy_own_message()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(181, this->can_destroy_own_message(), target); - } - - // optional bool can_destroy_other_message = 182; - if (has_can_destroy_other_message()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(182, this->can_destroy_other_message(), target); - } - - // optional bool can_edit_own_message = 183; - if (has_can_edit_own_message()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(183, this->can_edit_own_message(), target); - } - - // optional bool can_pin_message = 184; - if (has_can_pin_message()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(184, this->can_pin_message(), target); - } - - // optional bool can_mention_all = 185; - if (has_can_mention_all()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(185, this->can_mention_all(), target); - } - - // optional bool can_mention_here = 186; - if (has_can_mention_here()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(186, this->can_mention_here(), target); - } - - // optional bool can_mention_member = 187; - if (has_can_mention_member()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(187, this->can_mention_member(), target); - } - - // optional bool can_mention_role = 188; - if (has_can_mention_role()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(188, this->can_mention_role(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubPrivilegeSet) - return target; -} - -int ClubPrivilegeSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool can_destroy = 1; - if (has_can_destroy()) { - total_size += 1 + 1; - } - - // optional bool can_set_attribute = 10; - if (has_can_set_attribute()) { - total_size += 1 + 1; - } - - // optional bool can_set_name = 11; - if (has_can_set_name()) { - total_size += 1 + 1; - } - - // optional bool can_set_description = 12; - if (has_can_set_description()) { - total_size += 1 + 1; - } - - // optional bool can_set_avatar = 13; - if (has_can_set_avatar()) { - total_size += 1 + 1; - } - - // optional bool can_set_broadcast = 14; - if (has_can_set_broadcast()) { - total_size += 1 + 1; - } - - // optional bool can_set_privacy_level = 15; - if (has_can_set_privacy_level()) { - total_size += 1 + 1; - } - - // optional bool can_add_member = 29; - if (has_can_add_member()) { - total_size += 2 + 1; - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional bool can_kick_member = 30; - if (has_can_kick_member()) { - total_size += 2 + 1; - } - - // optional bool can_set_own_member_attribute = 31; - if (has_can_set_own_member_attribute()) { - total_size += 2 + 1; - } - - // optional bool can_set_other_member_attribute = 32; - if (has_can_set_other_member_attribute()) { - total_size += 2 + 1; - } - - // optional bool can_set_own_voice_state = 33; - if (has_can_set_own_voice_state()) { - total_size += 2 + 1; - } - - // optional bool can_set_own_presence_level = 34; - if (has_can_set_own_presence_level()) { - total_size += 2 + 1; - } - - // optional bool can_set_own_whisper_level = 35; - if (has_can_set_own_whisper_level()) { - total_size += 2 + 1; - } - - // optional bool can_set_own_member_note = 36; - if (has_can_set_own_member_note()) { - total_size += 2 + 1; - } - - // optional bool can_set_other_member_note = 37; - if (has_can_set_other_member_note()) { - total_size += 2 + 1; - } - - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - // optional bool can_use_voice = 50; - if (has_can_use_voice()) { - total_size += 2 + 1; - } - - // optional bool can_voice_mute_member_for_all = 51; - if (has_can_voice_mute_member_for_all()) { - total_size += 2 + 1; - } - - // optional bool can_get_invitation = 70; - if (has_can_get_invitation()) { - total_size += 2 + 1; - } - - // optional bool can_send_invitation = 71; - if (has_can_send_invitation()) { - total_size += 2 + 1; - } - - // optional bool can_send_guest_invitation = 72; - if (has_can_send_guest_invitation()) { - total_size += 2 + 1; - } - - // optional bool can_revoke_own_invitation = 73; - if (has_can_revoke_own_invitation()) { - total_size += 2 + 1; - } - - // optional bool can_revoke_other_invitation = 74; - if (has_can_revoke_other_invitation()) { - total_size += 2 + 1; - } - - // optional bool can_get_suggestion = 90; - if (has_can_get_suggestion()) { - total_size += 2 + 1; - } - - } - if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { - // optional bool can_suggest_member = 91; - if (has_can_suggest_member()) { - total_size += 2 + 1; - } - - // optional bool can_approve_member = 92; - if (has_can_approve_member()) { - total_size += 2 + 1; - } - - // optional bool can_get_ticket = 110; - if (has_can_get_ticket()) { - total_size += 2 + 1; - } - - // optional bool can_create_ticket = 111; - if (has_can_create_ticket()) { - total_size += 2 + 1; - } - - // optional bool can_destroy_ticket = 112; - if (has_can_destroy_ticket()) { - total_size += 2 + 1; - } - - // optional bool can_get_ban = 130; - if (has_can_get_ban()) { - total_size += 2 + 1; - } - - // optional bool can_add_ban = 131; - if (has_can_add_ban()) { - total_size += 2 + 1; - } - - // optional bool can_remove_ban = 132; - if (has_can_remove_ban()) { - total_size += 2 + 1; - } - - } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - // optional bool can_create_stream = 140; - if (has_can_create_stream()) { - total_size += 2 + 1; - } - - // optional bool can_destroy_stream = 141; - if (has_can_destroy_stream()) { - total_size += 2 + 1; - } - - // optional bool can_set_stream_position = 142; - if (has_can_set_stream_position()) { - total_size += 2 + 1; - } - - // optional bool can_set_stream_attribute = 143; - if (has_can_set_stream_attribute()) { - total_size += 2 + 1; - } - - // optional bool can_set_stream_name = 144; - if (has_can_set_stream_name()) { - total_size += 2 + 1; - } - - // optional bool can_set_stream_subject = 145; - if (has_can_set_stream_subject()) { - total_size += 2 + 1; - } - - // optional bool can_set_stream_access = 146; - if (has_can_set_stream_access()) { - total_size += 2 + 1; - } - - // optional bool can_set_stream_voice_level = 147; - if (has_can_set_stream_voice_level()) { - total_size += 2 + 1; - } - - } - if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { - // optional bool can_create_message = 180; - if (has_can_create_message()) { - total_size += 2 + 1; - } - - // optional bool can_destroy_own_message = 181; - if (has_can_destroy_own_message()) { - total_size += 2 + 1; - } - - // optional bool can_destroy_other_message = 182; - if (has_can_destroy_other_message()) { - total_size += 2 + 1; - } - - // optional bool can_edit_own_message = 183; - if (has_can_edit_own_message()) { - total_size += 2 + 1; - } - - // optional bool can_pin_message = 184; - if (has_can_pin_message()) { - total_size += 2 + 1; - } - - // optional bool can_mention_all = 185; - if (has_can_mention_all()) { - total_size += 2 + 1; - } - - // optional bool can_mention_here = 186; - if (has_can_mention_here()) { - total_size += 2 + 1; - } - - // optional bool can_mention_member = 187; - if (has_can_mention_member()) { - total_size += 2 + 1; - } - - } - if (_has_bits_[48 / 32] & (0xffu << (48 % 32))) { - // optional bool can_mention_role = 188; - if (has_can_mention_role()) { - total_size += 2 + 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 ClubPrivilegeSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubPrivilegeSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubPrivilegeSet::MergeFrom(const ClubPrivilegeSet& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_can_destroy()) { - set_can_destroy(from.can_destroy()); - } - if (from.has_can_set_attribute()) { - set_can_set_attribute(from.can_set_attribute()); - } - if (from.has_can_set_name()) { - set_can_set_name(from.can_set_name()); - } - if (from.has_can_set_description()) { - set_can_set_description(from.can_set_description()); - } - if (from.has_can_set_avatar()) { - set_can_set_avatar(from.can_set_avatar()); - } - if (from.has_can_set_broadcast()) { - set_can_set_broadcast(from.can_set_broadcast()); - } - if (from.has_can_set_privacy_level()) { - set_can_set_privacy_level(from.can_set_privacy_level()); - } - if (from.has_can_add_member()) { - set_can_add_member(from.can_add_member()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_can_kick_member()) { - set_can_kick_member(from.can_kick_member()); - } - if (from.has_can_set_own_member_attribute()) { - set_can_set_own_member_attribute(from.can_set_own_member_attribute()); - } - if (from.has_can_set_other_member_attribute()) { - set_can_set_other_member_attribute(from.can_set_other_member_attribute()); - } - if (from.has_can_set_own_voice_state()) { - set_can_set_own_voice_state(from.can_set_own_voice_state()); - } - if (from.has_can_set_own_presence_level()) { - set_can_set_own_presence_level(from.can_set_own_presence_level()); - } - if (from.has_can_set_own_whisper_level()) { - set_can_set_own_whisper_level(from.can_set_own_whisper_level()); - } - if (from.has_can_set_own_member_note()) { - set_can_set_own_member_note(from.can_set_own_member_note()); - } - if (from.has_can_set_other_member_note()) { - set_can_set_other_member_note(from.can_set_other_member_note()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_can_use_voice()) { - set_can_use_voice(from.can_use_voice()); - } - if (from.has_can_voice_mute_member_for_all()) { - set_can_voice_mute_member_for_all(from.can_voice_mute_member_for_all()); - } - if (from.has_can_get_invitation()) { - set_can_get_invitation(from.can_get_invitation()); - } - if (from.has_can_send_invitation()) { - set_can_send_invitation(from.can_send_invitation()); - } - if (from.has_can_send_guest_invitation()) { - set_can_send_guest_invitation(from.can_send_guest_invitation()); - } - if (from.has_can_revoke_own_invitation()) { - set_can_revoke_own_invitation(from.can_revoke_own_invitation()); - } - if (from.has_can_revoke_other_invitation()) { - set_can_revoke_other_invitation(from.can_revoke_other_invitation()); - } - if (from.has_can_get_suggestion()) { - set_can_get_suggestion(from.can_get_suggestion()); - } - } - if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (from.has_can_suggest_member()) { - set_can_suggest_member(from.can_suggest_member()); - } - if (from.has_can_approve_member()) { - set_can_approve_member(from.can_approve_member()); - } - if (from.has_can_get_ticket()) { - set_can_get_ticket(from.can_get_ticket()); - } - if (from.has_can_create_ticket()) { - set_can_create_ticket(from.can_create_ticket()); - } - if (from.has_can_destroy_ticket()) { - set_can_destroy_ticket(from.can_destroy_ticket()); - } - if (from.has_can_get_ban()) { - set_can_get_ban(from.can_get_ban()); - } - if (from.has_can_add_ban()) { - set_can_add_ban(from.can_add_ban()); - } - if (from.has_can_remove_ban()) { - set_can_remove_ban(from.can_remove_ban()); - } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_can_create_stream()) { - set_can_create_stream(from.can_create_stream()); - } - if (from.has_can_destroy_stream()) { - set_can_destroy_stream(from.can_destroy_stream()); - } - if (from.has_can_set_stream_position()) { - set_can_set_stream_position(from.can_set_stream_position()); - } - if (from.has_can_set_stream_attribute()) { - set_can_set_stream_attribute(from.can_set_stream_attribute()); - } - if (from.has_can_set_stream_name()) { - set_can_set_stream_name(from.can_set_stream_name()); - } - if (from.has_can_set_stream_subject()) { - set_can_set_stream_subject(from.can_set_stream_subject()); - } - if (from.has_can_set_stream_access()) { - set_can_set_stream_access(from.can_set_stream_access()); - } - if (from.has_can_set_stream_voice_level()) { - set_can_set_stream_voice_level(from.can_set_stream_voice_level()); - } - } - if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (from.has_can_create_message()) { - set_can_create_message(from.can_create_message()); - } - if (from.has_can_destroy_own_message()) { - set_can_destroy_own_message(from.can_destroy_own_message()); - } - if (from.has_can_destroy_other_message()) { - set_can_destroy_other_message(from.can_destroy_other_message()); - } - if (from.has_can_edit_own_message()) { - set_can_edit_own_message(from.can_edit_own_message()); - } - if (from.has_can_pin_message()) { - set_can_pin_message(from.can_pin_message()); - } - if (from.has_can_mention_all()) { - set_can_mention_all(from.can_mention_all()); - } - if (from.has_can_mention_here()) { - set_can_mention_here(from.can_mention_here()); - } - if (from.has_can_mention_member()) { - set_can_mention_member(from.can_mention_member()); - } - } - if (from._has_bits_[48 / 32] & (0xffu << (48 % 32))) { - if (from.has_can_mention_role()) { - set_can_mention_role(from.can_mention_role()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubPrivilegeSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubPrivilegeSet::CopyFrom(const ClubPrivilegeSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubPrivilegeSet::IsInitialized() const { - return true; -} - void ClubPrivilegeSet::Swap(ClubPrivilegeSet* other) { if (other != this) { - std::swap(can_destroy_, other->can_destroy_); - std::swap(can_set_attribute_, other->can_set_attribute_); - std::swap(can_set_name_, other->can_set_name_); - std::swap(can_set_description_, other->can_set_description_); - std::swap(can_set_avatar_, other->can_set_avatar_); - std::swap(can_set_broadcast_, other->can_set_broadcast_); - std::swap(can_set_privacy_level_, other->can_set_privacy_level_); - std::swap(can_add_member_, other->can_add_member_); - std::swap(can_kick_member_, other->can_kick_member_); - std::swap(can_set_own_member_attribute_, other->can_set_own_member_attribute_); - std::swap(can_set_other_member_attribute_, other->can_set_other_member_attribute_); - std::swap(can_set_own_voice_state_, other->can_set_own_voice_state_); - std::swap(can_set_own_presence_level_, other->can_set_own_presence_level_); - std::swap(can_set_own_whisper_level_, other->can_set_own_whisper_level_); - std::swap(can_set_own_member_note_, other->can_set_own_member_note_); - std::swap(can_set_other_member_note_, other->can_set_other_member_note_); - std::swap(can_use_voice_, other->can_use_voice_); - std::swap(can_voice_mute_member_for_all_, other->can_voice_mute_member_for_all_); - std::swap(can_get_invitation_, other->can_get_invitation_); - std::swap(can_send_invitation_, other->can_send_invitation_); - std::swap(can_send_guest_invitation_, other->can_send_guest_invitation_); - std::swap(can_revoke_own_invitation_, other->can_revoke_own_invitation_); - std::swap(can_revoke_other_invitation_, other->can_revoke_other_invitation_); - std::swap(can_get_suggestion_, other->can_get_suggestion_); - std::swap(can_suggest_member_, other->can_suggest_member_); - std::swap(can_approve_member_, other->can_approve_member_); - std::swap(can_get_ticket_, other->can_get_ticket_); - std::swap(can_create_ticket_, other->can_create_ticket_); - std::swap(can_destroy_ticket_, other->can_destroy_ticket_); - std::swap(can_get_ban_, other->can_get_ban_); - std::swap(can_add_ban_, other->can_add_ban_); - std::swap(can_remove_ban_, other->can_remove_ban_); - std::swap(can_create_stream_, other->can_create_stream_); - std::swap(can_destroy_stream_, other->can_destroy_stream_); - std::swap(can_set_stream_position_, other->can_set_stream_position_); - std::swap(can_set_stream_attribute_, other->can_set_stream_attribute_); - std::swap(can_set_stream_name_, other->can_set_stream_name_); - std::swap(can_set_stream_subject_, other->can_set_stream_subject_); - std::swap(can_set_stream_access_, other->can_set_stream_access_); - std::swap(can_set_stream_voice_level_, other->can_set_stream_voice_level_); - std::swap(can_create_message_, other->can_create_message_); - std::swap(can_destroy_own_message_, other->can_destroy_own_message_); - std::swap(can_destroy_other_message_, other->can_destroy_other_message_); - std::swap(can_edit_own_message_, other->can_edit_own_message_); - std::swap(can_pin_message_, other->can_pin_message_); - std::swap(can_mention_all_, other->can_mention_all_); - std::swap(can_mention_here_, other->can_mention_here_); - std::swap(can_mention_member_, other->can_mention_member_); - std::swap(can_mention_role_, other->can_mention_role_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_has_bits_[1], other->_has_bits_[1]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubPrivilegeSet::GetMetadata() const { @@ -2321,321 +484,9 @@ ClubRole* ClubRole::New() const { return new ClubRole; } -void ClubRole::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(id_, allow_in_club_slot_); - if (has_state()) { - if (state_ != NULL) state_->::bgs::protocol::RoleState::Clear(); - } - if (has_privilege()) { - if (privilege_ != NULL) privilege_->::bgs::protocol::club::v1::ClubPrivilegeSet::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubRole::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubRole) - 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 id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_state; - break; - } - - // optional .bgs.protocol.RoleState state = 2; - case 2: { - if (tag == 18) { - parse_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_privilege; - break; - } - - // optional .bgs.protocol.club.v1.ClubPrivilegeSet privilege = 3; - case 3: { - if (tag == 26) { - parse_privilege: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_privilege())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_always_grant_stream_access; - break; - } - - // optional bool always_grant_stream_access = 4; - case 4: { - if (tag == 32) { - parse_always_grant_stream_access: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &always_grant_stream_access_))); - set_has_always_grant_stream_access(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_allow_in_club_slot; - break; - } - - // optional bool allow_in_club_slot = 5; - case 5: { - if (tag == 40) { - parse_allow_in_club_slot: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &allow_in_club_slot_))); - set_has_allow_in_club_slot(); - } 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.club.v1.ClubRole) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubRole) - return false; -#undef DO_ -} - -void ClubRole::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubRole) - // optional uint32 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->id(), output); - } - - // optional .bgs.protocol.RoleState state = 2; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->state(), output); - } - - // optional .bgs.protocol.club.v1.ClubPrivilegeSet privilege = 3; - if (has_privilege()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->privilege(), output); - } - - // optional bool always_grant_stream_access = 4; - if (has_always_grant_stream_access()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->always_grant_stream_access(), output); - } - - // optional bool allow_in_club_slot = 5; - if (has_allow_in_club_slot()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->allow_in_club_slot(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubRole) -} - -::google::protobuf::uint8* ClubRole::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubRole) - // optional uint32 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->id(), target); - } - - // optional .bgs.protocol.RoleState state = 2; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->state(), target); - } - - // optional .bgs.protocol.club.v1.ClubPrivilegeSet privilege = 3; - if (has_privilege()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->privilege(), target); - } - - // optional bool always_grant_stream_access = 4; - if (has_always_grant_stream_access()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->always_grant_stream_access(), target); - } - - // optional bool allow_in_club_slot = 5; - if (has_allow_in_club_slot()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->allow_in_club_slot(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubRole) - return target; -} - -int ClubRole::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->id()); - } - - // optional .bgs.protocol.RoleState state = 2; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state()); - } - - // optional .bgs.protocol.club.v1.ClubPrivilegeSet privilege = 3; - if (has_privilege()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->privilege()); - } - - // optional bool always_grant_stream_access = 4; - if (has_always_grant_stream_access()) { - total_size += 1 + 1; - } - - // optional bool allow_in_club_slot = 5; - if (has_allow_in_club_slot()) { - 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 ClubRole::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubRole* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubRole::MergeFrom(const ClubRole& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_state()) { - mutable_state()->::bgs::protocol::RoleState::MergeFrom(from.state()); - } - if (from.has_privilege()) { - mutable_privilege()->::bgs::protocol::club::v1::ClubPrivilegeSet::MergeFrom(from.privilege()); - } - if (from.has_always_grant_stream_access()) { - set_always_grant_stream_access(from.always_grant_stream_access()); - } - if (from.has_allow_in_club_slot()) { - set_allow_in_club_slot(from.allow_in_club_slot()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubRole::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubRole::CopyFrom(const ClubRole& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubRole::IsInitialized() const { - return true; -} - void ClubRole::Swap(ClubRole* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(state_, other->state_); - std::swap(privilege_, other->privilege_); - std::swap(always_grant_stream_access_, other->always_grant_stream_access_); - std::swap(allow_in_club_slot_, other->allow_in_club_slot_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubRole::GetMetadata() const { @@ -2674,7 +525,6 @@ ClubRoleSet::ClubRoleSet(const ClubRoleSet& from) void ClubRoleSet::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; - _default_role_cached_byte_size_ = 0; assignment_respects_relegation_chain_ = false; subtype_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -2714,312 +564,9 @@ ClubRoleSet* ClubRoleSet::New() const { return new ClubRoleSet; } -void ClubRoleSet::Clear() { - if (_has_bits_[0 / 32] & 12) { - assignment_respects_relegation_chain_ = false; - if (has_subtype()) { - if (subtype_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - subtype_->clear(); - } - } - } - role_.Clear(); - default_role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubRoleSet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubRoleSet) - 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.club.v1.ClubRole role = 1; - case 1: { - if (tag == 10) { - parse_role: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_role())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_role; - if (input->ExpectTag(42)) goto parse_default_role; - break; - } - - // repeated uint32 default_role = 5 [packed = true]; - case 5: { - if (tag == 42) { - parse_default_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_default_role()))); - } else if (tag == 40) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 42, input, this->mutable_default_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_assignment_respects_relegation_chain; - break; - } - - // optional bool assignment_respects_relegation_chain = 6; - case 6: { - if (tag == 48) { - parse_assignment_respects_relegation_chain: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &assignment_respects_relegation_chain_))); - set_has_assignment_respects_relegation_chain(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_subtype; - break; - } - - // optional string subtype = 7; - case 7: { - if (tag == 58) { - parse_subtype: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_subtype())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subtype().data(), this->subtype().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "subtype"); - } 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.club.v1.ClubRoleSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubRoleSet) - return false; -#undef DO_ -} - -void ClubRoleSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubRoleSet) - // repeated .bgs.protocol.club.v1.ClubRole role = 1; - for (int i = 0; i < this->role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->role(i), output); - } - - // repeated uint32 default_role = 5 [packed = true]; - if (this->default_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_default_role_cached_byte_size_); - } - for (int i = 0; i < this->default_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->default_role(i), output); - } - - // optional bool assignment_respects_relegation_chain = 6; - if (has_assignment_respects_relegation_chain()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->assignment_respects_relegation_chain(), output); - } - - // optional string subtype = 7; - if (has_subtype()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subtype().data(), this->subtype().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subtype"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->subtype(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubRoleSet) -} - -::google::protobuf::uint8* ClubRoleSet::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubRoleSet) - // repeated .bgs.protocol.club.v1.ClubRole role = 1; - for (int i = 0; i < this->role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->role(i), target); - } - - // repeated uint32 default_role = 5 [packed = true]; - if (this->default_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 5, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _default_role_cached_byte_size_, target); - } - for (int i = 0; i < this->default_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->default_role(i), target); - } - - // optional bool assignment_respects_relegation_chain = 6; - if (has_assignment_respects_relegation_chain()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->assignment_respects_relegation_chain(), target); - } - - // optional string subtype = 7; - if (has_subtype()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subtype().data(), this->subtype().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subtype"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->subtype(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubRoleSet) - return target; -} - -int ClubRoleSet::ByteSize() const { - int total_size = 0; - - if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { - // optional bool assignment_respects_relegation_chain = 6; - if (has_assignment_respects_relegation_chain()) { - total_size += 1 + 1; - } - - // optional string subtype = 7; - if (has_subtype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->subtype()); - } - - } - // repeated .bgs.protocol.club.v1.ClubRole role = 1; - 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 uint32 default_role = 5 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->default_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->default_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _default_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 ClubRoleSet::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubRoleSet* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubRoleSet::MergeFrom(const ClubRoleSet& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - default_role_.MergeFrom(from.default_role_); - if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { - if (from.has_assignment_respects_relegation_chain()) { - set_assignment_respects_relegation_chain(from.assignment_respects_relegation_chain()); - } - if (from.has_subtype()) { - set_subtype(from.subtype()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubRoleSet::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubRoleSet::CopyFrom(const ClubRoleSet& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubRoleSet::IsInitialized() const { - return true; -} - void ClubRoleSet::Swap(ClubRoleSet* other) { if (other != this) { - role_.Swap(&other->role_); - default_role_.Swap(&other->default_role_); - std::swap(assignment_respects_relegation_chain_, other->assignment_respects_relegation_chain_); - std::swap(subtype_, other->subtype_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubRoleSet::GetMetadata() const { diff --git a/src/server/proto/Client/club_role.pb.h b/src/server/proto/Client/club_role.pb.h index 21a4271425f..4cdcd6efc9f 100644 --- a/src/server/proto/Client/club_role.pb.h +++ b/src/server/proto/Client/club_role.pb.h @@ -72,19 +72,6 @@ class TC_PROTO_API ClubPrivilegeSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubPrivilegeSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubPrivilegeSet& from); - void MergeFrom(const ClubPrivilegeSet& 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(); @@ -631,19 +618,6 @@ class TC_PROTO_API ClubRole : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubRole* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubRole& from); - void MergeFrom(const ClubRole& 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(); @@ -754,19 +728,6 @@ class TC_PROTO_API ClubRoleSet : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClubRoleSet* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubRoleSet& from); - void MergeFrom(const ClubRoleSet& 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(); @@ -835,7 +796,6 @@ class TC_PROTO_API ClubRoleSet : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::club::v1::ClubRole > role_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > default_role_; - mutable int _default_role_cached_byte_size_; ::std::string* subtype_; bool assignment_respects_relegation_chain_; friend void TC_PROTO_API protobuf_AddDesc_club_5frole_2eproto(); diff --git a/src/server/proto/Client/club_service.pb.cc b/src/server/proto/Client/club_service.pb.cc index 7bbebe80d56..1b04e1ab6ea 100644 --- a/src/server/proto/Client/club_service.pb.cc +++ b/src/server/proto/Client/club_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -205,7 +202,7 @@ void protobuf_AddDesc_club_5fservice_2eproto() { "1.GetStreamMessageRequest\032..bgs.protocol" ".club.v1.GetStreamMessageResponse\"\007\202\371+\003\010" "\235\001\0325\202\371+)\n!bnet.protocol.club.v1.ClubServ" - "ice*\004club\212\371+\004\020\001\030\001B\005H\001\200\001\000", 5624); + "ice*\004club\212\371+\004\020\001\030\001B\005H\002\200\001\000", 5624); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_service.proto", &protobuf_RegisterTypes); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_club_5fservice_2eproto); @@ -219,7 +216,7 @@ struct StaticDescriptorInitializer_club_5fservice_2eproto { } static_descriptor_initializer_club_5fservice_2eproto_; // =================================================================== -ClubService::ClubService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ClubService::ClubService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ClubService::~ClubService() { @@ -232,1773 +229,1278 @@ google::protobuf::ServiceDescriptor const* ClubService::descriptor() { void ClubService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::club::v1::SubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.Subscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Subscribe(bgs.protocol.club.v1.SubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Subscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleSubscribe(token, methodId, buffer); break; - } - case 2: { - ::bgs::protocol::club::v1::UnsubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.Unsubscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Unsubscribe(bgs.protocol.club.v1.UnsubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Unsubscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnsubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 2: + ParseAndHandleUnsubscribe(token, methodId, buffer); break; - } - case 3: { - ::bgs::protocol::club::v1::CreateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.Create server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Create(bgs.protocol.club.v1.CreateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::CreateResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Create() returned bgs.protocol.club.v1.CreateResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::CreateResponse response; - uint32 status = HandleCreate(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 3: + ParseAndHandleCreate(token, methodId, buffer); break; - } - case 4: { - ::bgs::protocol::club::v1::DestroyRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.Destroy server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Destroy(bgs.protocol.club.v1.DestroyRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Destroy() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleDestroy(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 4: + ParseAndHandleDestroy(token, methodId, buffer); break; - } - case 5: { - ::bgs::protocol::club::v1::GetDescriptionRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetDescription server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetDescription(bgs.protocol.club.v1.GetDescriptionRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetDescriptionResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetDescription() returned bgs.protocol.club.v1.GetDescriptionResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetDescriptionResponse response; - uint32 status = HandleGetDescription(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 5: + ParseAndHandleGetDescription(token, methodId, buffer); break; - } - case 6: { - ::bgs::protocol::club::v1::GetClubTypeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetClubType server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetClubType(bgs.protocol.club.v1.GetClubTypeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetClubTypeResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetClubType() returned bgs.protocol.club.v1.GetClubTypeResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetClubTypeResponse response; - uint32 status = HandleGetClubType(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 6: + ParseAndHandleGetClubType(token, methodId, buffer); break; - } - case 7: { - ::bgs::protocol::club::v1::UpdateClubStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.UpdateClubState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateClubState(bgs.protocol.club.v1.UpdateClubStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateClubState() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUpdateClubState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 7: + ParseAndHandleUpdateClubState(token, methodId, buffer); break; - } - case 8: { - ::bgs::protocol::club::v1::UpdateClubSettingsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.UpdateClubSettings server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateClubSettings(bgs.protocol.club.v1.UpdateClubSettingsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateClubSettings() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUpdateClubSettings(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 8: + ParseAndHandleUpdateClubSettings(token, methodId, buffer); break; - } - case 30: { - ::bgs::protocol::club::v1::JoinRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.Join server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Join(bgs.protocol.club.v1.JoinRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Join() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleJoin(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 30: + ParseAndHandleJoin(token, methodId, buffer); break; - } - case 31: { - ::bgs::protocol::club::v1::LeaveRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.Leave server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Leave(bgs.protocol.club.v1.LeaveRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Leave() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleLeave(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 31: + ParseAndHandleLeave(token, methodId, buffer); break; - } - case 32: { - ::bgs::protocol::club::v1::KickRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.Kick server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Kick(bgs.protocol.club.v1.KickRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.Kick() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleKick(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 32: + ParseAndHandleKick(token, methodId, buffer); break; - } - case 33: { - ::bgs::protocol::club::v1::GetMemberRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetMember server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetMember(bgs.protocol.club.v1.GetMemberRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetMemberResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetMember() returned bgs.protocol.club.v1.GetMemberResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetMemberResponse response; - uint32 status = HandleGetMember(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 33: + ParseAndHandleGetMember(token, methodId, buffer); break; - } - case 34: { - ::bgs::protocol::club::v1::GetMembersRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetMembers server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetMembers(bgs.protocol.club.v1.GetMembersRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetMembersResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetMembers() returned bgs.protocol.club.v1.GetMembersResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetMembersResponse response; - uint32 status = HandleGetMembers(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 34: + ParseAndHandleGetMembers(token, methodId, buffer); break; - } - case 35: { - ::bgs::protocol::club::v1::UpdateMemberStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.UpdateMemberState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateMemberState(bgs.protocol.club.v1.UpdateMemberStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateMemberState() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUpdateMemberState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 35: + ParseAndHandleUpdateMemberState(token, methodId, buffer); break; - } - case 36: { - ::bgs::protocol::club::v1::UpdateSubscriberStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.UpdateSubscriberState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateSubscriberState(bgs.protocol.club.v1.UpdateSubscriberStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateSubscriberState() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUpdateSubscriberState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 36: + ParseAndHandleUpdateSubscriberState(token, methodId, buffer); break; - } - case 37: { - ::bgs::protocol::club::v1::AssignRoleRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.AssignRole server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AssignRole(bgs.protocol.club.v1.AssignRoleRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AssignRole() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleAssignRole(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 37: + ParseAndHandleAssignRole(token, methodId, buffer); break; - } - case 38: { - ::bgs::protocol::club::v1::UnassignRoleRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.UnassignRole server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UnassignRole(bgs.protocol.club.v1.UnassignRoleRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UnassignRole() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnassignRole(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 38: + ParseAndHandleUnassignRole(token, methodId, buffer); break; - } - case 50: { - ::bgs::protocol::club::v1::SendInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.SendInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SendInvitation(bgs.protocol.club.v1.SendInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SendInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSendInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 50: + ParseAndHandleSendInvitation(token, methodId, buffer); break; - } - case 51: { - ::bgs::protocol::club::v1::AcceptInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.AcceptInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AcceptInvitation(bgs.protocol.club.v1.AcceptInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AcceptInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleAcceptInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 51: + ParseAndHandleAcceptInvitation(token, methodId, buffer); break; - } - case 52: { - ::bgs::protocol::club::v1::DeclineInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.DeclineInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DeclineInvitation(bgs.protocol.club.v1.DeclineInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DeclineInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleDeclineInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 52: + ParseAndHandleDeclineInvitation(token, methodId, buffer); break; - } - case 53: { - ::bgs::protocol::club::v1::RevokeInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.RevokeInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.RevokeInvitation(bgs.protocol.club.v1.RevokeInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.RevokeInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleRevokeInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 53: + ParseAndHandleRevokeInvitation(token, methodId, buffer); break; - } - case 54: { - ::bgs::protocol::club::v1::GetInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetInvitation(bgs.protocol.club.v1.GetInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetInvitationResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetInvitation() returned bgs.protocol.club.v1.GetInvitationResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetInvitationResponse response; - uint32 status = HandleGetInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 54: + ParseAndHandleGetInvitation(token, methodId, buffer); break; - } - case 55: { - ::bgs::protocol::club::v1::GetInvitationsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetInvitations server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetInvitations(bgs.protocol.club.v1.GetInvitationsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetInvitationsResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetInvitations() returned bgs.protocol.club.v1.GetInvitationsResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetInvitationsResponse response; - uint32 status = HandleGetInvitations(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 55: + ParseAndHandleGetInvitations(token, methodId, buffer); break; - } - case 60: { - ::bgs::protocol::club::v1::SendSuggestionRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.SendSuggestion server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SendSuggestion(bgs.protocol.club.v1.SendSuggestionRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SendSuggestion() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSendSuggestion(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 60: + ParseAndHandleSendSuggestion(token, methodId, buffer); break; - } - case 61: { - ::bgs::protocol::club::v1::AcceptSuggestionRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.AcceptSuggestion server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AcceptSuggestion(bgs.protocol.club.v1.AcceptSuggestionRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AcceptSuggestion() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleAcceptSuggestion(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 61: + ParseAndHandleAcceptSuggestion(token, methodId, buffer); break; - } - case 62: { - ::bgs::protocol::club::v1::DeclineSuggestionRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.DeclineSuggestion server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DeclineSuggestion(bgs.protocol.club.v1.DeclineSuggestionRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DeclineSuggestion() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleDeclineSuggestion(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 62: + ParseAndHandleDeclineSuggestion(token, methodId, buffer); break; - } - case 63: { - ::bgs::protocol::club::v1::GetSuggestionRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetSuggestion server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetSuggestion(bgs.protocol.club.v1.GetSuggestionRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetSuggestionResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetSuggestion() returned bgs.protocol.club.v1.GetSuggestionResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetSuggestionResponse response; - uint32 status = HandleGetSuggestion(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 63: + ParseAndHandleGetSuggestion(token, methodId, buffer); break; - } - case 64: { - ::bgs::protocol::club::v1::GetSuggestionsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetSuggestions server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetSuggestions(bgs.protocol.club.v1.GetSuggestionsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetSuggestionsResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetSuggestions() returned bgs.protocol.club.v1.GetSuggestionsResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetSuggestionsResponse response; - uint32 status = HandleGetSuggestions(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 64: + ParseAndHandleGetSuggestions(token, methodId, buffer); break; - } - case 70: { - ::bgs::protocol::club::v1::CreateTicketRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.CreateTicket server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.CreateTicket(bgs.protocol.club.v1.CreateTicketRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::CreateTicketResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.CreateTicket() returned bgs.protocol.club.v1.CreateTicketResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::CreateTicketResponse response; - uint32 status = HandleCreateTicket(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 70: + ParseAndHandleCreateTicket(token, methodId, buffer); break; - } - case 71: { - ::bgs::protocol::club::v1::DestroyTicketRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.DestroyTicket server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DestroyTicket(bgs.protocol.club.v1.DestroyTicketRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DestroyTicket() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleDestroyTicket(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 71: + ParseAndHandleDestroyTicket(token, methodId, buffer); break; - } - case 72: { - ::bgs::protocol::club::v1::RedeemTicketRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.RedeemTicket server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.RedeemTicket(bgs.protocol.club.v1.RedeemTicketRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.RedeemTicket() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleRedeemTicket(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 72: + ParseAndHandleRedeemTicket(token, methodId, buffer); break; - } - case 73: { - ::bgs::protocol::club::v1::GetTicketRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetTicket server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetTicket(bgs.protocol.club.v1.GetTicketRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetTicketResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetTicket() returned bgs.protocol.club.v1.GetTicketResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetTicketResponse response; - uint32 status = HandleGetTicket(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 73: + ParseAndHandleGetTicket(token, methodId, buffer); break; - } - case 74: { - ::bgs::protocol::club::v1::GetTicketsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetTickets server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetTickets(bgs.protocol.club.v1.GetTicketsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetTicketsResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetTickets() returned bgs.protocol.club.v1.GetTicketsResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetTicketsResponse response; - uint32 status = HandleGetTickets(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 74: + ParseAndHandleGetTickets(token, methodId, buffer); break; - } - case 80: { - ::bgs::protocol::club::v1::AddBanRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.AddBan server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AddBan(bgs.protocol.club.v1.AddBanRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AddBan() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleAddBan(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 80: + ParseAndHandleAddBan(token, methodId, buffer); break; - } - case 81: { - ::bgs::protocol::club::v1::RemoveBanRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.RemoveBan server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.RemoveBan(bgs.protocol.club.v1.RemoveBanRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.RemoveBan() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleRemoveBan(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 81: + ParseAndHandleRemoveBan(token, methodId, buffer); break; - } - case 82: { - ::bgs::protocol::club::v1::GetBanRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetBan server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetBan(bgs.protocol.club.v1.GetBanRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetBanResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetBan() returned bgs.protocol.club.v1.GetBanResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetBanResponse response; - uint32 status = HandleGetBan(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 82: + ParseAndHandleGetBan(token, methodId, buffer); break; - } - case 83: { - ::bgs::protocol::club::v1::GetBansRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetBans server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetBans(bgs.protocol.club.v1.GetBansRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetBansResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetBans() returned bgs.protocol.club.v1.GetBansResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetBansResponse response; - uint32 status = HandleGetBans(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 83: + ParseAndHandleGetBans(token, methodId, buffer); break; - } - case 100: { - ::bgs::protocol::club::v1::SubscribeStreamRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.SubscribeStream server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SubscribeStream(bgs.protocol.club.v1.SubscribeStreamRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SubscribeStream() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSubscribeStream(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 100: + ParseAndHandleSubscribeStream(token, methodId, buffer); break; - } - case 101: { - ::bgs::protocol::club::v1::UnsubscribeStreamRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.UnsubscribeStream server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UnsubscribeStream(bgs.protocol.club.v1.UnsubscribeStreamRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UnsubscribeStream() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnsubscribeStream(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 101: + ParseAndHandleUnsubscribeStream(token, methodId, buffer); break; - } - case 102: { - ::bgs::protocol::club::v1::CreateStreamRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.CreateStream server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.CreateStream(bgs.protocol.club.v1.CreateStreamRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::CreateStreamResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.CreateStream() returned bgs.protocol.club.v1.CreateStreamResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::CreateStreamResponse response; - uint32 status = HandleCreateStream(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 102: + ParseAndHandleCreateStream(token, methodId, buffer); break; - } - case 103: { - ::bgs::protocol::club::v1::DestroyStreamRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.DestroyStream server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DestroyStream(bgs.protocol.club.v1.DestroyStreamRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DestroyStream() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleDestroyStream(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 103: + ParseAndHandleDestroyStream(token, methodId, buffer); break; - } - case 104: { - ::bgs::protocol::club::v1::GetStreamRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetStream server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStream(bgs.protocol.club.v1.GetStreamRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetStreamResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStream() returned bgs.protocol.club.v1.GetStreamResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetStreamResponse response; - uint32 status = HandleGetStream(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 104: + ParseAndHandleGetStream(token, methodId, buffer); break; - } - case 105: { - ::bgs::protocol::club::v1::GetStreamsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetStreams server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStreams(bgs.protocol.club.v1.GetStreamsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetStreamsResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStreams() returned bgs.protocol.club.v1.GetStreamsResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetStreamsResponse response; - uint32 status = HandleGetStreams(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 105: + ParseAndHandleGetStreams(token, methodId, buffer); break; - } - case 106: { - ::bgs::protocol::club::v1::UpdateStreamStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.UpdateStreamState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateStreamState(bgs.protocol.club.v1.UpdateStreamStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.UpdateStreamState() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUpdateStreamState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 106: + ParseAndHandleUpdateStreamState(token, methodId, buffer); break; - } - case 107: { - ::bgs::protocol::club::v1::SetStreamFocusRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.SetStreamFocus server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SetStreamFocus(bgs.protocol.club.v1.SetStreamFocusRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SetStreamFocus() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSetStreamFocus(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 107: + ParseAndHandleSetStreamFocus(token, methodId, buffer); break; - } - case 108: { - ::bgs::protocol::club::v1::GetStreamVoiceTokenRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetStreamVoiceToken server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStreamVoiceToken(bgs.protocol.club.v1.GetStreamVoiceTokenRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetStreamVoiceTokenResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStreamVoiceToken() returned bgs.protocol.club.v1.GetStreamVoiceTokenResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetStreamVoiceTokenResponse response; - uint32 status = HandleGetStreamVoiceToken(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 108: + ParseAndHandleGetStreamVoiceToken(token, methodId, buffer); break; - } - case 109: { - ::bgs::protocol::club::v1::KickFromStreamVoiceRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.KickFromStreamVoice server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.KickFromStreamVoice(bgs.protocol.club.v1.KickFromStreamVoiceRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.KickFromStreamVoice() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleKickFromStreamVoice(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 109: + ParseAndHandleKickFromStreamVoice(token, methodId, buffer); break; - } - case 150: { - ::bgs::protocol::club::v1::CreateMessageRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.CreateMessage server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.CreateMessage(bgs.protocol.club.v1.CreateMessageRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::CreateMessageResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.CreateMessage() returned bgs.protocol.club.v1.CreateMessageResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::CreateMessageResponse response; - uint32 status = HandleCreateMessage(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 150: + ParseAndHandleCreateMessage(token, methodId, buffer); break; - } - case 151: { - ::bgs::protocol::club::v1::DestroyMessageRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.DestroyMessage server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DestroyMessage(bgs.protocol.club.v1.DestroyMessageRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::DestroyMessageResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.DestroyMessage() returned bgs.protocol.club.v1.DestroyMessageResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::DestroyMessageResponse response; - uint32 status = HandleDestroyMessage(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 151: + ParseAndHandleDestroyMessage(token, methodId, buffer); break; - } - case 152: { - ::bgs::protocol::club::v1::EditMessageRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.EditMessage server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.EditMessage(bgs.protocol.club.v1.EditMessageRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::EditMessageResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.EditMessage() returned bgs.protocol.club.v1.EditMessageResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::EditMessageResponse response; - uint32 status = HandleEditMessage(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 152: + ParseAndHandleEditMessage(token, methodId, buffer); break; - } - case 153: { - ::bgs::protocol::club::v1::SetMessagePinnedRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.SetMessagePinned server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SetMessagePinned(bgs.protocol.club.v1.SetMessagePinnedRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SetMessagePinned() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSetMessagePinned(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 153: + ParseAndHandleSetMessagePinned(token, methodId, buffer); break; - } - case 154: { - ::bgs::protocol::club::v1::SetTypingIndicatorRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.SetTypingIndicator server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SetTypingIndicator(bgs.protocol.club.v1.SetTypingIndicatorRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.SetTypingIndicator() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSetTypingIndicator(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 154: + ParseAndHandleSetTypingIndicator(token, methodId, buffer); break; - } - case 155: { - ::bgs::protocol::club::v1::AdvanceStreamViewTimeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.AdvanceStreamViewTime server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AdvanceStreamViewTime(bgs.protocol.club.v1.AdvanceStreamViewTimeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.AdvanceStreamViewTime() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleAdvanceStreamViewTime(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 155: + ParseAndHandleAdvanceStreamViewTime(token, methodId, buffer); break; - } - case 156: { - ::bgs::protocol::club::v1::GetStreamHistoryRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetStreamHistory server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStreamHistory(bgs.protocol.club.v1.GetStreamHistoryRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetStreamHistoryResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStreamHistory() returned bgs.protocol.club.v1.GetStreamHistoryResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetStreamHistoryResponse response; - uint32 status = HandleGetStreamHistory(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 156: + ParseAndHandleGetStreamHistory(token, methodId, buffer); break; - } - case 157: { - ::bgs::protocol::club::v1::GetStreamMessageRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ClubService.GetStreamMessage server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStreamMessage(bgs.protocol.club.v1.GetStreamMessageRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::club::v1::GetStreamMessageResponse::descriptor()); - ClubService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ClubService.GetStreamMessage() returned bgs.protocol.club.v1.GetStreamMessageResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::club::v1::GetStreamMessageResponse response; - uint32 status = HandleGetStreamMessage(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 157: + ParseAndHandleGetStreamMessage(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 ClubService::HandleSubscribe(::bgs::protocol::club::v1::SubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.Subscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleSubscribe(::bgs::protocol::club::v1::SubscribeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.Subscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleUnsubscribe(::bgs::protocol::club::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.Unsubscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleUnsubscribe(::bgs::protocol::club::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.Unsubscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleCreate(::bgs::protocol::club::v1::CreateRequest const* request, ::bgs::protocol::club::v1::CreateResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.Create({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleCreate(::bgs::protocol::club::v1::CreateRequest const* request, ::bgs::protocol::club::v1::CreateResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.Create", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleDestroy(::bgs::protocol::club::v1::DestroyRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.Destroy({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleDestroy(::bgs::protocol::club::v1::DestroyRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.Destroy", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetDescription(::bgs::protocol::club::v1::GetDescriptionRequest const* request, ::bgs::protocol::club::v1::GetDescriptionResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetDescription({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetDescription(::bgs::protocol::club::v1::GetDescriptionRequest const* request, ::bgs::protocol::club::v1::GetDescriptionResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetDescription", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetClubType(::bgs::protocol::club::v1::GetClubTypeRequest const* request, ::bgs::protocol::club::v1::GetClubTypeResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetClubType({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetClubType(::bgs::protocol::club::v1::GetClubTypeRequest const* request, ::bgs::protocol::club::v1::GetClubTypeResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetClubType", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleUpdateClubState(::bgs::protocol::club::v1::UpdateClubStateRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.UpdateClubState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleUpdateClubState(::bgs::protocol::club::v1::UpdateClubStateRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.UpdateClubState", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleUpdateClubSettings(::bgs::protocol::club::v1::UpdateClubSettingsRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.UpdateClubSettings({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleUpdateClubSettings(::bgs::protocol::club::v1::UpdateClubSettingsRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.UpdateClubSettings", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleJoin(::bgs::protocol::club::v1::JoinRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.Join({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleJoin(::bgs::protocol::club::v1::JoinRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.Join", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleLeave(::bgs::protocol::club::v1::LeaveRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.Leave({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleLeave(::bgs::protocol::club::v1::LeaveRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.Leave", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleKick(::bgs::protocol::club::v1::KickRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.Kick({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleKick(::bgs::protocol::club::v1::KickRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.Kick", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetMember(::bgs::protocol::club::v1::GetMemberRequest const* request, ::bgs::protocol::club::v1::GetMemberResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetMember({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetMember(::bgs::protocol::club::v1::GetMemberRequest const* request, ::bgs::protocol::club::v1::GetMemberResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetMember", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetMembers(::bgs::protocol::club::v1::GetMembersRequest const* request, ::bgs::protocol::club::v1::GetMembersResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetMembers({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetMembers(::bgs::protocol::club::v1::GetMembersRequest const* request, ::bgs::protocol::club::v1::GetMembersResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetMembers", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleUpdateMemberState(::bgs::protocol::club::v1::UpdateMemberStateRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.UpdateMemberState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleUpdateMemberState(::bgs::protocol::club::v1::UpdateMemberStateRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.UpdateMemberState", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleUpdateSubscriberState(::bgs::protocol::club::v1::UpdateSubscriberStateRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.UpdateSubscriberState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleUpdateSubscriberState(::bgs::protocol::club::v1::UpdateSubscriberStateRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.UpdateSubscriberState", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleAssignRole(::bgs::protocol::club::v1::AssignRoleRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.AssignRole({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleAssignRole(::bgs::protocol::club::v1::AssignRoleRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.AssignRole", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleUnassignRole(::bgs::protocol::club::v1::UnassignRoleRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.UnassignRole({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleUnassignRole(::bgs::protocol::club::v1::UnassignRoleRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.UnassignRole", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleSendInvitation(::bgs::protocol::club::v1::SendInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.SendInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleSendInvitation(::bgs::protocol::club::v1::SendInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.SendInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleAcceptInvitation(::bgs::protocol::club::v1::AcceptInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.AcceptInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleAcceptInvitation(::bgs::protocol::club::v1::AcceptInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.AcceptInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleDeclineInvitation(::bgs::protocol::club::v1::DeclineInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.DeclineInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleDeclineInvitation(::bgs::protocol::club::v1::DeclineInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.DeclineInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleRevokeInvitation(::bgs::protocol::club::v1::RevokeInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.RevokeInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleRevokeInvitation(::bgs::protocol::club::v1::RevokeInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.RevokeInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetInvitation(::bgs::protocol::club::v1::GetInvitationRequest const* request, ::bgs::protocol::club::v1::GetInvitationResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetInvitation(::bgs::protocol::club::v1::GetInvitationRequest const* request, ::bgs::protocol::club::v1::GetInvitationResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetInvitations(::bgs::protocol::club::v1::GetInvitationsRequest const* request, ::bgs::protocol::club::v1::GetInvitationsResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetInvitations({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetInvitations(::bgs::protocol::club::v1::GetInvitationsRequest const* request, ::bgs::protocol::club::v1::GetInvitationsResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetInvitations", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleSendSuggestion(::bgs::protocol::club::v1::SendSuggestionRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.SendSuggestion({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleSendSuggestion(::bgs::protocol::club::v1::SendSuggestionRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.SendSuggestion", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleAcceptSuggestion(::bgs::protocol::club::v1::AcceptSuggestionRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.AcceptSuggestion({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleAcceptSuggestion(::bgs::protocol::club::v1::AcceptSuggestionRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.AcceptSuggestion", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleDeclineSuggestion(::bgs::protocol::club::v1::DeclineSuggestionRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.DeclineSuggestion({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleDeclineSuggestion(::bgs::protocol::club::v1::DeclineSuggestionRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.DeclineSuggestion", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetSuggestion(::bgs::protocol::club::v1::GetSuggestionRequest const* request, ::bgs::protocol::club::v1::GetSuggestionResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetSuggestion({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetSuggestion(::bgs::protocol::club::v1::GetSuggestionRequest const* request, ::bgs::protocol::club::v1::GetSuggestionResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetSuggestion", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetSuggestions(::bgs::protocol::club::v1::GetSuggestionsRequest const* request, ::bgs::protocol::club::v1::GetSuggestionsResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetSuggestions({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetSuggestions(::bgs::protocol::club::v1::GetSuggestionsRequest const* request, ::bgs::protocol::club::v1::GetSuggestionsResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetSuggestions", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleCreateTicket(::bgs::protocol::club::v1::CreateTicketRequest const* request, ::bgs::protocol::club::v1::CreateTicketResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.CreateTicket({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleCreateTicket(::bgs::protocol::club::v1::CreateTicketRequest const* request, ::bgs::protocol::club::v1::CreateTicketResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.CreateTicket", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleDestroyTicket(::bgs::protocol::club::v1::DestroyTicketRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.DestroyTicket({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleDestroyTicket(::bgs::protocol::club::v1::DestroyTicketRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.DestroyTicket", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleRedeemTicket(::bgs::protocol::club::v1::RedeemTicketRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.RedeemTicket({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleRedeemTicket(::bgs::protocol::club::v1::RedeemTicketRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.RedeemTicket", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetTicket(::bgs::protocol::club::v1::GetTicketRequest const* request, ::bgs::protocol::club::v1::GetTicketResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetTicket({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetTicket(::bgs::protocol::club::v1::GetTicketRequest const* request, ::bgs::protocol::club::v1::GetTicketResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetTicket", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetTickets(::bgs::protocol::club::v1::GetTicketsRequest const* request, ::bgs::protocol::club::v1::GetTicketsResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetTickets({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetTickets(::bgs::protocol::club::v1::GetTicketsRequest const* request, ::bgs::protocol::club::v1::GetTicketsResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetTickets", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleAddBan(::bgs::protocol::club::v1::AddBanRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.AddBan({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleAddBan(::bgs::protocol::club::v1::AddBanRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.AddBan", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleRemoveBan(::bgs::protocol::club::v1::RemoveBanRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.RemoveBan({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleRemoveBan(::bgs::protocol::club::v1::RemoveBanRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.RemoveBan", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetBan(::bgs::protocol::club::v1::GetBanRequest const* request, ::bgs::protocol::club::v1::GetBanResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetBan({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetBan(::bgs::protocol::club::v1::GetBanRequest const* request, ::bgs::protocol::club::v1::GetBanResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetBan", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetBans(::bgs::protocol::club::v1::GetBansRequest const* request, ::bgs::protocol::club::v1::GetBansResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetBans({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetBans(::bgs::protocol::club::v1::GetBansRequest const* request, ::bgs::protocol::club::v1::GetBansResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetBans", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleSubscribeStream(::bgs::protocol::club::v1::SubscribeStreamRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.SubscribeStream({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleSubscribeStream(::bgs::protocol::club::v1::SubscribeStreamRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.SubscribeStream", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleUnsubscribeStream(::bgs::protocol::club::v1::UnsubscribeStreamRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.UnsubscribeStream({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleUnsubscribeStream(::bgs::protocol::club::v1::UnsubscribeStreamRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.UnsubscribeStream", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleCreateStream(::bgs::protocol::club::v1::CreateStreamRequest const* request, ::bgs::protocol::club::v1::CreateStreamResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.CreateStream({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleCreateStream(::bgs::protocol::club::v1::CreateStreamRequest const* request, ::bgs::protocol::club::v1::CreateStreamResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.CreateStream", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleDestroyStream(::bgs::protocol::club::v1::DestroyStreamRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.DestroyStream({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleDestroyStream(::bgs::protocol::club::v1::DestroyStreamRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.DestroyStream", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetStream(::bgs::protocol::club::v1::GetStreamRequest const* request, ::bgs::protocol::club::v1::GetStreamResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetStream({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetStream(::bgs::protocol::club::v1::GetStreamRequest const* request, ::bgs::protocol::club::v1::GetStreamResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetStream", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetStreams(::bgs::protocol::club::v1::GetStreamsRequest const* request, ::bgs::protocol::club::v1::GetStreamsResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetStreams({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetStreams(::bgs::protocol::club::v1::GetStreamsRequest const* request, ::bgs::protocol::club::v1::GetStreamsResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetStreams", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleUpdateStreamState(::bgs::protocol::club::v1::UpdateStreamStateRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.UpdateStreamState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleUpdateStreamState(::bgs::protocol::club::v1::UpdateStreamStateRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.UpdateStreamState", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleSetStreamFocus(::bgs::protocol::club::v1::SetStreamFocusRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.SetStreamFocus({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleSetStreamFocus(::bgs::protocol::club::v1::SetStreamFocusRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.SetStreamFocus", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetStreamVoiceToken(::bgs::protocol::club::v1::GetStreamVoiceTokenRequest const* request, ::bgs::protocol::club::v1::GetStreamVoiceTokenResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetStreamVoiceToken({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetStreamVoiceToken(::bgs::protocol::club::v1::GetStreamVoiceTokenRequest const* request, ::bgs::protocol::club::v1::GetStreamVoiceTokenResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetStreamVoiceToken", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleKickFromStreamVoice(::bgs::protocol::club::v1::KickFromStreamVoiceRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.KickFromStreamVoice({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleKickFromStreamVoice(::bgs::protocol::club::v1::KickFromStreamVoiceRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.KickFromStreamVoice", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleCreateMessage(::bgs::protocol::club::v1::CreateMessageRequest const* request, ::bgs::protocol::club::v1::CreateMessageResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.CreateMessage({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleCreateMessage(::bgs::protocol::club::v1::CreateMessageRequest const* request, ::bgs::protocol::club::v1::CreateMessageResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.CreateMessage", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleDestroyMessage(::bgs::protocol::club::v1::DestroyMessageRequest const* request, ::bgs::protocol::club::v1::DestroyMessageResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.DestroyMessage({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleDestroyMessage(::bgs::protocol::club::v1::DestroyMessageRequest const* request, ::bgs::protocol::club::v1::DestroyMessageResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.DestroyMessage", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleEditMessage(::bgs::protocol::club::v1::EditMessageRequest const* request, ::bgs::protocol::club::v1::EditMessageResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.EditMessage({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleEditMessage(::bgs::protocol::club::v1::EditMessageRequest const* request, ::bgs::protocol::club::v1::EditMessageResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.EditMessage", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleSetMessagePinned(::bgs::protocol::club::v1::SetMessagePinnedRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.SetMessagePinned({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleSetMessagePinned(::bgs::protocol::club::v1::SetMessagePinnedRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.SetMessagePinned", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleSetTypingIndicator(::bgs::protocol::club::v1::SetTypingIndicatorRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.SetTypingIndicator({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleSetTypingIndicator(::bgs::protocol::club::v1::SetTypingIndicatorRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.SetTypingIndicator", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleAdvanceStreamViewTime(::bgs::protocol::club::v1::AdvanceStreamViewTimeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.AdvanceStreamViewTime({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleAdvanceStreamViewTime(::bgs::protocol::club::v1::AdvanceStreamViewTimeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.AdvanceStreamViewTime", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetStreamHistory(::bgs::protocol::club::v1::GetStreamHistoryRequest const* request, ::bgs::protocol::club::v1::GetStreamHistoryResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetStreamHistory({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetStreamHistory(::bgs::protocol::club::v1::GetStreamHistoryRequest const* request, ::bgs::protocol::club::v1::GetStreamHistoryResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetStreamHistory", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ClubService::HandleGetStreamMessage(::bgs::protocol::club::v1::GetStreamMessageRequest const* request, ::bgs::protocol::club::v1::GetStreamMessageResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ClubService.GetStreamMessage({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ClubService::HandleGetStreamMessage(::bgs::protocol::club::v1::GetStreamMessageRequest const* request, ::bgs::protocol::club::v1::GetStreamMessageResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ClubService.GetStreamMessage", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void ClubService::ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::SubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.Subscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.Subscribe", "bgs.protocol.club.v1.SubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.Subscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::UnsubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.Unsubscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.Unsubscribe", "bgs.protocol.club.v1.UnsubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.Unsubscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnsubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleCreate(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::CreateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.Create"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.Create", "bgs.protocol.club.v1.CreateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.Create", ::bgs::protocol::club::v1::CreateResponse::descriptor()); + ::bgs::protocol::club::v1::CreateResponse response; + uint32 status = HandleCreate(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleDestroy(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::DestroyRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.Destroy"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.Destroy", "bgs.protocol.club.v1.DestroyRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.Destroy", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleDestroy(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetDescription(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetDescriptionRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetDescription"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetDescription", "bgs.protocol.club.v1.GetDescriptionRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetDescription", ::bgs::protocol::club::v1::GetDescriptionResponse::descriptor()); + ::bgs::protocol::club::v1::GetDescriptionResponse response; + uint32 status = HandleGetDescription(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetClubType(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetClubTypeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetClubType"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetClubType", "bgs.protocol.club.v1.GetClubTypeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetClubType", ::bgs::protocol::club::v1::GetClubTypeResponse::descriptor()); + ::bgs::protocol::club::v1::GetClubTypeResponse response; + uint32 status = HandleGetClubType(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleUpdateClubState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::UpdateClubStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.UpdateClubState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.UpdateClubState", "bgs.protocol.club.v1.UpdateClubStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.UpdateClubState", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUpdateClubState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleUpdateClubSettings(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::UpdateClubSettingsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.UpdateClubSettings"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.UpdateClubSettings", "bgs.protocol.club.v1.UpdateClubSettingsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.UpdateClubSettings", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUpdateClubSettings(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleJoin(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::JoinRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.Join"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.Join", "bgs.protocol.club.v1.JoinRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.Join", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleJoin(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleLeave(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::LeaveRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.Leave"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.Leave", "bgs.protocol.club.v1.LeaveRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.Leave", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleLeave(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleKick(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::KickRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.Kick"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.Kick", "bgs.protocol.club.v1.KickRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.Kick", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleKick(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetMember(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetMemberRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetMember"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetMember", "bgs.protocol.club.v1.GetMemberRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetMember", ::bgs::protocol::club::v1::GetMemberResponse::descriptor()); + ::bgs::protocol::club::v1::GetMemberResponse response; + uint32 status = HandleGetMember(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetMembers(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetMembersRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetMembers"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetMembers", "bgs.protocol.club.v1.GetMembersRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetMembers", ::bgs::protocol::club::v1::GetMembersResponse::descriptor()); + ::bgs::protocol::club::v1::GetMembersResponse response; + uint32 status = HandleGetMembers(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleUpdateMemberState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::UpdateMemberStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.UpdateMemberState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.UpdateMemberState", "bgs.protocol.club.v1.UpdateMemberStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.UpdateMemberState", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUpdateMemberState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleUpdateSubscriberState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::UpdateSubscriberStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.UpdateSubscriberState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.UpdateSubscriberState", "bgs.protocol.club.v1.UpdateSubscriberStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.UpdateSubscriberState", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUpdateSubscriberState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleAssignRole(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::AssignRoleRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.AssignRole"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.AssignRole", "bgs.protocol.club.v1.AssignRoleRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.AssignRole", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleAssignRole(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleUnassignRole(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::UnassignRoleRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.UnassignRole"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.UnassignRole", "bgs.protocol.club.v1.UnassignRoleRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.UnassignRole", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnassignRole(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleSendInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::SendInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.SendInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.SendInvitation", "bgs.protocol.club.v1.SendInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.SendInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSendInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleAcceptInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::AcceptInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.AcceptInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.AcceptInvitation", "bgs.protocol.club.v1.AcceptInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.AcceptInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleAcceptInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleDeclineInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::DeclineInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.DeclineInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.DeclineInvitation", "bgs.protocol.club.v1.DeclineInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.DeclineInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleDeclineInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleRevokeInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::RevokeInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.RevokeInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.RevokeInvitation", "bgs.protocol.club.v1.RevokeInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.RevokeInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleRevokeInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetInvitation", "bgs.protocol.club.v1.GetInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetInvitation", ::bgs::protocol::club::v1::GetInvitationResponse::descriptor()); + ::bgs::protocol::club::v1::GetInvitationResponse response; + uint32 status = HandleGetInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetInvitations(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetInvitationsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetInvitations"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetInvitations", "bgs.protocol.club.v1.GetInvitationsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetInvitations", ::bgs::protocol::club::v1::GetInvitationsResponse::descriptor()); + ::bgs::protocol::club::v1::GetInvitationsResponse response; + uint32 status = HandleGetInvitations(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleSendSuggestion(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::SendSuggestionRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.SendSuggestion"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.SendSuggestion", "bgs.protocol.club.v1.SendSuggestionRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.SendSuggestion", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSendSuggestion(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleAcceptSuggestion(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::AcceptSuggestionRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.AcceptSuggestion"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.AcceptSuggestion", "bgs.protocol.club.v1.AcceptSuggestionRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.AcceptSuggestion", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleAcceptSuggestion(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleDeclineSuggestion(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::DeclineSuggestionRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.DeclineSuggestion"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.DeclineSuggestion", "bgs.protocol.club.v1.DeclineSuggestionRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.DeclineSuggestion", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleDeclineSuggestion(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetSuggestion(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetSuggestionRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetSuggestion"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetSuggestion", "bgs.protocol.club.v1.GetSuggestionRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetSuggestion", ::bgs::protocol::club::v1::GetSuggestionResponse::descriptor()); + ::bgs::protocol::club::v1::GetSuggestionResponse response; + uint32 status = HandleGetSuggestion(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetSuggestions(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetSuggestionsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetSuggestions"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetSuggestions", "bgs.protocol.club.v1.GetSuggestionsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetSuggestions", ::bgs::protocol::club::v1::GetSuggestionsResponse::descriptor()); + ::bgs::protocol::club::v1::GetSuggestionsResponse response; + uint32 status = HandleGetSuggestions(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleCreateTicket(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::CreateTicketRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.CreateTicket"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.CreateTicket", "bgs.protocol.club.v1.CreateTicketRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.CreateTicket", ::bgs::protocol::club::v1::CreateTicketResponse::descriptor()); + ::bgs::protocol::club::v1::CreateTicketResponse response; + uint32 status = HandleCreateTicket(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleDestroyTicket(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::DestroyTicketRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.DestroyTicket"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.DestroyTicket", "bgs.protocol.club.v1.DestroyTicketRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.DestroyTicket", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleDestroyTicket(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleRedeemTicket(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::RedeemTicketRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.RedeemTicket"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.RedeemTicket", "bgs.protocol.club.v1.RedeemTicketRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.RedeemTicket", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleRedeemTicket(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetTicket(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetTicketRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetTicket"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetTicket", "bgs.protocol.club.v1.GetTicketRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetTicket", ::bgs::protocol::club::v1::GetTicketResponse::descriptor()); + ::bgs::protocol::club::v1::GetTicketResponse response; + uint32 status = HandleGetTicket(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetTickets(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetTicketsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetTickets"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetTickets", "bgs.protocol.club.v1.GetTicketsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetTickets", ::bgs::protocol::club::v1::GetTicketsResponse::descriptor()); + ::bgs::protocol::club::v1::GetTicketsResponse response; + uint32 status = HandleGetTickets(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleAddBan(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::AddBanRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.AddBan"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.AddBan", "bgs.protocol.club.v1.AddBanRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.AddBan", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleAddBan(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleRemoveBan(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::RemoveBanRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.RemoveBan"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.RemoveBan", "bgs.protocol.club.v1.RemoveBanRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.RemoveBan", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleRemoveBan(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetBan(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetBanRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetBan"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetBan", "bgs.protocol.club.v1.GetBanRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetBan", ::bgs::protocol::club::v1::GetBanResponse::descriptor()); + ::bgs::protocol::club::v1::GetBanResponse response; + uint32 status = HandleGetBan(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetBans(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetBansRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetBans"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetBans", "bgs.protocol.club.v1.GetBansRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetBans", ::bgs::protocol::club::v1::GetBansResponse::descriptor()); + ::bgs::protocol::club::v1::GetBansResponse response; + uint32 status = HandleGetBans(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleSubscribeStream(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::SubscribeStreamRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.SubscribeStream"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.SubscribeStream", "bgs.protocol.club.v1.SubscribeStreamRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.SubscribeStream", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSubscribeStream(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleUnsubscribeStream(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::UnsubscribeStreamRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.UnsubscribeStream"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.UnsubscribeStream", "bgs.protocol.club.v1.UnsubscribeStreamRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.UnsubscribeStream", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnsubscribeStream(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleCreateStream(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::CreateStreamRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.CreateStream"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.CreateStream", "bgs.protocol.club.v1.CreateStreamRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.CreateStream", ::bgs::protocol::club::v1::CreateStreamResponse::descriptor()); + ::bgs::protocol::club::v1::CreateStreamResponse response; + uint32 status = HandleCreateStream(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleDestroyStream(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::DestroyStreamRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.DestroyStream"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.DestroyStream", "bgs.protocol.club.v1.DestroyStreamRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.DestroyStream", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleDestroyStream(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetStream(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetStreamRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetStream"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetStream", "bgs.protocol.club.v1.GetStreamRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetStream", ::bgs::protocol::club::v1::GetStreamResponse::descriptor()); + ::bgs::protocol::club::v1::GetStreamResponse response; + uint32 status = HandleGetStream(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetStreams(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetStreamsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetStreams"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetStreams", "bgs.protocol.club.v1.GetStreamsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetStreams", ::bgs::protocol::club::v1::GetStreamsResponse::descriptor()); + ::bgs::protocol::club::v1::GetStreamsResponse response; + uint32 status = HandleGetStreams(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleUpdateStreamState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::UpdateStreamStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.UpdateStreamState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.UpdateStreamState", "bgs.protocol.club.v1.UpdateStreamStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.UpdateStreamState", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUpdateStreamState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleSetStreamFocus(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::SetStreamFocusRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.SetStreamFocus"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.SetStreamFocus", "bgs.protocol.club.v1.SetStreamFocusRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.SetStreamFocus", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSetStreamFocus(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetStreamVoiceToken(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetStreamVoiceTokenRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetStreamVoiceToken"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetStreamVoiceToken", "bgs.protocol.club.v1.GetStreamVoiceTokenRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetStreamVoiceToken", ::bgs::protocol::club::v1::GetStreamVoiceTokenResponse::descriptor()); + ::bgs::protocol::club::v1::GetStreamVoiceTokenResponse response; + uint32 status = HandleGetStreamVoiceToken(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleKickFromStreamVoice(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::KickFromStreamVoiceRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.KickFromStreamVoice"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.KickFromStreamVoice", "bgs.protocol.club.v1.KickFromStreamVoiceRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.KickFromStreamVoice", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleKickFromStreamVoice(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleCreateMessage(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::CreateMessageRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.CreateMessage"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.CreateMessage", "bgs.protocol.club.v1.CreateMessageRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.CreateMessage", ::bgs::protocol::club::v1::CreateMessageResponse::descriptor()); + ::bgs::protocol::club::v1::CreateMessageResponse response; + uint32 status = HandleCreateMessage(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleDestroyMessage(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::DestroyMessageRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.DestroyMessage"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.DestroyMessage", "bgs.protocol.club.v1.DestroyMessageRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.DestroyMessage", ::bgs::protocol::club::v1::DestroyMessageResponse::descriptor()); + ::bgs::protocol::club::v1::DestroyMessageResponse response; + uint32 status = HandleDestroyMessage(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleEditMessage(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::EditMessageRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.EditMessage"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.EditMessage", "bgs.protocol.club.v1.EditMessageRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.EditMessage", ::bgs::protocol::club::v1::EditMessageResponse::descriptor()); + ::bgs::protocol::club::v1::EditMessageResponse response; + uint32 status = HandleEditMessage(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleSetMessagePinned(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::SetMessagePinnedRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.SetMessagePinned"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.SetMessagePinned", "bgs.protocol.club.v1.SetMessagePinnedRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.SetMessagePinned", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSetMessagePinned(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleSetTypingIndicator(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::SetTypingIndicatorRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.SetTypingIndicator"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.SetTypingIndicator", "bgs.protocol.club.v1.SetTypingIndicatorRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.SetTypingIndicator", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSetTypingIndicator(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleAdvanceStreamViewTime(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::AdvanceStreamViewTimeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.AdvanceStreamViewTime"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.AdvanceStreamViewTime", "bgs.protocol.club.v1.AdvanceStreamViewTimeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.AdvanceStreamViewTime", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleAdvanceStreamViewTime(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetStreamHistory(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetStreamHistoryRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetStreamHistory"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetStreamHistory", "bgs.protocol.club.v1.GetStreamHistoryRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetStreamHistory", ::bgs::protocol::club::v1::GetStreamHistoryResponse::descriptor()); + ::bgs::protocol::club::v1::GetStreamHistoryResponse response; + uint32 status = HandleGetStreamHistory(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ClubService::ParseAndHandleGetStreamMessage(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::club::v1::GetStreamMessageRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ClubService.GetStreamMessage"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ClubService.GetStreamMessage", "bgs.protocol.club.v1.GetStreamMessageRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ClubService.GetStreamMessage", ::bgs::protocol::club::v1::GetStreamMessageResponse::descriptor()); + ::bgs::protocol::club::v1::GetStreamMessageResponse response; + uint32 status = HandleGetStreamMessage(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/club_service.pb.h b/src/server/proto/Client/club_service.pb.h index 9ee5ab9c54f..4b6c92a9b8e 100644 --- a/src/server/proto/Client/club_service.pb.h +++ b/src/server/proto/Client/club_service.pb.h @@ -48,6 +48,10 @@ class TC_PROTO_API ClubService : public ServiceBase public: explicit ClubService(bool use_original_hash); + ClubService(ClubService const&) = delete; + ClubService(ClubService&&) = delete; + ClubService& operator=(ClubService const&) = delete; + ClubService& operator=(ClubService&&) = delete; virtual ~ClubService(); typedef std::integral_constant OriginalHash; @@ -116,9 +120,61 @@ class TC_PROTO_API ClubService : public ServiceBase virtual uint32 HandleGetStreamMessage(::bgs::protocol::club::v1::GetStreamMessageRequest const* request, ::bgs::protocol::club::v1::GetStreamMessageResponse* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ClubService); + void ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleCreate(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleDestroy(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetDescription(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetClubType(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUpdateClubState(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUpdateClubSettings(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleJoin(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleLeave(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleKick(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetMember(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetMembers(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUpdateMemberState(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUpdateSubscriberState(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleAssignRole(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnassignRole(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSendInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleAcceptInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleDeclineInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRevokeInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetInvitations(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSendSuggestion(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleAcceptSuggestion(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleDeclineSuggestion(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetSuggestion(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetSuggestions(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleCreateTicket(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleDestroyTicket(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRedeemTicket(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetTicket(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetTickets(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleAddBan(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRemoveBan(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetBan(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetBans(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSubscribeStream(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnsubscribeStream(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleCreateStream(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleDestroyStream(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetStream(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetStreams(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUpdateStreamState(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSetStreamFocus(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetStreamVoiceToken(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleKickFromStreamVoice(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleCreateMessage(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleDestroyMessage(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleEditMessage(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSetMessagePinned(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSetTypingIndicator(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleAdvanceStreamViewTime(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetStreamHistory(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetStreamMessage(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/club_service.proto b/src/server/proto/Client/club_service.proto index c1acbda088e..d0bb94bfbce 100644 --- a/src/server/proto/Client/club_service.proto +++ b/src/server/proto/Client/club_service.proto @@ -3,7 +3,7 @@ syntax = "proto2"; import "club_request.proto"; package bgs.protocol.club.v1; -option optimize_for = SPEED; +option optimize_for = CODE_SIZE; option cc_generic_services = false; service ClubService { diff --git a/src/server/proto/Client/club_stream.pb.cc b/src/server/proto/Client/club_stream.pb.cc index 0315a303412..97805cecb77 100644 --- a/src/server/proto/Client/club_stream.pb.cc +++ b/src/server/proto/Client/club_stream.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_stream.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -581,7 +579,7 @@ void protobuf_AddDesc_club_5fstream_2eproto() { "pingIndicator\0221\n\tauthor_id\030\001 \001(\0132\036.bgs.p" "rotocol.club.v1.MemberId\0220\n\tindicator\030\002 " "\001(\0162\035.bgs.protocol.TypingIndicator\022\r\n\005ep" - "och\030\003 \001(\004B\002H\001", 2773); + "och\030\003 \001(\004B\002H\002", 2773); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_stream.proto", &protobuf_RegisterTypes); StreamPosition::default_instance_ = new StreamPosition(); @@ -653,7 +651,6 @@ StreamPosition::StreamPosition(const StreamPosition& from) void StreamPosition::SharedCtor() { _cached_size_ = 0; - _stream_id_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -688,178 +685,9 @@ StreamPosition* StreamPosition::New() const { return new StreamPosition; } -void StreamPosition::Clear() { - stream_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamPosition::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamPosition) - 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 uint64 stream_id = 1 [packed = true]; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_stream_id()))); - } else if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 10, input, this->mutable_stream_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.club.v1.StreamPosition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamPosition) - return false; -#undef DO_ -} - -void StreamPosition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamPosition) - // repeated uint64 stream_id = 1 [packed = true]; - if (this->stream_id_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_stream_id_cached_byte_size_); - } - for (int i = 0; i < this->stream_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag( - this->stream_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamPosition) -} - -::google::protobuf::uint8* StreamPosition::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamPosition) - // repeated uint64 stream_id = 1 [packed = true]; - if (this->stream_id_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _stream_id_cached_byte_size_, target); - } - for (int i = 0; i < this->stream_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64NoTagToArray(this->stream_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.club.v1.StreamPosition) - return target; -} - -int StreamPosition::ByteSize() const { - int total_size = 0; - - // repeated uint64 stream_id = 1 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->stream_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->stream_id(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _stream_id_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 StreamPosition::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamPosition* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamPosition::MergeFrom(const StreamPosition& from) { - GOOGLE_CHECK_NE(&from, this); - stream_id_.MergeFrom(from.stream_id_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamPosition::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamPosition::CopyFrom(const StreamPosition& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamPosition::IsInitialized() const { - return true; -} - void StreamPosition::Swap(StreamPosition* other) { if (other != this) { - stream_id_.Swap(&other->stream_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamPosition::GetMetadata() const { @@ -894,7 +722,6 @@ StreamAccess::StreamAccess(const StreamAccess& from) void StreamAccess::SharedCtor() { _cached_size_ = 0; - _role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -929,178 +756,9 @@ StreamAccess* StreamAccess::New() const { return new StreamAccess; } -void StreamAccess::Clear() { - role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamAccess::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamAccess) - 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 uint32 role = 1 [packed = true]; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_role()))); - } else if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 10, 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.club.v1.StreamAccess) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamAccess) - return false; -#undef DO_ -} - -void StreamAccess::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamAccess) - // repeated uint32 role = 1 [packed = true]; - if (this->role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::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.club.v1.StreamAccess) -} - -::google::protobuf::uint8* StreamAccess::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamAccess) - // repeated uint32 role = 1 [packed = true]; - if (this->role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::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.club.v1.StreamAccess) - return target; -} - -int StreamAccess::ByteSize() const { - int total_size = 0; - - // repeated uint32 role = 1 [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 StreamAccess::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamAccess* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamAccess::MergeFrom(const StreamAccess& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamAccess::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamAccess::CopyFrom(const StreamAccess& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamAccess::IsInitialized() const { - return true; -} - void StreamAccess::Swap(StreamAccess* other) { if (other != this) { - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamAccess::GetMetadata() const { @@ -1186,352 +844,9 @@ CreateStreamOptions* CreateStreamOptions::New() const { return new CreateStreamOptions; } -void CreateStreamOptions::Clear() { - if (_has_bits_[0 / 32] & 30) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_subject()) { - if (subject_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - subject_->clear(); - } - } - if (has_access()) { - if (access_ != NULL) access_->::bgs::protocol::club::v1::StreamAccess::Clear(); - } - voice_level_ = 0; - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateStreamOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateStreamOptions) - 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.v2.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute; - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // optional string name = 2; - case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_subject; - break; - } - - // optional string subject = 3; - case 3: { - if (tag == 26) { - parse_subject: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_subject())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "subject"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_access; - break; - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 4; - case 4: { - if (tag == 34) { - parse_access: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_access())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_voice_level; - break; - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 5; - case 5: { - if (tag == 40) { - parse_voice_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::StreamVoiceLevel_IsValid(value)) { - set_voice_level(static_cast< ::bgs::protocol::club::v1::StreamVoiceLevel >(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.club.v1.CreateStreamOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateStreamOptions) - return false; -#undef DO_ -} - -void CreateStreamOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateStreamOptions) - // repeated .bgs.protocol.v2.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // optional string subject = 3; - if (has_subject()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subject"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->subject(), output); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 4; - if (has_access()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->access(), output); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 5; - if (has_voice_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->voice_level(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateStreamOptions) -} - -::google::protobuf::uint8* CreateStreamOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateStreamOptions) - // repeated .bgs.protocol.v2.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(i), target); - } - - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // optional string subject = 3; - if (has_subject()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subject"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->subject(), target); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 4; - if (has_access()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->access(), target); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 5; - if (has_voice_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->voice_level(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateStreamOptions) - return target; -} - -int CreateStreamOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string subject = 3; - if (has_subject()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->subject()); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 4; - if (has_access()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->access()); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 5; - if (has_voice_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->voice_level()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 1; - 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 CreateStreamOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateStreamOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateStreamOptions::MergeFrom(const CreateStreamOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_subject()) { - set_subject(from.subject()); - } - if (from.has_access()) { - mutable_access()->::bgs::protocol::club::v1::StreamAccess::MergeFrom(from.access()); - } - if (from.has_voice_level()) { - set_voice_level(from.voice_level()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateStreamOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateStreamOptions::CopyFrom(const CreateStreamOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateStreamOptions::IsInitialized() const { - return true; -} - void CreateStreamOptions::Swap(CreateStreamOptions* other) { if (other != this) { - attribute_.Swap(&other->attribute_); - std::swap(name_, other->name_); - std::swap(subject_, other->subject_); - std::swap(access_, other->access_); - std::swap(voice_level_, other->voice_level_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateStreamOptions::GetMetadata() const { @@ -1623,474 +938,9 @@ Stream* Stream::New() const { return new Stream; } -void Stream::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 251) { - ZR_(club_id_, id_); - ZR_(creation_time_, voice_level_); - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_subject()) { - if (subject_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - subject_->clear(); - } - } - if (has_access()) { - if (access_ != NULL) access_->::bgs::protocol::club::v1::StreamAccess::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Stream::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.Stream) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_id; - break; - } - - // optional uint64 id = 2; - case 2: { - if (tag == 16) { - parse_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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->ExpectTag(34)) goto parse_name; - break; - } - - // optional string name = 4; - case 4: { - if (tag == 34) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_subject; - break; - } - - // optional string subject = 5; - case 5: { - if (tag == 42) { - parse_subject: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_subject())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "subject"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_access; - break; - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 6; - case 6: { - if (tag == 50) { - parse_access: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_access())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_voice_level; - break; - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 7; - case 7: { - if (tag == 56) { - parse_voice_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::StreamVoiceLevel_IsValid(value)) { - set_voice_level(static_cast< ::bgs::protocol::club::v1::StreamVoiceLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(7, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 8; - case 8: { - if (tag == 64) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_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.club.v1.Stream) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.Stream) - return false; -#undef DO_ -} - -void Stream::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.Stream) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - // optional uint64 id = 2; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->id(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 3; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->attribute(i), output); - } - - // optional string name = 4; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->name(), output); - } - - // optional string subject = 5; - if (has_subject()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subject"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->subject(), output); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 6; - if (has_access()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->access(), output); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 7; - if (has_voice_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->voice_level(), output); - } - - // optional uint64 creation_time = 8; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->creation_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.Stream) -} - -::google::protobuf::uint8* Stream::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.Stream) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - // optional uint64 id = 2; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->id(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 3; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->attribute(i), target); - } - - // optional string name = 4; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->name(), target); - } - - // optional string subject = 5; - if (has_subject()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subject"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->subject(), target); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 6; - if (has_access()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->access(), target); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 7; - if (has_voice_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 7, this->voice_level(), target); - } - - // optional uint64 creation_time = 8; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->creation_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.Stream) - return target; -} - -int Stream::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 id = 2; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // optional string name = 4; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string subject = 5; - if (has_subject()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->subject()); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 6; - if (has_access()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->access()); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 7; - if (has_voice_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->voice_level()); - } - - // optional uint64 creation_time = 8; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - } - // repeated .bgs.protocol.v2.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 Stream::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Stream* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Stream::MergeFrom(const Stream& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_subject()) { - set_subject(from.subject()); - } - if (from.has_access()) { - mutable_access()->::bgs::protocol::club::v1::StreamAccess::MergeFrom(from.access()); - } - if (from.has_voice_level()) { - set_voice_level(from.voice_level()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Stream::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Stream::CopyFrom(const Stream& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Stream::IsInitialized() const { - return true; -} - void Stream::Swap(Stream* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - std::swap(id_, other->id_); - attribute_.Swap(&other->attribute_); - std::swap(name_, other->name_); - std::swap(subject_, other->subject_); - std::swap(access_, other->access_); - std::swap(voice_level_, other->voice_level_); - std::swap(creation_time_, other->creation_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Stream::GetMetadata() const { @@ -2166,213 +1016,9 @@ StreamDescription* StreamDescription::New() const { return new StreamDescription; } -void StreamDescription::Clear() { - if (_has_bits_[0 / 32] & 3) { - id_ = GOOGLE_ULONGLONG(0); - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamDescription::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamDescription) - 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 uint64 id = 2; - case 2: { - if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_name; - break; - } - - // optional string name = 4; - case 4: { - if (tag == 34) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } 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.club.v1.StreamDescription) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamDescription) - return false; -#undef DO_ -} - -void StreamDescription::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamDescription) - // optional uint64 id = 2; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->id(), output); - } - - // optional string name = 4; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamDescription) -} - -::google::protobuf::uint8* StreamDescription::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamDescription) - // optional uint64 id = 2; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->id(), target); - } - - // optional string name = 4; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamDescription) - return target; -} - -int StreamDescription::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 id = 2; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // optional string name = 4; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - } - 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 StreamDescription::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamDescription* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamDescription::MergeFrom(const StreamDescription& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_name()) { - set_name(from.name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamDescription::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamDescription::CopyFrom(const StreamDescription& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamDescription::IsInitialized() const { - return true; -} - void StreamDescription::Swap(StreamDescription* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(name_, other->name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamDescription::GetMetadata() const { @@ -2412,7 +1058,6 @@ void MentionContent::SharedCtor() { _cached_size_ = 0; all_ = false; here_ = false; - _role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -2447,349 +1092,54 @@ MentionContent* MentionContent::New() const { return new MentionContent; } -void MentionContent::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) +void MentionContent::Swap(MentionContent* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} -#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) +::google::protobuf::Metadata MentionContent::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MentionContent_descriptor_; + metadata.reflection = MentionContent_reflection_; + return metadata; +} - ZR_(all_, here_); +// =================================================================== -#undef OFFSET_OF_FIELD_ -#undef ZR_ +#ifndef _MSC_VER +const int CreateMessageOptions::kContentFieldNumber; +const int CreateMessageOptions::kMentionFieldNumber; +#endif // !_MSC_VER - member_id_.Clear(); - role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MentionContent::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.MentionContent) - 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 all = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &all_))); - set_has_all(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_here; - break; - } - - // optional bool here = 2; - case 2: { - if (tag == 16) { - parse_here: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &here_))); - set_has_here(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_member_id; - break; - } - - // repeated .bgs.protocol.club.v1.MemberId 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->ExpectTag(34)) goto parse_role; - break; - } - - // repeated uint32 role = 4 [packed = true]; - case 4: { - if (tag == 34) { - parse_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_role()))); - } else if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34, 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.club.v1.MentionContent) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.MentionContent) - return false; -#undef DO_ -} - -void MentionContent::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.MentionContent) - // optional bool all = 1; - if (has_all()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->all(), output); - } +CreateMessageOptions::CreateMessageOptions() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.club.v1.CreateMessageOptions) +} - // optional bool here = 2; - if (has_here()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->here(), output); - } +void CreateMessageOptions::InitAsDefaultInstance() { + mention_ = const_cast< ::bgs::protocol::club::v1::MentionContent*>(&::bgs::protocol::club::v1::MentionContent::default_instance()); +} - // repeated .bgs.protocol.club.v1.MemberId member_id = 3; - for (int i = 0; i < this->member_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->member_id(i), output); - } +CreateMessageOptions::CreateMessageOptions(const CreateMessageOptions& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.club.v1.CreateMessageOptions) +} - // repeated uint32 role = 4 [packed = true]; - if (this->role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::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); - } +void CreateMessageOptions::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mention_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.MentionContent) -} - -::google::protobuf::uint8* MentionContent::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.MentionContent) - // optional bool all = 1; - if (has_all()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->all(), target); - } - - // optional bool here = 2; - if (has_here()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->here(), target); - } - - // repeated .bgs.protocol.club.v1.MemberId 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); - } - - // repeated uint32 role = 4 [packed = true]; - if (this->role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 4, - ::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.club.v1.MentionContent) - return target; -} - -int MentionContent::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool all = 1; - if (has_all()) { - total_size += 1 + 1; - } - - // optional bool here = 2; - if (has_here()) { - total_size += 1 + 1; - } - - } - // repeated .bgs.protocol.club.v1.MemberId 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)); - } - - // repeated uint32 role = 4 [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 MentionContent::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MentionContent* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MentionContent::MergeFrom(const MentionContent& from) { - GOOGLE_CHECK_NE(&from, this); - member_id_.MergeFrom(from.member_id_); - role_.MergeFrom(from.role_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_all()) { - set_all(from.all()); - } - if (from.has_here()) { - set_here(from.here()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MentionContent::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MentionContent::CopyFrom(const MentionContent& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MentionContent::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->member_id())) return false; - return true; -} - -void MentionContent::Swap(MentionContent* other) { - if (other != this) { - std::swap(all_, other->all_); - std::swap(here_, other->here_); - member_id_.Swap(&other->member_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 MentionContent::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MentionContent_descriptor_; - metadata.reflection = MentionContent_reflection_; - return metadata; -} - -// =================================================================== - -#ifndef _MSC_VER -const int CreateMessageOptions::kContentFieldNumber; -const int CreateMessageOptions::kMentionFieldNumber; -#endif // !_MSC_VER - -CreateMessageOptions::CreateMessageOptions() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.club.v1.CreateMessageOptions) -} - -void CreateMessageOptions::InitAsDefaultInstance() { - mention_ = const_cast< ::bgs::protocol::club::v1::MentionContent*>(&::bgs::protocol::club::v1::MentionContent::default_instance()); -} - -CreateMessageOptions::CreateMessageOptions(const CreateMessageOptions& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.club.v1.CreateMessageOptions) -} - -void CreateMessageOptions::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mention_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -CreateMessageOptions::~CreateMessageOptions() { - // @@protoc_insertion_point(destructor:bgs.protocol.club.v1.CreateMessageOptions) - SharedDtor(); +CreateMessageOptions::~CreateMessageOptions() { + // @@protoc_insertion_point(destructor:bgs.protocol.club.v1.CreateMessageOptions) + SharedDtor(); } void CreateMessageOptions::SharedDtor() { @@ -2822,219 +1172,9 @@ CreateMessageOptions* CreateMessageOptions::New() const { return new CreateMessageOptions; } -void CreateMessageOptions::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_content()) { - if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - content_->clear(); - } - } - if (has_mention()) { - if (mention_ != NULL) mention_->::bgs::protocol::club::v1::MentionContent::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CreateMessageOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.CreateMessageOptions) - 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 content = 2; - case 2: { - if (tag == 18) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_content())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "content"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_mention; - break; - } - - // optional .bgs.protocol.club.v1.MentionContent mention = 3; - case 3: { - if (tag == 26) { - parse_mention: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mention())); - } 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.club.v1.CreateMessageOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.CreateMessageOptions) - return false; -#undef DO_ -} - -void CreateMessageOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.CreateMessageOptions) - // optional string content = 2; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->content(), output); - } - - // optional .bgs.protocol.club.v1.MentionContent mention = 3; - if (has_mention()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->mention(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.CreateMessageOptions) -} - -::google::protobuf::uint8* CreateMessageOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.CreateMessageOptions) - // optional string content = 2; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->content(), target); - } - - // optional .bgs.protocol.club.v1.MentionContent mention = 3; - if (has_mention()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->mention(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.CreateMessageOptions) - return target; -} - -int CreateMessageOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string content = 2; - if (has_content()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->content()); - } - - // optional .bgs.protocol.club.v1.MentionContent mention = 3; - if (has_mention()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mention()); - } - - } - 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 CreateMessageOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CreateMessageOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CreateMessageOptions::MergeFrom(const CreateMessageOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_content()) { - set_content(from.content()); - } - if (from.has_mention()) { - mutable_mention()->::bgs::protocol::club::v1::MentionContent::MergeFrom(from.mention()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CreateMessageOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateMessageOptions::CopyFrom(const CreateMessageOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateMessageOptions::IsInitialized() const { - if (has_mention()) { - if (!this->mention().IsInitialized()) return false; - } - return true; -} - void CreateMessageOptions::Swap(CreateMessageOptions* other) { if (other != this) { - std::swap(content_, other->content_); - std::swap(mention_, other->mention_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateMessageOptions::GetMetadata() const { @@ -3103,156 +1243,9 @@ ClubStreamMessageContainer* ClubStreamMessageContainer::New() const { return new ClubStreamMessageContainer; } -void ClubStreamMessageContainer::Clear() { - message_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClubStreamMessageContainer::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ClubStreamMessageContainer) - 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.club.v1.StreamMessage message = 1; - case 1: { - if (tag == 10) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_message())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_message; - 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.club.v1.ClubStreamMessageContainer) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ClubStreamMessageContainer) - return false; -#undef DO_ -} - -void ClubStreamMessageContainer::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ClubStreamMessageContainer) - // repeated .bgs.protocol.club.v1.StreamMessage message = 1; - for (int i = 0; i < this->message_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->message(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ClubStreamMessageContainer) -} - -::google::protobuf::uint8* ClubStreamMessageContainer::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ClubStreamMessageContainer) - // repeated .bgs.protocol.club.v1.StreamMessage message = 1; - for (int i = 0; i < this->message_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->message(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ClubStreamMessageContainer) - return target; -} - -int ClubStreamMessageContainer::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.club.v1.StreamMessage message = 1; - total_size += 1 * this->message_size(); - for (int i = 0; i < this->message_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message(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 ClubStreamMessageContainer::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClubStreamMessageContainer* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClubStreamMessageContainer::MergeFrom(const ClubStreamMessageContainer& from) { - GOOGLE_CHECK_NE(&from, this); - message_.MergeFrom(from.message_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClubStreamMessageContainer::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClubStreamMessageContainer::CopyFrom(const ClubStreamMessageContainer& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClubStreamMessageContainer::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->message())) return false; - return true; -} - void ClubStreamMessageContainer::Swap(ClubStreamMessageContainer* other) { if (other != this) { - message_.Swap(&other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClubStreamMessageContainer::GetMetadata() const { @@ -3333,294 +1326,9 @@ ContentChain* ContentChain::New() const { return new ContentChain; } -void ContentChain::Clear() { - if (_has_bits_[0 / 32] & 13) { - if (has_content()) { - if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - content_->clear(); - } - } - if (has_mention()) { - if (mention_ != NULL) mention_->::bgs::protocol::club::v1::MentionContent::Clear(); - } - edit_time_ = GOOGLE_ULONGLONG(0); - } - embed_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ContentChain::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.ContentChain) - 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 content = 5; - case 5: { - if (tag == 42) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_content())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "content"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_embed; - break; - } - - // repeated .bgs.protocol.EmbedInfo embed = 6; - case 6: { - if (tag == 50) { - parse_embed: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_embed())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_embed; - if (input->ExpectTag(58)) goto parse_mention; - break; - } - - // optional .bgs.protocol.club.v1.MentionContent mention = 7; - case 7: { - if (tag == 58) { - parse_mention: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mention())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_edit_time; - break; - } - - // optional uint64 edit_time = 8; - case 8: { - if (tag == 64) { - parse_edit_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &edit_time_))); - set_has_edit_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.club.v1.ContentChain) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.ContentChain) - return false; -#undef DO_ -} - -void ContentChain::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.ContentChain) - // optional string content = 5; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->content(), output); - } - - // repeated .bgs.protocol.EmbedInfo embed = 6; - for (int i = 0; i < this->embed_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->embed(i), output); - } - - // optional .bgs.protocol.club.v1.MentionContent mention = 7; - if (has_mention()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->mention(), output); - } - - // optional uint64 edit_time = 8; - if (has_edit_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->edit_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.ContentChain) -} - -::google::protobuf::uint8* ContentChain::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.ContentChain) - // optional string content = 5; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->content(), target); - } - - // repeated .bgs.protocol.EmbedInfo embed = 6; - for (int i = 0; i < this->embed_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->embed(i), target); - } - - // optional .bgs.protocol.club.v1.MentionContent mention = 7; - if (has_mention()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->mention(), target); - } - - // optional uint64 edit_time = 8; - if (has_edit_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->edit_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.ContentChain) - return target; -} - -int ContentChain::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string content = 5; - if (has_content()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->content()); - } - - // optional .bgs.protocol.club.v1.MentionContent mention = 7; - if (has_mention()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mention()); - } - - // optional uint64 edit_time = 8; - if (has_edit_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->edit_time()); - } - - } - // repeated .bgs.protocol.EmbedInfo embed = 6; - total_size += 1 * this->embed_size(); - for (int i = 0; i < this->embed_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->embed(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 ContentChain::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ContentChain* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ContentChain::MergeFrom(const ContentChain& from) { - GOOGLE_CHECK_NE(&from, this); - embed_.MergeFrom(from.embed_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_content()) { - set_content(from.content()); - } - if (from.has_mention()) { - mutable_mention()->::bgs::protocol::club::v1::MentionContent::MergeFrom(from.mention()); - } - if (from.has_edit_time()) { - set_edit_time(from.edit_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ContentChain::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContentChain::CopyFrom(const ContentChain& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContentChain::IsInitialized() const { - if (has_mention()) { - if (!this->mention().IsInitialized()) return false; - } - return true; -} - void ContentChain::Swap(ContentChain* other) { if (other != this) { - std::swap(content_, other->content_); - embed_.Swap(&other->embed_); - std::swap(mention_, other->mention_); - std::swap(edit_time_, other->edit_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ContentChain::GetMetadata() const { @@ -3705,372 +1413,9 @@ StreamMessage* StreamMessage::New() const { return new StreamMessage; } -void StreamMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 59) { - ZR_(destroy_time_, destroyed_); - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::MessageId::Clear(); - } - if (has_author()) { - if (author_ != NULL) author_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - if (has_destroyer()) { - if (destroyer_ != NULL) destroyer_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - content_chain_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamMessage) - 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 .bgs.protocol.MessageId id = 3; - case 3: { - if (tag == 26) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_author; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription author = 4; - case 4: { - if (tag == 34) { - parse_author: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_author())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_content_chain; - break; - } - - // repeated .bgs.protocol.club.v1.ContentChain content_chain = 6; - case 6: { - if (tag == 50) { - parse_content_chain: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_content_chain())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_content_chain; - if (input->ExpectTag(122)) goto parse_destroyer; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription destroyer = 15; - case 15: { - if (tag == 122) { - parse_destroyer: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_destroyer())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(128)) goto parse_destroyed; - break; - } - - // optional bool destroyed = 16; - case 16: { - if (tag == 128) { - parse_destroyed: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &destroyed_))); - set_has_destroyed(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(136)) goto parse_destroy_time; - break; - } - - // optional uint64 destroy_time = 17; - case 17: { - if (tag == 136) { - parse_destroy_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &destroy_time_))); - set_has_destroy_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.club.v1.StreamMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamMessage) - return false; -#undef DO_ -} - -void StreamMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamMessage) - // optional .bgs.protocol.MessageId id = 3; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->id(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription author = 4; - if (has_author()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->author(), output); - } - - // repeated .bgs.protocol.club.v1.ContentChain content_chain = 6; - for (int i = 0; i < this->content_chain_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->content_chain(i), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription destroyer = 15; - if (has_destroyer()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 15, this->destroyer(), output); - } - - // optional bool destroyed = 16; - if (has_destroyed()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->destroyed(), output); - } - - // optional uint64 destroy_time = 17; - if (has_destroy_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(17, this->destroy_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamMessage) -} - -::google::protobuf::uint8* StreamMessage::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamMessage) - // optional .bgs.protocol.MessageId id = 3; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->id(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription author = 4; - if (has_author()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->author(), target); - } - - // repeated .bgs.protocol.club.v1.ContentChain content_chain = 6; - for (int i = 0; i < this->content_chain_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->content_chain(i), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription destroyer = 15; - if (has_destroyer()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 15, this->destroyer(), target); - } - - // optional bool destroyed = 16; - if (has_destroyed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->destroyed(), target); - } - - // optional uint64 destroy_time = 17; - if (has_destroy_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(17, this->destroy_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamMessage) - return target; -} - -int StreamMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.MessageId id = 3; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->id()); - } - - // optional .bgs.protocol.club.v1.MemberDescription author = 4; - if (has_author()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->author()); - } - - // optional .bgs.protocol.club.v1.MemberDescription destroyer = 15; - if (has_destroyer()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->destroyer()); - } - - // optional bool destroyed = 16; - if (has_destroyed()) { - total_size += 2 + 1; - } - - // optional uint64 destroy_time = 17; - if (has_destroy_time()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->destroy_time()); - } - - } - // repeated .bgs.protocol.club.v1.ContentChain content_chain = 6; - total_size += 1 * this->content_chain_size(); - for (int i = 0; i < this->content_chain_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->content_chain(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 StreamMessage::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamMessage* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamMessage::MergeFrom(const StreamMessage& from) { - GOOGLE_CHECK_NE(&from, this); - content_chain_.MergeFrom(from.content_chain_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::MessageId::MergeFrom(from.id()); - } - if (from.has_author()) { - mutable_author()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.author()); - } - if (from.has_destroyer()) { - mutable_destroyer()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.destroyer()); - } - if (from.has_destroyed()) { - set_destroyed(from.destroyed()); - } - if (from.has_destroy_time()) { - set_destroy_time(from.destroy_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamMessage::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamMessage::CopyFrom(const StreamMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamMessage::IsInitialized() const { - if (has_author()) { - if (!this->author().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->content_chain())) return false; - if (has_destroyer()) { - if (!this->destroyer().IsInitialized()) return false; - } - return true; -} - void StreamMessage::Swap(StreamMessage* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(author_, other->author_); - content_chain_.Swap(&other->content_chain_); - std::swap(destroyer_, other->destroyer_); - std::swap(destroyed_, other->destroyed_); - std::swap(destroy_time_, other->destroy_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamMessage::GetMetadata() const { @@ -4164,453 +1509,9 @@ StreamMention* StreamMention::New() const { return new StreamMention; } -void StreamMention::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_message_id()) { - if (message_id_ != NULL) message_id_->::bgs::protocol::MessageId::Clear(); - } - if (has_author()) { - if (author_ != NULL) author_->::bgs::protocol::club::v1::MemberDescription::Clear(); - } - destroyed_ = false; - if (has_mention_id()) { - if (mention_id_ != NULL) mention_id_->::bgs::protocol::TimeSeriesId::Clear(); - } - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - if (has_message()) { - if (message_ != NULL) message_->::bgs::protocol::club::v1::StreamMessage::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamMention::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamMention) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 2; - case 2: { - if (tag == 16) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_message_id; - break; - } - - // optional .bgs.protocol.MessageId message_id = 3; - case 3: { - if (tag == 26) { - parse_message_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_author; - break; - } - - // optional .bgs.protocol.club.v1.MemberDescription author = 4; - case 4: { - if (tag == 34) { - parse_author: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_author())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_destroyed; - break; - } - - // optional bool destroyed = 5; - case 5: { - if (tag == 40) { - parse_destroyed: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &destroyed_))); - set_has_destroyed(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_mention_id; - break; - } - - // optional .bgs.protocol.TimeSeriesId mention_id = 6; - case 6: { - if (tag == 50) { - parse_mention_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mention_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_member_id; - break; - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 7; - case 7: { - if (tag == 58) { - parse_member_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_message; - break; - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 8; - case 8: { - if (tag == 66) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } 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.club.v1.StreamMention) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamMention) - return false; -#undef DO_ -} - -void StreamMention::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamMention) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stream_id(), output); - } - - // optional .bgs.protocol.MessageId message_id = 3; - if (has_message_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->message_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberDescription author = 4; - if (has_author()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->author(), output); - } - - // optional bool destroyed = 5; - if (has_destroyed()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->destroyed(), output); - } - - // optional .bgs.protocol.TimeSeriesId mention_id = 6; - if (has_mention_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->mention_id(), output); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 7; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->member_id(), output); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 8; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->message(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamMention) -} - -::google::protobuf::uint8* StreamMention::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamMention) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stream_id(), target); - } - - // optional .bgs.protocol.MessageId message_id = 3; - if (has_message_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->message_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberDescription author = 4; - if (has_author()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->author(), target); - } - - // optional bool destroyed = 5; - if (has_destroyed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->destroyed(), target); - } - - // optional .bgs.protocol.TimeSeriesId mention_id = 6; - if (has_mention_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->mention_id(), target); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 7; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->member_id(), target); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 8; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->message(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamMention) - return target; -} - -int StreamMention::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.MessageId message_id = 3; - if (has_message_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message_id()); - } - - // optional .bgs.protocol.club.v1.MemberDescription author = 4; - if (has_author()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->author()); - } - - // optional bool destroyed = 5; - if (has_destroyed()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.TimeSeriesId mention_id = 6; - if (has_mention_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mention_id()); - } - - // optional .bgs.protocol.club.v1.MemberId member_id = 7; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - // optional .bgs.protocol.club.v1.StreamMessage message = 8; - if (has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - } - - } - 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 StreamMention::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamMention* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamMention::MergeFrom(const StreamMention& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_message_id()) { - mutable_message_id()->::bgs::protocol::MessageId::MergeFrom(from.message_id()); - } - if (from.has_author()) { - mutable_author()->::bgs::protocol::club::v1::MemberDescription::MergeFrom(from.author()); - } - if (from.has_destroyed()) { - set_destroyed(from.destroyed()); - } - if (from.has_mention_id()) { - mutable_mention_id()->::bgs::protocol::TimeSeriesId::MergeFrom(from.mention_id()); - } - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.member_id()); - } - if (from.has_message()) { - mutable_message()->::bgs::protocol::club::v1::StreamMessage::MergeFrom(from.message()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamMention::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamMention::CopyFrom(const StreamMention& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamMention::IsInitialized() const { - if (has_author()) { - if (!this->author().IsInitialized()) return false; - } - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - if (has_message()) { - if (!this->message().IsInitialized()) return false; - } - return true; -} - void StreamMention::Swap(StreamMention* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(message_id_, other->message_id_); - std::swap(author_, other->author_); - std::swap(destroyed_, other->destroyed_); - std::swap(mention_id_, other->mention_id_); - std::swap(member_id_, other->member_id_); - std::swap(message_, other->message_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamMention::GetMetadata() const { @@ -4686,249 +1587,9 @@ StreamView* StreamView::New() const { return new StreamView; } -void StreamView::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_marker()) { - if (marker_ != NULL) marker_->::bgs::protocol::ViewMarker::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamView::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamView) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 2; - case 2: { - if (tag == 16) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_marker; - break; - } - - // optional .bgs.protocol.ViewMarker marker = 3; - case 3: { - if (tag == 26) { - parse_marker: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_marker())); - } 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.club.v1.StreamView) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamView) - return false; -#undef DO_ -} - -void StreamView::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamView) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stream_id(), output); - } - - // optional .bgs.protocol.ViewMarker marker = 3; - if (has_marker()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->marker(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamView) -} - -::google::protobuf::uint8* StreamView::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamView) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stream_id(), target); - } - - // optional .bgs.protocol.ViewMarker marker = 3; - if (has_marker()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->marker(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamView) - return target; -} - -int StreamView::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.ViewMarker marker = 3; - if (has_marker()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->marker()); - } - - } - 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 StreamView::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamView* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamView::MergeFrom(const StreamView& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_marker()) { - mutable_marker()->::bgs::protocol::ViewMarker::MergeFrom(from.marker()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamView::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamView::CopyFrom(const StreamView& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamView::IsInitialized() const { - return true; -} - void StreamView::Swap(StreamView* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(marker_, other->marker_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamView::GetMetadata() const { @@ -4979,228 +1640,30 @@ void StreamAdvanceViewTime::SharedDtor() { } } -void StreamAdvanceViewTime::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* StreamAdvanceViewTime::descriptor() { - protobuf_AssignDescriptorsOnce(); - return StreamAdvanceViewTime_descriptor_; -} - -const StreamAdvanceViewTime& StreamAdvanceViewTime::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_club_5fstream_2eproto(); - return *default_instance_; -} - -StreamAdvanceViewTime* StreamAdvanceViewTime::default_instance_ = NULL; - -StreamAdvanceViewTime* StreamAdvanceViewTime::New() const { - return new StreamAdvanceViewTime; -} - -void StreamAdvanceViewTime::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(stream_id_, view_time_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamAdvanceViewTime::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamAdvanceViewTime) - 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 uint64 stream_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_view_time; - break; - } - - // optional uint64 view_time = 2; - case 2: { - if (tag == 16) { - parse_view_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &view_time_))); - set_has_view_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.club.v1.StreamAdvanceViewTime) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamAdvanceViewTime) - return false; -#undef DO_ -} - -void StreamAdvanceViewTime::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamAdvanceViewTime) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->stream_id(), output); - } - - // optional uint64 view_time = 2; - if (has_view_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->view_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamAdvanceViewTime) -} - -::google::protobuf::uint8* StreamAdvanceViewTime::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamAdvanceViewTime) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->stream_id(), target); - } - - // optional uint64 view_time = 2; - if (has_view_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->view_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamAdvanceViewTime) - return target; -} - -int StreamAdvanceViewTime::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 stream_id = 1; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional uint64 view_time = 2; - if (has_view_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->view_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 StreamAdvanceViewTime::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamAdvanceViewTime* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamAdvanceViewTime::MergeFrom(const StreamAdvanceViewTime& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_view_time()) { - set_view_time(from.view_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +void StreamAdvanceViewTime::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } - -void StreamAdvanceViewTime::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const ::google::protobuf::Descriptor* StreamAdvanceViewTime::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StreamAdvanceViewTime_descriptor_; } -void StreamAdvanceViewTime::CopyFrom(const StreamAdvanceViewTime& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const StreamAdvanceViewTime& StreamAdvanceViewTime::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_club_5fstream_2eproto(); + return *default_instance_; } -bool StreamAdvanceViewTime::IsInitialized() const { - return true; +StreamAdvanceViewTime* StreamAdvanceViewTime::default_instance_ = NULL; + +StreamAdvanceViewTime* StreamAdvanceViewTime::New() const { + return new StreamAdvanceViewTime; } void StreamAdvanceViewTime::Swap(StreamAdvanceViewTime* other) { if (other != this) { - std::swap(stream_id_, other->stream_id_); - std::swap(view_time_, other->view_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamAdvanceViewTime::GetMetadata() const { @@ -5272,207 +1735,9 @@ StreamEventTime* StreamEventTime::New() const { return new StreamEventTime; } -void StreamEventTime::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(stream_id_, event_time_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamEventTime::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamEventTime) - 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 uint64 stream_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_event_time; - break; - } - - // optional uint64 event_time = 2; - case 2: { - if (tag == 16) { - parse_event_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &event_time_))); - set_has_event_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.club.v1.StreamEventTime) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamEventTime) - return false; -#undef DO_ -} - -void StreamEventTime::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamEventTime) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->stream_id(), output); - } - - // optional uint64 event_time = 2; - if (has_event_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->event_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamEventTime) -} - -::google::protobuf::uint8* StreamEventTime::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamEventTime) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->stream_id(), target); - } - - // optional uint64 event_time = 2; - if (has_event_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->event_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamEventTime) - return target; -} - -int StreamEventTime::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 stream_id = 1; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional uint64 event_time = 2; - if (has_event_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->event_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 StreamEventTime::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamEventTime* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamEventTime::MergeFrom(const StreamEventTime& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_event_time()) { - set_event_time(from.event_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamEventTime::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamEventTime::CopyFrom(const StreamEventTime& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamEventTime::IsInitialized() const { - return true; -} - void StreamEventTime::Swap(StreamEventTime* other) { if (other != this) { - std::swap(stream_id_, other->stream_id_); - std::swap(event_time_, other->event_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamEventTime::GetMetadata() const { @@ -5548,249 +1813,9 @@ StreamMentionView* StreamMentionView::New() const { return new StreamMentionView; } -void StreamMentionView::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(club_id_, stream_id_); - if (has_marker()) { - if (marker_ != NULL) marker_->::bgs::protocol::ViewMarker::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamMentionView::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamMentionView) - 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 uint64 club_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &club_id_))); - set_has_club_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_stream_id; - break; - } - - // optional uint64 stream_id = 2; - case 2: { - if (tag == 16) { - parse_stream_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_marker; - break; - } - - // optional .bgs.protocol.ViewMarker marker = 3; - case 3: { - if (tag == 26) { - parse_marker: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_marker())); - } 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.club.v1.StreamMentionView) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamMentionView) - return false; -#undef DO_ -} - -void StreamMentionView::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamMentionView) - // optional uint64 club_id = 1; - if (has_club_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->club_id(), output); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stream_id(), output); - } - - // optional .bgs.protocol.ViewMarker marker = 3; - if (has_marker()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->marker(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamMentionView) -} - -::google::protobuf::uint8* StreamMentionView::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamMentionView) - // optional uint64 club_id = 1; - if (has_club_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->club_id(), target); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stream_id(), target); - } - - // optional .bgs.protocol.ViewMarker marker = 3; - if (has_marker()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->marker(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamMentionView) - return target; -} - -int StreamMentionView::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 club_id = 1; - if (has_club_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->club_id()); - } - - // optional uint64 stream_id = 2; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional .bgs.protocol.ViewMarker marker = 3; - if (has_marker()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->marker()); - } - - } - 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 StreamMentionView::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamMentionView* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamMentionView::MergeFrom(const StreamMentionView& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_club_id()) { - set_club_id(from.club_id()); - } - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_marker()) { - mutable_marker()->::bgs::protocol::ViewMarker::MergeFrom(from.marker()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamMentionView::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamMentionView::CopyFrom(const StreamMentionView& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamMentionView::IsInitialized() const { - return true; -} - void StreamMentionView::Swap(StreamMentionView* other) { if (other != this) { - std::swap(club_id_, other->club_id_); - std::swap(stream_id_, other->stream_id_); - std::swap(marker_, other->marker_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamMentionView::GetMetadata() const { @@ -5876,352 +1901,9 @@ StreamStateOptions* StreamStateOptions::New() const { return new StreamStateOptions; } -void StreamStateOptions::Clear() { - if (_has_bits_[0 / 32] & 30) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_subject()) { - if (subject_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - subject_->clear(); - } - } - if (has_access()) { - if (access_ != NULL) access_->::bgs::protocol::club::v1::StreamAccess::Clear(); - } - voice_level_ = 0; - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamStateOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamStateOptions) - 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.v2.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute; - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // optional string name = 2; - case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_subject; - break; - } - - // optional string subject = 3; - case 3: { - if (tag == 26) { - parse_subject: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_subject())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "subject"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_access; - break; - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 4; - case 4: { - if (tag == 34) { - parse_access: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_access())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_voice_level; - break; - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 5; - case 5: { - if (tag == 40) { - parse_voice_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::StreamVoiceLevel_IsValid(value)) { - set_voice_level(static_cast< ::bgs::protocol::club::v1::StreamVoiceLevel >(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.club.v1.StreamStateOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamStateOptions) - return false; -#undef DO_ -} - -void StreamStateOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamStateOptions) - // repeated .bgs.protocol.v2.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // optional string subject = 3; - if (has_subject()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subject"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->subject(), output); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 4; - if (has_access()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->access(), output); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 5; - if (has_voice_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->voice_level(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamStateOptions) -} - -::google::protobuf::uint8* StreamStateOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamStateOptions) - // repeated .bgs.protocol.v2.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(i), target); - } - - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // optional string subject = 3; - if (has_subject()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subject"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->subject(), target); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 4; - if (has_access()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->access(), target); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 5; - if (has_voice_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->voice_level(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamStateOptions) - return target; -} - -int StreamStateOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string subject = 3; - if (has_subject()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->subject()); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 4; - if (has_access()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->access()); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 5; - if (has_voice_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->voice_level()); - } - - } - // repeated .bgs.protocol.v2.Attribute attribute = 1; - 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 StreamStateOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamStateOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamStateOptions::MergeFrom(const StreamStateOptions& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_subject()) { - set_subject(from.subject()); - } - if (from.has_access()) { - mutable_access()->::bgs::protocol::club::v1::StreamAccess::MergeFrom(from.access()); - } - if (from.has_voice_level()) { - set_voice_level(from.voice_level()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamStateOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamStateOptions::CopyFrom(const StreamStateOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamStateOptions::IsInitialized() const { - return true; -} - void StreamStateOptions::Swap(StreamStateOptions* other) { if (other != this) { - attribute_.Swap(&other->attribute_); - std::swap(name_, other->name_); - std::swap(subject_, other->subject_); - std::swap(access_, other->access_); - std::swap(voice_level_, other->voice_level_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamStateOptions::GetMetadata() const { @@ -6311,436 +1993,9 @@ StreamStateAssignment* StreamStateAssignment::New() const { return new StreamStateAssignment; } -void StreamStateAssignment::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 125) { - ZR_(stream_subscription_removed_, voice_level_); - stream_id_ = GOOGLE_ULONGLONG(0); - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - if (has_subject()) { - if (subject_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - subject_->clear(); - } - } - if (has_access()) { - if (access_ != NULL) access_->::bgs::protocol::club::v1::StreamAccess::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamStateAssignment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamStateAssignment) - 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 uint64 stream_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &stream_id_))); - set_has_stream_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.v2.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_name; - break; - } - - // optional string name = 3; - case 3: { - if (tag == 26) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_subject; - break; - } - - // optional string subject = 4; - case 4: { - if (tag == 34) { - parse_subject: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_subject())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "subject"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_access; - break; - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 5; - case 5: { - if (tag == 42) { - parse_access: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_access())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_stream_subscription_removed; - break; - } - - // optional bool stream_subscription_removed = 6; - case 6: { - if (tag == 48) { - parse_stream_subscription_removed: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &stream_subscription_removed_))); - set_has_stream_subscription_removed(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_voice_level; - break; - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 7; - case 7: { - if (tag == 56) { - parse_voice_level: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::club::v1::StreamVoiceLevel_IsValid(value)) { - set_voice_level(static_cast< ::bgs::protocol::club::v1::StreamVoiceLevel >(value)); - } else { - mutable_unknown_fields()->AddVarint(7, 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.club.v1.StreamStateAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamStateAssignment) - return false; -#undef DO_ -} - -void StreamStateAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamStateAssignment) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->stream_id(), output); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - // optional string subject = 4; - if (has_subject()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subject"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->subject(), output); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 5; - if (has_access()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->access(), output); - } - - // optional bool stream_subscription_removed = 6; - if (has_stream_subscription_removed()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->stream_subscription_removed(), output); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 7; - if (has_voice_level()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->voice_level(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamStateAssignment) -} - -::google::protobuf::uint8* StreamStateAssignment::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamStateAssignment) - // optional uint64 stream_id = 1; - if (has_stream_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->stream_id(), target); - } - - // repeated .bgs.protocol.v2.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->attribute(i), target); - } - - // optional string name = 3; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), target); - } - - // optional string subject = 4; - if (has_subject()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->subject().data(), this->subject().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "subject"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->subject(), target); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 5; - if (has_access()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->access(), target); - } - - // optional bool stream_subscription_removed = 6; - if (has_stream_subscription_removed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->stream_subscription_removed(), target); - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 7; - if (has_voice_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 7, this->voice_level(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamStateAssignment) - return target; -} - -int StreamStateAssignment::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 stream_id = 1; - if (has_stream_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->stream_id()); - } - - // optional string name = 3; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string subject = 4; - if (has_subject()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->subject()); - } - - // optional .bgs.protocol.club.v1.StreamAccess access = 5; - if (has_access()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->access()); - } - - // optional bool stream_subscription_removed = 6; - if (has_stream_subscription_removed()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.club.v1.StreamVoiceLevel voice_level = 7; - if (has_voice_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->voice_level()); - } - - } - // repeated .bgs.protocol.v2.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 StreamStateAssignment::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamStateAssignment* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamStateAssignment::MergeFrom(const StreamStateAssignment& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_stream_id()) { - set_stream_id(from.stream_id()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_subject()) { - set_subject(from.subject()); - } - if (from.has_access()) { - mutable_access()->::bgs::protocol::club::v1::StreamAccess::MergeFrom(from.access()); - } - if (from.has_stream_subscription_removed()) { - set_stream_subscription_removed(from.stream_subscription_removed()); - } - if (from.has_voice_level()) { - set_voice_level(from.voice_level()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamStateAssignment::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamStateAssignment::CopyFrom(const StreamStateAssignment& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamStateAssignment::IsInitialized() const { - return true; -} - void StreamStateAssignment::Swap(StreamStateAssignment* other) { if (other != this) { - std::swap(stream_id_, other->stream_id_); - attribute_.Swap(&other->attribute_); - std::swap(name_, other->name_); - std::swap(subject_, other->subject_); - std::swap(access_, other->access_); - std::swap(stream_subscription_removed_, other->stream_subscription_removed_); - std::swap(voice_level_, other->voice_level_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamStateAssignment::GetMetadata() const { @@ -6816,258 +2071,9 @@ StreamTypingIndicator* StreamTypingIndicator::New() const { return new StreamTypingIndicator; } -void StreamTypingIndicator::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(epoch_, indicator_); - if (has_author_id()) { - if (author_id_ != NULL) author_id_->::bgs::protocol::club::v1::MemberId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StreamTypingIndicator::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.club.v1.StreamTypingIndicator) - 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.club.v1.MemberId author_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_author_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_indicator; - break; - } - - // optional .bgs.protocol.TypingIndicator indicator = 2; - case 2: { - if (tag == 16) { - parse_indicator: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::TypingIndicator_IsValid(value)) { - set_indicator(static_cast< ::bgs::protocol::TypingIndicator >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_epoch; - break; - } - - // optional uint64 epoch = 3; - case 3: { - if (tag == 24) { - parse_epoch: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &epoch_))); - set_has_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.club.v1.StreamTypingIndicator) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.club.v1.StreamTypingIndicator) - return false; -#undef DO_ -} - -void StreamTypingIndicator::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.club.v1.StreamTypingIndicator) - // optional .bgs.protocol.club.v1.MemberId author_id = 1; - if (has_author_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->author_id(), output); - } - - // optional .bgs.protocol.TypingIndicator indicator = 2; - if (has_indicator()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->indicator(), output); - } - - // optional uint64 epoch = 3; - if (has_epoch()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->epoch(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.club.v1.StreamTypingIndicator) -} - -::google::protobuf::uint8* StreamTypingIndicator::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.club.v1.StreamTypingIndicator) - // optional .bgs.protocol.club.v1.MemberId author_id = 1; - if (has_author_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->author_id(), target); - } - - // optional .bgs.protocol.TypingIndicator indicator = 2; - if (has_indicator()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->indicator(), target); - } - - // optional uint64 epoch = 3; - if (has_epoch()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->epoch(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.club.v1.StreamTypingIndicator) - return target; -} - -int StreamTypingIndicator::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.club.v1.MemberId author_id = 1; - if (has_author_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->author_id()); - } - - // optional .bgs.protocol.TypingIndicator indicator = 2; - if (has_indicator()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->indicator()); - } - - // optional uint64 epoch = 3; - if (has_epoch()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->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 StreamTypingIndicator::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StreamTypingIndicator* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StreamTypingIndicator::MergeFrom(const StreamTypingIndicator& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_author_id()) { - mutable_author_id()->::bgs::protocol::club::v1::MemberId::MergeFrom(from.author_id()); - } - if (from.has_indicator()) { - set_indicator(from.indicator()); - } - if (from.has_epoch()) { - set_epoch(from.epoch()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StreamTypingIndicator::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StreamTypingIndicator::CopyFrom(const StreamTypingIndicator& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StreamTypingIndicator::IsInitialized() const { - if (has_author_id()) { - if (!this->author_id().IsInitialized()) return false; - } - return true; -} - void StreamTypingIndicator::Swap(StreamTypingIndicator* other) { if (other != this) { - std::swap(author_id_, other->author_id_); - std::swap(indicator_, other->indicator_); - std::swap(epoch_, other->epoch_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StreamTypingIndicator::GetMetadata() const { diff --git a/src/server/proto/Client/club_stream.pb.h b/src/server/proto/Client/club_stream.pb.h index 16dabea1ad5..c35144d3e2e 100644 --- a/src/server/proto/Client/club_stream.pb.h +++ b/src/server/proto/Client/club_stream.pb.h @@ -93,19 +93,6 @@ class TC_PROTO_API StreamPosition : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamPosition* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamPosition& from); - void MergeFrom(const StreamPosition& 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(); @@ -138,7 +125,6 @@ class TC_PROTO_API StreamPosition : public ::google::protobuf::Message { ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > stream_id_; - mutable int _stream_id_cached_byte_size_; friend void TC_PROTO_API protobuf_AddDesc_club_5fstream_2eproto(); friend void protobuf_AssignDesc_club_5fstream_2eproto(); friend void protobuf_ShutdownFile_club_5fstream_2eproto(); @@ -176,19 +162,6 @@ class TC_PROTO_API StreamAccess : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamAccess* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamAccess& from); - void MergeFrom(const StreamAccess& 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(); @@ -221,7 +194,6 @@ class TC_PROTO_API StreamAccess : public ::google::protobuf::Message { ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; friend void TC_PROTO_API protobuf_AddDesc_club_5fstream_2eproto(); friend void protobuf_AssignDesc_club_5fstream_2eproto(); friend void protobuf_ShutdownFile_club_5fstream_2eproto(); @@ -259,19 +231,6 @@ class TC_PROTO_API CreateStreamOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateStreamOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateStreamOptions& from); - void MergeFrom(const CreateStreamOptions& 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(); @@ -393,19 +352,6 @@ class TC_PROTO_API Stream : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Stream* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Stream& from); - void MergeFrom(const Stream& 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(); @@ -557,19 +503,6 @@ class TC_PROTO_API StreamDescription : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamDescription* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamDescription& from); - void MergeFrom(const StreamDescription& 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(); @@ -651,19 +584,6 @@ class TC_PROTO_API MentionContent : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MentionContent* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MentionContent& from); - void MergeFrom(const MentionContent& 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(); @@ -727,7 +647,6 @@ class TC_PROTO_API MentionContent : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::club::v1::MemberId > member_id_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; bool all_; bool here_; friend void TC_PROTO_API protobuf_AddDesc_club_5fstream_2eproto(); @@ -767,19 +686,6 @@ class TC_PROTO_API CreateMessageOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- CreateMessageOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CreateMessageOptions& from); - void MergeFrom(const CreateMessageOptions& 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(); @@ -863,19 +769,6 @@ class TC_PROTO_API ClubStreamMessageContainer : public ::google::protobuf::Messa // implements Message ---------------------------------------------- ClubStreamMessageContainer* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClubStreamMessageContainer& from); - void MergeFrom(const ClubStreamMessageContainer& 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(); @@ -945,19 +838,6 @@ class TC_PROTO_API ContentChain : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ContentChain* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ContentChain& from); - void MergeFrom(const ContentChain& 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(); @@ -1064,19 +944,6 @@ class TC_PROTO_API StreamMessage : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamMessage* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamMessage& from); - void MergeFrom(const StreamMessage& 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(); @@ -1202,19 +1069,6 @@ class TC_PROTO_API StreamMention : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamMention* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamMention& from); - void MergeFrom(const StreamMention& 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(); @@ -1361,19 +1215,6 @@ class TC_PROTO_API StreamView : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamView* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamView& from); - void MergeFrom(const StreamView& 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(); @@ -1462,19 +1303,6 @@ class TC_PROTO_API StreamAdvanceViewTime : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamAdvanceViewTime* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamAdvanceViewTime& from); - void MergeFrom(const StreamAdvanceViewTime& 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(); @@ -1551,19 +1379,6 @@ class TC_PROTO_API StreamEventTime : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamEventTime* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamEventTime& from); - void MergeFrom(const StreamEventTime& 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(); @@ -1640,19 +1455,6 @@ class TC_PROTO_API StreamMentionView : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamMentionView* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamMentionView& from); - void MergeFrom(const StreamMentionView& 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(); @@ -1741,19 +1543,6 @@ class TC_PROTO_API StreamStateOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamStateOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamStateOptions& from); - void MergeFrom(const StreamStateOptions& 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(); @@ -1875,19 +1664,6 @@ class TC_PROTO_API StreamStateAssignment : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamStateAssignment* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamStateAssignment& from); - void MergeFrom(const StreamStateAssignment& 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(); @@ -2029,19 +1805,6 @@ class TC_PROTO_API StreamTypingIndicator : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StreamTypingIndicator* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StreamTypingIndicator& from); - void MergeFrom(const StreamTypingIndicator& 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(); diff --git a/src/server/proto/Client/club_types.pb.cc b/src/server/proto/Client/club_types.pb.cc index 8e1b92335eb..b6220b3dad9 100644 --- a/src/server/proto/Client/club_types.pb.cc +++ b/src/server/proto/Client/club_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "club_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -82,7 +80,7 @@ void protobuf_AddDesc_club_5ftypes_2eproto() { "vent_view_types.proto\032\026invitation_types." "proto\032\023message_types.proto\032\017ets_types.pr" "oto\032\021voice_types.proto\032\017rpc_types.protoB" - "\002H\001P\000P\001P\002P\003P\004P\005P\006P\007P\010P\tP\nP\013P\014P\rP\016P\017P\020", 437); + "\002H\002P\000P\001P\002P\003P\004P\005P\006P\007P\010P\tP\nP\013P\014P\rP\016P\017P\020", 437); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "club_types.proto", &protobuf_RegisterTypes); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_club_5ftypes_2eproto); diff --git a/src/server/proto/Client/connection_service.pb.cc b/src/server/proto/Client/connection_service.pb.cc index d0a69232037..f3678debc72 100644 --- a/src/server/proto/Client/connection_service.pb.cc +++ b/src/server/proto/Client/connection_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "connection_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -383,7 +380,7 @@ void protobuf_AddDesc_connection_5fservice_2eproto() { "ONSE\"\006\202\371+\002\010\007\032D\202\371+8\n*bnet.protocol.connec" "tion.ConnectionService*\nconnection\212\371+\004\010\001" "\020\001B=\n\033bnet.protocol.connection.v1B\026Conne" - "ctionServiceProtoH\001\200\001\000\210\001\001", 2305); + "ctionServiceProtoH\002\200\001\000\210\001\001", 2305); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "connection_service.proto", &protobuf_RegisterTypes); ConnectRequest::default_instance_ = new ConnectRequest(); @@ -484,243 +481,9 @@ ConnectRequest* ConnectRequest::New() const { return new ConnectRequest; } -void ConnectRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_client_id()) { - if (client_id_ != NULL) client_id_->::bgs::protocol::ProcessId::Clear(); - } - if (has_bind_request()) { - if (bind_request_ != NULL) bind_request_->::bgs::protocol::connection::v1::BindRequest::Clear(); - } - use_bindless_rpc_ = true; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ConnectRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.ConnectRequest) - 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.ProcessId client_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_client_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_bind_request; - break; - } - - // optional .bgs.protocol.connection.v1.BindRequest bind_request = 2; - case 2: { - if (tag == 18) { - parse_bind_request: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bind_request())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_use_bindless_rpc; - break; - } - - // optional bool use_bindless_rpc = 3 [default = true]; - case 3: { - if (tag == 24) { - parse_use_bindless_rpc: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &use_bindless_rpc_))); - set_has_use_bindless_rpc(); - } 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.connection.v1.ConnectRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.ConnectRequest) - return false; -#undef DO_ -} - -void ConnectRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.ConnectRequest) - // optional .bgs.protocol.ProcessId client_id = 1; - if (has_client_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->client_id(), output); - } - - // optional .bgs.protocol.connection.v1.BindRequest bind_request = 2; - if (has_bind_request()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->bind_request(), output); - } - - // optional bool use_bindless_rpc = 3 [default = true]; - if (has_use_bindless_rpc()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->use_bindless_rpc(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.ConnectRequest) -} - -::google::protobuf::uint8* ConnectRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.ConnectRequest) - // optional .bgs.protocol.ProcessId client_id = 1; - if (has_client_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->client_id(), target); - } - - // optional .bgs.protocol.connection.v1.BindRequest bind_request = 2; - if (has_bind_request()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->bind_request(), target); - } - - // optional bool use_bindless_rpc = 3 [default = true]; - if (has_use_bindless_rpc()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->use_bindless_rpc(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.ConnectRequest) - return target; -} - -int ConnectRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.ProcessId client_id = 1; - if (has_client_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->client_id()); - } - - // optional .bgs.protocol.connection.v1.BindRequest bind_request = 2; - if (has_bind_request()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->bind_request()); - } - - // optional bool use_bindless_rpc = 3 [default = true]; - if (has_use_bindless_rpc()) { - 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 ConnectRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ConnectRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ConnectRequest::MergeFrom(const ConnectRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_client_id()) { - mutable_client_id()->::bgs::protocol::ProcessId::MergeFrom(from.client_id()); - } - if (from.has_bind_request()) { - mutable_bind_request()->::bgs::protocol::connection::v1::BindRequest::MergeFrom(from.bind_request()); - } - if (from.has_use_bindless_rpc()) { - set_use_bindless_rpc(from.use_bindless_rpc()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ConnectRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConnectRequest::CopyFrom(const ConnectRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConnectRequest::IsInitialized() const { - if (has_client_id()) { - if (!this->client_id().IsInitialized()) return false; - } - if (has_bind_request()) { - if (!this->bind_request().IsInitialized()) return false; - } - return true; -} - void ConnectRequest::Swap(ConnectRequest* other) { if (other != this) { - std::swap(client_id_, other->client_id_); - std::swap(bind_request_, other->bind_request_); - std::swap(use_bindless_rpc_, other->use_bindless_rpc_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ConnectRequest::GetMetadata() const { @@ -789,156 +552,9 @@ ConnectionMeteringContentHandles* ConnectionMeteringContentHandles::New() const return new ConnectionMeteringContentHandles; } -void ConnectionMeteringContentHandles::Clear() { - content_handle_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ConnectionMeteringContentHandles::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.ConnectionMeteringContentHandles) - 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.ContentHandle content_handle = 1; - case 1: { - if (tag == 10) { - parse_content_handle: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_content_handle())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_content_handle; - 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.connection.v1.ConnectionMeteringContentHandles) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.ConnectionMeteringContentHandles) - return false; -#undef DO_ -} - -void ConnectionMeteringContentHandles::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.ConnectionMeteringContentHandles) - // repeated .bgs.protocol.ContentHandle content_handle = 1; - for (int i = 0; i < this->content_handle_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->content_handle(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.ConnectionMeteringContentHandles) -} - -::google::protobuf::uint8* ConnectionMeteringContentHandles::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.ConnectionMeteringContentHandles) - // repeated .bgs.protocol.ContentHandle content_handle = 1; - for (int i = 0; i < this->content_handle_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->content_handle(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.ConnectionMeteringContentHandles) - return target; -} - -int ConnectionMeteringContentHandles::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.ContentHandle content_handle = 1; - total_size += 1 * this->content_handle_size(); - for (int i = 0; i < this->content_handle_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->content_handle(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 ConnectionMeteringContentHandles::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ConnectionMeteringContentHandles* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ConnectionMeteringContentHandles::MergeFrom(const ConnectionMeteringContentHandles& from) { - GOOGLE_CHECK_NE(&from, this); - content_handle_.MergeFrom(from.content_handle_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ConnectionMeteringContentHandles::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConnectionMeteringContentHandles::CopyFrom(const ConnectionMeteringContentHandles& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConnectionMeteringContentHandles::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->content_handle())) return false; - return true; -} - void ConnectionMeteringContentHandles::Swap(ConnectionMeteringContentHandles* other) { if (other != this) { - content_handle_.Swap(&other->content_handle_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ConnectionMeteringContentHandles::GetMetadata() const { @@ -1032,456 +648,9 @@ ConnectResponse* ConnectResponse::New() const { return new ConnectResponse; } -void ConnectResponse::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(bind_result_, server_time_); - if (has_server_id()) { - if (server_id_ != NULL) server_id_->::bgs::protocol::ProcessId::Clear(); - } - if (has_client_id()) { - if (client_id_ != NULL) client_id_->::bgs::protocol::ProcessId::Clear(); - } - if (has_bind_response()) { - if (bind_response_ != NULL) bind_response_->::bgs::protocol::connection::v1::BindResponse::Clear(); - } - if (has_content_handle_array()) { - if (content_handle_array_ != NULL) content_handle_array_->::bgs::protocol::connection::v1::ConnectionMeteringContentHandles::Clear(); - } - if (has_binary_content_handle_array()) { - if (binary_content_handle_array_ != NULL) binary_content_handle_array_->::bgs::protocol::connection::v1::ConnectionMeteringContentHandles::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ConnectResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.ConnectResponse) - 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.ProcessId server_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_server_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_client_id; - break; - } - - // optional .bgs.protocol.ProcessId client_id = 2; - case 2: { - if (tag == 18) { - parse_client_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_client_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_bind_result; - break; - } - - // optional uint32 bind_result = 3; - case 3: { - if (tag == 24) { - parse_bind_result: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &bind_result_))); - set_has_bind_result(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_bind_response; - break; - } - - // optional .bgs.protocol.connection.v1.BindResponse bind_response = 4; - case 4: { - if (tag == 34) { - parse_bind_response: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bind_response())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_content_handle_array; - break; - } - - // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles content_handle_array = 5; - case 5: { - if (tag == 42) { - parse_content_handle_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_content_handle_array())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_server_time; - break; - } - - // optional uint64 server_time = 6; - case 6: { - if (tag == 48) { - parse_server_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &server_time_))); - set_has_server_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_use_bindless_rpc; - break; - } - - // optional bool use_bindless_rpc = 7 [default = false]; - case 7: { - if (tag == 56) { - parse_use_bindless_rpc: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &use_bindless_rpc_))); - set_has_use_bindless_rpc(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_binary_content_handle_array; - break; - } - - // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles binary_content_handle_array = 8; - case 8: { - if (tag == 66) { - parse_binary_content_handle_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_binary_content_handle_array())); - } 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.connection.v1.ConnectResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.ConnectResponse) - return false; -#undef DO_ -} - -void ConnectResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.ConnectResponse) - // required .bgs.protocol.ProcessId server_id = 1; - if (has_server_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->server_id(), output); - } - - // optional .bgs.protocol.ProcessId client_id = 2; - if (has_client_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->client_id(), output); - } - - // optional uint32 bind_result = 3; - if (has_bind_result()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->bind_result(), output); - } - - // optional .bgs.protocol.connection.v1.BindResponse bind_response = 4; - if (has_bind_response()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->bind_response(), output); - } - - // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles content_handle_array = 5; - if (has_content_handle_array()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->content_handle_array(), output); - } - - // optional uint64 server_time = 6; - if (has_server_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->server_time(), output); - } - - // optional bool use_bindless_rpc = 7 [default = false]; - if (has_use_bindless_rpc()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->use_bindless_rpc(), output); - } - - // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles binary_content_handle_array = 8; - if (has_binary_content_handle_array()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->binary_content_handle_array(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.ConnectResponse) -} - -::google::protobuf::uint8* ConnectResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.ConnectResponse) - // required .bgs.protocol.ProcessId server_id = 1; - if (has_server_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->server_id(), target); - } - - // optional .bgs.protocol.ProcessId client_id = 2; - if (has_client_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->client_id(), target); - } - - // optional uint32 bind_result = 3; - if (has_bind_result()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->bind_result(), target); - } - - // optional .bgs.protocol.connection.v1.BindResponse bind_response = 4; - if (has_bind_response()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->bind_response(), target); - } - - // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles content_handle_array = 5; - if (has_content_handle_array()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->content_handle_array(), target); - } - - // optional uint64 server_time = 6; - if (has_server_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->server_time(), target); - } - - // optional bool use_bindless_rpc = 7 [default = false]; - if (has_use_bindless_rpc()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->use_bindless_rpc(), target); - } - - // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles binary_content_handle_array = 8; - if (has_binary_content_handle_array()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->binary_content_handle_array(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.ConnectResponse) - return target; -} - -int ConnectResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.ProcessId server_id = 1; - if (has_server_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->server_id()); - } - - // optional .bgs.protocol.ProcessId client_id = 2; - if (has_client_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->client_id()); - } - - // optional uint32 bind_result = 3; - if (has_bind_result()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->bind_result()); - } - - // optional .bgs.protocol.connection.v1.BindResponse bind_response = 4; - if (has_bind_response()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->bind_response()); - } - - // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles content_handle_array = 5; - if (has_content_handle_array()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->content_handle_array()); - } - - // optional uint64 server_time = 6; - if (has_server_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->server_time()); - } - - // optional bool use_bindless_rpc = 7 [default = false]; - if (has_use_bindless_rpc()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles binary_content_handle_array = 8; - if (has_binary_content_handle_array()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->binary_content_handle_array()); - } - - } - 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 ConnectResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ConnectResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ConnectResponse::MergeFrom(const ConnectResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_server_id()) { - mutable_server_id()->::bgs::protocol::ProcessId::MergeFrom(from.server_id()); - } - if (from.has_client_id()) { - mutable_client_id()->::bgs::protocol::ProcessId::MergeFrom(from.client_id()); - } - if (from.has_bind_result()) { - set_bind_result(from.bind_result()); - } - if (from.has_bind_response()) { - mutable_bind_response()->::bgs::protocol::connection::v1::BindResponse::MergeFrom(from.bind_response()); - } - if (from.has_content_handle_array()) { - mutable_content_handle_array()->::bgs::protocol::connection::v1::ConnectionMeteringContentHandles::MergeFrom(from.content_handle_array()); - } - if (from.has_server_time()) { - set_server_time(from.server_time()); - } - if (from.has_use_bindless_rpc()) { - set_use_bindless_rpc(from.use_bindless_rpc()); - } - if (from.has_binary_content_handle_array()) { - mutable_binary_content_handle_array()->::bgs::protocol::connection::v1::ConnectionMeteringContentHandles::MergeFrom(from.binary_content_handle_array()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ConnectResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConnectResponse::CopyFrom(const ConnectResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConnectResponse::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_server_id()) { - if (!this->server_id().IsInitialized()) return false; - } - if (has_client_id()) { - if (!this->client_id().IsInitialized()) return false; - } - if (has_content_handle_array()) { - if (!this->content_handle_array().IsInitialized()) return false; - } - if (has_binary_content_handle_array()) { - if (!this->binary_content_handle_array().IsInitialized()) return false; - } - return true; -} - void ConnectResponse::Swap(ConnectResponse* other) { if (other != this) { - std::swap(server_id_, other->server_id_); - std::swap(client_id_, other->client_id_); - std::swap(bind_result_, other->bind_result_); - std::swap(bind_response_, other->bind_response_); - std::swap(content_handle_array_, other->content_handle_array_); - std::swap(server_time_, other->server_time_); - std::swap(use_bindless_rpc_, other->use_bindless_rpc_); - std::swap(binary_content_handle_array_, other->binary_content_handle_array_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ConnectResponse::GetMetadata() const { @@ -1553,206 +722,9 @@ BoundService* BoundService::New() const { return new BoundService; } -void BoundService::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(hash_, id_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BoundService::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.BoundService) - 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 fixed32 hash = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &hash_))); - set_has_hash(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_id; - break; - } - - // required uint32 id = 2; - case 2: { - if (tag == 16) { - parse_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 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.connection.v1.BoundService) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.BoundService) - return false; -#undef DO_ -} - -void BoundService::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.BoundService) - // required fixed32 hash = 1; - if (has_hash()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->hash(), output); - } - - // required uint32 id = 2; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.BoundService) -} - -::google::protobuf::uint8* BoundService::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.BoundService) - // required fixed32 hash = 1; - if (has_hash()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->hash(), target); - } - - // required uint32 id = 2; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, 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.connection.v1.BoundService) - return target; -} - -int BoundService::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed32 hash = 1; - if (has_hash()) { - total_size += 1 + 4; - } - - // required uint32 id = 2; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->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 BoundService::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BoundService* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BoundService::MergeFrom(const BoundService& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_hash()) { - set_hash(from.hash()); - } - if (from.has_id()) { - set_id(from.id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BoundService::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BoundService::CopyFrom(const BoundService& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BoundService::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - void BoundService::Swap(BoundService* other) { if (other != this) { - std::swap(hash_, other->hash_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BoundService::GetMetadata() const { @@ -1790,7 +762,6 @@ 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_)); } @@ -1825,292 +796,9 @@ BindRequest* BindRequest::New() const { return new BindRequest; } -void BindRequest::Clear() { - deprecated_imported_service_hash_.Clear(); - deprecated_exported_service_.Clear(); - exported_service_.Clear(); - imported_service_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BindRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.BindRequest) - 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 fixed32 deprecated_imported_service_hash = 1 [packed = true, deprecated = true]; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, this->mutable_deprecated_imported_service_hash()))); - } else if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - 1, 10, input, this->mutable_deprecated_imported_service_hash()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_deprecated_exported_service; - break; - } - - // repeated .bgs.protocol.connection.v1.BoundService deprecated_exported_service = 2 [deprecated = true]; - case 2: { - if (tag == 18) { - parse_deprecated_exported_service: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_deprecated_exported_service())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_deprecated_exported_service; - if (input->ExpectTag(26)) goto parse_exported_service; - break; - } - - // repeated .bgs.protocol.connection.v1.BoundService exported_service = 3; - case 3: { - if (tag == 26) { - parse_exported_service: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_exported_service())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_exported_service; - if (input->ExpectTag(34)) goto parse_imported_service; - break; - } - - // repeated .bgs.protocol.connection.v1.BoundService imported_service = 4; - case 4: { - if (tag == 34) { - parse_imported_service: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_imported_service())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_imported_service; - 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.connection.v1.BindRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.BindRequest) - return false; -#undef DO_ -} - -void BindRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.BindRequest) - // repeated fixed32 deprecated_imported_service_hash = 1 [packed = true, deprecated = true]; - if (this->deprecated_imported_service_hash_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_deprecated_imported_service_hash_cached_byte_size_); - } - for (int i = 0; i < this->deprecated_imported_service_hash_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32NoTag( - this->deprecated_imported_service_hash(i), output); - } - - // repeated .bgs.protocol.connection.v1.BoundService deprecated_exported_service = 2 [deprecated = true]; - for (int i = 0; i < this->deprecated_exported_service_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->deprecated_exported_service(i), output); - } - - // repeated .bgs.protocol.connection.v1.BoundService exported_service = 3; - for (int i = 0; i < this->exported_service_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->exported_service(i), output); - } - - // repeated .bgs.protocol.connection.v1.BoundService imported_service = 4; - for (int i = 0; i < this->imported_service_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->imported_service(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.BindRequest) -} - -::google::protobuf::uint8* BindRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.BindRequest) - // repeated fixed32 deprecated_imported_service_hash = 1 [packed = true, deprecated = true]; - if (this->deprecated_imported_service_hash_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _deprecated_imported_service_hash_cached_byte_size_, target); - } - for (int i = 0; i < this->deprecated_imported_service_hash_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFixed32NoTagToArray(this->deprecated_imported_service_hash(i), target); - } - - // repeated .bgs.protocol.connection.v1.BoundService deprecated_exported_service = 2 [deprecated = true]; - for (int i = 0; i < this->deprecated_exported_service_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->deprecated_exported_service(i), target); - } - - // repeated .bgs.protocol.connection.v1.BoundService exported_service = 3; - for (int i = 0; i < this->exported_service_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->exported_service(i), target); - } - - // repeated .bgs.protocol.connection.v1.BoundService imported_service = 4; - for (int i = 0; i < this->imported_service_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->imported_service(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.BindRequest) - return target; -} - -int BindRequest::ByteSize() const { - int total_size = 0; - - // repeated fixed32 deprecated_imported_service_hash = 1 [packed = true, deprecated = true]; - { - int data_size = 0; - data_size = 4 * this->deprecated_imported_service_hash_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _deprecated_imported_service_hash_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated .bgs.protocol.connection.v1.BoundService deprecated_exported_service = 2 [deprecated = true]; - total_size += 1 * this->deprecated_exported_service_size(); - for (int i = 0; i < this->deprecated_exported_service_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->deprecated_exported_service(i)); - } - - // repeated .bgs.protocol.connection.v1.BoundService exported_service = 3; - total_size += 1 * this->exported_service_size(); - for (int i = 0; i < this->exported_service_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->exported_service(i)); - } - - // repeated .bgs.protocol.connection.v1.BoundService imported_service = 4; - total_size += 1 * this->imported_service_size(); - for (int i = 0; i < this->imported_service_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->imported_service(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 BindRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BindRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BindRequest::MergeFrom(const BindRequest& from) { - GOOGLE_CHECK_NE(&from, this); - deprecated_imported_service_hash_.MergeFrom(from.deprecated_imported_service_hash_); - deprecated_exported_service_.MergeFrom(from.deprecated_exported_service_); - exported_service_.MergeFrom(from.exported_service_); - imported_service_.MergeFrom(from.imported_service_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BindRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BindRequest::CopyFrom(const BindRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BindRequest::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->deprecated_exported_service())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->exported_service())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->imported_service())) return false; - return true; -} - void BindRequest::Swap(BindRequest* other) { if (other != this) { - deprecated_imported_service_hash_.Swap(&other->deprecated_imported_service_hash_); - deprecated_exported_service_.Swap(&other->deprecated_exported_service_); - exported_service_.Swap(&other->exported_service_); - imported_service_.Swap(&other->imported_service_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BindRequest::GetMetadata() const { @@ -2145,7 +833,6 @@ 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_)); } @@ -2154,204 +841,35 @@ BindResponse::~BindResponse() { SharedDtor(); } -void BindResponse::SharedDtor() { - if (this != default_instance_) { - } -} - -void BindResponse::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* BindResponse::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BindResponse_descriptor_; -} - -const BindResponse& BindResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_connection_5fservice_2eproto(); - return *default_instance_; -} - -BindResponse* BindResponse::default_instance_ = NULL; - -BindResponse* BindResponse::New() const { - return new BindResponse; -} - -void BindResponse::Clear() { - imported_service_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BindResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.BindResponse) - 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 uint32 imported_service_id = 1 [packed = true, deprecated = true]; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_imported_service_id()))); - } else if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 10, input, this->mutable_imported_service_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.connection.v1.BindResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.BindResponse) - return false; -#undef DO_ -} - -void BindResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.BindResponse) - // repeated uint32 imported_service_id = 1 [packed = true, deprecated = true]; - if (this->imported_service_id_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_imported_service_id_cached_byte_size_); - } - for (int i = 0; i < this->imported_service_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->imported_service_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.BindResponse) -} - -::google::protobuf::uint8* BindResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.BindResponse) - // repeated uint32 imported_service_id = 1 [packed = true, deprecated = true]; - if (this->imported_service_id_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _imported_service_id_cached_byte_size_, target); - } - for (int i = 0; i < this->imported_service_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->imported_service_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.connection.v1.BindResponse) - return target; -} - -int BindResponse::ByteSize() const { - int total_size = 0; - - // repeated uint32 imported_service_id = 1 [packed = true, deprecated = true]; - { - int data_size = 0; - for (int i = 0; i < this->imported_service_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->imported_service_id(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _imported_service_id_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; +void BindResponse::SharedDtor() { + if (this != default_instance_) { } +} - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void BindResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BindResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BindResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void BindResponse::MergeFrom(const BindResponse& from) { - GOOGLE_CHECK_NE(&from, this); - imported_service_id_.MergeFrom(from.imported_service_id_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* BindResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BindResponse_descriptor_; } -void BindResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const BindResponse& BindResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_connection_5fservice_2eproto(); + return *default_instance_; } -void BindResponse::CopyFrom(const BindResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +BindResponse* BindResponse::default_instance_ = NULL; -bool BindResponse::IsInitialized() const { - return true; +BindResponse* BindResponse::New() const { + return new BindResponse; } void BindResponse::Swap(BindResponse* other) { if (other != this) { - imported_service_id_.Swap(&other->imported_service_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BindResponse::GetMetadata() const { @@ -2438,331 +956,9 @@ EchoRequest* EchoRequest::New() const { return new EchoRequest; } -void EchoRequest::Clear() { - if (_has_bits_[0 / 32] & 31) { - time_ = GOOGLE_ULONGLONG(0); - network_only_ = false; - if (has_payload()) { - if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - payload_->clear(); - } - } - if (has_forward()) { - if (forward_ != NULL) forward_->::bgs::protocol::ProcessId::Clear(); - } - if (has_forward_client_id()) { - if (forward_client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - forward_client_id_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EchoRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.EchoRequest) - 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 fixed64 time = 1; - case 1: { - if (tag == 9) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &time_))); - set_has_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_network_only; - break; - } - - // optional bool network_only = 2 [default = false]; - case 2: { - if (tag == 16) { - parse_network_only: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &network_only_))); - set_has_network_only(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_payload; - break; - } - - // optional bytes payload = 3; - case 3: { - if (tag == 26) { - parse_payload: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_payload())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_forward; - break; - } - - // optional .bgs.protocol.ProcessId forward = 4; - case 4: { - if (tag == 34) { - parse_forward: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_forward())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_forward_client_id; - break; - } - - // optional string forward_client_id = 5; - case 5: { - if (tag == 42) { - parse_forward_client_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_forward_client_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->forward_client_id().data(), this->forward_client_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "forward_client_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.connection.v1.EchoRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.EchoRequest) - return false; -#undef DO_ -} - -void EchoRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.EchoRequest) - // optional fixed64 time = 1; - if (has_time()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->time(), output); - } - - // optional bool network_only = 2 [default = false]; - if (has_network_only()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->network_only(), output); - } - - // optional bytes payload = 3; - if (has_payload()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 3, this->payload(), output); - } - - // optional .bgs.protocol.ProcessId forward = 4; - if (has_forward()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->forward(), output); - } - - // optional string forward_client_id = 5; - if (has_forward_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->forward_client_id().data(), this->forward_client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "forward_client_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->forward_client_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.EchoRequest) -} - -::google::protobuf::uint8* EchoRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.EchoRequest) - // optional fixed64 time = 1; - if (has_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->time(), target); - } - - // optional bool network_only = 2 [default = false]; - if (has_network_only()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->network_only(), target); - } - - // optional bytes payload = 3; - if (has_payload()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 3, this->payload(), target); - } - - // optional .bgs.protocol.ProcessId forward = 4; - if (has_forward()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->forward(), target); - } - - // optional string forward_client_id = 5; - if (has_forward_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->forward_client_id().data(), this->forward_client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "forward_client_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->forward_client_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.EchoRequest) - return target; -} - -int EchoRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed64 time = 1; - if (has_time()) { - total_size += 1 + 8; - } - - // optional bool network_only = 2 [default = false]; - if (has_network_only()) { - total_size += 1 + 1; - } - - // optional bytes payload = 3; - if (has_payload()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->payload()); - } - - // optional .bgs.protocol.ProcessId forward = 4; - if (has_forward()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->forward()); - } - - // optional string forward_client_id = 5; - if (has_forward_client_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->forward_client_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 EchoRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EchoRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EchoRequest::MergeFrom(const EchoRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_time()) { - set_time(from.time()); - } - if (from.has_network_only()) { - set_network_only(from.network_only()); - } - if (from.has_payload()) { - set_payload(from.payload()); - } - if (from.has_forward()) { - mutable_forward()->::bgs::protocol::ProcessId::MergeFrom(from.forward()); - } - if (from.has_forward_client_id()) { - set_forward_client_id(from.forward_client_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EchoRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EchoRequest::CopyFrom(const EchoRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EchoRequest::IsInitialized() const { - if (has_forward()) { - if (!this->forward().IsInitialized()) return false; - } - return true; -} - void EchoRequest::Swap(EchoRequest* other) { if (other != this) { - std::swap(time_, other->time_); - std::swap(network_only_, other->network_only_); - std::swap(payload_, other->payload_); - std::swap(forward_, other->forward_); - std::swap(forward_client_id_, other->forward_client_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EchoRequest::GetMetadata() const { @@ -2838,199 +1034,9 @@ EchoResponse* EchoResponse::New() const { return new EchoResponse; } -void EchoResponse::Clear() { - if (_has_bits_[0 / 32] & 3) { - time_ = GOOGLE_ULONGLONG(0); - if (has_payload()) { - if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - payload_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EchoResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.EchoResponse) - 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 fixed64 time = 1; - case 1: { - if (tag == 9) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &time_))); - set_has_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_payload; - break; - } - - // optional bytes payload = 2; - case 2: { - if (tag == 18) { - parse_payload: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_payload())); - } 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.connection.v1.EchoResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.EchoResponse) - return false; -#undef DO_ -} - -void EchoResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.EchoResponse) - // optional fixed64 time = 1; - if (has_time()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->time(), output); - } - - // optional bytes payload = 2; - if (has_payload()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->payload(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.EchoResponse) -} - -::google::protobuf::uint8* EchoResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.EchoResponse) - // optional fixed64 time = 1; - if (has_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->time(), target); - } - - // optional bytes payload = 2; - if (has_payload()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->payload(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.EchoResponse) - return target; -} - -int EchoResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed64 time = 1; - if (has_time()) { - total_size += 1 + 8; - } - - // optional bytes payload = 2; - if (has_payload()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->payload()); - } - - } - 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 EchoResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EchoResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EchoResponse::MergeFrom(const EchoResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_time()) { - set_time(from.time()); - } - if (from.has_payload()) { - set_payload(from.payload()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EchoResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EchoResponse::CopyFrom(const EchoResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EchoResponse::IsInitialized() const { - return true; -} - void EchoResponse::Swap(EchoResponse* other) { if (other != this) { - std::swap(time_, other->time_); - std::swap(payload_, other->payload_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EchoResponse::GetMetadata() const { @@ -3100,158 +1106,9 @@ DisconnectRequest* DisconnectRequest::New() const { return new DisconnectRequest; } -void DisconnectRequest::Clear() { - error_code_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DisconnectRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.DisconnectRequest) - 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 uint32 error_code = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &error_code_))); - set_has_error_code(); - } 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.connection.v1.DisconnectRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.DisconnectRequest) - return false; -#undef DO_ -} - -void DisconnectRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.DisconnectRequest) - // required uint32 error_code = 1; - if (has_error_code()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->error_code(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.DisconnectRequest) -} - -::google::protobuf::uint8* DisconnectRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.DisconnectRequest) - // required uint32 error_code = 1; - if (has_error_code()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->error_code(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.DisconnectRequest) - return target; -} - -int DisconnectRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 error_code = 1; - if (has_error_code()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->error_code()); - } - - } - 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 DisconnectRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DisconnectRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DisconnectRequest::MergeFrom(const DisconnectRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_error_code()) { - set_error_code(from.error_code()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DisconnectRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DisconnectRequest::CopyFrom(const DisconnectRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DisconnectRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - void DisconnectRequest::Swap(DisconnectRequest* other) { if (other != this) { - std::swap(error_code_, other->error_code_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DisconnectRequest::GetMetadata() const { @@ -3327,214 +1184,9 @@ DisconnectNotification* DisconnectNotification::New() const { return new DisconnectNotification; } -void DisconnectNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - error_code_ = 0u; - if (has_reason()) { - if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reason_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DisconnectNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.DisconnectNotification) - 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 uint32 error_code = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &error_code_))); - set_has_error_code(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_reason; - break; - } - - // optional string reason = 2; - case 2: { - if (tag == 18) { - parse_reason: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "reason"); - } 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.connection.v1.DisconnectNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.DisconnectNotification) - return false; -#undef DO_ -} - -void DisconnectNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.DisconnectNotification) - // required uint32 error_code = 1; - if (has_error_code()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->error_code(), output); - } - - // optional string reason = 2; - if (has_reason()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.DisconnectNotification) -} - -::google::protobuf::uint8* DisconnectNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.DisconnectNotification) - // required uint32 error_code = 1; - if (has_error_code()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->error_code(), target); - } - - // optional string reason = 2; - if (has_reason()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.DisconnectNotification) - return target; -} - -int DisconnectNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 error_code = 1; - if (has_error_code()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->error_code()); - } - - // optional string reason = 2; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - } - 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 DisconnectNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DisconnectNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DisconnectNotification::MergeFrom(const DisconnectNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_error_code()) { - set_error_code(from.error_code()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DisconnectNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DisconnectNotification::CopyFrom(const DisconnectNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DisconnectNotification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - void DisconnectNotification::Swap(DisconnectNotification* other) { if (other != this) { - std::swap(error_code_, other->error_code_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DisconnectNotification::GetMetadata() const { @@ -3602,111 +1254,9 @@ EncryptRequest* EncryptRequest::New() const { return new EncryptRequest; } -void EncryptRequest::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EncryptRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.connection.v1.EncryptRequest) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - 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.connection.v1.EncryptRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.connection.v1.EncryptRequest) - return false; -#undef DO_ -} - -void EncryptRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.connection.v1.EncryptRequest) - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.connection.v1.EncryptRequest) -} - -::google::protobuf::uint8* EncryptRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.connection.v1.EncryptRequest) - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.connection.v1.EncryptRequest) - return target; -} - -int EncryptRequest::ByteSize() const { - int total_size = 0; - - 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 EncryptRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EncryptRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EncryptRequest::MergeFrom(const EncryptRequest& from) { - GOOGLE_CHECK_NE(&from, this); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EncryptRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EncryptRequest::CopyFrom(const EncryptRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EncryptRequest::IsInitialized() const { - return true; -} - void EncryptRequest::Swap(EncryptRequest* other) { if (other != this) { - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EncryptRequest::GetMetadata() const { @@ -3719,7 +1269,7 @@ void EncryptRequest::Swap(EncryptRequest* other) { // =================================================================== -ConnectionService::ConnectionService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ConnectionService::ConnectionService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ConnectionService::~ConnectionService() { @@ -3731,8 +1281,7 @@ google::protobuf::ServiceDescriptor const* ConnectionService::descriptor() { } void ConnectionService::Connect(::bgs::protocol::connection::v1::ConnectRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ConnectionService.Connect(bgs.protocol.connection.v1.ConnectRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ConnectionService.Connect", "bgs.protocol.connection.v1.ConnectRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::connection::v1::ConnectResponse response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3742,8 +1291,7 @@ void ConnectionService::Connect(::bgs::protocol::connection::v1::ConnectRequest } void ConnectionService::Bind(::bgs::protocol::connection::v1::BindRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ConnectionService.Bind(bgs.protocol.connection.v1.BindRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ConnectionService.Bind", "bgs.protocol.connection.v1.BindRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::connection::v1::BindResponse response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3753,8 +1301,7 @@ void ConnectionService::Bind(::bgs::protocol::connection::v1::BindRequest const* } void ConnectionService::Echo(::bgs::protocol::connection::v1::EchoRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ConnectionService.Echo(bgs.protocol.connection.v1.EchoRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ConnectionService.Echo", "bgs.protocol.connection.v1.EchoRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::connection::v1::EchoResponse response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3764,20 +1311,17 @@ void ConnectionService::Echo(::bgs::protocol::connection::v1::EchoRequest const* } void ConnectionService::ForceDisconnect(::bgs::protocol::connection::v1::DisconnectNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ConnectionService.ForceDisconnect(bgs.protocol.connection.v1.DisconnectNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ConnectionService.ForceDisconnect", "bgs.protocol.connection.v1.DisconnectNotification", request); SendRequest(service_hash_, 4 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ConnectionService::KeepAlive(::bgs::protocol::NoData const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ConnectionService.KeepAlive(bgs.protocol.NoData{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ConnectionService.KeepAlive", "bgs.protocol.NoData", request); SendRequest(service_hash_, 5 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ConnectionService::Encrypt(::bgs::protocol::connection::v1::EncryptRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ConnectionService.Encrypt(bgs.protocol.connection.v1.EncryptRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ConnectionService.Encrypt", "bgs.protocol.connection.v1.EncryptRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::NoData response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3787,208 +1331,174 @@ void ConnectionService::Encrypt(::bgs::protocol::connection::v1::EncryptRequest } void ConnectionService::RequestDisconnect(::bgs::protocol::connection::v1::DisconnectRequest const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ConnectionService.RequestDisconnect(bgs.protocol.connection.v1.DisconnectRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("ConnectionService.RequestDisconnect", "bgs.protocol.connection.v1.DisconnectRequest", request); SendRequest(service_hash_, 7 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void ConnectionService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::connection::v1::ConnectRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ConnectionService.Connect server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.Connect(bgs.protocol.connection.v1.ConnectRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::connection::v1::ConnectResponse::descriptor()); - ConnectionService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.Connect() returned bgs.protocol.connection.v1.ConnectResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::connection::v1::ConnectResponse response; - uint32 status = HandleConnect(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleConnect(token, methodId, buffer); break; - } - case 2: { - ::bgs::protocol::connection::v1::BindRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ConnectionService.Bind server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.Bind(bgs.protocol.connection.v1.BindRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::connection::v1::BindResponse::descriptor()); - ConnectionService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.Bind() returned bgs.protocol.connection.v1.BindResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::connection::v1::BindResponse response; - uint32 status = HandleBind(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 2: + ParseAndHandleBind(token, methodId, buffer); break; - } - case 3: { - ::bgs::protocol::connection::v1::EchoRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ConnectionService.Echo server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.Echo(bgs.protocol.connection.v1.EchoRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::connection::v1::EchoResponse::descriptor()); - ConnectionService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.Echo() returned bgs.protocol.connection.v1.EchoResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::connection::v1::EchoResponse response; - uint32 status = HandleEcho(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 3: + ParseAndHandleEcho(token, methodId, buffer); break; - } - case 4: { - ::bgs::protocol::connection::v1::DisconnectNotification request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ConnectionService.ForceDisconnect server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - uint32 status = HandleForceDisconnect(&request); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.ForceDisconnect(bgs.protocol.connection.v1.DisconnectNotification{ %s }) status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), status); - if (status) - SendResponse(service_hash_, methodId, token, status); + case 4: + ParseAndHandleForceDisconnect(token, methodId, buffer); break; - } - case 5: { - ::bgs::protocol::NoData request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ConnectionService.KeepAlive server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - uint32 status = HandleKeepAlive(&request); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.KeepAlive(bgs.protocol.NoData{ %s }) status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), status); - if (status) - SendResponse(service_hash_, methodId, token, status); + case 5: + ParseAndHandleKeepAlive(token, methodId, buffer); break; - } - case 6: { - ::bgs::protocol::connection::v1::EncryptRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ConnectionService.Encrypt server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.Encrypt(bgs.protocol.connection.v1.EncryptRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ConnectionService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.Encrypt() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleEncrypt(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 6: + ParseAndHandleEncrypt(token, methodId, buffer); break; - } - case 7: { - ::bgs::protocol::connection::v1::DisconnectRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ConnectionService.RequestDisconnect server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - uint32 status = HandleRequestDisconnect(&request); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ConnectionService.RequestDisconnect(bgs.protocol.connection.v1.DisconnectRequest{ %s }) status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), status); - if (status) - SendResponse(service_hash_, methodId, token, status); + case 7: + ParseAndHandleRequestDisconnect(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 ConnectionService::HandleConnect(::bgs::protocol::connection::v1::ConnectRequest const* request, ::bgs::protocol::connection::v1::ConnectResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ConnectionService.Connect({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ConnectionService::HandleConnect(::bgs::protocol::connection::v1::ConnectRequest const* request, ::bgs::protocol::connection::v1::ConnectResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ConnectionService.Connect", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ConnectionService::HandleBind(::bgs::protocol::connection::v1::BindRequest const* request, ::bgs::protocol::connection::v1::BindResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ConnectionService.Bind({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ConnectionService::HandleBind(::bgs::protocol::connection::v1::BindRequest const* request, ::bgs::protocol::connection::v1::BindResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ConnectionService.Bind", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ConnectionService::HandleEcho(::bgs::protocol::connection::v1::EchoRequest const* request, ::bgs::protocol::connection::v1::EchoResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ConnectionService.Echo({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ConnectionService::HandleEcho(::bgs::protocol::connection::v1::EchoRequest const* request, ::bgs::protocol::connection::v1::EchoResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ConnectionService.Echo", request); return ERROR_RPC_NOT_IMPLEMENTED; } uint32 ConnectionService::HandleForceDisconnect(::bgs::protocol::connection::v1::DisconnectNotification const* request) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ConnectionService.ForceDisconnect({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogUnimplementedServerMethod("ConnectionService.ForceDisconnect", request); return ERROR_RPC_NOT_IMPLEMENTED; } uint32 ConnectionService::HandleKeepAlive(::bgs::protocol::NoData const* request) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ConnectionService.KeepAlive({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogUnimplementedServerMethod("ConnectionService.KeepAlive", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ConnectionService::HandleEncrypt(::bgs::protocol::connection::v1::EncryptRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ConnectionService.Encrypt({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ConnectionService::HandleEncrypt(::bgs::protocol::connection::v1::EncryptRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ConnectionService.Encrypt", request); return ERROR_RPC_NOT_IMPLEMENTED; } uint32 ConnectionService::HandleRequestDisconnect(::bgs::protocol::connection::v1::DisconnectRequest const* request) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ConnectionService.RequestDisconnect({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogUnimplementedServerMethod("ConnectionService.RequestDisconnect", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void ConnectionService::ParseAndHandleConnect(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::connection::v1::ConnectRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ConnectionService.Connect"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ConnectionService.Connect", "bgs.protocol.connection.v1.ConnectRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ConnectionService.Connect", ::bgs::protocol::connection::v1::ConnectResponse::descriptor()); + ::bgs::protocol::connection::v1::ConnectResponse response; + uint32 status = HandleConnect(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ConnectionService::ParseAndHandleBind(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::connection::v1::BindRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ConnectionService.Bind"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ConnectionService.Bind", "bgs.protocol.connection.v1.BindRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ConnectionService.Bind", ::bgs::protocol::connection::v1::BindResponse::descriptor()); + ::bgs::protocol::connection::v1::BindResponse response; + uint32 status = HandleBind(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ConnectionService::ParseAndHandleEcho(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::connection::v1::EchoRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ConnectionService.Echo"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ConnectionService.Echo", "bgs.protocol.connection.v1.EchoRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ConnectionService.Echo", ::bgs::protocol::connection::v1::EchoResponse::descriptor()); + ::bgs::protocol::connection::v1::EchoResponse response; + uint32 status = HandleEcho(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ConnectionService::ParseAndHandleForceDisconnect(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::connection::v1::DisconnectNotification request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ConnectionService.ForceDisconnect"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + uint32 status = HandleForceDisconnect(&request); + LogCallServerMethod("ConnectionService.ForceDisconnect", "bgs.protocol.connection.v1.DisconnectNotification", &request); + if (status) + SendResponse(service_hash_, methodId, token, status); +} + +void ConnectionService::ParseAndHandleKeepAlive(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::NoData request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ConnectionService.KeepAlive"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + uint32 status = HandleKeepAlive(&request); + LogCallServerMethod("ConnectionService.KeepAlive", "bgs.protocol.NoData", &request); + if (status) + SendResponse(service_hash_, methodId, token, status); +} + +void ConnectionService::ParseAndHandleEncrypt(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::connection::v1::EncryptRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ConnectionService.Encrypt"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ConnectionService.Encrypt", "bgs.protocol.connection.v1.EncryptRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ConnectionService.Encrypt", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleEncrypt(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ConnectionService::ParseAndHandleRequestDisconnect(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::connection::v1::DisconnectRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ConnectionService.RequestDisconnect"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + uint32 status = HandleRequestDisconnect(&request); + LogCallServerMethod("ConnectionService.RequestDisconnect", "bgs.protocol.connection.v1.DisconnectRequest", &request); + if (status) + SendResponse(service_hash_, methodId, token, status); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/connection_service.pb.h b/src/server/proto/Client/connection_service.pb.h index 9c0ee3464c4..5f7864ee7f3 100644 --- a/src/server/proto/Client/connection_service.pb.h +++ b/src/server/proto/Client/connection_service.pb.h @@ -84,19 +84,6 @@ class TC_PROTO_API ConnectRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ConnectRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ConnectRequest& from); - void MergeFrom(const ConnectRequest& 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(); @@ -187,19 +174,6 @@ class TC_PROTO_API ConnectionMeteringContentHandles : public ::google::protobuf: // implements Message ---------------------------------------------- ConnectionMeteringContentHandles* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ConnectionMeteringContentHandles& from); - void MergeFrom(const ConnectionMeteringContentHandles& 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(); @@ -269,19 +243,6 @@ class TC_PROTO_API ConnectResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ConnectResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ConnectResponse& from); - void MergeFrom(const ConnectResponse& 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(); @@ -428,19 +389,6 @@ class TC_PROTO_API BoundService : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BoundService* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BoundService& from); - void MergeFrom(const BoundService& 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(); @@ -517,19 +465,6 @@ class TC_PROTO_API BindRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BindRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BindRequest& from); - void MergeFrom(const BindRequest& 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(); @@ -598,7 +533,6 @@ class TC_PROTO_API BindRequest : public ::google::protobuf::Message { ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > deprecated_imported_service_hash_; - mutable int _deprecated_imported_service_hash_cached_byte_size_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > deprecated_exported_service_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > exported_service_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > imported_service_; @@ -639,19 +573,6 @@ class TC_PROTO_API BindResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BindResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BindResponse& from); - void MergeFrom(const BindResponse& 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(); @@ -684,7 +605,6 @@ class TC_PROTO_API BindResponse : public ::google::protobuf::Message { ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > imported_service_id_; - mutable int _imported_service_id_cached_byte_size_; friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto(); friend void protobuf_AssignDesc_connection_5fservice_2eproto(); friend void protobuf_ShutdownFile_connection_5fservice_2eproto(); @@ -722,19 +642,6 @@ class TC_PROTO_API EchoRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EchoRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EchoRequest& from); - void MergeFrom(const EchoRequest& 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(); @@ -853,19 +760,6 @@ class TC_PROTO_API EchoResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EchoResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EchoResponse& from); - void MergeFrom(const EchoResponse& 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(); @@ -947,19 +841,6 @@ class TC_PROTO_API DisconnectRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- DisconnectRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DisconnectRequest& from); - void MergeFrom(const DisconnectRequest& 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(); @@ -1026,19 +907,6 @@ class TC_PROTO_API DisconnectNotification : public ::google::protobuf::Message { // implements Message ---------------------------------------------- DisconnectNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DisconnectNotification& from); - void MergeFrom(const DisconnectNotification& 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(); @@ -1120,19 +988,6 @@ class TC_PROTO_API EncryptRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EncryptRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EncryptRequest& from); - void MergeFrom(const EncryptRequest& 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(); @@ -1166,6 +1021,10 @@ class TC_PROTO_API ConnectionService : public ServiceBase public: explicit ConnectionService(bool use_original_hash); + ConnectionService(ConnectionService const&) = delete; + ConnectionService(ConnectionService&&) = delete; + ConnectionService& operator=(ConnectionService const&) = delete; + ConnectionService& operator=(ConnectionService&&) = delete; virtual ~ConnectionService(); typedef std::integral_constant OriginalHash; @@ -1195,9 +1054,13 @@ class TC_PROTO_API ConnectionService : public ServiceBase virtual uint32 HandleRequestDisconnect(::bgs::protocol::connection::v1::DisconnectRequest const* request); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ConnectionService); + void ParseAndHandleConnect(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleBind(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleEcho(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleForceDisconnect(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleKeepAlive(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleEncrypt(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRequestDisconnect(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/content_handle_types.pb.cc b/src/server/proto/Client/content_handle_types.pb.cc index c25ce34611d..6c487f28a1f 100644 --- a/src/server/proto/Client/content_handle_types.pb.cc +++ b/src/server/proto/Client/content_handle_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "content_handle_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -87,7 +85,7 @@ void protobuf_AddDesc_content_5fhandle_5ftypes_2eproto() { "ol\"O\n\rContentHandle\022\016\n\006region\030\001 \002(\007\022\r\n\005u" "sage\030\002 \002(\007\022\014\n\004hash\030\003 \002(\014\022\021\n\tproto_url\030\004 " "\001(\tB%\n\rbnet.protocolB\022ContentHandleProto" - "H\001", 162); + "H\002", 162); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "content_handle_types.proto", &protobuf_RegisterTypes); ContentHandle::default_instance_ = new ContentHandle(); @@ -173,302 +171,9 @@ ContentHandle* ContentHandle::New() const { return new ContentHandle; } -void ContentHandle::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(region_, usage_); - if (has_hash()) { - if (hash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - hash_->clear(); - } - } - if (has_proto_url()) { - if (proto_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - proto_url_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ContentHandle::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.ContentHandle) - 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 fixed32 region = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, ®ion_))); - set_has_region(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_usage; - break; - } - - // required fixed32 usage = 2; - case 2: { - if (tag == 21) { - parse_usage: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &usage_))); - set_has_usage(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_hash; - break; - } - - // required bytes hash = 3; - case 3: { - if (tag == 26) { - parse_hash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_hash())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_proto_url; - break; - } - - // optional string proto_url = 4; - case 4: { - if (tag == 34) { - parse_proto_url: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_proto_url())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->proto_url().data(), this->proto_url().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "proto_url"); - } 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.ContentHandle) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.ContentHandle) - return false; -#undef DO_ -} - -void ContentHandle::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.ContentHandle) - // required fixed32 region = 1; - if (has_region()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->region(), output); - } - - // required fixed32 usage = 2; - if (has_usage()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->usage(), output); - } - - // required bytes hash = 3; - if (has_hash()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 3, this->hash(), output); - } - - // optional string proto_url = 4; - if (has_proto_url()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->proto_url().data(), this->proto_url().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "proto_url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->proto_url(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.ContentHandle) -} - -::google::protobuf::uint8* ContentHandle::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.ContentHandle) - // required fixed32 region = 1; - if (has_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->region(), target); - } - - // required fixed32 usage = 2; - if (has_usage()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->usage(), target); - } - - // required bytes hash = 3; - if (has_hash()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 3, this->hash(), target); - } - - // optional string proto_url = 4; - if (has_proto_url()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->proto_url().data(), this->proto_url().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "proto_url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->proto_url(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.ContentHandle) - return target; -} - -int ContentHandle::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed32 region = 1; - if (has_region()) { - total_size += 1 + 4; - } - - // required fixed32 usage = 2; - if (has_usage()) { - total_size += 1 + 4; - } - - // required bytes hash = 3; - if (has_hash()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->hash()); - } - - // optional string proto_url = 4; - if (has_proto_url()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->proto_url()); - } - - } - 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 ContentHandle::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ContentHandle* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ContentHandle::MergeFrom(const ContentHandle& 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_usage()) { - set_usage(from.usage()); - } - if (from.has_hash()) { - set_hash(from.hash()); - } - if (from.has_proto_url()) { - set_proto_url(from.proto_url()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ContentHandle::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContentHandle::CopyFrom(const ContentHandle& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContentHandle::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - void ContentHandle::Swap(ContentHandle* other) { if (other != this) { - std::swap(region_, other->region_); - std::swap(usage_, other->usage_); - std::swap(hash_, other->hash_); - std::swap(proto_url_, other->proto_url_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ContentHandle::GetMetadata() const { diff --git a/src/server/proto/Client/content_handle_types.pb.h b/src/server/proto/Client/content_handle_types.pb.h index ddd482ed5d5..5835365815b 100644 --- a/src/server/proto/Client/content_handle_types.pb.h +++ b/src/server/proto/Client/content_handle_types.pb.h @@ -67,19 +67,6 @@ class TC_PROTO_API ContentHandle : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ContentHandle* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ContentHandle& from); - void MergeFrom(const ContentHandle& 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(); diff --git a/src/server/proto/Client/embed_types.pb.cc b/src/server/proto/Client/embed_types.pb.cc index 36e56380b12..e7af84a1e86 100644 --- a/src/server/proto/Client/embed_types.pb.cc +++ b/src/server/proto/Client/embed_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "embed_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -165,7 +163,7 @@ void protobuf_AddDesc_embed_5ftypes_2eproto() { "\001(\t\022+\n\tthumbnail\030\004 \001(\0132\030.bgs.protocol.Em" "bedImage\022(\n\010provider\030\005 \001(\0132\026.bgs.protoco" "l.Provider\022\023\n\013description\030\006 \001(\t\022%\n\004html\030" - "\010 \001(\0132\027.bgs.protocol.EmbedHTMLB\002H\001", 394); + "\010 \001(\0132\027.bgs.protocol.EmbedHTMLB\002H\002", 394); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "embed_types.proto", &protobuf_RegisterTypes); EmbedImage::default_instance_ = new EmbedImage(); @@ -252,263 +250,9 @@ EmbedImage* EmbedImage::New() const { return new EmbedImage; } -void EmbedImage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(width_, height_); - if (has_url()) { - if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - url_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EmbedImage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.EmbedImage) - 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 url = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_url())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->url().data(), this->url().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "url"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_width; - break; - } - - // optional uint32 width = 2; - case 2: { - if (tag == 16) { - parse_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &width_))); - set_has_width(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_height; - break; - } - - // optional uint32 height = 3; - case 3: { - if (tag == 24) { - parse_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &height_))); - set_has_height(); - } 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.EmbedImage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.EmbedImage) - return false; -#undef DO_ -} - -void EmbedImage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.EmbedImage) - // optional string url = 1; - if (has_url()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->url().data(), this->url().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->url(), output); - } - - // optional uint32 width = 2; - if (has_width()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->width(), output); - } - - // optional uint32 height = 3; - if (has_height()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.EmbedImage) -} - -::google::protobuf::uint8* EmbedImage::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.EmbedImage) - // optional string url = 1; - if (has_url()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->url().data(), this->url().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->url(), target); - } - - // optional uint32 width = 2; - if (has_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->width(), target); - } - - // optional uint32 height = 3; - if (has_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->height(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.EmbedImage) - return target; -} - -int EmbedImage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string url = 1; - if (has_url()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->url()); - } - - // optional uint32 width = 2; - if (has_width()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->width()); - } - - // optional uint32 height = 3; - if (has_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->height()); - } - - } - 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 EmbedImage::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EmbedImage* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EmbedImage::MergeFrom(const EmbedImage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_url()) { - set_url(from.url()); - } - if (from.has_width()) { - set_width(from.width()); - } - if (from.has_height()) { - set_height(from.height()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EmbedImage::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EmbedImage::CopyFrom(const EmbedImage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EmbedImage::IsInitialized() const { - return true; -} - void EmbedImage::Swap(EmbedImage* other) { if (other != this) { - std::swap(url_, other->url_); - std::swap(width_, other->width_); - std::swap(height_, other->height_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EmbedImage::GetMetadata() const { @@ -582,174 +326,9 @@ Provider* Provider::New() const { return new Provider; } -void Provider::Clear() { - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Provider::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.Provider) - 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 name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } 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.Provider) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.Provider) - return false; -#undef DO_ -} - -void Provider::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.Provider) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.Provider) -} - -::google::protobuf::uint8* Provider::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.Provider) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.Provider) - return target; -} - -int Provider::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - } - 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 Provider::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Provider* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Provider::MergeFrom(const Provider& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Provider::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Provider::CopyFrom(const Provider& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Provider::IsInitialized() const { - return true; -} - void Provider::Swap(Provider* other) { if (other != this) { - std::swap(name_, other->name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Provider::GetMetadata() const { @@ -827,263 +406,9 @@ EmbedHTML* EmbedHTML::New() const { return new EmbedHTML; } -void EmbedHTML::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(width_, height_); - if (has_content()) { - if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - content_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EmbedHTML::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.EmbedHTML) - 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 content = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_content())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "content"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_width; - break; - } - - // optional uint32 width = 2; - case 2: { - if (tag == 16) { - parse_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &width_))); - set_has_width(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_height; - break; - } - - // optional uint32 height = 3; - case 3: { - if (tag == 24) { - parse_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &height_))); - set_has_height(); - } 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.EmbedHTML) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.EmbedHTML) - return false; -#undef DO_ -} - -void EmbedHTML::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.EmbedHTML) - // optional string content = 1; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->content(), output); - } - - // optional uint32 width = 2; - if (has_width()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->width(), output); - } - - // optional uint32 height = 3; - if (has_height()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.EmbedHTML) -} - -::google::protobuf::uint8* EmbedHTML::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.EmbedHTML) - // optional string content = 1; - if (has_content()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->content().data(), this->content().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "content"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->content(), target); - } - - // optional uint32 width = 2; - if (has_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->width(), target); - } - - // optional uint32 height = 3; - if (has_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->height(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.EmbedHTML) - return target; -} - -int EmbedHTML::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string content = 1; - if (has_content()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->content()); - } - - // optional uint32 width = 2; - if (has_width()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->width()); - } - - // optional uint32 height = 3; - if (has_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->height()); - } - - } - 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 EmbedHTML::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EmbedHTML* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EmbedHTML::MergeFrom(const EmbedHTML& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_content()) { - set_content(from.content()); - } - if (from.has_width()) { - set_width(from.width()); - } - if (from.has_height()) { - set_height(from.height()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EmbedHTML::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EmbedHTML::CopyFrom(const EmbedHTML& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EmbedHTML::IsInitialized() const { - return true; -} - void EmbedHTML::Swap(EmbedHTML* other) { if (other != this) { - std::swap(content_, other->content_); - std::swap(width_, other->width_); - std::swap(height_, other->height_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EmbedHTML::GetMetadata() const { @@ -1184,458 +509,9 @@ EmbedInfo* EmbedInfo::New() const { return new EmbedInfo; } -void EmbedInfo::Clear() { - if (_has_bits_[0 / 32] & 127) { - if (has_title()) { - if (title_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - title_->clear(); - } - } - if (has_type()) { - if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - type_->clear(); - } - } - if (has_original_url()) { - if (original_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - original_url_->clear(); - } - } - if (has_thumbnail()) { - if (thumbnail_ != NULL) thumbnail_->::bgs::protocol::EmbedImage::Clear(); - } - if (has_provider()) { - if (provider_ != NULL) provider_->::bgs::protocol::Provider::Clear(); - } - if (has_description()) { - if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - description_->clear(); - } - } - if (has_html()) { - if (html_ != NULL) html_->::bgs::protocol::EmbedHTML::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EmbedInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.EmbedInfo) - 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 title = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_title())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->title().data(), this->title().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "title"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_type; - break; - } - - // optional string type = 2; - case 2: { - if (tag == 18) { - parse_type: - 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(26)) goto parse_original_url; - break; - } - - // optional string original_url = 3; - case 3: { - if (tag == 26) { - parse_original_url: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_original_url())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->original_url().data(), this->original_url().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "original_url"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_thumbnail; - break; - } - - // optional .bgs.protocol.EmbedImage thumbnail = 4; - case 4: { - if (tag == 34) { - parse_thumbnail: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_thumbnail())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_provider; - break; - } - - // optional .bgs.protocol.Provider provider = 5; - case 5: { - if (tag == 42) { - parse_provider: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_provider())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_description; - break; - } - - // optional string description = 6; - case 6: { - if (tag == 50) { - parse_description: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "description"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_html; - break; - } - - // optional .bgs.protocol.EmbedHTML html = 8; - case 8: { - if (tag == 66) { - parse_html: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_html())); - } 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.EmbedInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.EmbedInfo) - return false; -#undef DO_ -} - -void EmbedInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.EmbedInfo) - // optional string title = 1; - if (has_title()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->title().data(), this->title().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "title"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->title(), output); - } - - // optional string type = 2; - 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( - 2, this->type(), output); - } - - // optional string original_url = 3; - if (has_original_url()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->original_url().data(), this->original_url().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "original_url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->original_url(), output); - } - - // optional .bgs.protocol.EmbedImage thumbnail = 4; - if (has_thumbnail()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->thumbnail(), output); - } - - // optional .bgs.protocol.Provider provider = 5; - if (has_provider()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->provider(), output); - } - - // optional string description = 6; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->description(), output); - } - - // optional .bgs.protocol.EmbedHTML html = 8; - if (has_html()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->html(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.EmbedInfo) -} - -::google::protobuf::uint8* EmbedInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.EmbedInfo) - // optional string title = 1; - if (has_title()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->title().data(), this->title().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "title"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->title(), target); - } - - // optional string type = 2; - 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( - 2, this->type(), target); - } - - // optional string original_url = 3; - if (has_original_url()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->original_url().data(), this->original_url().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "original_url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->original_url(), target); - } - - // optional .bgs.protocol.EmbedImage thumbnail = 4; - if (has_thumbnail()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->thumbnail(), target); - } - - // optional .bgs.protocol.Provider provider = 5; - if (has_provider()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->provider(), target); - } - - // optional string description = 6; - if (has_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->description().data(), this->description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->description(), target); - } - - // optional .bgs.protocol.EmbedHTML html = 8; - if (has_html()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->html(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.EmbedInfo) - return target; -} - -int EmbedInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string title = 1; - if (has_title()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->title()); - } - - // optional string type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - // optional string original_url = 3; - if (has_original_url()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->original_url()); - } - - // optional .bgs.protocol.EmbedImage thumbnail = 4; - if (has_thumbnail()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->thumbnail()); - } - - // optional .bgs.protocol.Provider provider = 5; - if (has_provider()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->provider()); - } - - // optional string description = 6; - if (has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // optional .bgs.protocol.EmbedHTML html = 8; - if (has_html()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->html()); - } - - } - 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 EmbedInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EmbedInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EmbedInfo::MergeFrom(const EmbedInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_title()) { - set_title(from.title()); - } - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_original_url()) { - set_original_url(from.original_url()); - } - if (from.has_thumbnail()) { - mutable_thumbnail()->::bgs::protocol::EmbedImage::MergeFrom(from.thumbnail()); - } - if (from.has_provider()) { - mutable_provider()->::bgs::protocol::Provider::MergeFrom(from.provider()); - } - if (from.has_description()) { - set_description(from.description()); - } - if (from.has_html()) { - mutable_html()->::bgs::protocol::EmbedHTML::MergeFrom(from.html()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EmbedInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EmbedInfo::CopyFrom(const EmbedInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EmbedInfo::IsInitialized() const { - return true; -} - void EmbedInfo::Swap(EmbedInfo* other) { if (other != this) { - std::swap(title_, other->title_); - std::swap(type_, other->type_); - std::swap(original_url_, other->original_url_); - std::swap(thumbnail_, other->thumbnail_); - std::swap(provider_, other->provider_); - std::swap(description_, other->description_); - std::swap(html_, other->html_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EmbedInfo::GetMetadata() const { diff --git a/src/server/proto/Client/embed_types.pb.h b/src/server/proto/Client/embed_types.pb.h index aff583ce3d1..051e63f1235 100644 --- a/src/server/proto/Client/embed_types.pb.h +++ b/src/server/proto/Client/embed_types.pb.h @@ -70,19 +70,6 @@ class TC_PROTO_API EmbedImage : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EmbedImage* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EmbedImage& from); - void MergeFrom(const EmbedImage& 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(); @@ -174,19 +161,6 @@ class TC_PROTO_API Provider : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Provider* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Provider& from); - void MergeFrom(const Provider& 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(); @@ -258,19 +232,6 @@ class TC_PROTO_API EmbedHTML : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EmbedHTML* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EmbedHTML& from); - void MergeFrom(const EmbedHTML& 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(); @@ -362,19 +323,6 @@ class TC_PROTO_API EmbedInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EmbedInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EmbedInfo& from); - void MergeFrom(const EmbedInfo& 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(); diff --git a/src/server/proto/Client/entity_types.pb.cc b/src/server/proto/Client/entity_types.pb.cc index 0d1e379fbc6..f47f56a5585 100644 --- a/src/server/proto/Client/entity_types.pb.cc +++ b/src/server/proto/Client/entity_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "entity_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -114,7 +112,7 @@ void protobuf_AddDesc_entity_5ftypes_2eproto() { "_id\030\001 \001(\0132\026.bgs.protocol.EntityIdB\010\212\371+\004:" "\002\020\001\0229\n\017game_account_id\030\002 \001(\0132\026.bgs.proto" "col.EntityIdB\010\212\371+\004:\002\020\002B\036\n\rbnet.protocolB" - "\013EntityProtoH\001", 334); + "\013EntityProtoH\002", 334); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "entity_types.proto", &protobuf_RegisterTypes); EntityId::default_instance_ = new EntityId(); @@ -191,204 +189,9 @@ EntityId* EntityId::New() const { return new EntityId; } -void EntityId::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(high_, low_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EntityId::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.EntityId) - 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 fixed64 high = 1; - case 1: { - if (tag == 9) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &high_))); - set_has_high(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(17)) goto parse_low; - break; - } - - // required fixed64 low = 2; - case 2: { - if (tag == 17) { - parse_low: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &low_))); - set_has_low(); - } 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.EntityId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.EntityId) - return false; -#undef DO_ -} - -void EntityId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.EntityId) - // required fixed64 high = 1; - if (has_high()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->high(), output); - } - - // required fixed64 low = 2; - if (has_low()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->low(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.EntityId) -} - -::google::protobuf::uint8* EntityId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.EntityId) - // required fixed64 high = 1; - if (has_high()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->high(), target); - } - - // required fixed64 low = 2; - if (has_low()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->low(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.EntityId) - return target; -} - -int EntityId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed64 high = 1; - if (has_high()) { - total_size += 1 + 8; - } - - // required fixed64 low = 2; - if (has_low()) { - total_size += 1 + 8; - } - - } - 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 EntityId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EntityId* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EntityId::MergeFrom(const EntityId& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_high()) { - set_high(from.high()); - } - if (from.has_low()) { - set_low(from.low()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EntityId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityId::CopyFrom(const EntityId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityId::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - void EntityId::Swap(EntityId* other) { if (other != this) { - std::swap(high_, other->high_); - std::swap(low_, other->low_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EntityId::GetMetadata() const { @@ -464,208 +267,9 @@ Identity* Identity::New() const { return new Identity; } -void Identity::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Identity::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.Identity) - 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 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_game_account_id; - break; - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - case 2: { - if (tag == 18) { - parse_game_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_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.Identity) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.Identity) - return false; -#undef DO_ -} - -void Identity::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.Identity) - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_id(), output); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.Identity) -} - -::google::protobuf::uint8* Identity::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.Identity) - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_id(), target); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_account_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.Identity) - return target; -} - -int Identity::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_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 Identity::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Identity* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Identity::MergeFrom(const Identity& from) { - GOOGLE_CHECK_NE(&from, this); - 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_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Identity::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Identity::CopyFrom(const Identity& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Identity::IsInitialized() const { - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - return true; -} - void Identity::Swap(Identity* other) { if (other != this) { - std::swap(account_id_, other->account_id_); - std::swap(game_account_id_, other->game_account_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Identity::GetMetadata() const { diff --git a/src/server/proto/Client/entity_types.pb.h b/src/server/proto/Client/entity_types.pb.h index 61338dd8cf3..3c772c16d2f 100644 --- a/src/server/proto/Client/entity_types.pb.h +++ b/src/server/proto/Client/entity_types.pb.h @@ -70,19 +70,6 @@ class TC_PROTO_API EntityId : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EntityId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EntityId& from); - void MergeFrom(const EntityId& 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(); @@ -159,19 +146,6 @@ class TC_PROTO_API Identity : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Identity* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Identity& from); - void MergeFrom(const Identity& 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(); diff --git a/src/server/proto/Client/ets_types.pb.cc b/src/server/proto/Client/ets_types.pb.cc index 81faaa0f46a..7d7c89d1896 100644 --- a/src/server/proto/Client/ets_types.pb.cc +++ b/src/server/proto/Client/ets_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "ets_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -83,7 +81,7 @@ void protobuf_AddDesc_ets_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\017ets_types.proto\022\014bgs.protocol\"/\n\014TimeS" "eriesId\022\r\n\005epoch\030\001 \001(\004\022\020\n\010position\030\002 \001(\004" - "B\002H\001", 84); + "B\002H\002", 84); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "ets_types.proto", &protobuf_RegisterTypes); TimeSeriesId::default_instance_ = new TimeSeriesId(); @@ -158,207 +156,9 @@ TimeSeriesId* TimeSeriesId::New() const { return new TimeSeriesId; } -void TimeSeriesId::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(epoch_, position_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool TimeSeriesId::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.TimeSeriesId) - 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 uint64 epoch = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &epoch_))); - set_has_epoch(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_position; - break; - } - - // optional uint64 position = 2; - case 2: { - if (tag == 16) { - parse_position: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &position_))); - set_has_position(); - } 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.TimeSeriesId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.TimeSeriesId) - return false; -#undef DO_ -} - -void TimeSeriesId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.TimeSeriesId) - // optional uint64 epoch = 1; - if (has_epoch()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->epoch(), output); - } - - // optional uint64 position = 2; - if (has_position()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->position(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.TimeSeriesId) -} - -::google::protobuf::uint8* TimeSeriesId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.TimeSeriesId) - // optional uint64 epoch = 1; - if (has_epoch()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->epoch(), target); - } - - // optional uint64 position = 2; - if (has_position()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->position(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.TimeSeriesId) - return target; -} - -int TimeSeriesId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 epoch = 1; - if (has_epoch()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->epoch()); - } - - // optional uint64 position = 2; - if (has_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->position()); - } - - } - 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 TimeSeriesId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const TimeSeriesId* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void TimeSeriesId::MergeFrom(const TimeSeriesId& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_epoch()) { - set_epoch(from.epoch()); - } - if (from.has_position()) { - set_position(from.position()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void TimeSeriesId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TimeSeriesId::CopyFrom(const TimeSeriesId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TimeSeriesId::IsInitialized() const { - return true; -} - void TimeSeriesId::Swap(TimeSeriesId* other) { if (other != this) { - std::swap(epoch_, other->epoch_); - std::swap(position_, other->position_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata TimeSeriesId::GetMetadata() const { diff --git a/src/server/proto/Client/ets_types.pb.h b/src/server/proto/Client/ets_types.pb.h index 26b89020de9..f6b96175ff4 100644 --- a/src/server/proto/Client/ets_types.pb.h +++ b/src/server/proto/Client/ets_types.pb.h @@ -67,19 +67,6 @@ class TC_PROTO_API TimeSeriesId : public ::google::protobuf::Message { // implements Message ---------------------------------------------- TimeSeriesId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TimeSeriesId& from); - void MergeFrom(const TimeSeriesId& 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(); diff --git a/src/server/proto/Client/event_view_types.pb.cc b/src/server/proto/Client/event_view_types.pb.cc index c6b25bcef72..cb16a26157d 100644 --- a/src/server/proto/Client/event_view_types.pb.cc +++ b/src/server/proto/Client/event_view_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "event_view_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -115,7 +113,7 @@ void protobuf_AddDesc_event_5fview_5ftypes_2eproto() { "\?\n\nViewMarker\022\026\n\016last_read_time\030\001 \001(\004\022\031\n" "\021last_message_time\030\002 \001(\004*7\n\nEventOrder\022\024" "\n\020EVENT_DESCENDING\020\000\022\023\n\017EVENT_ASCENDING\020" - "\001B\002H\001", 285); + "\001B\002H\002", 285); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "event_view_types.proto", &protobuf_RegisterTypes); GetEventOptions::default_instance_ = new GetEventOptions(); @@ -210,285 +208,9 @@ GetEventOptions* GetEventOptions::New() const { return new GetEventOptions; } -void GetEventOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(fetch_from_, order_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetEventOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.GetEventOptions) - 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 uint64 fetch_from = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &fetch_from_))); - set_has_fetch_from(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_fetch_until; - break; - } - - // optional uint64 fetch_until = 2; - case 2: { - if (tag == 16) { - parse_fetch_until: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &fetch_until_))); - set_has_fetch_until(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_max_events; - break; - } - - // optional uint32 max_events = 3; - case 3: { - if (tag == 24) { - parse_max_events: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_events_))); - set_has_max_events(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_order; - break; - } - - // optional .bgs.protocol.EventOrder order = 4; - case 4: { - if (tag == 32) { - parse_order: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::EventOrder_IsValid(value)) { - set_order(static_cast< ::bgs::protocol::EventOrder >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, 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.GetEventOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.GetEventOptions) - return false; -#undef DO_ -} - -void GetEventOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.GetEventOptions) - // optional uint64 fetch_from = 1; - if (has_fetch_from()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->fetch_from(), output); - } - - // optional uint64 fetch_until = 2; - if (has_fetch_until()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->fetch_until(), output); - } - - // optional uint32 max_events = 3; - if (has_max_events()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->max_events(), output); - } - - // optional .bgs.protocol.EventOrder order = 4; - if (has_order()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->order(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.GetEventOptions) -} - -::google::protobuf::uint8* GetEventOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.GetEventOptions) - // optional uint64 fetch_from = 1; - if (has_fetch_from()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->fetch_from(), target); - } - - // optional uint64 fetch_until = 2; - if (has_fetch_until()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->fetch_until(), target); - } - - // optional uint32 max_events = 3; - if (has_max_events()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->max_events(), target); - } - - // optional .bgs.protocol.EventOrder order = 4; - if (has_order()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->order(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.GetEventOptions) - return target; -} - -int GetEventOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 fetch_from = 1; - if (has_fetch_from()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->fetch_from()); - } - - // optional uint64 fetch_until = 2; - if (has_fetch_until()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->fetch_until()); - } - - // optional uint32 max_events = 3; - if (has_max_events()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_events()); - } - - // optional .bgs.protocol.EventOrder order = 4; - if (has_order()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->order()); - } - - } - 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 GetEventOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetEventOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetEventOptions::MergeFrom(const GetEventOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_fetch_from()) { - set_fetch_from(from.fetch_from()); - } - if (from.has_fetch_until()) { - set_fetch_until(from.fetch_until()); - } - if (from.has_max_events()) { - set_max_events(from.max_events()); - } - if (from.has_order()) { - set_order(from.order()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetEventOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetEventOptions::CopyFrom(const GetEventOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetEventOptions::IsInitialized() const { - return true; -} - void GetEventOptions::Swap(GetEventOptions* other) { if (other != this) { - std::swap(fetch_from_, other->fetch_from_); - std::swap(fetch_until_, other->fetch_until_); - std::swap(max_events_, other->max_events_); - std::swap(order_, other->order_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetEventOptions::GetMetadata() const { @@ -560,207 +282,9 @@ ViewMarker* ViewMarker::New() const { return new ViewMarker; } -void ViewMarker::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(last_read_time_, last_message_time_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ViewMarker::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.ViewMarker) - 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 uint64 last_read_time = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &last_read_time_))); - set_has_last_read_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_last_message_time; - break; - } - - // optional uint64 last_message_time = 2; - case 2: { - if (tag == 16) { - parse_last_message_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &last_message_time_))); - set_has_last_message_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.ViewMarker) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.ViewMarker) - return false; -#undef DO_ -} - -void ViewMarker::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.ViewMarker) - // optional uint64 last_read_time = 1; - if (has_last_read_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->last_read_time(), output); - } - - // optional uint64 last_message_time = 2; - if (has_last_message_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->last_message_time(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.ViewMarker) -} - -::google::protobuf::uint8* ViewMarker::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.ViewMarker) - // optional uint64 last_read_time = 1; - if (has_last_read_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->last_read_time(), target); - } - - // optional uint64 last_message_time = 2; - if (has_last_message_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->last_message_time(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.ViewMarker) - return target; -} - -int ViewMarker::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 last_read_time = 1; - if (has_last_read_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->last_read_time()); - } - - // optional uint64 last_message_time = 2; - if (has_last_message_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->last_message_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 ViewMarker::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ViewMarker* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ViewMarker::MergeFrom(const ViewMarker& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_last_read_time()) { - set_last_read_time(from.last_read_time()); - } - if (from.has_last_message_time()) { - set_last_message_time(from.last_message_time()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ViewMarker::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ViewMarker::CopyFrom(const ViewMarker& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ViewMarker::IsInitialized() const { - return true; -} - void ViewMarker::Swap(ViewMarker* other) { if (other != this) { - std::swap(last_read_time_, other->last_read_time_); - std::swap(last_message_time_, other->last_message_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ViewMarker::GetMetadata() const { diff --git a/src/server/proto/Client/event_view_types.pb.h b/src/server/proto/Client/event_view_types.pb.h index a077e5e532c..897eff0d4d1 100644 --- a/src/server/proto/Client/event_view_types.pb.h +++ b/src/server/proto/Client/event_view_types.pb.h @@ -88,19 +88,6 @@ class TC_PROTO_API GetEventOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- GetEventOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetEventOptions& from); - void MergeFrom(const GetEventOptions& 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(); @@ -197,19 +184,6 @@ class TC_PROTO_API ViewMarker : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ViewMarker* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ViewMarker& from); - void MergeFrom(const ViewMarker& 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(); diff --git a/src/server/proto/Client/friends_service.pb.cc b/src/server/proto/Client/friends_service.pb.cc index 97f78432a07..c6148502f93 100644 --- a/src/server/proto/Client/friends_service.pb.cc +++ b/src/server/proto/Client/friends_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "friends_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -653,7 +650,7 @@ void protobuf_AddDesc_friends_5fservice_2eproto() { "dStateNotification\032\031.bgs.protocol.NO_RES" "PONSE\"\006\202\371+\002\010\007\032/\202\371+%\n#bnet.protocol.frien" "ds.FriendsNotify\212\371+\002\010\001B7\n\030bnet.protocol." - "friends.v1B\023FriendsServiceProtoH\001\200\001\000\210\001\001", 4839); + "friends.v1B\023FriendsServiceProtoH\002\200\001\000\210\001\001", 4839); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "friends_service.proto", &protobuf_RegisterTypes); SubscribeRequest::default_instance_ = new SubscribeRequest(); @@ -768,203 +765,9 @@ SubscribeRequest* SubscribeRequest::New() const { return new SubscribeRequest; } -void SubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeRequest::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.SubscribeRequest) - 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(16)) goto parse_object_id; - break; - } - - // required uint64 object_id = 2; - case 2: { - if (tag == 16) { - 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->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.SubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.SubscribeRequest) - return false; -#undef DO_ -} - -void SubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.SubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // required uint64 object_id = 2; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.SubscribeRequest) -} - -::google::protobuf::uint8* SubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.SubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // required uint64 object_id = 2; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->object_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.SubscribeRequest) - return target; -} - -int SubscribeRequest::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 uint64 object_id = 2; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_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 SubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeRequest::MergeFrom(const SubscribeRequest& 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_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeRequest::CopyFrom(const SubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SubscribeRequest::Swap(SubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeRequest::GetMetadata() const { @@ -1038,202 +841,9 @@ UnsubscribeRequest* UnsubscribeRequest::New() const { return new UnsubscribeRequest; } -void UnsubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsubscribeRequest::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.UnsubscribeRequest) - 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(16)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 2; - case 2: { - if (tag == 16) { - 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->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.UnsubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.UnsubscribeRequest) - return false; -#undef DO_ -} - -void UnsubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.UnsubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 object_id = 2; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.UnsubscribeRequest) -} - -::google::protobuf::uint8* UnsubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.UnsubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 object_id = 2; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->object_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.UnsubscribeRequest) - return target; -} - -int UnsubscribeRequest::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 uint64 object_id = 2; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_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 UnsubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsubscribeRequest::MergeFrom(const UnsubscribeRequest& 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_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsubscribeRequest::CopyFrom(const UnsubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsubscribeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UnsubscribeRequest::Swap(UnsubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsubscribeRequest::GetMetadata() const { @@ -1313,252 +923,9 @@ SendInvitationRequest* SendInvitationRequest::New() const { return new SendInvitationRequest; } -void SendInvitationRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_identity()) { - if (agent_identity_ != NULL) agent_identity_->::bgs::protocol::Identity::Clear(); - } - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_params()) { - if (params_ != NULL) params_->::bgs::protocol::InvitationParams::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SendInvitationRequest::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.SendInvitationRequest) - 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.Identity agent_identity = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_target_id; - break; - } - - // required .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->ExpectTag(26)) goto parse_params; - break; - } - - // required .bgs.protocol.InvitationParams params = 3; - case 3: { - if (tag == 26) { - parse_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_params())); - } 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.SendInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.SendInvitationRequest) - return false; -#undef DO_ -} - -void SendInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.SendInvitationRequest) - // optional .bgs.protocol.Identity agent_identity = 1; - if (has_agent_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_identity(), output); - } - - // required .bgs.protocol.EntityId target_id = 2; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->target_id(), output); - } - - // required .bgs.protocol.InvitationParams params = 3; - if (has_params()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->params(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.SendInvitationRequest) -} - -::google::protobuf::uint8* SendInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.SendInvitationRequest) - // optional .bgs.protocol.Identity agent_identity = 1; - if (has_agent_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_identity(), target); - } - - // required .bgs.protocol.EntityId target_id = 2; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->target_id(), target); - } - - // required .bgs.protocol.InvitationParams params = 3; - if (has_params()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->params(), 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.SendInvitationRequest) - return target; -} - -int SendInvitationRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.Identity agent_identity = 1; - if (has_agent_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_identity()); - } - - // required .bgs.protocol.EntityId target_id = 2; - if (has_target_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_id()); - } - - // required .bgs.protocol.InvitationParams params = 3; - if (has_params()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->params()); - } - - } - 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 SendInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SendInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SendInvitationRequest::MergeFrom(const SendInvitationRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_identity()) { - mutable_agent_identity()->::bgs::protocol::Identity::MergeFrom(from.agent_identity()); - } - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::EntityId::MergeFrom(from.target_id()); - } - if (from.has_params()) { - mutable_params()->::bgs::protocol::InvitationParams::MergeFrom(from.params()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SendInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SendInvitationRequest::CopyFrom(const SendInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SendInvitationRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false; - if (has_agent_identity()) { - if (!this->agent_identity().IsInitialized()) return false; - } - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - if (has_params()) { - if (!this->params().IsInitialized()) return false; - } - return true; -} - void SendInvitationRequest::Swap(SendInvitationRequest* other) { if (other != this) { - std::swap(agent_identity_, other->agent_identity_); - std::swap(target_id_, other->target_id_); - std::swap(params_, other->params_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SendInvitationRequest::GetMetadata() const { @@ -1632,200 +999,9 @@ RevokeInvitationRequest* RevokeInvitationRequest::New() const { return new RevokeInvitationRequest; } -void RevokeInvitationRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - invitation_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RevokeInvitationRequest::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.RevokeInvitationRequest) - 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(17)) goto parse_invitation_id; - break; - } - - // optional fixed64 invitation_id = 2; - case 2: { - if (tag == 17) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_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.RevokeInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.RevokeInvitationRequest) - return false; -#undef DO_ -} - -void RevokeInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.RevokeInvitationRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional fixed64 invitation_id = 2; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->invitation_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.RevokeInvitationRequest) -} - -::google::protobuf::uint8* RevokeInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.RevokeInvitationRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional fixed64 invitation_id = 2; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->invitation_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.RevokeInvitationRequest) - return target; -} - -int RevokeInvitationRequest::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 fixed64 invitation_id = 2; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - } - 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 RevokeInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RevokeInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RevokeInvitationRequest::MergeFrom(const RevokeInvitationRequest& 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_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RevokeInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RevokeInvitationRequest::CopyFrom(const RevokeInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RevokeInvitationRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void RevokeInvitationRequest::Swap(RevokeInvitationRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RevokeInvitationRequest::GetMetadata() const { @@ -1903,241 +1079,9 @@ AcceptInvitationRequest* AcceptInvitationRequest::New() const { return new AcceptInvitationRequest; } -void AcceptInvitationRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - invitation_id_ = GOOGLE_ULONGLONG(0); - if (has_options()) { - if (options_ != NULL) options_->::bgs::protocol::friends::v1::AcceptInvitationOptions::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AcceptInvitationRequest::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.AcceptInvitationRequest) - 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(25)) goto parse_invitation_id; - break; - } - - // required fixed64 invitation_id = 3; - case 3: { - if (tag == 25) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_options; - break; - } - - // optional .bgs.protocol.friends.v1.AcceptInvitationOptions options = 4; - case 4: { - if (tag == 34) { - parse_options: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_options())); - } 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.AcceptInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.AcceptInvitationRequest) - return false; -#undef DO_ -} - -void AcceptInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.AcceptInvitationRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // required fixed64 invitation_id = 3; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->invitation_id(), output); - } - - // optional .bgs.protocol.friends.v1.AcceptInvitationOptions options = 4; - if (has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->options(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.AcceptInvitationRequest) -} - -::google::protobuf::uint8* AcceptInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.AcceptInvitationRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // required fixed64 invitation_id = 3; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->invitation_id(), target); - } - - // optional .bgs.protocol.friends.v1.AcceptInvitationOptions options = 4; - if (has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->options(), 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.AcceptInvitationRequest) - return target; -} - -int AcceptInvitationRequest::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 fixed64 invitation_id = 3; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - // optional .bgs.protocol.friends.v1.AcceptInvitationOptions options = 4; - if (has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->options()); - } - - } - 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 AcceptInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AcceptInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AcceptInvitationRequest::MergeFrom(const AcceptInvitationRequest& 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_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - if (from.has_options()) { - mutable_options()->::bgs::protocol::friends::v1::AcceptInvitationOptions::MergeFrom(from.options()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AcceptInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AcceptInvitationRequest::CopyFrom(const AcceptInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AcceptInvitationRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void AcceptInvitationRequest::Swap(AcceptInvitationRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(options_, other->options_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AcceptInvitationRequest::GetMetadata() const { @@ -2211,201 +1155,9 @@ DeclineInvitationRequest* DeclineInvitationRequest::New() const { return new DeclineInvitationRequest; } -void DeclineInvitationRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - invitation_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool DeclineInvitationRequest::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.DeclineInvitationRequest) - 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(25)) goto parse_invitation_id; - break; - } - - // required fixed64 invitation_id = 3; - case 3: { - if (tag == 25) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_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.DeclineInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.DeclineInvitationRequest) - return false; -#undef DO_ -} - -void DeclineInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.DeclineInvitationRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // required fixed64 invitation_id = 3; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->invitation_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.DeclineInvitationRequest) -} - -::google::protobuf::uint8* DeclineInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.DeclineInvitationRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // required fixed64 invitation_id = 3; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->invitation_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.DeclineInvitationRequest) - return target; -} - -int DeclineInvitationRequest::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 fixed64 invitation_id = 3; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - } - 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 DeclineInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DeclineInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void DeclineInvitationRequest::MergeFrom(const DeclineInvitationRequest& 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_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DeclineInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeclineInvitationRequest::CopyFrom(const DeclineInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeclineInvitationRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void DeclineInvitationRequest::Swap(DeclineInvitationRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata DeclineInvitationRequest::GetMetadata() const { @@ -2479,201 +1231,9 @@ IgnoreInvitationRequest* IgnoreInvitationRequest::New() const { return new IgnoreInvitationRequest; } -void IgnoreInvitationRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - invitation_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool IgnoreInvitationRequest::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.IgnoreInvitationRequest) - 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(25)) goto parse_invitation_id; - break; - } - - // required fixed64 invitation_id = 3; - case 3: { - if (tag == 25) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_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.IgnoreInvitationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.IgnoreInvitationRequest) - return false; -#undef DO_ -} - -void IgnoreInvitationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.IgnoreInvitationRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // required fixed64 invitation_id = 3; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->invitation_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.IgnoreInvitationRequest) -} - -::google::protobuf::uint8* IgnoreInvitationRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.IgnoreInvitationRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // required fixed64 invitation_id = 3; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->invitation_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.IgnoreInvitationRequest) - return target; -} - -int IgnoreInvitationRequest::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 fixed64 invitation_id = 3; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - } - 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 IgnoreInvitationRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const IgnoreInvitationRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void IgnoreInvitationRequest::MergeFrom(const IgnoreInvitationRequest& 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_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void IgnoreInvitationRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IgnoreInvitationRequest::CopyFrom(const IgnoreInvitationRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IgnoreInvitationRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void IgnoreInvitationRequest::Swap(IgnoreInvitationRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata IgnoreInvitationRequest::GetMetadata() const { @@ -2749,209 +1309,9 @@ RemoveFriendRequest* RemoveFriendRequest::New() const { return new RemoveFriendRequest; } -void RemoveFriendRequest::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 RemoveFriendRequest::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.RemoveFriendRequest) - 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; - } - - // required .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.RemoveFriendRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.RemoveFriendRequest) - return false; -#undef DO_ -} - -void RemoveFriendRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.RemoveFriendRequest) - // 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 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.RemoveFriendRequest) -} - -::google::protobuf::uint8* RemoveFriendRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.RemoveFriendRequest) - // 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 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.RemoveFriendRequest) - return target; -} - -int RemoveFriendRequest::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 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 RemoveFriendRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RemoveFriendRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RemoveFriendRequest::MergeFrom(const RemoveFriendRequest& 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 RemoveFriendRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RemoveFriendRequest::CopyFrom(const RemoveFriendRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RemoveFriendRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - 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 RemoveFriendRequest::Swap(RemoveFriendRequest* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RemoveFriendRequest::GetMetadata() const { @@ -3023,163 +1383,9 @@ RevokeAllInvitationsRequest* RevokeAllInvitationsRequest::New() const { return new RevokeAllInvitationsRequest; } -void RevokeAllInvitationsRequest::Clear() { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RevokeAllInvitationsRequest::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.RevokeAllInvitationsRequest) - 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 = 2; - case 2: { - if (tag == 18) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_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.RevokeAllInvitationsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.RevokeAllInvitationsRequest) - return false; -#undef DO_ -} - -void RevokeAllInvitationsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.RevokeAllInvitationsRequest) - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->agent_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.RevokeAllInvitationsRequest) -} - -::google::protobuf::uint8* RevokeAllInvitationsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.RevokeAllInvitationsRequest) - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->agent_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.RevokeAllInvitationsRequest) - return target; -} - -int RevokeAllInvitationsRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_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 RevokeAllInvitationsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RevokeAllInvitationsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RevokeAllInvitationsRequest::MergeFrom(const RevokeAllInvitationsRequest& 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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RevokeAllInvitationsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RevokeAllInvitationsRequest::CopyFrom(const RevokeAllInvitationsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RevokeAllInvitationsRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void RevokeAllInvitationsRequest::Swap(RevokeAllInvitationsRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RevokeAllInvitationsRequest::GetMetadata() const { @@ -3255,209 +1461,9 @@ ViewFriendsRequest* ViewFriendsRequest::New() const { return new ViewFriendsRequest; } -void ViewFriendsRequest::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 ViewFriendsRequest::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.ViewFriendsRequest) - 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; - } - - // required .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.ViewFriendsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.ViewFriendsRequest) - return false; -#undef DO_ -} - -void ViewFriendsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.ViewFriendsRequest) - // 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 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.ViewFriendsRequest) -} - -::google::protobuf::uint8* ViewFriendsRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.ViewFriendsRequest) - // 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 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.ViewFriendsRequest) - return target; -} - -int ViewFriendsRequest::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 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 ViewFriendsRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ViewFriendsRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ViewFriendsRequest::MergeFrom(const ViewFriendsRequest& 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 ViewFriendsRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ViewFriendsRequest::CopyFrom(const ViewFriendsRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ViewFriendsRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - 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 ViewFriendsRequest::Swap(ViewFriendsRequest* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ViewFriendsRequest::GetMetadata() const { @@ -3526,156 +1532,9 @@ ViewFriendsResponse* ViewFriendsResponse::New() const { return new ViewFriendsResponse; } -void ViewFriendsResponse::Clear() { - friends_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ViewFriendsResponse::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.ViewFriendsResponse) - 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.FriendOfFriend 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.ViewFriendsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.ViewFriendsResponse) - return false; -#undef DO_ -} - -void ViewFriendsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.ViewFriendsResponse) - // 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); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.ViewFriendsResponse) -} - -::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.FriendOfFriend 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.ViewFriendsResponse) - return target; -} - -int ViewFriendsResponse::ByteSize() const { - int total_size = 0; - - // 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 += - ::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 ViewFriendsResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ViewFriendsResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ViewFriendsResponse::MergeFrom(const ViewFriendsResponse& from) { - GOOGLE_CHECK_NE(&from, this); - friends_.MergeFrom(from.friends_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ViewFriendsResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ViewFriendsResponse::CopyFrom(const ViewFriendsResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ViewFriendsResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->friends())) return false; - return true; -} - void ViewFriendsResponse::Swap(ViewFriendsResponse* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ViewFriendsResponse::GetMetadata() const { @@ -3752,248 +1611,9 @@ UpdateFriendStateRequest* UpdateFriendStateRequest::New() const { return new UpdateFriendStateRequest; } -void UpdateFriendStateRequest::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(); - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateFriendStateRequest::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.UpdateFriendStateRequest) - 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; - } - - // required .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->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.friends.v1.UpdateFriendStateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.UpdateFriendStateRequest) - return false; -#undef DO_ -} - -void UpdateFriendStateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.UpdateFriendStateRequest) - // 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 target_id = 2; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->target_id(), 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.friends.v1.UpdateFriendStateRequest) -} - -::google::protobuf::uint8* UpdateFriendStateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.UpdateFriendStateRequest) - // 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 target_id = 2; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->target_id(), 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.friends.v1.UpdateFriendStateRequest) - return target; -} - -int UpdateFriendStateRequest::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 target_id = 2; - if (has_target_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_id()); - } - - } - // 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 UpdateFriendStateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateFriendStateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UpdateFriendStateRequest::MergeFrom(const UpdateFriendStateRequest& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - 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 UpdateFriendStateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateFriendStateRequest::CopyFrom(const UpdateFriendStateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateFriendStateRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void UpdateFriendStateRequest::Swap(UpdateFriendStateRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(target_id_, other->target_id_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateFriendStateRequest::GetMetadata() const { @@ -4065,163 +1685,9 @@ GetFriendListRequest* GetFriendListRequest::New() const { return new GetFriendListRequest; } -void GetFriendListRequest::Clear() { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_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 = 2; - case 2: { - if (tag == 18) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_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 = 2; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->agent_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 = 2; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->agent_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 = 2; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_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( - &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()); - } - } - 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; - } - return true; -} - void GetFriendListRequest::Swap(GetFriendListRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetFriendListRequest::GetMetadata() const { @@ -4290,156 +1756,9 @@ 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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetFriendListResponse::GetMetadata() const { @@ -4480,7 +1799,6 @@ void CreateFriendshipRequest::SharedCtor() { _cached_size_ = 0; agent_id_ = NULL; target_id_ = NULL; - _role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -4517,270 +1835,9 @@ CreateFriendshipRequest* CreateFriendshipRequest::New() const { return new CreateFriendshipRequest; } -void CreateFriendshipRequest::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(); - } - } - 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 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->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 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); - } - - // 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 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); - } - - // 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 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()); - } - - } - // 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( - &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_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 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_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - return true; -} - void CreateFriendshipRequest::Swap(CreateFriendshipRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(target_id_, other->target_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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CreateFriendshipRequest::GetMetadata() const { @@ -4828,237 +1885,37 @@ FriendNotification::~FriendNotification() { SharedDtor(); } -void FriendNotification::SharedDtor() { - if (this != default_instance_) { - delete target_; - delete account_id_; - } -} - -void FriendNotification::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FriendNotification::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FriendNotification_descriptor_; -} - -const FriendNotification& FriendNotification::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_friends_5fservice_2eproto(); - return *default_instance_; -} - -FriendNotification* FriendNotification::default_instance_ = NULL; - -FriendNotification* FriendNotification::New() const { - return new FriendNotification; -} - -void FriendNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_target()) { - if (target_ != NULL) target_->::bgs::protocol::friends::v1::Friend::Clear(); - } - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FriendNotification::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.FriendNotification) - 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.friends.v1.Friend target = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_target())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 5; - case 5: { - if (tag == 42) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_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.FriendNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.FriendNotification) - return false; -#undef DO_ -} - -void FriendNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.FriendNotification) - // required .bgs.protocol.friends.v1.Friend target = 1; - if (has_target()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->target(), output); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->account_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.FriendNotification) -} - -::google::protobuf::uint8* FriendNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.FriendNotification) - // required .bgs.protocol.friends.v1.Friend target = 1; - if (has_target()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->target(), target); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->account_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); +void FriendNotification::SharedDtor() { + if (this != default_instance_) { + delete target_; + delete account_id_; } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.FriendNotification) - return target; } -int FriendNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.friends.v1.Friend target = 1; - if (has_target()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target()); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void FriendNotification::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FriendNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FriendNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void FriendNotification::MergeFrom(const FriendNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_target()) { - mutable_target()->::bgs::protocol::friends::v1::Friend::MergeFrom(from.target()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* FriendNotification::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FriendNotification_descriptor_; } -void FriendNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const FriendNotification& FriendNotification::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_friends_5fservice_2eproto(); + return *default_instance_; } -void FriendNotification::CopyFrom(const FriendNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +FriendNotification* FriendNotification::default_instance_ = NULL; -bool FriendNotification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_target()) { - if (!this->target().IsInitialized()) return false; - } - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; +FriendNotification* FriendNotification::New() const { + return new FriendNotification; } void FriendNotification::Swap(FriendNotification* other) { if (other != this) { - std::swap(target_, other->target_); - std::swap(account_id_, other->account_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FriendNotification::GetMetadata() const { @@ -5134,209 +1991,9 @@ UpdateFriendStateNotification* UpdateFriendStateNotification::New() const { return new UpdateFriendStateNotification; } -void UpdateFriendStateNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_changed_friend()) { - if (changed_friend_ != NULL) changed_friend_->::bgs::protocol::friends::v1::Friend::Clear(); - } - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateFriendStateNotification::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.UpdateFriendStateNotification) - 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.friends.v1.Friend changed_friend = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_changed_friend())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 5; - case 5: { - if (tag == 42) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_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.UpdateFriendStateNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.UpdateFriendStateNotification) - return false; -#undef DO_ -} - -void UpdateFriendStateNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.UpdateFriendStateNotification) - // required .bgs.protocol.friends.v1.Friend changed_friend = 1; - if (has_changed_friend()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->changed_friend(), output); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->account_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.UpdateFriendStateNotification) -} - -::google::protobuf::uint8* UpdateFriendStateNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.UpdateFriendStateNotification) - // required .bgs.protocol.friends.v1.Friend changed_friend = 1; - if (has_changed_friend()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->changed_friend(), target); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->account_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.UpdateFriendStateNotification) - return target; -} - -int UpdateFriendStateNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.friends.v1.Friend changed_friend = 1; - if (has_changed_friend()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->changed_friend()); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_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 UpdateFriendStateNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateFriendStateNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UpdateFriendStateNotification::MergeFrom(const UpdateFriendStateNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_changed_friend()) { - mutable_changed_friend()->::bgs::protocol::friends::v1::Friend::MergeFrom(from.changed_friend()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UpdateFriendStateNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateFriendStateNotification::CopyFrom(const UpdateFriendStateNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateFriendStateNotification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_changed_friend()) { - if (!this->changed_friend().IsInitialized()) return false; - } - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; -} - void UpdateFriendStateNotification::Swap(UpdateFriendStateNotification* other) { if (other != this) { - std::swap(changed_friend_, other->changed_friend_); - std::swap(account_id_, other->account_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateFriendStateNotification::GetMetadata() const { @@ -5414,246 +2071,9 @@ InvitationNotification* InvitationNotification::New() const { return new InvitationNotification; } -void InvitationNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_invitation()) { - if (invitation_ != NULL) invitation_->::bgs::protocol::friends::v1::ReceivedInvitation::Clear(); - } - reason_ = 0u; - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool InvitationNotification::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.InvitationNotification) - 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.friends.v1.ReceivedInvitation invitation = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_invitation())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_reason; - break; - } - - // optional uint32 reason = 3 [default = 0]; - case 3: { - if (tag == 24) { - parse_reason: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reason_))); - set_has_reason(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 5; - case 5: { - if (tag == 42) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_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.InvitationNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.InvitationNotification) - return false; -#undef DO_ -} - -void InvitationNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.InvitationNotification) - // required .bgs.protocol.friends.v1.ReceivedInvitation invitation = 1; - if (has_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->invitation(), output); - } - - // optional uint32 reason = 3 [default = 0]; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->reason(), output); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->account_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.InvitationNotification) -} - -::google::protobuf::uint8* InvitationNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.InvitationNotification) - // required .bgs.protocol.friends.v1.ReceivedInvitation invitation = 1; - if (has_invitation()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->invitation(), target); - } - - // optional uint32 reason = 3 [default = 0]; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->reason(), target); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->account_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.InvitationNotification) - return target; -} - -int InvitationNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.friends.v1.ReceivedInvitation invitation = 1; - if (has_invitation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation()); - } - - // optional uint32 reason = 3 [default = 0]; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reason()); - } - - // optional .bgs.protocol.EntityId account_id = 5; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_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 InvitationNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const InvitationNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void InvitationNotification::MergeFrom(const InvitationNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_invitation()) { - mutable_invitation()->::bgs::protocol::friends::v1::ReceivedInvitation::MergeFrom(from.invitation()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void InvitationNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InvitationNotification::CopyFrom(const InvitationNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InvitationNotification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_invitation()) { - if (!this->invitation().IsInitialized()) return false; - } - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; -} - void InvitationNotification::Swap(InvitationNotification* other) { if (other != this) { - std::swap(invitation_, other->invitation_); - std::swap(reason_, other->reason_); - std::swap(account_id_, other->account_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata InvitationNotification::GetMetadata() const { @@ -5729,208 +2149,9 @@ SentInvitationAddedNotification* SentInvitationAddedNotification::New() const { return new SentInvitationAddedNotification; } -void SentInvitationAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_invitation()) { - if (invitation_ != NULL) invitation_->::bgs::protocol::friends::v1::SentInvitation::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SentInvitationAddedNotification::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.SentInvitationAddedNotification) - 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 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_invitation; - break; - } - - // optional .bgs.protocol.friends.v1.SentInvitation invitation = 2; - case 2: { - if (tag == 18) { - parse_invitation: - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.SentInvitationAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.SentInvitationAddedNotification) - return false; -#undef DO_ -} - -void SentInvitationAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.SentInvitationAddedNotification) - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_id(), output); - } - - // optional .bgs.protocol.friends.v1.SentInvitation 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); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.SentInvitationAddedNotification) -} - -::google::protobuf::uint8* SentInvitationAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.SentInvitationAddedNotification) - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_id(), target); - } - - // optional .bgs.protocol.friends.v1.SentInvitation 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); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.SentInvitationAddedNotification) - return target; -} - -int SentInvitationAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional .bgs.protocol.friends.v1.SentInvitation 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( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SentInvitationAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SentInvitationAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SentInvitationAddedNotification::MergeFrom(const SentInvitationAddedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - 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_invitation()) { - mutable_invitation()->::bgs::protocol::friends::v1::SentInvitation::MergeFrom(from.invitation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SentInvitationAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SentInvitationAddedNotification::CopyFrom(const SentInvitationAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SentInvitationAddedNotification::IsInitialized() const { - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - if (has_invitation()) { - if (!this->invitation().IsInitialized()) return false; - } - return true; -} - void SentInvitationAddedNotification::Swap(SentInvitationAddedNotification* other) { if (other != this) { - std::swap(account_id_, other->account_id_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SentInvitationAddedNotification::GetMetadata() const { @@ -6006,250 +2227,9 @@ SentInvitationRemovedNotification* SentInvitationRemovedNotification::New() cons return new SentInvitationRemovedNotification; } -void SentInvitationRemovedNotification::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(invitation_id_, reason_); - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SentInvitationRemovedNotification::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.SentInvitationRemovedNotification) - 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 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(17)) goto parse_invitation_id; - break; - } - - // optional fixed64 invitation_id = 2; - case 2: { - if (tag == 17) { - parse_invitation_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &invitation_id_))); - set_has_invitation_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_reason; - break; - } - - // optional uint32 reason = 3; - case 3: { - if (tag == 24) { - parse_reason: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reason_))); - set_has_reason(); - } 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.SentInvitationRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.SentInvitationRemovedNotification) - return false; -#undef DO_ -} - -void SentInvitationRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.SentInvitationRemovedNotification) - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_id(), output); - } - - // optional fixed64 invitation_id = 2; - if (has_invitation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->invitation_id(), output); - } - - // optional uint32 reason = 3; - if (has_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.SentInvitationRemovedNotification) -} - -::google::protobuf::uint8* SentInvitationRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.SentInvitationRemovedNotification) - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_id(), target); - } - - // optional fixed64 invitation_id = 2; - if (has_invitation_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->invitation_id(), target); - } - - // optional uint32 reason = 3; - if (has_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->reason(), 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.SentInvitationRemovedNotification) - return target; -} - -int SentInvitationRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional fixed64 invitation_id = 2; - if (has_invitation_id()) { - total_size += 1 + 8; - } - - // optional uint32 reason = 3; - if (has_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reason()); - } - - } - 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 SentInvitationRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SentInvitationRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SentInvitationRemovedNotification::MergeFrom(const SentInvitationRemovedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - 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_invitation_id()) { - set_invitation_id(from.invitation_id()); - } - if (from.has_reason()) { - set_reason(from.reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SentInvitationRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SentInvitationRemovedNotification::CopyFrom(const SentInvitationRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SentInvitationRemovedNotification::IsInitialized() const { - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; -} - void SentInvitationRemovedNotification::Swap(SentInvitationRemovedNotification* other) { if (other != this) { - std::swap(account_id_, other->account_id_); - std::swap(invitation_id_, other->invitation_id_); - std::swap(reason_, other->reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SentInvitationRemovedNotification::GetMetadata() const { @@ -6262,7 +2242,7 @@ void SentInvitationRemovedNotification::Swap(SentInvitationRemovedNotification* // =================================================================== -FriendsService::FriendsService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +FriendsService::FriendsService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } FriendsService::~FriendsService() { @@ -6275,432 +2255,315 @@ google::protobuf::ServiceDescriptor const* FriendsService::descriptor() { void FriendsService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::friends::v1::SubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.Subscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.Subscribe(bgs.protocol.friends.v1.SubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::friends::v1::SubscribeResponse::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.Subscribe() returned bgs.protocol.friends.v1.SubscribeResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::friends::v1::SubscribeResponse response; - uint32 status = HandleSubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleSubscribe(token, methodId, buffer); break; - } - case 2: { - ::bgs::protocol::friends::v1::SendInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.SendInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.SendInvitation(bgs.protocol.friends.v1.SendInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.SendInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSendInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 2: + ParseAndHandleSendInvitation(token, methodId, buffer); break; - } - case 3: { - ::bgs::protocol::friends::v1::AcceptInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.AcceptInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.AcceptInvitation(bgs.protocol.friends.v1.AcceptInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.AcceptInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleAcceptInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 3: + ParseAndHandleAcceptInvitation(token, methodId, buffer); break; - } - case 4: { - ::bgs::protocol::friends::v1::RevokeInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.RevokeInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.RevokeInvitation(bgs.protocol.friends.v1.RevokeInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.RevokeInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleRevokeInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 4: + ParseAndHandleRevokeInvitation(token, methodId, buffer); break; - } - case 5: { - ::bgs::protocol::friends::v1::DeclineInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.DeclineInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.DeclineInvitation(bgs.protocol.friends.v1.DeclineInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.DeclineInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleDeclineInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 5: + ParseAndHandleDeclineInvitation(token, methodId, buffer); break; - } - case 6: { - ::bgs::protocol::friends::v1::IgnoreInvitationRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.IgnoreInvitation server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.IgnoreInvitation(bgs.protocol.friends.v1.IgnoreInvitationRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.IgnoreInvitation() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleIgnoreInvitation(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 6: + ParseAndHandleIgnoreInvitation(token, methodId, buffer); break; - } - case 8: { - ::bgs::protocol::friends::v1::RemoveFriendRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.RemoveFriend server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.RemoveFriend(bgs.protocol.friends.v1.RemoveFriendRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.RemoveFriend() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleRemoveFriend(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 8: + ParseAndHandleRemoveFriend(token, methodId, buffer); break; - } - case 9: { - ::bgs::protocol::friends::v1::ViewFriendsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.ViewFriends server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.ViewFriends(bgs.protocol.friends.v1.ViewFriendsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::friends::v1::ViewFriendsResponse::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.ViewFriends() returned bgs.protocol.friends.v1.ViewFriendsResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::friends::v1::ViewFriendsResponse response; - uint32 status = HandleViewFriends(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 9: + ParseAndHandleViewFriends(token, methodId, buffer); break; - } - case 10: { - ::bgs::protocol::friends::v1::UpdateFriendStateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.UpdateFriendState server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.UpdateFriendState(bgs.protocol.friends.v1.UpdateFriendStateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.UpdateFriendState() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUpdateFriendState(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 10: + ParseAndHandleUpdateFriendState(token, methodId, buffer); break; - } - case 11: { - ::bgs::protocol::friends::v1::UnsubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.Unsubscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.Unsubscribe(bgs.protocol.friends.v1.UnsubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.Unsubscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnsubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 11: + ParseAndHandleUnsubscribe(token, methodId, buffer); break; - } - case 12: { - ::bgs::protocol::friends::v1::RevokeAllInvitationsRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.RevokeAllInvitations server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.RevokeAllInvitations(bgs.protocol.friends.v1.RevokeAllInvitationsRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.RevokeAllInvitations() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleRevokeAllInvitations(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 12: + ParseAndHandleRevokeAllInvitations(token, methodId, buffer); 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_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.GetFriendList(bgs.protocol.friends.v1.GetFriendListRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::friends::v1::GetFriendListResponse::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.GetFriendList() returned bgs.protocol.friends.v1.GetFriendListResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::friends::v1::GetFriendListResponse response; - uint32 status = HandleGetFriendList(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 13: + ParseAndHandleGetFriendList(token, methodId, buffer); 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_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.CreateFriendship(bgs.protocol.friends.v1.CreateFriendshipRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - FriendsService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.CreateFriendship() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleCreateFriendship(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 14: + ParseAndHandleCreateFriendship(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 FriendsService::HandleSubscribe(::bgs::protocol::friends::v1::SubscribeRequest const* request, ::bgs::protocol::friends::v1::SubscribeResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.Subscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleSubscribe(::bgs::protocol::friends::v1::SubscribeRequest const* request, ::bgs::protocol::friends::v1::SubscribeResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.Subscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleSendInvitation(::bgs::protocol::friends::v1::SendInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.SendInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleSendInvitation(::bgs::protocol::friends::v1::SendInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.SendInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleAcceptInvitation(::bgs::protocol::friends::v1::AcceptInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.AcceptInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleAcceptInvitation(::bgs::protocol::friends::v1::AcceptInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.AcceptInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleRevokeInvitation(::bgs::protocol::friends::v1::RevokeInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.RevokeInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleRevokeInvitation(::bgs::protocol::friends::v1::RevokeInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.RevokeInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleDeclineInvitation(::bgs::protocol::friends::v1::DeclineInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.DeclineInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleDeclineInvitation(::bgs::protocol::friends::v1::DeclineInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.DeclineInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleIgnoreInvitation(::bgs::protocol::friends::v1::IgnoreInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.IgnoreInvitation({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleIgnoreInvitation(::bgs::protocol::friends::v1::IgnoreInvitationRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.IgnoreInvitation", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleRemoveFriend(::bgs::protocol::friends::v1::RemoveFriendRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.RemoveFriend({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleRemoveFriend(::bgs::protocol::friends::v1::RemoveFriendRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.RemoveFriend", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleViewFriends(::bgs::protocol::friends::v1::ViewFriendsRequest const* request, ::bgs::protocol::friends::v1::ViewFriendsResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.ViewFriends({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleViewFriends(::bgs::protocol::friends::v1::ViewFriendsRequest const* request, ::bgs::protocol::friends::v1::ViewFriendsResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.ViewFriends", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleUpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.UpdateFriendState({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleUpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.UpdateFriendState", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleUnsubscribe(::bgs::protocol::friends::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.Unsubscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleUnsubscribe(::bgs::protocol::friends::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.Unsubscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleRevokeAllInvitations(::bgs::protocol::friends::v1::RevokeAllInvitationsRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.RevokeAllInvitations({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleRevokeAllInvitations(::bgs::protocol::friends::v1::RevokeAllInvitationsRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.RevokeAllInvitations", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleGetFriendList(::bgs::protocol::friends::v1::GetFriendListRequest const* request, ::bgs::protocol::friends::v1::GetFriendListResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.GetFriendList({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleGetFriendList(::bgs::protocol::friends::v1::GetFriendListRequest const* request, ::bgs::protocol::friends::v1::GetFriendListResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.GetFriendList", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 FriendsService::HandleCreateFriendship(::bgs::protocol::friends::v1::CreateFriendshipRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.CreateFriendship({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 FriendsService::HandleCreateFriendship(::bgs::protocol::friends::v1::CreateFriendshipRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("FriendsService.CreateFriendship", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void FriendsService::ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::SubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.Subscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.Subscribe", "bgs.protocol.friends.v1.SubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.Subscribe", ::bgs::protocol::friends::v1::SubscribeResponse::descriptor()); + ::bgs::protocol::friends::v1::SubscribeResponse response; + uint32 status = HandleSubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleSendInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::SendInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.SendInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.SendInvitation", "bgs.protocol.friends.v1.SendInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.SendInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSendInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleAcceptInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::AcceptInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.AcceptInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.AcceptInvitation", "bgs.protocol.friends.v1.AcceptInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.AcceptInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleAcceptInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleRevokeInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::RevokeInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.RevokeInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.RevokeInvitation", "bgs.protocol.friends.v1.RevokeInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.RevokeInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleRevokeInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleDeclineInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::DeclineInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.DeclineInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.DeclineInvitation", "bgs.protocol.friends.v1.DeclineInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.DeclineInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleDeclineInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleIgnoreInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::IgnoreInvitationRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.IgnoreInvitation"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.IgnoreInvitation", "bgs.protocol.friends.v1.IgnoreInvitationRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.IgnoreInvitation", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleIgnoreInvitation(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleRemoveFriend(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::RemoveFriendRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.RemoveFriend"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.RemoveFriend", "bgs.protocol.friends.v1.RemoveFriendRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.RemoveFriend", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleRemoveFriend(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleViewFriends(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::ViewFriendsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.ViewFriends"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.ViewFriends", "bgs.protocol.friends.v1.ViewFriendsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.ViewFriends", ::bgs::protocol::friends::v1::ViewFriendsResponse::descriptor()); + ::bgs::protocol::friends::v1::ViewFriendsResponse response; + uint32 status = HandleViewFriends(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleUpdateFriendState(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::UpdateFriendStateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.UpdateFriendState"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.UpdateFriendState", "bgs.protocol.friends.v1.UpdateFriendStateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.UpdateFriendState", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUpdateFriendState(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::UnsubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.Unsubscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.Unsubscribe", "bgs.protocol.friends.v1.UnsubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.Unsubscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnsubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleRevokeAllInvitations(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::RevokeAllInvitationsRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.RevokeAllInvitations"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.RevokeAllInvitations", "bgs.protocol.friends.v1.RevokeAllInvitationsRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.RevokeAllInvitations", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleRevokeAllInvitations(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleGetFriendList(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::GetFriendListRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.GetFriendList"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.GetFriendList", "bgs.protocol.friends.v1.GetFriendListRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.GetFriendList", ::bgs::protocol::friends::v1::GetFriendListResponse::descriptor()); + ::bgs::protocol::friends::v1::GetFriendListResponse response; + uint32 status = HandleGetFriendList(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void FriendsService::ParseAndHandleCreateFriendship(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::friends::v1::CreateFriendshipRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("FriendsService.CreateFriendship"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("FriendsService.CreateFriendship", "bgs.protocol.friends.v1.CreateFriendshipRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "FriendsService.CreateFriendship", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleCreateFriendship(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // =================================================================== -FriendsListener::FriendsListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +FriendsListener::FriendsListener(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } FriendsListener::~FriendsListener() { @@ -6712,50 +2575,42 @@ google::protobuf::ServiceDescriptor const* FriendsListener::descriptor() { } void FriendsListener::OnFriendAdded(::bgs::protocol::friends::v1::FriendNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsListener.OnFriendAdded(bgs.protocol.friends.v1.FriendNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("FriendsListener.OnFriendAdded", "bgs.protocol.friends.v1.FriendNotification", request); SendRequest(service_hash_, 1 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void FriendsListener::OnFriendRemoved(::bgs::protocol::friends::v1::FriendNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsListener.OnFriendRemoved(bgs.protocol.friends.v1.FriendNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("FriendsListener.OnFriendRemoved", "bgs.protocol.friends.v1.FriendNotification", request); SendRequest(service_hash_, 2 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void FriendsListener::OnReceivedInvitationAdded(::bgs::protocol::friends::v1::InvitationNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsListener.OnReceivedInvitationAdded(bgs.protocol.friends.v1.InvitationNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("FriendsListener.OnReceivedInvitationAdded", "bgs.protocol.friends.v1.InvitationNotification", request); SendRequest(service_hash_, 3 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void FriendsListener::OnReceivedInvitationRemoved(::bgs::protocol::friends::v1::InvitationNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsListener.OnReceivedInvitationRemoved(bgs.protocol.friends.v1.InvitationNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("FriendsListener.OnReceivedInvitationRemoved", "bgs.protocol.friends.v1.InvitationNotification", request); SendRequest(service_hash_, 4 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void FriendsListener::OnSentInvitationAdded(::bgs::protocol::friends::v1::SentInvitationAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsListener.OnSentInvitationAdded(bgs.protocol.friends.v1.SentInvitationAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("FriendsListener.OnSentInvitationAdded", "bgs.protocol.friends.v1.SentInvitationAddedNotification", request); SendRequest(service_hash_, 5 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void FriendsListener::OnSentInvitationRemoved(::bgs::protocol::friends::v1::SentInvitationRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsListener.OnSentInvitationRemoved(bgs.protocol.friends.v1.SentInvitationRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("FriendsListener.OnSentInvitationRemoved", "bgs.protocol.friends.v1.SentInvitationRemovedNotification", request); SendRequest(service_hash_, 6 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void FriendsListener::OnUpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsListener.OnUpdateFriendState(bgs.protocol.friends.v1.UpdateFriendStateNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("FriendsListener.OnUpdateFriendState", "bgs.protocol.friends.v1.UpdateFriendStateNotification", request); SendRequest(service_hash_, 7 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } -void FriendsListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) { - TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", - GetCallerInfo().c_str(), methodId); +void FriendsListener::CallServerMethod(uint32 /*token*/, uint32 methodId, MessageBuffer /*buffer*/) { + LogDisallowedMethod(methodId); } // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/friends_service.pb.h b/src/server/proto/Client/friends_service.pb.h index af02f9e8704..1b5d9b3fbff 100644 --- a/src/server/proto/Client/friends_service.pb.h +++ b/src/server/proto/Client/friends_service.pb.h @@ -96,19 +96,6 @@ class TC_PROTO_API SubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeRequest& from); - void MergeFrom(const SubscribeRequest& 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(); @@ -187,19 +174,6 @@ class TC_PROTO_API UnsubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UnsubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsubscribeRequest& from); - void MergeFrom(const UnsubscribeRequest& 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(); @@ -278,19 +252,6 @@ class TC_PROTO_API SendInvitationRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SendInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SendInvitationRequest& from); - void MergeFrom(const SendInvitationRequest& 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(); @@ -383,19 +344,6 @@ class TC_PROTO_API RevokeInvitationRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- RevokeInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RevokeInvitationRequest& from); - void MergeFrom(const RevokeInvitationRequest& 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(); @@ -474,19 +422,6 @@ class TC_PROTO_API AcceptInvitationRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- AcceptInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AcceptInvitationRequest& from); - void MergeFrom(const AcceptInvitationRequest& 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(); @@ -577,19 +512,6 @@ class TC_PROTO_API DeclineInvitationRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- DeclineInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DeclineInvitationRequest& from); - void MergeFrom(const DeclineInvitationRequest& 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(); @@ -668,19 +590,6 @@ class TC_PROTO_API IgnoreInvitationRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- IgnoreInvitationRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const IgnoreInvitationRequest& from); - void MergeFrom(const IgnoreInvitationRequest& 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(); @@ -759,19 +668,6 @@ class TC_PROTO_API RemoveFriendRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RemoveFriendRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RemoveFriendRequest& from); - void MergeFrom(const RemoveFriendRequest& 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(); @@ -852,19 +748,6 @@ class TC_PROTO_API RevokeAllInvitationsRequest : public ::google::protobuf::Mess // implements Message ---------------------------------------------- RevokeAllInvitationsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RevokeAllInvitationsRequest& from); - void MergeFrom(const RevokeAllInvitationsRequest& 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(); @@ -933,19 +816,6 @@ class TC_PROTO_API ViewFriendsRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ViewFriendsRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ViewFriendsRequest& from); - void MergeFrom(const ViewFriendsRequest& 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(); @@ -1026,19 +896,6 @@ class TC_PROTO_API ViewFriendsResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ViewFriendsResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ViewFriendsResponse& from); - void MergeFrom(const ViewFriendsResponse& 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(); @@ -1108,19 +965,6 @@ class TC_PROTO_API UpdateFriendStateRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- UpdateFriendStateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateFriendStateRequest& from); - void MergeFrom(const UpdateFriendStateRequest& 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(); @@ -1214,19 +1058,6 @@ class TC_PROTO_API GetFriendListRequest : public ::google::protobuf::Message { // 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(); @@ -1295,19 +1126,6 @@ class TC_PROTO_API GetFriendListResponse : public ::google::protobuf::Message { // 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(); @@ -1377,19 +1195,6 @@ class TC_PROTO_API CreateFriendshipRequest : public ::google::protobuf::Message // 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(); @@ -1446,7 +1251,6 @@ class TC_PROTO_API CreateFriendshipRequest : public ::google::protobuf::Message ::bgs::protocol::EntityId* agent_id_; ::bgs::protocol::EntityId* target_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(); @@ -1484,19 +1288,6 @@ class TC_PROTO_API FriendNotification : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FriendNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FriendNotification& from); - void MergeFrom(const FriendNotification& 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(); @@ -1577,19 +1368,6 @@ class TC_PROTO_API UpdateFriendStateNotification : public ::google::protobuf::Me // implements Message ---------------------------------------------- UpdateFriendStateNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateFriendStateNotification& from); - void MergeFrom(const UpdateFriendStateNotification& 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(); @@ -1670,19 +1448,6 @@ class TC_PROTO_API InvitationNotification : public ::google::protobuf::Message { // implements Message ---------------------------------------------- InvitationNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InvitationNotification& from); - void MergeFrom(const InvitationNotification& 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(); @@ -1773,19 +1538,6 @@ class TC_PROTO_API SentInvitationAddedNotification : public ::google::protobuf:: // implements Message ---------------------------------------------- SentInvitationAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SentInvitationAddedNotification& from); - void MergeFrom(const SentInvitationAddedNotification& 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(); @@ -1866,19 +1618,6 @@ class TC_PROTO_API SentInvitationRemovedNotification : public ::google::protobuf // implements Message ---------------------------------------------- SentInvitationRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SentInvitationRemovedNotification& from); - void MergeFrom(const SentInvitationRemovedNotification& 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(); @@ -1944,6 +1683,10 @@ class TC_PROTO_API FriendsService : public ServiceBase public: explicit FriendsService(bool use_original_hash); + FriendsService(FriendsService const&) = delete; + FriendsService(FriendsService&&) = delete; + FriendsService& operator=(FriendsService const&) = delete; + FriendsService& operator=(FriendsService&&) = delete; virtual ~FriendsService(); typedef std::integral_constant OriginalHash; @@ -1970,9 +1713,19 @@ class TC_PROTO_API FriendsService : public ServiceBase virtual uint32 HandleCreateFriendship(::bgs::protocol::friends::v1::CreateFriendshipRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FriendsService); + void ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSendInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleAcceptInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRevokeInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleDeclineInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleIgnoreInvitation(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRemoveFriend(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleViewFriends(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUpdateFriendState(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRevokeAllInvitations(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetFriendList(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleCreateFriendship(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // ------------------------------------------------------------------- @@ -1982,6 +1735,10 @@ class TC_PROTO_API FriendsListener : public ServiceBase public: explicit FriendsListener(bool use_original_hash); + FriendsListener(FriendsListener const&) = delete; + FriendsListener(FriendsListener&&) = delete; + FriendsListener& operator=(FriendsListener const&) = delete; + FriendsListener& operator=(FriendsListener&&) = delete; virtual ~FriendsListener(); typedef std::integral_constant OriginalHash; @@ -1999,11 +1756,6 @@ class TC_PROTO_API FriendsListener : public ServiceBase void OnUpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateNotification const* request, bool client = false, bool server = false); void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final; - - private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FriendsListener); }; // =================================================================== diff --git a/src/server/proto/Client/friends_types.pb.cc b/src/server/proto/Client/friends_types.pb.cc index de29317139a..c6062ec8a1c 100644 --- a/src/server/proto/Client/friends_types.pb.cc +++ b/src/server/proto/Client/friends_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "friends_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -321,7 +319,7 @@ void protobuf_AddDesc_friends_5ftypes_2eproto() { "tInvitation\"F\n\027AcceptInvitationOptions\022\032" "\n\004role\030\001 \001(\rB\014\212\371+\010\022\006\n\004\010\000\020\002\022\017\n\007program\030\002 " "\001(\007B/\n\030bnet.protocol.friends.v1B\021Friends" - "TypesProtoH\001P\000", 1894); + "TypesProtoH\002P\000", 1894); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "friends_types.proto", &protobuf_RegisterTypes); Friend::default_instance_ = new Friend(); @@ -388,7 +386,6 @@ Friend::Friend(const Friend& from) void Friend::SharedCtor() { _cached_size_ = 0; account_id_ = NULL; - _role_cached_byte_size_ = 0; privileges_ = GOOGLE_ULONGLONG(0); attributes_epoch_ = GOOGLE_ULONGLONG(0); creation_time_ = GOOGLE_ULONGLONG(0); @@ -427,390 +424,9 @@ Friend* Friend::New() const { return new Friend; } -void Friend::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 57) { - ZR_(privileges_, creation_time_); - 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; - 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 [deprecated = true]; - 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->ExpectTag(48)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 6; - case 6: { - if (tag == 48) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_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.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; - if (has_privileges()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->privileges(), output); - } - - // optional uint64 attributes_epoch = 5 [deprecated = true]; - if (has_attributes_epoch()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->attributes_epoch(), output); - } - - // optional uint64 creation_time = 6; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->creation_time(), 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; - if (has_privileges()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->privileges(), target); - } - - // optional uint64 attributes_epoch = 5 [deprecated = true]; - if (has_attributes_epoch()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->attributes_epoch(), target); - } - - // optional uint64 creation_time = 6; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->creation_time(), 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; - if (has_privileges()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->privileges()); - } - - // optional uint64 attributes_epoch = 5 [deprecated = true]; - if (has_attributes_epoch()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->attributes_epoch()); - } - - // optional uint64 creation_time = 6; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - } - // 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( - &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()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - } - 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(creation_time_, other->creation_time_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Friend::GetMetadata() const { @@ -852,7 +468,6 @@ void FriendOfFriend::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; account_id_ = NULL; - _role_cached_byte_size_ = 0; privileges_ = GOOGLE_ULONGLONG(0); full_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -897,372 +512,9 @@ FriendOfFriend* FriendOfFriend::New() const { return new FriendOfFriend; } -void FriendOfFriend::Clear() { - if (_has_bits_[0 / 32] & 29) { - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - privileges_ = GOOGLE_ULONGLONG(0); - if (has_full_name()) { - if (full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - full_name_->clear(); - } - } - if (has_battle_tag()) { - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - battle_tag_->clear(); - } - } - } - role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -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.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)) { - // optional .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(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; - 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(50)) goto parse_full_name; - break; - } - - // optional string full_name = 6; - case 6: { - if (tag == 50) { - parse_full_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_full_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->full_name().data(), this->full_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "full_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_battle_tag; - break; - } - - // optional string battle_tag = 7; - case 7: { - if (tag == 58) { - 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.friends.v1.FriendOfFriend) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.FriendOfFriend) - return false; -#undef DO_ -} - -void FriendOfFriend::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@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); - } - - // 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; - if (has_privileges()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->privileges(), output); - } - - // optional string full_name = 6; - if (has_full_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->full_name().data(), this->full_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "full_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->full_name(), output); - } - - // optional string battle_tag = 7; - 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( - 7, this->battle_tag(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.FriendOfFriend) -} - -::google::protobuf::uint8* FriendOfFriend::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@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( - 1, this->account_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); - } - - // optional uint64 privileges = 4; - if (has_privileges()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->privileges(), target); - } - - // optional string full_name = 6; - if (has_full_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->full_name().data(), this->full_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "full_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->full_name(), target); - } - - // optional string battle_tag = 7; - 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( - 7, 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.friends.v1.FriendOfFriend) - return target; -} - -int FriendOfFriend::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .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; - if (has_privileges()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->privileges()); - } - - // optional string full_name = 6; - if (has_full_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->full_name()); - } - - // optional string battle_tag = 7; - if (has_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->battle_tag()); - } - - } - // 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 FriendOfFriend::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FriendOfFriend* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FriendOfFriend::MergeFrom(const FriendOfFriend& from) { - GOOGLE_CHECK_NE(&from, this); - 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_full_name()) { - set_full_name(from.full_name()); - } - if (from.has_battle_tag()) { - set_battle_tag(from.battle_tag()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FriendOfFriend::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FriendOfFriend::CopyFrom(const FriendOfFriend& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FriendOfFriend::IsInitialized() const { - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; -} - void FriendOfFriend::Swap(FriendOfFriend* other) { if (other != this) { - std::swap(account_id_, other->account_id_); - role_.Swap(&other->role_); - std::swap(privileges_, other->privileges_); - std::swap(full_name_, other->full_name_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FriendOfFriend::GetMetadata() const { @@ -1355,456 +607,9 @@ ReceivedInvitation* ReceivedInvitation::New() const { return new ReceivedInvitation; } -void ReceivedInvitation::Clear() { - _extensions_.Clear(); -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 127) { - ZR_(creation_time_, program_); - id_ = GOOGLE_ULONGLONG(0); - if (has_inviter_identity()) { - if (inviter_identity_ != NULL) inviter_identity_->::bgs::protocol::Identity::Clear(); - } - if (has_invitee_identity()) { - if (invitee_identity_ != NULL) invitee_identity_->::bgs::protocol::Identity::Clear(); - } - if (has_inviter_name()) { - if (inviter_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - inviter_name_->clear(); - } - } - if (has_invitee_name()) { - if (invitee_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - invitee_name_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ReceivedInvitation::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.ReceivedInvitation) - 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 fixed64 id = 1; - case 1: { - if (tag == 9) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_inviter_identity; - break; - } - - // required .bgs.protocol.Identity inviter_identity = 2; - case 2: { - if (tag == 18) { - parse_inviter_identity: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_inviter_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_invitee_identity; - break; - } - - // required .bgs.protocol.Identity invitee_identity = 3; - case 3: { - if (tag == 26) { - parse_invitee_identity: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_invitee_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_inviter_name; - break; - } - - // optional string inviter_name = 4; - case 4: { - if (tag == 34) { - parse_inviter_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_inviter_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inviter_name().data(), this->inviter_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "inviter_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_invitee_name; - break; - } - - // optional string invitee_name = 5; - case 5: { - if (tag == 42) { - parse_invitee_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_invitee_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitee_name().data(), this->invitee_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "invitee_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 7; - case 7: { - if (tag == 56) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(77)) goto parse_program; - break; - } - - // optional fixed32 program = 9; - case 9: { - if (tag == 77) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } 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; - } - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.ReceivedInvitation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.ReceivedInvitation) - return false; -#undef DO_ -} - -void ReceivedInvitation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.ReceivedInvitation) - // required fixed64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->id(), output); - } - - // required .bgs.protocol.Identity inviter_identity = 2; - if (has_inviter_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->inviter_identity(), output); - } - - // required .bgs.protocol.Identity invitee_identity = 3; - if (has_invitee_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->invitee_identity(), output); - } - - // optional string inviter_name = 4; - if (has_inviter_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inviter_name().data(), this->inviter_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "inviter_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->inviter_name(), output); - } - - // optional string invitee_name = 5; - if (has_invitee_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitee_name().data(), this->invitee_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "invitee_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->invitee_name(), output); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->creation_time(), output); - } - - // optional fixed32 program = 9; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(9, this->program(), output); - } - - // Extension range [100, 10000) - _extensions_.SerializeWithCachedSizes( - 100, 10000, output); - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.ReceivedInvitation) -} - -::google::protobuf::uint8* ReceivedInvitation::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.ReceivedInvitation) - // required fixed64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->id(), target); - } - - // required .bgs.protocol.Identity inviter_identity = 2; - if (has_inviter_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->inviter_identity(), target); - } - - // required .bgs.protocol.Identity invitee_identity = 3; - if (has_invitee_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->invitee_identity(), target); - } - - // optional string inviter_name = 4; - if (has_inviter_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inviter_name().data(), this->inviter_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "inviter_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->inviter_name(), target); - } - - // optional string invitee_name = 5; - if (has_invitee_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitee_name().data(), this->invitee_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "invitee_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->invitee_name(), target); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->creation_time(), target); - } - - // optional fixed32 program = 9; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(9, this->program(), target); - } - - // Extension range [100, 10000) - target = _extensions_.SerializeWithCachedSizesToArray( - 100, 10000, 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.ReceivedInvitation) - return target; -} - -int ReceivedInvitation::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed64 id = 1; - if (has_id()) { - total_size += 1 + 8; - } - - // required .bgs.protocol.Identity inviter_identity = 2; - if (has_inviter_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->inviter_identity()); - } - - // required .bgs.protocol.Identity invitee_identity = 3; - if (has_invitee_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitee_identity()); - } - - // optional string inviter_name = 4; - if (has_inviter_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->inviter_name()); - } - - // optional string invitee_name = 5; - if (has_invitee_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->invitee_name()); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - // optional fixed32 program = 9; - if (has_program()) { - total_size += 1 + 4; - } - - } - total_size += _extensions_.ByteSize(); - - 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 ReceivedInvitation::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ReceivedInvitation* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ReceivedInvitation::MergeFrom(const ReceivedInvitation& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_inviter_identity()) { - mutable_inviter_identity()->::bgs::protocol::Identity::MergeFrom(from.inviter_identity()); - } - if (from.has_invitee_identity()) { - mutable_invitee_identity()->::bgs::protocol::Identity::MergeFrom(from.invitee_identity()); - } - if (from.has_inviter_name()) { - set_inviter_name(from.inviter_name()); - } - if (from.has_invitee_name()) { - set_invitee_name(from.invitee_name()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - if (from.has_program()) { - set_program(from.program()); - } - } - _extensions_.MergeFrom(from._extensions_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ReceivedInvitation::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReceivedInvitation::CopyFrom(const ReceivedInvitation& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReceivedInvitation::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - if (has_inviter_identity()) { - if (!this->inviter_identity().IsInitialized()) return false; - } - if (has_invitee_identity()) { - if (!this->invitee_identity().IsInitialized()) return false; - } - - if (!_extensions_.IsInitialized()) return false; return true; -} - void ReceivedInvitation::Swap(ReceivedInvitation* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(inviter_identity_, other->inviter_identity_); - std::swap(invitee_identity_, other->invitee_identity_); - std::swap(inviter_name_, other->inviter_name_); - std::swap(invitee_name_, other->invitee_name_); - std::swap(creation_time_, other->creation_time_); - std::swap(program_, other->program_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ReceivedInvitation::GetMetadata() const { @@ -1846,7 +651,6 @@ FriendInvitation::FriendInvitation(const FriendInvitation& from) void FriendInvitation::SharedCtor() { _cached_size_ = 0; - _role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1881,217 +685,9 @@ FriendInvitation* FriendInvitation::New() const { return new FriendInvitation; } -void FriendInvitation::Clear() { - role_.Clear(); - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FriendInvitation::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.FriendInvitation) - 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 uint32 role = 2 [packed = true]; - case 2: { - if (tag == 18) { - 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_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.friends.v1.FriendInvitation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.FriendInvitation) - return false; -#undef DO_ -} - -void FriendInvitation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.FriendInvitation) - // 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.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.friends.v1.FriendInvitation) -} - -::google::protobuf::uint8* FriendInvitation::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.FriendInvitation) - // 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.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.friends.v1.FriendInvitation) - return target; -} - -int FriendInvitation::ByteSize() const { - int total_size = 0; - - // 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.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 FriendInvitation::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FriendInvitation* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FriendInvitation::MergeFrom(const FriendInvitation& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - attribute_.MergeFrom(from.attribute_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FriendInvitation::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FriendInvitation::CopyFrom(const FriendInvitation& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FriendInvitation::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void FriendInvitation::Swap(FriendInvitation* other) { if (other != this) { - role_.Swap(&other->role_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FriendInvitation::GetMetadata() const { @@ -2174,371 +770,9 @@ SentInvitation* SentInvitation::New() const { return new SentInvitation; } -void SentInvitation::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 55) { - ZR_(role_, creation_time_); - id_ = GOOGLE_ULONGLONG(0); - if (has_target_name()) { - if (target_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - target_name_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SentInvitation::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.SentInvitation) - 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 fixed64 id = 1; - case 1: { - if (tag == 9) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_target_name; - break; - } - - // optional string target_name = 2; - case 2: { - if (tag == 18) { - parse_target_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_target_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_name().data(), this->target_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "target_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_role; - break; - } - - // optional uint32 role = 3; - case 3: { - if (tag == 24) { - 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->ExpectTag(34)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.Attribute attribute = 4; - case 4: { - if (tag == 34) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_attribute; - if (input->ExpectTag(40)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 5; - case 5: { - if (tag == 40) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(53)) goto parse_program; - break; - } - - // optional fixed32 program = 6; - case 6: { - if (tag == 53) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } 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.SentInvitation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.SentInvitation) - return false; -#undef DO_ -} - -void SentInvitation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.SentInvitation) - // optional fixed64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->id(), output); - } - - // optional string target_name = 2; - if (has_target_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_name().data(), this->target_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->target_name(), output); - } - - // optional uint32 role = 3; - if (has_role()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->role(), output); - } - - // repeated .bgs.protocol.Attribute attribute = 4; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->attribute(i), output); - } - - // optional uint64 creation_time = 5; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->creation_time(), output); - } - - // optional fixed32 program = 6; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(6, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.SentInvitation) -} - -::google::protobuf::uint8* SentInvitation::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.SentInvitation) - // optional fixed64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->id(), target); - } - - // optional string target_name = 2; - if (has_target_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_name().data(), this->target_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->target_name(), target); - } - - // optional uint32 role = 3; - if (has_role()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->role(), target); - } - - // repeated .bgs.protocol.Attribute attribute = 4; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->attribute(i), target); - } - - // optional uint64 creation_time = 5; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->creation_time(), target); - } - - // optional fixed32 program = 6; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(6, this->program(), 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.SentInvitation) - return target; -} - -int SentInvitation::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed64 id = 1; - if (has_id()) { - total_size += 1 + 8; - } - - // optional string target_name = 2; - if (has_target_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->target_name()); - } - - // optional uint32 role = 3; - if (has_role()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->role()); - } - - // optional uint64 creation_time = 5; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - // optional fixed32 program = 6; - if (has_program()) { - total_size += 1 + 4; - } - - } - // repeated .bgs.protocol.Attribute attribute = 4; - 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 SentInvitation::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SentInvitation* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SentInvitation::MergeFrom(const SentInvitation& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_target_name()) { - set_target_name(from.target_name()); - } - if (from.has_role()) { - set_role(from.role()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - if (from.has_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SentInvitation::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SentInvitation::CopyFrom(const SentInvitation& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SentInvitation::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void SentInvitation::Swap(SentInvitation* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(target_name_, other->target_name_); - std::swap(role_, other->role_); - attribute_.Swap(&other->attribute_); - std::swap(creation_time_, other->creation_time_); - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SentInvitation::GetMetadata() const { @@ -2587,7 +821,6 @@ void FriendInvitationParams::SharedCtor() { _cached_size_ = 0; target_email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); target_battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _role_cached_byte_size_ = 0; target_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); program_ = 0u; ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -2633,420 +866,9 @@ FriendInvitationParams* FriendInvitationParams::New() const { return new FriendInvitationParams; } -void FriendInvitationParams::Clear() { - if (_has_bits_[0 / 32] & 51) { - if (has_target_email()) { - if (target_email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - target_email_->clear(); - } - } - if (has_target_battle_tag()) { - if (target_battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - target_battle_tag_->clear(); - } - } - if (has_target_name()) { - if (target_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - target_name_->clear(); - } - } - program_ = 0u; - } - role_.Clear(); - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FriendInvitationParams::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.FriendInvitationParams) - 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 target_email = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_target_email())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_email().data(), this->target_email().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "target_email"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_target_battle_tag; - break; - } - - // optional string target_battle_tag = 2; - case 2: { - if (tag == 18) { - parse_target_battle_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_target_battle_tag())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_battle_tag().data(), this->target_battle_tag().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "target_battle_tag"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_role; - break; - } - - // repeated uint32 role = 6 [packed = true]; - case 6: { - if (tag == 50) { - parse_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_role()))); - } else if (tag == 48) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 50, input, this->mutable_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.Attribute attribute = 8; - case 8: { - if (tag == 66) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_attribute; - if (input->ExpectTag(74)) goto parse_target_name; - break; - } - - // optional string target_name = 9; - case 9: { - if (tag == 74) { - parse_target_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_target_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_name().data(), this->target_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "target_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(85)) goto parse_program; - break; - } - - // optional fixed32 program = 10 [deprecated = true]; - case 10: { - if (tag == 85) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } 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.FriendInvitationParams) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.FriendInvitationParams) - return false; -#undef DO_ -} - -void FriendInvitationParams::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.FriendInvitationParams) - // optional string target_email = 1; - if (has_target_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_email().data(), this->target_email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_email"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->target_email(), output); - } - - // optional string target_battle_tag = 2; - if (has_target_battle_tag()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_battle_tag().data(), this->target_battle_tag().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_battle_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->target_battle_tag(), output); - } - - // repeated uint32 role = 6 [packed = true]; - if (this->role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::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.Attribute attribute = 8; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->attribute(i), output); - } - - // optional string target_name = 9; - if (has_target_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_name().data(), this->target_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->target_name(), output); - } - - // optional fixed32 program = 10 [deprecated = true]; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(10, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.FriendInvitationParams) -} - -::google::protobuf::uint8* FriendInvitationParams::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.FriendInvitationParams) - // optional string target_email = 1; - if (has_target_email()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_email().data(), this->target_email().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_email"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->target_email(), target); - } - - // optional string target_battle_tag = 2; - if (has_target_battle_tag()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_battle_tag().data(), this->target_battle_tag().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_battle_tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->target_battle_tag(), target); - } - - // repeated uint32 role = 6 [packed = true]; - if (this->role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 6, - ::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.Attribute attribute = 8; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->attribute(i), target); - } - - // optional string target_name = 9; - if (has_target_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_name().data(), this->target_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 9, this->target_name(), target); - } - - // optional fixed32 program = 10 [deprecated = true]; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(10, this->program(), 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.FriendInvitationParams) - return target; -} - -int FriendInvitationParams::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string target_email = 1; - if (has_target_email()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->target_email()); - } - - // optional string target_battle_tag = 2; - if (has_target_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->target_battle_tag()); - } - - // optional string target_name = 9; - if (has_target_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->target_name()); - } - - // optional fixed32 program = 10 [deprecated = true]; - if (has_program()) { - total_size += 1 + 4; - } - - } - // repeated uint32 role = 6 [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.Attribute attribute = 8; - 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 FriendInvitationParams::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FriendInvitationParams* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FriendInvitationParams::MergeFrom(const FriendInvitationParams& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_target_email()) { - set_target_email(from.target_email()); - } - if (from.has_target_battle_tag()) { - set_target_battle_tag(from.target_battle_tag()); - } - if (from.has_target_name()) { - set_target_name(from.target_name()); - } - if (from.has_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FriendInvitationParams::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FriendInvitationParams::CopyFrom(const FriendInvitationParams& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FriendInvitationParams::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void FriendInvitationParams::Swap(FriendInvitationParams* other) { if (other != this) { - std::swap(target_email_, other->target_email_); - std::swap(target_battle_tag_, other->target_battle_tag_); - role_.Swap(&other->role_); - attribute_.Swap(&other->attribute_); - std::swap(target_name_, other->target_name_); - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FriendInvitationParams::GetMetadata() const { @@ -3124,402 +946,9 @@ SubscribeResponse* SubscribeResponse::New() const { return new SubscribeResponse; } -void SubscribeResponse::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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(); - received_invitations_.Clear(); - sent_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 [deprecated = true]; - 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 [deprecated = true]; - 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 [deprecated = true]; - 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(58)) goto parse_received_invitations; - break; - } - - // repeated .bgs.protocol.friends.v1.ReceivedInvitation 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->ExpectTag(66)) goto parse_sent_invitations; - break; - } - - // repeated .bgs.protocol.friends.v1.SentInvitation sent_invitations = 8; - case 8: { - if (tag == 66) { - parse_sent_invitations: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_sent_invitations())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_sent_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 [deprecated = true]; - if (has_max_friends()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->max_friends(), output); - } - - // optional uint32 max_received_invitations = 2 [deprecated = true]; - if (has_max_received_invitations()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->max_received_invitations(), output); - } - - // optional uint32 max_sent_invitations = 3 [deprecated = true]; - 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.friends.v1.ReceivedInvitation received_invitations = 7; - for (int i = 0; i < this->received_invitations_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->received_invitations(i), output); - } - - // repeated .bgs.protocol.friends.v1.SentInvitation sent_invitations = 8; - for (int i = 0; i < this->sent_invitations_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->sent_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 [deprecated = true]; - if (has_max_friends()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->max_friends(), target); - } - - // optional uint32 max_received_invitations = 2 [deprecated = true]; - if (has_max_received_invitations()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->max_received_invitations(), target); - } - - // optional uint32 max_sent_invitations = 3 [deprecated = true]; - 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.friends.v1.ReceivedInvitation 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); - } - - // repeated .bgs.protocol.friends.v1.SentInvitation sent_invitations = 8; - for (int i = 0; i < this->sent_invitations_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->sent_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 [deprecated = true]; - if (has_max_friends()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_friends()); - } - - // optional uint32 max_received_invitations = 2 [deprecated = true]; - if (has_max_received_invitations()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_received_invitations()); - } - - // optional uint32 max_sent_invitations = 3 [deprecated = true]; - 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.friends.v1.ReceivedInvitation 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)); - } - - // repeated .bgs.protocol.friends.v1.SentInvitation sent_invitations = 8; - 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)); - } - - 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( - &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_); - received_invitations_.MergeFrom(from.received_invitations_); - sent_invitations_.MergeFrom(from.sent_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->received_invitations())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->sent_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_); - received_invitations_.Swap(&other->received_invitations_); - sent_invitations_.Swap(&other->sent_invitations_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeResponse::GetMetadata() const { @@ -3591,205 +1020,9 @@ AcceptInvitationOptions* AcceptInvitationOptions::New() const { return new AcceptInvitationOptions; } -void AcceptInvitationOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(role_, program_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AcceptInvitationOptions::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.AcceptInvitationOptions) - 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 role = 1; - case 1: { - if (tag == 8) { - 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->ExpectTag(21)) goto parse_program; - break; - } - - // optional fixed32 program = 2; - case 2: { - if (tag == 21) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } 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.AcceptInvitationOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.AcceptInvitationOptions) - return false; -#undef DO_ -} - -void AcceptInvitationOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.AcceptInvitationOptions) - // optional uint32 role = 1; - if (has_role()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->role(), output); - } - - // optional fixed32 program = 2; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.AcceptInvitationOptions) -} - -::google::protobuf::uint8* AcceptInvitationOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.AcceptInvitationOptions) - // optional uint32 role = 1; - if (has_role()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->role(), target); - } - - // optional fixed32 program = 2; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->program(), 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.AcceptInvitationOptions) - return target; -} - -int AcceptInvitationOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 role = 1; - if (has_role()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->role()); - } - - // optional fixed32 program = 2; - if (has_program()) { - 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 AcceptInvitationOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AcceptInvitationOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AcceptInvitationOptions::MergeFrom(const AcceptInvitationOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_role()) { - set_role(from.role()); - } - if (from.has_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AcceptInvitationOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AcceptInvitationOptions::CopyFrom(const AcceptInvitationOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AcceptInvitationOptions::IsInitialized() const { - return true; -} - void AcceptInvitationOptions::Swap(AcceptInvitationOptions* other) { if (other != this) { - std::swap(role_, other->role_); - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AcceptInvitationOptions::GetMetadata() const { diff --git a/src/server/proto/Client/friends_types.pb.h b/src/server/proto/Client/friends_types.pb.h index 6557e439d5b..6a61fba37d9 100644 --- a/src/server/proto/Client/friends_types.pb.h +++ b/src/server/proto/Client/friends_types.pb.h @@ -81,19 +81,6 @@ class TC_PROTO_API Friend : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Friend* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Friend& from); - void MergeFrom(const Friend& 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(); @@ -178,7 +165,6 @@ class TC_PROTO_API Friend : public ::google::protobuf::Message { ::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_; ::google::protobuf::uint64 creation_time_; @@ -219,19 +205,6 @@ class TC_PROTO_API FriendOfFriend : public ::google::protobuf::Message { // 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(); @@ -313,7 +286,6 @@ class TC_PROTO_API FriendOfFriend : public ::google::protobuf::Message { mutable int _cached_size_; ::bgs::protocol::EntityId* account_id_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; ::google::protobuf::uint64 privileges_; ::std::string* full_name_; ::std::string* battle_tag_; @@ -354,19 +326,6 @@ class TC_PROTO_API ReceivedInvitation : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ReceivedInvitation* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ReceivedInvitation& from); - void MergeFrom(const ReceivedInvitation& 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(); @@ -510,19 +469,6 @@ class TC_PROTO_API FriendInvitation : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FriendInvitation* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FriendInvitation& from); - void MergeFrom(const FriendInvitation& 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(); @@ -571,7 +517,6 @@ class TC_PROTO_API FriendInvitation : public ::google::protobuf::Message { ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; friend void TC_PROTO_API protobuf_AddDesc_friends_5ftypes_2eproto(); friend void protobuf_AssignDesc_friends_5ftypes_2eproto(); @@ -610,19 +555,6 @@ class TC_PROTO_API SentInvitation : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SentInvitation* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SentInvitation& from); - void MergeFrom(const SentInvitation& 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(); @@ -747,19 +679,6 @@ class TC_PROTO_API FriendInvitationParams : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FriendInvitationParams* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FriendInvitationParams& from); - void MergeFrom(const FriendInvitationParams& 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(); @@ -861,7 +780,6 @@ class TC_PROTO_API FriendInvitationParams : public ::google::protobuf::Message { ::std::string* target_email_; ::std::string* target_battle_tag_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; ::std::string* target_name_; ::google::protobuf::uint32 program_; @@ -902,19 +820,6 @@ class TC_PROTO_API SubscribeResponse : public ::google::protobuf::Message { // 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(); @@ -1053,19 +958,6 @@ class TC_PROTO_API AcceptInvitationOptions : public ::google::protobuf::Message // implements Message ---------------------------------------------- AcceptInvitationOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AcceptInvitationOptions& from); - void MergeFrom(const AcceptInvitationOptions& 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(); diff --git a/src/server/proto/Client/game_utilities_service.pb.cc b/src/server/proto/Client/game_utilities_service.pb.cc index 1b2448d8295..3aa9113e2e2 100644 --- a/src/server/proto/Client/game_utilities_service.pb.cc +++ b/src/server/proto/Client/game_utilities_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "game_utilities_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -418,7 +415,7 @@ void protobuf_AddDesc_game_5futilities_5fservice_2eproto() { "ocol.game_utilities.GameUtilities*\016game_" "utilities\212\371+\004\010\001\020\001BD\n\037bnet.protocol.game_" "utilities.v1B\031GameUtilitiesServiceProtoH" - "\001\200\001\000\210\001\001", 2807); + "\002\200\001\000\210\001\001", 2807); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "game_utilities_service.proto", &protobuf_RegisterTypes); ClientRequest::default_instance_ = new ClientRequest(); @@ -530,366 +527,9 @@ ClientRequest* ClientRequest::New() const { return new ClientRequest; } -void ClientRequest::Clear() { - if (_has_bits_[0 / 32] & 62) { - if (has_host()) { - if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); - } - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - program_ = 0u; - if (has_client_info()) { - if (client_info_ != NULL) client_info_->::bgs::protocol::game_utilities::v1::ClientInfo::Clear(); - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClientRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.ClientRequest) - 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.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute; - if (input->ExpectTag(18)) goto parse_host; - break; - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - case 2: { - if (tag == 18) { - parse_host: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_host())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 3; - case 3: { - if (tag == 26) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_game_account_id; - break; - } - - // optional .bgs.protocol.EntityId game_account_id = 4; - case 4: { - if (tag == 34) { - parse_game_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_program; - break; - } - - // optional fixed32 program = 5; - case 5: { - if (tag == 45) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_client_info; - break; - } - - // optional .bgs.protocol.game_utilities.v1.ClientInfo client_info = 6; - case 6: { - if (tag == 50) { - parse_client_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_client_info())); - } 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.game_utilities.v1.ClientRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.ClientRequest) - return false; -#undef DO_ -} - -void ClientRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.ClientRequest) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->host(), output); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->account_id(), output); - } - - // optional .bgs.protocol.EntityId game_account_id = 4; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->game_account_id(), output); - } - - // optional fixed32 program = 5; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(5, this->program(), output); - } - - // optional .bgs.protocol.game_utilities.v1.ClientInfo client_info = 6; - if (has_client_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->client_info(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.ClientRequest) -} - -::google::protobuf::uint8* ClientRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.ClientRequest) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(i), target); - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->host(), target); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->account_id(), target); - } - - // optional .bgs.protocol.EntityId game_account_id = 4; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->game_account_id(), target); - } - - // optional fixed32 program = 5; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(5, this->program(), target); - } - - // optional .bgs.protocol.game_utilities.v1.ClientInfo client_info = 6; - if (has_client_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->client_info(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.ClientRequest) - return target; -} - -int ClientRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->host()); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional .bgs.protocol.EntityId game_account_id = 4; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id()); - } - - // optional fixed32 program = 5; - if (has_program()) { - total_size += 1 + 4; - } - - // optional .bgs.protocol.game_utilities.v1.ClientInfo client_info = 6; - if (has_client_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->client_info()); - } - - } - // repeated .bgs.protocol.Attribute attribute = 1; - 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 ClientRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClientRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClientRequest::MergeFrom(const ClientRequest& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_host()) { - mutable_host()->::bgs::protocol::ProcessId::MergeFrom(from.host()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_client_info()) { - mutable_client_info()->::bgs::protocol::game_utilities::v1::ClientInfo::MergeFrom(from.client_info()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClientRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClientRequest::CopyFrom(const ClientRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClientRequest::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - if (has_host()) { - if (!this->host().IsInitialized()) return false; - } - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - return true; -} - void ClientRequest::Swap(ClientRequest* other) { if (other != this) { - attribute_.Swap(&other->attribute_); - std::swap(host_, other->host_); - std::swap(account_id_, other->account_id_); - std::swap(game_account_id_, other->game_account_id_); - std::swap(program_, other->program_); - std::swap(client_info_, other->client_info_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClientRequest::GetMetadata() const { @@ -958,156 +598,9 @@ ClientResponse* ClientResponse::New() const { return new ClientResponse; } -void ClientResponse::Clear() { - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClientResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.ClientResponse) - 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.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) 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.game_utilities.v1.ClientResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.ClientResponse) - return false; -#undef DO_ -} - -void ClientResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.ClientResponse) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.ClientResponse) -} - -::google::protobuf::uint8* ClientResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.ClientResponse) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, 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.game_utilities.v1.ClientResponse) - return target; -} - -int ClientResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.Attribute attribute = 1; - 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 ClientResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClientResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClientResponse::MergeFrom(const ClientResponse& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClientResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClientResponse::CopyFrom(const ClientResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClientResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void ClientResponse::Swap(ClientResponse* other) { if (other != this) { - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClientResponse::GetMetadata() const { @@ -1182,241 +675,9 @@ ServerRequest* ServerRequest::New() const { return new ServerRequest; } -void ServerRequest::Clear() { - if (_has_bits_[0 / 32] & 6) { - program_ = 0u; - if (has_host()) { - if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); - } - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ServerRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.ServerRequest) - 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.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute; - if (input->ExpectTag(21)) goto parse_program; - break; - } - - // required fixed32 program = 2; - case 2: { - if (tag == 21) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_host; - break; - } - - // optional .bgs.protocol.ProcessId host = 3 [deprecated = true]; - case 3: { - if (tag == 26) { - parse_host: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_host())); - } 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.game_utilities.v1.ServerRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.ServerRequest) - return false; -#undef DO_ -} - -void ServerRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.ServerRequest) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - // required fixed32 program = 2; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->program(), output); - } - - // optional .bgs.protocol.ProcessId host = 3 [deprecated = true]; - if (has_host()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->host(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.ServerRequest) -} - -::google::protobuf::uint8* ServerRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.ServerRequest) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(i), target); - } - - // required fixed32 program = 2; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->program(), target); - } - - // optional .bgs.protocol.ProcessId host = 3 [deprecated = true]; - if (has_host()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->host(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.ServerRequest) - return target; -} - -int ServerRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // required fixed32 program = 2; - if (has_program()) { - total_size += 1 + 4; - } - - // optional .bgs.protocol.ProcessId host = 3 [deprecated = true]; - if (has_host()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->host()); - } - - } - // repeated .bgs.protocol.Attribute attribute = 1; - 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 ServerRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ServerRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ServerRequest::MergeFrom(const ServerRequest& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_host()) { - mutable_host()->::bgs::protocol::ProcessId::MergeFrom(from.host()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ServerRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ServerRequest::CopyFrom(const ServerRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ServerRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - if (has_host()) { - if (!this->host().IsInitialized()) return false; - } - return true; -} - void ServerRequest::Swap(ServerRequest* other) { if (other != this) { - attribute_.Swap(&other->attribute_); - std::swap(program_, other->program_); - std::swap(host_, other->host_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ServerRequest::GetMetadata() const { @@ -1485,156 +746,9 @@ ServerResponse* ServerResponse::New() const { return new ServerResponse; } -void ServerResponse::Clear() { - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ServerResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.ServerResponse) - 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.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) 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.game_utilities.v1.ServerResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.ServerResponse) - return false; -#undef DO_ -} - -void ServerResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.ServerResponse) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.ServerResponse) -} - -::google::protobuf::uint8* ServerResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.ServerResponse) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, 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.game_utilities.v1.ServerResponse) - return target; -} - -int ServerResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.Attribute attribute = 1; - 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 ServerResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ServerResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ServerResponse::MergeFrom(const ServerResponse& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ServerResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ServerResponse::CopyFrom(const ServerResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ServerResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void ServerResponse::Swap(ServerResponse* other) { if (other != this) { - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ServerResponse::GetMetadata() const { @@ -1718,295 +832,9 @@ PresenceChannelCreatedRequest* PresenceChannelCreatedRequest::New() const { return new PresenceChannelCreatedRequest; } -void PresenceChannelCreatedRequest::Clear() { - if (_has_bits_[0 / 32] & 15) { - if (has_id()) { - if (id_ != NULL) id_->::bgs::protocol::EntityId::Clear(); - } - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_host()) { - if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PresenceChannelCreatedRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest) - 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 id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_game_account_id; - break; - } - - // optional .bgs.protocol.EntityId game_account_id = 3; - case 3: { - if (tag == 26) { - parse_game_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 4; - case 4: { - if (tag == 34) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_host; - break; - } - - // optional .bgs.protocol.ProcessId host = 5 [deprecated = true]; - case 5: { - if (tag == 42) { - parse_host: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_host())); - } 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.game_utilities.v1.PresenceChannelCreatedRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest) - return false; -#undef DO_ -} - -void PresenceChannelCreatedRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest) - // required .bgs.protocol.EntityId id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->id(), output); - } - - // optional .bgs.protocol.EntityId game_account_id = 3; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->game_account_id(), output); - } - - // optional .bgs.protocol.EntityId account_id = 4; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->account_id(), output); - } - - // optional .bgs.protocol.ProcessId host = 5 [deprecated = true]; - if (has_host()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->host(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest) -} - -::google::protobuf::uint8* PresenceChannelCreatedRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest) - // required .bgs.protocol.EntityId id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->id(), target); - } - - // optional .bgs.protocol.EntityId game_account_id = 3; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->game_account_id(), target); - } - - // optional .bgs.protocol.EntityId account_id = 4; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->account_id(), target); - } - - // optional .bgs.protocol.ProcessId host = 5 [deprecated = true]; - if (has_host()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->host(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest) - return target; -} - -int PresenceChannelCreatedRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->id()); - } - - // optional .bgs.protocol.EntityId game_account_id = 3; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id()); - } - - // optional .bgs.protocol.EntityId account_id = 4; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_id()); - } - - // optional .bgs.protocol.ProcessId host = 5 [deprecated = true]; - if (has_host()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->host()); - } - - } - 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 PresenceChannelCreatedRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PresenceChannelCreatedRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PresenceChannelCreatedRequest::MergeFrom(const PresenceChannelCreatedRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - mutable_id()->::bgs::protocol::EntityId::MergeFrom(from.id()); - } - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - if (from.has_host()) { - mutable_host()->::bgs::protocol::ProcessId::MergeFrom(from.host()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PresenceChannelCreatedRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PresenceChannelCreatedRequest::CopyFrom(const PresenceChannelCreatedRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PresenceChannelCreatedRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_id()) { - if (!this->id().IsInitialized()) return false; - } - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - if (has_host()) { - if (!this->host().IsInitialized()) return false; - } - return true; -} - void PresenceChannelCreatedRequest::Swap(PresenceChannelCreatedRequest* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(game_account_id_, other->game_account_id_); - std::swap(account_id_, other->account_id_); - std::swap(host_, other->host_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata PresenceChannelCreatedRequest::GetMetadata() const { @@ -2088,263 +916,9 @@ GameAccountOnlineNotification* GameAccountOnlineNotification::New() const { return new GameAccountOnlineNotification; } -void GameAccountOnlineNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_host()) { - if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); - } - if (has_session_id()) { - if (session_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - session_id_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountOnlineNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.GameAccountOnlineNotification) - 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 game_account_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_host; - break; - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - case 2: { - if (tag == 18) { - parse_host: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_host())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_session_id; - break; - } - - // optional string session_id = 3; - case 3: { - if (tag == 26) { - parse_session_id: - 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->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.game_utilities.v1.GameAccountOnlineNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.GameAccountOnlineNotification) - return false; -#undef DO_ -} - -void GameAccountOnlineNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.GameAccountOnlineNotification) - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_account_id(), output); - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->host(), output); - } - - // optional string session_id = 3; - 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( - 3, this->session_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.GameAccountOnlineNotification) -} - -::google::protobuf::uint8* GameAccountOnlineNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.GameAccountOnlineNotification) - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_account_id(), target); - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->host(), target); - } - - // optional string session_id = 3; - 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( - 3, this->session_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.GameAccountOnlineNotification) - return target; -} - -int GameAccountOnlineNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id()); - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->host()); - } - - // optional string session_id = 3; - if (has_session_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->session_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 GameAccountOnlineNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountOnlineNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GameAccountOnlineNotification::MergeFrom(const GameAccountOnlineNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - if (from.has_host()) { - mutable_host()->::bgs::protocol::ProcessId::MergeFrom(from.host()); - } - if (from.has_session_id()) { - set_session_id(from.session_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GameAccountOnlineNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GameAccountOnlineNotification::CopyFrom(const GameAccountOnlineNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAccountOnlineNotification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - if (has_host()) { - if (!this->host().IsInitialized()) return false; - } - return true; -} - void GameAccountOnlineNotification::Swap(GameAccountOnlineNotification* other) { if (other != this) { - std::swap(game_account_id_, other->game_account_id_); - std::swap(host_, other->host_); - std::swap(session_id_, other->session_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountOnlineNotification::GetMetadata() const { @@ -2377,312 +951,58 @@ void GameAccountOfflineNotification::InitAsDefaultInstance() { GameAccountOfflineNotification::GameAccountOfflineNotification(const GameAccountOfflineNotification& from) : ::google::protobuf::Message() { SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) -} - -void GameAccountOfflineNotification::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - game_account_id_ = NULL; - host_ = NULL; - session_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameAccountOfflineNotification::~GameAccountOfflineNotification() { - // @@protoc_insertion_point(destructor:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) - SharedDtor(); -} - -void GameAccountOfflineNotification::SharedDtor() { - if (session_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete session_id_; - } - if (this != default_instance_) { - delete game_account_id_; - delete host_; - } -} - -void GameAccountOfflineNotification::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* GameAccountOfflineNotification::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GameAccountOfflineNotification_descriptor_; -} - -const GameAccountOfflineNotification& GameAccountOfflineNotification::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_game_5futilities_5fservice_2eproto(); - return *default_instance_; -} - -GameAccountOfflineNotification* GameAccountOfflineNotification::default_instance_ = NULL; - -GameAccountOfflineNotification* GameAccountOfflineNotification::New() const { - return new GameAccountOfflineNotification; -} - -void GameAccountOfflineNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_host()) { - if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); - } - if (has_session_id()) { - if (session_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - session_id_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GameAccountOfflineNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) - 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 game_account_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_host; - break; - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - case 2: { - if (tag == 18) { - parse_host: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_host())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_session_id; - break; - } - - // optional string session_id = 3; - case 3: { - if (tag == 26) { - parse_session_id: - 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->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.game_utilities.v1.GameAccountOfflineNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) - return false; -#undef DO_ -} - -void GameAccountOfflineNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->game_account_id(), output); - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->host(), output); - } - - // optional string session_id = 3; - 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( - 3, this->session_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) } -::google::protobuf::uint8* GameAccountOfflineNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->game_account_id(), target); - } +void GameAccountOfflineNotification::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + game_account_id_ = NULL; + host_ = NULL; + session_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->host(), target); - } +GameAccountOfflineNotification::~GameAccountOfflineNotification() { + // @@protoc_insertion_point(destructor:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) + SharedDtor(); +} - // optional string session_id = 3; - 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( - 3, this->session_id(), target); +void GameAccountOfflineNotification::SharedDtor() { + if (session_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete session_id_; } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + if (this != default_instance_) { + delete game_account_id_; + delete host_; } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.GameAccountOfflineNotification) - return target; } -int GameAccountOfflineNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId game_account_id = 1; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id()); - } - - // optional .bgs.protocol.ProcessId host = 2 [deprecated = true]; - if (has_host()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->host()); - } - - // optional string session_id = 3; - if (has_session_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->session_id()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void GameAccountOfflineNotification::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameAccountOfflineNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GameAccountOfflineNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void GameAccountOfflineNotification::MergeFrom(const GameAccountOfflineNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - if (from.has_host()) { - mutable_host()->::bgs::protocol::ProcessId::MergeFrom(from.host()); - } - if (from.has_session_id()) { - set_session_id(from.session_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* GameAccountOfflineNotification::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameAccountOfflineNotification_descriptor_; } -void GameAccountOfflineNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const GameAccountOfflineNotification& GameAccountOfflineNotification::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_game_5futilities_5fservice_2eproto(); + return *default_instance_; } -void GameAccountOfflineNotification::CopyFrom(const GameAccountOfflineNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +GameAccountOfflineNotification* GameAccountOfflineNotification::default_instance_ = NULL; -bool GameAccountOfflineNotification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - if (has_host()) { - if (!this->host().IsInitialized()) return false; - } - return true; +GameAccountOfflineNotification* GameAccountOfflineNotification::New() const { + return new GameAccountOfflineNotification; } void GameAccountOfflineNotification::Swap(GameAccountOfflineNotification* other) { if (other != this) { - std::swap(game_account_id_, other->game_account_id_); - std::swap(host_, other->host_); - std::swap(session_id_, other->session_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GameAccountOfflineNotification::GetMetadata() const { @@ -2762,254 +1082,9 @@ GetAllValuesForAttributeRequest* GetAllValuesForAttributeRequest::New() const { return new GetAllValuesForAttributeRequest; } -void GetAllValuesForAttributeRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_attribute_key()) { - if (attribute_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - attribute_key_->clear(); - } - } - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - program_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetAllValuesForAttributeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest) - 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 attribute_key = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_attribute_key())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->attribute_key().data(), this->attribute_key().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "attribute_key"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_agent_id; - break; - } - - // optional .bgs.protocol.EntityId agent_id = 2; - case 2: { - if (tag == 18) { - parse_agent_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_program; - break; - } - - // optional fixed32 program = 5; - case 5: { - if (tag == 45) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } 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.game_utilities.v1.GetAllValuesForAttributeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest) - return false; -#undef DO_ -} - -void GetAllValuesForAttributeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest) - // optional string attribute_key = 1; - if (has_attribute_key()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->attribute_key().data(), this->attribute_key().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "attribute_key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->attribute_key(), output); - } - - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->agent_id(), output); - } - - // optional fixed32 program = 5; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(5, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest) -} - -::google::protobuf::uint8* GetAllValuesForAttributeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest) - // optional string attribute_key = 1; - if (has_attribute_key()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->attribute_key().data(), this->attribute_key().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "attribute_key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->attribute_key(), target); - } - - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->agent_id(), target); - } - - // optional fixed32 program = 5; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(5, this->program(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest) - return target; -} - -int GetAllValuesForAttributeRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string attribute_key = 1; - if (has_attribute_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->attribute_key()); - } - - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional fixed32 program = 5; - if (has_program()) { - 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 GetAllValuesForAttributeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetAllValuesForAttributeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetAllValuesForAttributeRequest::MergeFrom(const GetAllValuesForAttributeRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_attribute_key()) { - set_attribute_key(from.attribute_key()); - } - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); - } - if (from.has_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetAllValuesForAttributeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetAllValuesForAttributeRequest::CopyFrom(const GetAllValuesForAttributeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetAllValuesForAttributeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void GetAllValuesForAttributeRequest::Swap(GetAllValuesForAttributeRequest* other) { if (other != this) { - std::swap(attribute_key_, other->attribute_key_); - std::swap(agent_id_, other->agent_id_); - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetAllValuesForAttributeRequest::GetMetadata() const { @@ -3078,156 +1153,9 @@ GetAllValuesForAttributeResponse* GetAllValuesForAttributeResponse::New() const return new GetAllValuesForAttributeResponse; } -void GetAllValuesForAttributeResponse::Clear() { - attribute_value_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool GetAllValuesForAttributeResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeResponse) - 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.Variant attribute_value = 1; - case 1: { - if (tag == 10) { - parse_attribute_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute_value())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute_value; - 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.game_utilities.v1.GetAllValuesForAttributeResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeResponse) - return false; -#undef DO_ -} - -void GetAllValuesForAttributeResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeResponse) - // repeated .bgs.protocol.Variant attribute_value = 1; - for (int i = 0; i < this->attribute_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute_value(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeResponse) -} - -::google::protobuf::uint8* GetAllValuesForAttributeResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeResponse) - // repeated .bgs.protocol.Variant attribute_value = 1; - for (int i = 0; i < this->attribute_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute_value(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.GetAllValuesForAttributeResponse) - return target; -} - -int GetAllValuesForAttributeResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.Variant attribute_value = 1; - total_size += 1 * this->attribute_value_size(); - for (int i = 0; i < this->attribute_value_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->attribute_value(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 GetAllValuesForAttributeResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const GetAllValuesForAttributeResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void GetAllValuesForAttributeResponse::MergeFrom(const GetAllValuesForAttributeResponse& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_value_.MergeFrom(from.attribute_value_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void GetAllValuesForAttributeResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetAllValuesForAttributeResponse::CopyFrom(const GetAllValuesForAttributeResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetAllValuesForAttributeResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute_value())) return false; - return true; -} - void GetAllValuesForAttributeResponse::Swap(GetAllValuesForAttributeResponse* other) { if (other != this) { - attribute_value_.Swap(&other->attribute_value_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata GetAllValuesForAttributeResponse::GetMetadata() const { @@ -3298,195 +1226,9 @@ RegisterUtilitiesRequest* RegisterUtilitiesRequest::New() const { return new RegisterUtilitiesRequest; } -void RegisterUtilitiesRequest::Clear() { - program_ = 0u; - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RegisterUtilitiesRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest) - 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.Attribute attribute = 1; - case 1: { - if (tag == 10) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_attribute; - if (input->ExpectTag(21)) goto parse_program; - break; - } - - // optional fixed32 program = 2; - case 2: { - if (tag == 21) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } 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.game_utilities.v1.RegisterUtilitiesRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest) - return false; -#undef DO_ -} - -void RegisterUtilitiesRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->attribute(i), output); - } - - // optional fixed32 program = 2; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest) -} - -::google::protobuf::uint8* RegisterUtilitiesRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest) - // repeated .bgs.protocol.Attribute attribute = 1; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->attribute(i), target); - } - - // optional fixed32 program = 2; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->program(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest) - return target; -} - -int RegisterUtilitiesRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional fixed32 program = 2; - if (has_program()) { - total_size += 1 + 4; - } - - } - // repeated .bgs.protocol.Attribute attribute = 1; - 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 RegisterUtilitiesRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RegisterUtilitiesRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RegisterUtilitiesRequest::MergeFrom(const RegisterUtilitiesRequest& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RegisterUtilitiesRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RegisterUtilitiesRequest::CopyFrom(const RegisterUtilitiesRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RegisterUtilitiesRequest::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void RegisterUtilitiesRequest::Swap(RegisterUtilitiesRequest* other) { if (other != this) { - attribute_.Swap(&other->attribute_); - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RegisterUtilitiesRequest::GetMetadata() const { @@ -3560,174 +1302,9 @@ RegisterUtilitiesResponse* RegisterUtilitiesResponse::New() const { return new RegisterUtilitiesResponse; } -void RegisterUtilitiesResponse::Clear() { - if (has_client_id()) { - if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_id_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RegisterUtilitiesResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.RegisterUtilitiesResponse) - 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 client_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_client_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "client_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.game_utilities.v1.RegisterUtilitiesResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.RegisterUtilitiesResponse) - return false; -#undef DO_ -} - -void RegisterUtilitiesResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.RegisterUtilitiesResponse) - // optional string client_id = 1; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->client_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.RegisterUtilitiesResponse) -} - -::google::protobuf::uint8* RegisterUtilitiesResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.RegisterUtilitiesResponse) - // optional string client_id = 1; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->client_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.RegisterUtilitiesResponse) - return target; -} - -int RegisterUtilitiesResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string client_id = 1; - if (has_client_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_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 RegisterUtilitiesResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RegisterUtilitiesResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RegisterUtilitiesResponse::MergeFrom(const RegisterUtilitiesResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_client_id()) { - set_client_id(from.client_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RegisterUtilitiesResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RegisterUtilitiesResponse::CopyFrom(const RegisterUtilitiesResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RegisterUtilitiesResponse::IsInitialized() const { - return true; -} - void RegisterUtilitiesResponse::Swap(RegisterUtilitiesResponse* other) { if (other != this) { - std::swap(client_id_, other->client_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RegisterUtilitiesResponse::GetMetadata() const { @@ -3795,111 +1372,9 @@ UnregisterUtilitiesRequest* UnregisterUtilitiesRequest::New() const { return new UnregisterUtilitiesRequest; } -void UnregisterUtilitiesRequest::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnregisterUtilitiesRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - 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.game_utilities.v1.UnregisterUtilitiesRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest) - return false; -#undef DO_ -} - -void UnregisterUtilitiesRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest) - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest) -} - -::google::protobuf::uint8* UnregisterUtilitiesRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest) - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest) - return target; -} - -int UnregisterUtilitiesRequest::ByteSize() const { - int total_size = 0; - - 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 UnregisterUtilitiesRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnregisterUtilitiesRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnregisterUtilitiesRequest::MergeFrom(const UnregisterUtilitiesRequest& from) { - GOOGLE_CHECK_NE(&from, this); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnregisterUtilitiesRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnregisterUtilitiesRequest::CopyFrom(const UnregisterUtilitiesRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnregisterUtilitiesRequest::IsInitialized() const { - return true; -} - void UnregisterUtilitiesRequest::Swap(UnregisterUtilitiesRequest* other) { if (other != this) { - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnregisterUtilitiesRequest::GetMetadata() const { @@ -3912,7 +1387,7 @@ void UnregisterUtilitiesRequest::Swap(UnregisterUtilitiesRequest* other) { // =================================================================== -GameUtilitiesService::GameUtilitiesService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +GameUtilitiesService::GameUtilitiesService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } GameUtilitiesService::~GameUtilitiesService() { @@ -3924,8 +1399,7 @@ google::protobuf::ServiceDescriptor const* GameUtilitiesService::descriptor() { } void GameUtilitiesService::ProcessClientRequest(::bgs::protocol::game_utilities::v1::ClientRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method GameUtilitiesService.ProcessClientRequest(bgs.protocol.game_utilities.v1.ClientRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("GameUtilitiesService.ProcessClientRequest", "bgs.protocol.game_utilities.v1.ClientRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::game_utilities::v1::ClientResponse response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3935,8 +1409,7 @@ void GameUtilitiesService::ProcessClientRequest(::bgs::protocol::game_utilities: } void GameUtilitiesService::PresenceChannelCreated(::bgs::protocol::game_utilities::v1::PresenceChannelCreatedRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method GameUtilitiesService.PresenceChannelCreated(bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("GameUtilitiesService.PresenceChannelCreated", "bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::NoData response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3946,8 +1419,7 @@ void GameUtilitiesService::PresenceChannelCreated(::bgs::protocol::game_utilitie } void GameUtilitiesService::ProcessServerRequest(::bgs::protocol::game_utilities::v1::ServerRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method GameUtilitiesService.ProcessServerRequest(bgs.protocol.game_utilities.v1.ServerRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("GameUtilitiesService.ProcessServerRequest", "bgs.protocol.game_utilities.v1.ServerRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::game_utilities::v1::ServerResponse response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3957,20 +1429,17 @@ void GameUtilitiesService::ProcessServerRequest(::bgs::protocol::game_utilities: } void GameUtilitiesService::OnGameAccountOnline(::bgs::protocol::game_utilities::v1::GameAccountOnlineNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method GameUtilitiesService.OnGameAccountOnline(bgs.protocol.game_utilities.v1.GameAccountOnlineNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("GameUtilitiesService.OnGameAccountOnline", "bgs.protocol.game_utilities.v1.GameAccountOnlineNotification", request); SendRequest(service_hash_, 7 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void GameUtilitiesService::OnGameAccountOffline(::bgs::protocol::game_utilities::v1::GameAccountOfflineNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method GameUtilitiesService.OnGameAccountOffline(bgs.protocol.game_utilities.v1.GameAccountOfflineNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("GameUtilitiesService.OnGameAccountOffline", "bgs.protocol.game_utilities.v1.GameAccountOfflineNotification", request); SendRequest(service_hash_, 8 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void GameUtilitiesService::GetAllValuesForAttribute(::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method GameUtilitiesService.GetAllValuesForAttribute(bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("GameUtilitiesService.GetAllValuesForAttribute", "bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeResponse response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3980,8 +1449,7 @@ void GameUtilitiesService::GetAllValuesForAttribute(::bgs::protocol::game_utilit } void GameUtilitiesService::RegisterUtilities(::bgs::protocol::game_utilities::v1::RegisterUtilitiesRequest const* request, std::function responseCallback, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method GameUtilitiesService.RegisterUtilities(bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("GameUtilitiesService.RegisterUtilities", "bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest", request); std::function callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::game_utilities::v1::RegisterUtilitiesResponse response; if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) @@ -3991,240 +1459,197 @@ void GameUtilitiesService::RegisterUtilities(::bgs::protocol::game_utilities::v1 } void GameUtilitiesService::UnregisterUtilities(::bgs::protocol::game_utilities::v1::UnregisterUtilitiesRequest const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method GameUtilitiesService.UnregisterUtilities(bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("GameUtilitiesService.UnregisterUtilities", "bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest", request); SendRequest(service_hash_, 12 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void GameUtilitiesService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::game_utilities::v1::ClientRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for GameUtilitiesService.ProcessClientRequest server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.ProcessClientRequest(bgs.protocol.game_utilities.v1.ClientRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::game_utilities::v1::ClientResponse::descriptor()); - GameUtilitiesService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.ProcessClientRequest() returned bgs.protocol.game_utilities.v1.ClientResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::game_utilities::v1::ClientResponse response; - uint32 status = HandleProcessClientRequest(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleProcessClientRequest(token, methodId, buffer); break; - } - case 2: { - ::bgs::protocol::game_utilities::v1::PresenceChannelCreatedRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for GameUtilitiesService.PresenceChannelCreated server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.PresenceChannelCreated(bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - GameUtilitiesService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.PresenceChannelCreated() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandlePresenceChannelCreated(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 2: + ParseAndHandlePresenceChannelCreated(token, methodId, buffer); break; - } - case 6: { - ::bgs::protocol::game_utilities::v1::ServerRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for GameUtilitiesService.ProcessServerRequest server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.ProcessServerRequest(bgs.protocol.game_utilities.v1.ServerRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::game_utilities::v1::ServerResponse::descriptor()); - GameUtilitiesService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.ProcessServerRequest() returned bgs.protocol.game_utilities.v1.ServerResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::game_utilities::v1::ServerResponse response; - uint32 status = HandleProcessServerRequest(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 6: + ParseAndHandleProcessServerRequest(token, methodId, buffer); break; - } - case 7: { - ::bgs::protocol::game_utilities::v1::GameAccountOnlineNotification request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for GameUtilitiesService.OnGameAccountOnline server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - uint32 status = HandleOnGameAccountOnline(&request); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.OnGameAccountOnline(bgs.protocol.game_utilities.v1.GameAccountOnlineNotification{ %s }) status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), status); - if (status) - SendResponse(service_hash_, methodId, token, status); + case 7: + ParseAndHandleOnGameAccountOnline(token, methodId, buffer); break; - } - case 8: { - ::bgs::protocol::game_utilities::v1::GameAccountOfflineNotification request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for GameUtilitiesService.OnGameAccountOffline server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - uint32 status = HandleOnGameAccountOffline(&request); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.OnGameAccountOffline(bgs.protocol.game_utilities.v1.GameAccountOfflineNotification{ %s }) status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), status); - if (status) - SendResponse(service_hash_, methodId, token, status); + case 8: + ParseAndHandleOnGameAccountOffline(token, methodId, buffer); break; - } - case 10: { - ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for GameUtilitiesService.GetAllValuesForAttribute server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.GetAllValuesForAttribute(bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeResponse::descriptor()); - GameUtilitiesService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.GetAllValuesForAttribute() returned bgs.protocol.game_utilities.v1.GetAllValuesForAttributeResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeResponse response; - uint32 status = HandleGetAllValuesForAttribute(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 10: + ParseAndHandleGetAllValuesForAttribute(token, methodId, buffer); break; - } - case 11: { - ::bgs::protocol::game_utilities::v1::RegisterUtilitiesRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for GameUtilitiesService.RegisterUtilities server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.RegisterUtilities(bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::game_utilities::v1::RegisterUtilitiesResponse::descriptor()); - GameUtilitiesService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.RegisterUtilities() returned bgs.protocol.game_utilities.v1.RegisterUtilitiesResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::game_utilities::v1::RegisterUtilitiesResponse response; - uint32 status = HandleRegisterUtilities(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 11: + ParseAndHandleRegisterUtilities(token, methodId, buffer); break; - } - case 12: { - ::bgs::protocol::game_utilities::v1::UnregisterUtilitiesRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for GameUtilitiesService.UnregisterUtilities server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - uint32 status = HandleUnregisterUtilities(&request); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method GameUtilitiesService.UnregisterUtilities(bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest{ %s }) status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), status); - if (status) - SendResponse(service_hash_, methodId, token, status); + case 12: + ParseAndHandleUnregisterUtilities(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 GameUtilitiesService::HandleProcessClientRequest(::bgs::protocol::game_utilities::v1::ClientRequest const* request, ::bgs::protocol::game_utilities::v1::ClientResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method GameUtilitiesService.ProcessClientRequest({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 GameUtilitiesService::HandleProcessClientRequest(::bgs::protocol::game_utilities::v1::ClientRequest const* request, ::bgs::protocol::game_utilities::v1::ClientResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("GameUtilitiesService.ProcessClientRequest", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 GameUtilitiesService::HandlePresenceChannelCreated(::bgs::protocol::game_utilities::v1::PresenceChannelCreatedRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method GameUtilitiesService.PresenceChannelCreated({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 GameUtilitiesService::HandlePresenceChannelCreated(::bgs::protocol::game_utilities::v1::PresenceChannelCreatedRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("GameUtilitiesService.PresenceChannelCreated", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 GameUtilitiesService::HandleProcessServerRequest(::bgs::protocol::game_utilities::v1::ServerRequest const* request, ::bgs::protocol::game_utilities::v1::ServerResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method GameUtilitiesService.ProcessServerRequest({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 GameUtilitiesService::HandleProcessServerRequest(::bgs::protocol::game_utilities::v1::ServerRequest const* request, ::bgs::protocol::game_utilities::v1::ServerResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("GameUtilitiesService.ProcessServerRequest", request); return ERROR_RPC_NOT_IMPLEMENTED; } uint32 GameUtilitiesService::HandleOnGameAccountOnline(::bgs::protocol::game_utilities::v1::GameAccountOnlineNotification const* request) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method GameUtilitiesService.OnGameAccountOnline({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogUnimplementedServerMethod("GameUtilitiesService.OnGameAccountOnline", request); return ERROR_RPC_NOT_IMPLEMENTED; } uint32 GameUtilitiesService::HandleOnGameAccountOffline(::bgs::protocol::game_utilities::v1::GameAccountOfflineNotification const* request) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method GameUtilitiesService.OnGameAccountOffline({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogUnimplementedServerMethod("GameUtilitiesService.OnGameAccountOffline", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 GameUtilitiesService::HandleGetAllValuesForAttribute(::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeRequest const* request, ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method GameUtilitiesService.GetAllValuesForAttribute({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 GameUtilitiesService::HandleGetAllValuesForAttribute(::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeRequest const* request, ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("GameUtilitiesService.GetAllValuesForAttribute", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 GameUtilitiesService::HandleRegisterUtilities(::bgs::protocol::game_utilities::v1::RegisterUtilitiesRequest const* request, ::bgs::protocol::game_utilities::v1::RegisterUtilitiesResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method GameUtilitiesService.RegisterUtilities({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 GameUtilitiesService::HandleRegisterUtilities(::bgs::protocol::game_utilities::v1::RegisterUtilitiesRequest const* request, ::bgs::protocol::game_utilities::v1::RegisterUtilitiesResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("GameUtilitiesService.RegisterUtilities", request); return ERROR_RPC_NOT_IMPLEMENTED; } uint32 GameUtilitiesService::HandleUnregisterUtilities(::bgs::protocol::game_utilities::v1::UnregisterUtilitiesRequest const* request) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method GameUtilitiesService.UnregisterUtilities({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogUnimplementedServerMethod("GameUtilitiesService.UnregisterUtilities", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void GameUtilitiesService::ParseAndHandleProcessClientRequest(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::game_utilities::v1::ClientRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("GameUtilitiesService.ProcessClientRequest"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("GameUtilitiesService.ProcessClientRequest", "bgs.protocol.game_utilities.v1.ClientRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "GameUtilitiesService.ProcessClientRequest", ::bgs::protocol::game_utilities::v1::ClientResponse::descriptor()); + ::bgs::protocol::game_utilities::v1::ClientResponse response; + uint32 status = HandleProcessClientRequest(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void GameUtilitiesService::ParseAndHandlePresenceChannelCreated(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::game_utilities::v1::PresenceChannelCreatedRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("GameUtilitiesService.PresenceChannelCreated"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("GameUtilitiesService.PresenceChannelCreated", "bgs.protocol.game_utilities.v1.PresenceChannelCreatedRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "GameUtilitiesService.PresenceChannelCreated", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandlePresenceChannelCreated(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void GameUtilitiesService::ParseAndHandleProcessServerRequest(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::game_utilities::v1::ServerRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("GameUtilitiesService.ProcessServerRequest"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("GameUtilitiesService.ProcessServerRequest", "bgs.protocol.game_utilities.v1.ServerRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "GameUtilitiesService.ProcessServerRequest", ::bgs::protocol::game_utilities::v1::ServerResponse::descriptor()); + ::bgs::protocol::game_utilities::v1::ServerResponse response; + uint32 status = HandleProcessServerRequest(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void GameUtilitiesService::ParseAndHandleOnGameAccountOnline(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::game_utilities::v1::GameAccountOnlineNotification request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("GameUtilitiesService.OnGameAccountOnline"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + uint32 status = HandleOnGameAccountOnline(&request); + LogCallServerMethod("GameUtilitiesService.OnGameAccountOnline", "bgs.protocol.game_utilities.v1.GameAccountOnlineNotification", &request); + if (status) + SendResponse(service_hash_, methodId, token, status); +} + +void GameUtilitiesService::ParseAndHandleOnGameAccountOffline(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::game_utilities::v1::GameAccountOfflineNotification request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("GameUtilitiesService.OnGameAccountOffline"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + uint32 status = HandleOnGameAccountOffline(&request); + LogCallServerMethod("GameUtilitiesService.OnGameAccountOffline", "bgs.protocol.game_utilities.v1.GameAccountOfflineNotification", &request); + if (status) + SendResponse(service_hash_, methodId, token, status); +} + +void GameUtilitiesService::ParseAndHandleGetAllValuesForAttribute(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("GameUtilitiesService.GetAllValuesForAttribute"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("GameUtilitiesService.GetAllValuesForAttribute", "bgs.protocol.game_utilities.v1.GetAllValuesForAttributeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "GameUtilitiesService.GetAllValuesForAttribute", ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeResponse::descriptor()); + ::bgs::protocol::game_utilities::v1::GetAllValuesForAttributeResponse response; + uint32 status = HandleGetAllValuesForAttribute(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void GameUtilitiesService::ParseAndHandleRegisterUtilities(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::game_utilities::v1::RegisterUtilitiesRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("GameUtilitiesService.RegisterUtilities"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("GameUtilitiesService.RegisterUtilities", "bgs.protocol.game_utilities.v1.RegisterUtilitiesRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "GameUtilitiesService.RegisterUtilities", ::bgs::protocol::game_utilities::v1::RegisterUtilitiesResponse::descriptor()); + ::bgs::protocol::game_utilities::v1::RegisterUtilitiesResponse response; + uint32 status = HandleRegisterUtilities(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void GameUtilitiesService::ParseAndHandleUnregisterUtilities(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::game_utilities::v1::UnregisterUtilitiesRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("GameUtilitiesService.UnregisterUtilities"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + uint32 status = HandleUnregisterUtilities(&request); + LogCallServerMethod("GameUtilitiesService.UnregisterUtilities", "bgs.protocol.game_utilities.v1.UnregisterUtilitiesRequest", &request); + if (status) + SendResponse(service_hash_, methodId, token, status); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/game_utilities_service.pb.h b/src/server/proto/Client/game_utilities_service.pb.h index 10a1907abde..1d7976177c6 100644 --- a/src/server/proto/Client/game_utilities_service.pb.h +++ b/src/server/proto/Client/game_utilities_service.pb.h @@ -87,19 +87,6 @@ class TC_PROTO_API ClientRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClientRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClientRequest& from); - void MergeFrom(const ClientRequest& 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(); @@ -227,19 +214,6 @@ class TC_PROTO_API ClientResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClientResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClientResponse& from); - void MergeFrom(const ClientResponse& 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(); @@ -309,19 +283,6 @@ class TC_PROTO_API ServerRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ServerRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ServerRequest& from); - void MergeFrom(const ServerRequest& 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(); @@ -413,19 +374,6 @@ class TC_PROTO_API ServerResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ServerResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ServerResponse& from); - void MergeFrom(const ServerResponse& 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(); @@ -495,19 +443,6 @@ class TC_PROTO_API PresenceChannelCreatedRequest : public ::google::protobuf::Me // implements Message ---------------------------------------------- PresenceChannelCreatedRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PresenceChannelCreatedRequest& from); - void MergeFrom(const PresenceChannelCreatedRequest& 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(); @@ -612,19 +547,6 @@ class TC_PROTO_API GameAccountOnlineNotification : public ::google::protobuf::Me // implements Message ---------------------------------------------- GameAccountOnlineNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountOnlineNotification& from); - void MergeFrom(const GameAccountOnlineNotification& 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(); @@ -720,19 +642,6 @@ class TC_PROTO_API GameAccountOfflineNotification : public ::google::protobuf::M // implements Message ---------------------------------------------- GameAccountOfflineNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GameAccountOfflineNotification& from); - void MergeFrom(const GameAccountOfflineNotification& 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(); @@ -828,19 +737,6 @@ class TC_PROTO_API GetAllValuesForAttributeRequest : public ::google::protobuf:: // implements Message ---------------------------------------------- GetAllValuesForAttributeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetAllValuesForAttributeRequest& from); - void MergeFrom(const GetAllValuesForAttributeRequest& 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(); @@ -934,19 +830,6 @@ class TC_PROTO_API GetAllValuesForAttributeResponse : public ::google::protobuf: // implements Message ---------------------------------------------- GetAllValuesForAttributeResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetAllValuesForAttributeResponse& from); - void MergeFrom(const GetAllValuesForAttributeResponse& 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(); @@ -1016,19 +899,6 @@ class TC_PROTO_API RegisterUtilitiesRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- RegisterUtilitiesRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RegisterUtilitiesRequest& from); - void MergeFrom(const RegisterUtilitiesRequest& 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(); @@ -1108,19 +978,6 @@ class TC_PROTO_API RegisterUtilitiesResponse : public ::google::protobuf::Messag // implements Message ---------------------------------------------- RegisterUtilitiesResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RegisterUtilitiesResponse& from); - void MergeFrom(const RegisterUtilitiesResponse& 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(); @@ -1192,19 +1049,6 @@ class TC_PROTO_API UnregisterUtilitiesRequest : public ::google::protobuf::Messa // implements Message ---------------------------------------------- UnregisterUtilitiesRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnregisterUtilitiesRequest& from); - void MergeFrom(const UnregisterUtilitiesRequest& 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(); @@ -1238,6 +1082,10 @@ class TC_PROTO_API GameUtilitiesService : public ServiceBase public: explicit GameUtilitiesService(bool use_original_hash); + GameUtilitiesService(GameUtilitiesService const&) = delete; + GameUtilitiesService(GameUtilitiesService&&) = delete; + GameUtilitiesService& operator=(GameUtilitiesService const&) = delete; + GameUtilitiesService& operator=(GameUtilitiesService&&) = delete; virtual ~GameUtilitiesService(); typedef std::integral_constant OriginalHash; @@ -1269,9 +1117,14 @@ class TC_PROTO_API GameUtilitiesService : public ServiceBase virtual uint32 HandleUnregisterUtilities(::bgs::protocol::game_utilities::v1::UnregisterUtilitiesRequest const* request); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(GameUtilitiesService); + void ParseAndHandleProcessClientRequest(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandlePresenceChannelCreated(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleProcessServerRequest(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleOnGameAccountOnline(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleOnGameAccountOffline(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleGetAllValuesForAttribute(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleRegisterUtilities(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnregisterUtilities(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/game_utilities_types.pb.cc b/src/server/proto/Client/game_utilities_types.pb.cc index fde6945d0c6..e2e100d37ec 100644 --- a/src/server/proto/Client/game_utilities_types.pb.cc +++ b/src/server/proto/Client/game_utilities_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "game_utilities_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -119,7 +117,7 @@ void protobuf_AddDesc_game_5futilities_5ftypes_2eproto() { "e\"@\n\nClientInfo\022\026\n\016client_address\030\001 \001(\t\022" "\032\n\022privileged_network\030\002 \001(\010B<\n\037bnet.prot" "ocol.game_utilities.v1B\027GameUtilitiesTyp" - "esProtoH\001", 369); + "esProtoH\002", 369); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "game_utilities_types.proto", &protobuf_RegisterTypes); PlayerVariables::default_instance_ = new PlayerVariables(); @@ -199,240 +197,9 @@ PlayerVariables* PlayerVariables::New() const { return new PlayerVariables; } -void PlayerVariables::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_identity()) { - if (identity_ != NULL) identity_->::bgs::protocol::Identity::Clear(); - } - rating_ = 0; - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PlayerVariables::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.PlayerVariables) - 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.Identity identity = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(17)) goto parse_rating; - break; - } - - // optional double rating = 2; - case 2: { - if (tag == 17) { - parse_rating: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &rating_))); - set_has_rating(); - } 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.game_utilities.v1.PlayerVariables) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.PlayerVariables) - return false; -#undef DO_ -} - -void PlayerVariables::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.PlayerVariables) - // required .bgs.protocol.Identity identity = 1; - if (has_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->identity(), output); - } - - // optional double rating = 2; - if (has_rating()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->rating(), 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.game_utilities.v1.PlayerVariables) -} - -::google::protobuf::uint8* PlayerVariables::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.PlayerVariables) - // required .bgs.protocol.Identity identity = 1; - if (has_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->identity(), target); - } - - // optional double rating = 2; - if (has_rating()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->rating(), 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.game_utilities.v1.PlayerVariables) - return target; -} - -int PlayerVariables::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.Identity identity = 1; - if (has_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->identity()); - } - - // optional double rating = 2; - if (has_rating()) { - total_size += 1 + 8; - } - - } - // 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 PlayerVariables::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PlayerVariables* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PlayerVariables::MergeFrom(const PlayerVariables& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_identity()) { - mutable_identity()->::bgs::protocol::Identity::MergeFrom(from.identity()); - } - if (from.has_rating()) { - set_rating(from.rating()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PlayerVariables::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PlayerVariables::CopyFrom(const PlayerVariables& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayerVariables::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_identity()) { - if (!this->identity().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - return true; -} - void PlayerVariables::Swap(PlayerVariables* other) { if (other != this) { - std::swap(identity_, other->identity_); - std::swap(rating_, other->rating_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata PlayerVariables::GetMetadata() const { @@ -508,211 +275,9 @@ ClientInfo* ClientInfo::New() const { return new ClientInfo; } -void ClientInfo::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_client_address()) { - if (client_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_address_->clear(); - } - } - privileged_network_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClientInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.game_utilities.v1.ClientInfo) - 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 client_address = 1; - case 1: { - if (tag == 10) { - 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(16)) goto parse_privileged_network; - break; - } - - // optional bool privileged_network = 2; - case 2: { - if (tag == 16) { - parse_privileged_network: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &privileged_network_))); - set_has_privileged_network(); - } 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.game_utilities.v1.ClientInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.game_utilities.v1.ClientInfo) - return false; -#undef DO_ -} - -void ClientInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.game_utilities.v1.ClientInfo) - // optional string client_address = 1; - 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( - 1, this->client_address(), output); - } - - // optional bool privileged_network = 2; - if (has_privileged_network()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->privileged_network(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.game_utilities.v1.ClientInfo) -} - -::google::protobuf::uint8* ClientInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.game_utilities.v1.ClientInfo) - // optional string client_address = 1; - 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( - 1, this->client_address(), target); - } - - // optional bool privileged_network = 2; - if (has_privileged_network()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->privileged_network(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.game_utilities.v1.ClientInfo) - return target; -} - -int ClientInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string client_address = 1; - if (has_client_address()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_address()); - } - - // optional bool privileged_network = 2; - if (has_privileged_network()) { - 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 ClientInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClientInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClientInfo::MergeFrom(const ClientInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_client_address()) { - set_client_address(from.client_address()); - } - if (from.has_privileged_network()) { - set_privileged_network(from.privileged_network()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClientInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClientInfo::CopyFrom(const ClientInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClientInfo::IsInitialized() const { - return true; -} - void ClientInfo::Swap(ClientInfo* other) { if (other != this) { - std::swap(client_address_, other->client_address_); - std::swap(privileged_network_, other->privileged_network_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClientInfo::GetMetadata() const { diff --git a/src/server/proto/Client/game_utilities_types.pb.h b/src/server/proto/Client/game_utilities_types.pb.h index 8bb0e31d604..89fadba8f69 100644 --- a/src/server/proto/Client/game_utilities_types.pb.h +++ b/src/server/proto/Client/game_utilities_types.pb.h @@ -73,19 +73,6 @@ class TC_PROTO_API PlayerVariables : public ::google::protobuf::Message { // implements Message ---------------------------------------------- PlayerVariables* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PlayerVariables& from); - void MergeFrom(const PlayerVariables& 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(); @@ -177,19 +164,6 @@ class TC_PROTO_API ClientInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ClientInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClientInfo& from); - void MergeFrom(const ClientInfo& 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(); diff --git a/src/server/proto/Client/global_extensions/field_options.pb.cc b/src/server/proto/Client/global_extensions/field_options.pb.cc index b5fdb26c1af..28f76d48ccb 100644 --- a/src/server/proto/Client/global_extensions/field_options.pb.cc +++ b/src/server/proto/Client/global_extensions/field_options.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "global_extensions/field_options.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -361,7 +359,7 @@ void protobuf_AddDesc_global_5fextensions_2ffield_5foptions_2eproto() { "rotocol.BGSFieldOptions:N\n\005valid\022\035.googl" "e.protobuf.FieldOptions\030\221\277\005 \001(\0132\036.bgs.pr" "otocol.FieldRestrictionB$\n\rbnet.protocol" - "B\021FieldOptionsProtoH\001", 2021); + "B\021FieldOptionsProtoH\002", 2021); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "global_extensions/field_options.proto", &protobuf_RegisterTypes); BGSFieldOptions::default_instance_ = new BGSFieldOptions(); @@ -486,336 +484,9 @@ BGSFieldOptions* BGSFieldOptions::New() const { return new BGSFieldOptions; } -void BGSFieldOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(shard_key_, client_instance_key_); - log_ = 1; - if (has_realized_enum()) { - if (realized_enum_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - realized_enum_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BGSFieldOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.BGSFieldOptions) - 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.LogOption log = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::LogOption_IsValid(value)) { - set_log(static_cast< ::bgs::protocol::LogOption >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_shard_key; - break; - } - - // optional bool shard_key = 2; - case 2: { - if (tag == 16) { - parse_shard_key: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &shard_key_))); - set_has_shard_key(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_fanout_key; - break; - } - - // optional bool fanout_key = 3; - case 3: { - if (tag == 24) { - parse_fanout_key: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fanout_key_))); - set_has_fanout_key(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_client_instance_key; - break; - } - - // optional bool client_instance_key = 4; - case 4: { - if (tag == 32) { - parse_client_instance_key: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &client_instance_key_))); - set_has_client_instance_key(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_realized_enum; - break; - } - - // optional string realized_enum = 5; - case 5: { - if (tag == 42) { - parse_realized_enum: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_realized_enum())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->realized_enum().data(), this->realized_enum().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "realized_enum"); - } 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.BGSFieldOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.BGSFieldOptions) - return false; -#undef DO_ -} - -void BGSFieldOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.BGSFieldOptions) - // optional .bgs.protocol.LogOption log = 1; - if (has_log()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->log(), output); - } - - // optional bool shard_key = 2; - if (has_shard_key()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->shard_key(), output); - } - - // optional bool fanout_key = 3; - if (has_fanout_key()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->fanout_key(), output); - } - - // optional bool client_instance_key = 4; - if (has_client_instance_key()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->client_instance_key(), output); - } - - // optional string realized_enum = 5; - if (has_realized_enum()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->realized_enum().data(), this->realized_enum().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "realized_enum"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->realized_enum(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.BGSFieldOptions) -} - -::google::protobuf::uint8* BGSFieldOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.BGSFieldOptions) - // optional .bgs.protocol.LogOption log = 1; - if (has_log()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->log(), target); - } - - // optional bool shard_key = 2; - if (has_shard_key()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->shard_key(), target); - } - - // optional bool fanout_key = 3; - if (has_fanout_key()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->fanout_key(), target); - } - - // optional bool client_instance_key = 4; - if (has_client_instance_key()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->client_instance_key(), target); - } - - // optional string realized_enum = 5; - if (has_realized_enum()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->realized_enum().data(), this->realized_enum().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "realized_enum"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->realized_enum(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.BGSFieldOptions) - return target; -} - -int BGSFieldOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.LogOption log = 1; - if (has_log()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->log()); - } - - // optional bool shard_key = 2; - if (has_shard_key()) { - total_size += 1 + 1; - } - - // optional bool fanout_key = 3; - if (has_fanout_key()) { - total_size += 1 + 1; - } - - // optional bool client_instance_key = 4; - if (has_client_instance_key()) { - total_size += 1 + 1; - } - - // optional string realized_enum = 5; - if (has_realized_enum()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->realized_enum()); - } - - } - 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 BGSFieldOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BGSFieldOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BGSFieldOptions::MergeFrom(const BGSFieldOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_log()) { - set_log(from.log()); - } - if (from.has_shard_key()) { - set_shard_key(from.shard_key()); - } - if (from.has_fanout_key()) { - set_fanout_key(from.fanout_key()); - } - if (from.has_client_instance_key()) { - set_client_instance_key(from.client_instance_key()); - } - if (from.has_realized_enum()) { - set_realized_enum(from.realized_enum()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BGSFieldOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BGSFieldOptions::CopyFrom(const BGSFieldOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BGSFieldOptions::IsInitialized() const { - return true; -} - void BGSFieldOptions::Swap(BGSFieldOptions* other) { if (other != this) { - std::swap(log_, other->log_); - std::swap(shard_key_, other->shard_key_); - std::swap(fanout_key_, other->fanout_key_); - std::swap(client_instance_key_, other->client_instance_key_); - std::swap(realized_enum_, other->realized_enum_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BGSFieldOptions::GetMetadata() const { @@ -944,425 +615,9 @@ void FieldRestriction::clear_type() { _oneof_case_[0] = TYPE_NOT_SET; } -void FieldRestriction::Clear() { - clear_type(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FieldRestriction::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.FieldRestriction) - 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.SignedFieldRestriction signed = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_signed_())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_unsigned; - break; - } - - // optional .bgs.protocol.UnsignedFieldRestriction unsigned = 2; - case 2: { - if (tag == 18) { - parse_unsigned: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_unsigned_())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_float; - break; - } - - // optional .bgs.protocol.FloatFieldRestriction float = 3; - case 3: { - if (tag == 26) { - parse_float: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_float_())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_string; - break; - } - - // optional .bgs.protocol.StringFieldRestriction string = 4; - case 4: { - if (tag == 34) { - parse_string: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_string())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_repeated; - break; - } - - // optional .bgs.protocol.RepeatedFieldRestriction repeated = 5; - case 5: { - if (tag == 42) { - parse_repeated: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_repeated())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_message; - break; - } - - // optional .bgs.protocol.MessageFieldRestriction message = 6; - case 6: { - if (tag == 50) { - parse_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_message())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_entity_id; - break; - } - - // optional .bgs.protocol.EntityIdRestriction entity_id = 7; - case 7: { - if (tag == 58) { - parse_entity_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_bytes; - break; - } - - // optional .bgs.protocol.StringFieldRestriction bytes = 8; - case 8: { - if (tag == 66) { - parse_bytes: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bytes())); - } 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.FieldRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.FieldRestriction) - return false; -#undef DO_ -} - -void FieldRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.FieldRestriction) - // optional .bgs.protocol.SignedFieldRestriction signed = 1; - if (has_signed_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->signed_(), output); - } - - // optional .bgs.protocol.UnsignedFieldRestriction unsigned = 2; - if (has_unsigned_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->unsigned_(), output); - } - - // optional .bgs.protocol.FloatFieldRestriction float = 3; - if (has_float_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->float_(), output); - } - - // optional .bgs.protocol.StringFieldRestriction string = 4; - if (has_string()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->string(), output); - } - - // optional .bgs.protocol.RepeatedFieldRestriction repeated = 5; - if (has_repeated()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->repeated(), output); - } - - // optional .bgs.protocol.MessageFieldRestriction message = 6; - if (has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->message(), output); - } - - // optional .bgs.protocol.EntityIdRestriction entity_id = 7; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->entity_id(), output); - } - - // optional .bgs.protocol.StringFieldRestriction bytes = 8; - if (has_bytes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->bytes(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.FieldRestriction) -} - -::google::protobuf::uint8* FieldRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.FieldRestriction) - // optional .bgs.protocol.SignedFieldRestriction signed = 1; - if (has_signed_()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->signed_(), target); - } - - // optional .bgs.protocol.UnsignedFieldRestriction unsigned = 2; - if (has_unsigned_()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->unsigned_(), target); - } - - // optional .bgs.protocol.FloatFieldRestriction float = 3; - if (has_float_()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->float_(), target); - } - - // optional .bgs.protocol.StringFieldRestriction string = 4; - if (has_string()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->string(), target); - } - - // optional .bgs.protocol.RepeatedFieldRestriction repeated = 5; - if (has_repeated()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->repeated(), target); - } - - // optional .bgs.protocol.MessageFieldRestriction message = 6; - if (has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->message(), target); - } - - // optional .bgs.protocol.EntityIdRestriction entity_id = 7; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->entity_id(), target); - } - - // optional .bgs.protocol.StringFieldRestriction bytes = 8; - if (has_bytes()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->bytes(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.FieldRestriction) - return target; -} - -int FieldRestriction::ByteSize() const { - int total_size = 0; - - switch (type_case()) { - // optional .bgs.protocol.SignedFieldRestriction signed = 1; - case kSigned: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->signed_()); - break; - } - // optional .bgs.protocol.UnsignedFieldRestriction unsigned = 2; - case kUnsigned: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->unsigned_()); - break; - } - // optional .bgs.protocol.FloatFieldRestriction float = 3; - case kFloat: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->float_()); - break; - } - // optional .bgs.protocol.StringFieldRestriction string = 4; - case kString: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->string()); - break; - } - // optional .bgs.protocol.RepeatedFieldRestriction repeated = 5; - case kRepeated: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->repeated()); - break; - } - // optional .bgs.protocol.MessageFieldRestriction message = 6; - case kMessage: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->message()); - break; - } - // optional .bgs.protocol.EntityIdRestriction entity_id = 7; - case kEntityId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - break; - } - // optional .bgs.protocol.StringFieldRestriction bytes = 8; - case kBytes: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->bytes()); - 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 FieldRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FieldRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FieldRestriction::MergeFrom(const FieldRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - switch (from.type_case()) { - case kSigned: { - mutable_signed_()->::bgs::protocol::SignedFieldRestriction::MergeFrom(from.signed_()); - break; - } - case kUnsigned: { - mutable_unsigned_()->::bgs::protocol::UnsignedFieldRestriction::MergeFrom(from.unsigned_()); - break; - } - case kFloat: { - mutable_float_()->::bgs::protocol::FloatFieldRestriction::MergeFrom(from.float_()); - break; - } - case kString: { - mutable_string()->::bgs::protocol::StringFieldRestriction::MergeFrom(from.string()); - break; - } - case kRepeated: { - mutable_repeated()->::bgs::protocol::RepeatedFieldRestriction::MergeFrom(from.repeated()); - break; - } - case kMessage: { - mutable_message()->::bgs::protocol::MessageFieldRestriction::MergeFrom(from.message()); - break; - } - case kEntityId: { - mutable_entity_id()->::bgs::protocol::EntityIdRestriction::MergeFrom(from.entity_id()); - break; - } - case kBytes: { - mutable_bytes()->::bgs::protocol::StringFieldRestriction::MergeFrom(from.bytes()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FieldRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldRestriction::CopyFrom(const FieldRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldRestriction::IsInitialized() const { - return true; -} - void FieldRestriction::Swap(FieldRestriction* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FieldRestriction::GetMetadata() const { @@ -1485,432 +740,9 @@ void RepeatedFieldRestriction::clear_type() { _oneof_case_[0] = TYPE_NOT_SET; } -void RepeatedFieldRestriction::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_size()) { - if (size_ != NULL) size_->::bgs::protocol::UnsignedIntRange::Clear(); - } - unique_ = false; - } - clear_type(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RepeatedFieldRestriction::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.RepeatedFieldRestriction) - 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.UnsignedIntRange size = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_size())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_unique; - break; - } - - // optional bool unique = 2; - case 2: { - if (tag == 16) { - parse_unique: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &unique_))); - set_has_unique(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_signed; - break; - } - - // optional .bgs.protocol.SignedFieldRestriction signed = 3; - case 3: { - if (tag == 26) { - parse_signed: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_signed_())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_unsigned; - break; - } - - // optional .bgs.protocol.UnsignedFieldRestriction unsigned = 4; - case 4: { - if (tag == 34) { - parse_unsigned: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_unsigned_())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_float; - break; - } - - // optional .bgs.protocol.FloatFieldRestriction float = 5; - case 5: { - if (tag == 42) { - parse_float: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_float_())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_string; - break; - } - - // optional .bgs.protocol.StringFieldRestriction string = 6; - case 6: { - if (tag == 50) { - parse_string: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_string())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_entity_id; - break; - } - - // optional .bgs.protocol.EntityIdRestriction entity_id = 7; - case 7: { - if (tag == 58) { - parse_entity_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_bytes; - break; - } - - // optional .bgs.protocol.StringFieldRestriction bytes = 8; - case 8: { - if (tag == 66) { - parse_bytes: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bytes())); - } 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.RepeatedFieldRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.RepeatedFieldRestriction) - return false; -#undef DO_ -} - -void RepeatedFieldRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.RepeatedFieldRestriction) - // optional .bgs.protocol.UnsignedIntRange size = 1; - if (has_size()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->size(), output); - } - - // optional bool unique = 2; - if (has_unique()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->unique(), output); - } - - // optional .bgs.protocol.SignedFieldRestriction signed = 3; - if (has_signed_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->signed_(), output); - } - - // optional .bgs.protocol.UnsignedFieldRestriction unsigned = 4; - if (has_unsigned_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->unsigned_(), output); - } - - // optional .bgs.protocol.FloatFieldRestriction float = 5; - if (has_float_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->float_(), output); - } - - // optional .bgs.protocol.StringFieldRestriction string = 6; - if (has_string()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->string(), output); - } - - // optional .bgs.protocol.EntityIdRestriction entity_id = 7; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->entity_id(), output); - } - - // optional .bgs.protocol.StringFieldRestriction bytes = 8; - if (has_bytes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->bytes(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.RepeatedFieldRestriction) -} - -::google::protobuf::uint8* RepeatedFieldRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.RepeatedFieldRestriction) - // optional .bgs.protocol.UnsignedIntRange size = 1; - if (has_size()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->size(), target); - } - - // optional bool unique = 2; - if (has_unique()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->unique(), target); - } - - // optional .bgs.protocol.SignedFieldRestriction signed = 3; - if (has_signed_()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->signed_(), target); - } - - // optional .bgs.protocol.UnsignedFieldRestriction unsigned = 4; - if (has_unsigned_()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->unsigned_(), target); - } - - // optional .bgs.protocol.FloatFieldRestriction float = 5; - if (has_float_()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->float_(), target); - } - - // optional .bgs.protocol.StringFieldRestriction string = 6; - if (has_string()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->string(), target); - } - - // optional .bgs.protocol.EntityIdRestriction entity_id = 7; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->entity_id(), target); - } - - // optional .bgs.protocol.StringFieldRestriction bytes = 8; - if (has_bytes()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->bytes(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.RepeatedFieldRestriction) - return target; -} - -int RepeatedFieldRestriction::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange size = 1; - if (has_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->size()); - } - - // optional bool unique = 2; - if (has_unique()) { - total_size += 1 + 1; - } - - } - switch (type_case()) { - // optional .bgs.protocol.SignedFieldRestriction signed = 3; - case kSigned: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->signed_()); - break; - } - // optional .bgs.protocol.UnsignedFieldRestriction unsigned = 4; - case kUnsigned: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->unsigned_()); - break; - } - // optional .bgs.protocol.FloatFieldRestriction float = 5; - case kFloat: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->float_()); - break; - } - // optional .bgs.protocol.StringFieldRestriction string = 6; - case kString: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->string()); - break; - } - // optional .bgs.protocol.EntityIdRestriction entity_id = 7; - case kEntityId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - break; - } - // optional .bgs.protocol.StringFieldRestriction bytes = 8; - case kBytes: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->bytes()); - 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 RepeatedFieldRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RepeatedFieldRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RepeatedFieldRestriction::MergeFrom(const RepeatedFieldRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - switch (from.type_case()) { - case kSigned: { - mutable_signed_()->::bgs::protocol::SignedFieldRestriction::MergeFrom(from.signed_()); - break; - } - case kUnsigned: { - mutable_unsigned_()->::bgs::protocol::UnsignedFieldRestriction::MergeFrom(from.unsigned_()); - break; - } - case kFloat: { - mutable_float_()->::bgs::protocol::FloatFieldRestriction::MergeFrom(from.float_()); - break; - } - case kString: { - mutable_string()->::bgs::protocol::StringFieldRestriction::MergeFrom(from.string()); - break; - } - case kEntityId: { - mutable_entity_id()->::bgs::protocol::EntityIdRestriction::MergeFrom(from.entity_id()); - break; - } - case kBytes: { - mutable_bytes()->::bgs::protocol::StringFieldRestriction::MergeFrom(from.bytes()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_size()) { - mutable_size()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.size()); - } - if (from.has_unique()) { - set_unique(from.unique()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RepeatedFieldRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RepeatedFieldRestriction::CopyFrom(const RepeatedFieldRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RepeatedFieldRestriction::IsInitialized() const { - return true; -} - void RepeatedFieldRestriction::Swap(RepeatedFieldRestriction* other) { if (other != this) { - std::swap(size_, other->size_); - std::swap(unique_, other->unique_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RepeatedFieldRestriction::GetMetadata() const { @@ -1938,249 +770,54 @@ void SignedFieldRestriction::InitAsDefaultInstance() { limits_ = const_cast< ::bgs::protocol::SignedIntRange*>(&::bgs::protocol::SignedIntRange::default_instance()); } -SignedFieldRestriction::SignedFieldRestriction(const SignedFieldRestriction& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.SignedFieldRestriction) -} - -void SignedFieldRestriction::SharedCtor() { - _cached_size_ = 0; - limits_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SignedFieldRestriction::~SignedFieldRestriction() { - // @@protoc_insertion_point(destructor:bgs.protocol.SignedFieldRestriction) - SharedDtor(); -} - -void SignedFieldRestriction::SharedDtor() { - if (this != default_instance_) { - delete limits_; - } -} - -void SignedFieldRestriction::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SignedFieldRestriction::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SignedFieldRestriction_descriptor_; -} - -const SignedFieldRestriction& SignedFieldRestriction::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_global_5fextensions_2ffield_5foptions_2eproto(); - return *default_instance_; -} - -SignedFieldRestriction* SignedFieldRestriction::default_instance_ = NULL; - -SignedFieldRestriction* SignedFieldRestriction::New() const { - return new SignedFieldRestriction; -} - -void SignedFieldRestriction::Clear() { - if (has_limits()) { - if (limits_ != NULL) limits_->::bgs::protocol::SignedIntRange::Clear(); - } - exclude_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SignedFieldRestriction::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.SignedFieldRestriction) - 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.SignedIntRange limits = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_limits())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_exclude; - break; - } - - // repeated sint64 exclude = 2; - case 2: { - if (tag == 16) { - parse_exclude: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( - 1, 16, input, this->mutable_exclude()))); - } else if (tag == 18) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( - input, this->mutable_exclude()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_exclude; - 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.SignedFieldRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.SignedFieldRestriction) - return false; -#undef DO_ -} - -void SignedFieldRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.SignedFieldRestriction) - // optional .bgs.protocol.SignedIntRange limits = 1; - if (has_limits()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->limits(), output); - } - - // repeated sint64 exclude = 2; - for (int i = 0; i < this->exclude_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteSInt64( - 2, this->exclude(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.SignedFieldRestriction) -} - -::google::protobuf::uint8* SignedFieldRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.SignedFieldRestriction) - // optional .bgs.protocol.SignedIntRange limits = 1; - if (has_limits()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->limits(), target); - } - - // repeated sint64 exclude = 2; - for (int i = 0; i < this->exclude_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteSInt64ToArray(2, this->exclude(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.SignedFieldRestriction) - return target; +SignedFieldRestriction::SignedFieldRestriction(const SignedFieldRestriction& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.SignedFieldRestriction) } -int SignedFieldRestriction::ByteSize() const { - int total_size = 0; +void SignedFieldRestriction::SharedCtor() { + _cached_size_ = 0; + limits_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.SignedIntRange limits = 1; - if (has_limits()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->limits()); - } +SignedFieldRestriction::~SignedFieldRestriction() { + // @@protoc_insertion_point(destructor:bgs.protocol.SignedFieldRestriction) + SharedDtor(); +} +void SignedFieldRestriction::SharedDtor() { + if (this != default_instance_) { + delete limits_; } - // repeated sint64 exclude = 2; - { - int data_size = 0; - for (int i = 0; i < this->exclude_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - SInt64Size(this->exclude(i)); - } - total_size += 1 * this->exclude_size() + data_size; - } +} - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } +void SignedFieldRestriction::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SignedFieldRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SignedFieldRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } } - -void SignedFieldRestriction::MergeFrom(const SignedFieldRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - exclude_.MergeFrom(from.exclude_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_limits()) { - mutable_limits()->::bgs::protocol::SignedIntRange::MergeFrom(from.limits()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +const ::google::protobuf::Descriptor* SignedFieldRestriction::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SignedFieldRestriction_descriptor_; } -void SignedFieldRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const SignedFieldRestriction& SignedFieldRestriction::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_global_5fextensions_2ffield_5foptions_2eproto(); + return *default_instance_; } -void SignedFieldRestriction::CopyFrom(const SignedFieldRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +SignedFieldRestriction* SignedFieldRestriction::default_instance_ = NULL; -bool SignedFieldRestriction::IsInitialized() const { - return true; +SignedFieldRestriction* SignedFieldRestriction::New() const { + return new SignedFieldRestriction; } void SignedFieldRestriction::Swap(SignedFieldRestriction* other) { if (other != this) { - std::swap(limits_, other->limits_); - exclude_.Swap(&other->exclude_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SignedFieldRestriction::GetMetadata() const { @@ -2253,204 +890,9 @@ UnsignedFieldRestriction* UnsignedFieldRestriction::New() const { return new UnsignedFieldRestriction; } -void UnsignedFieldRestriction::Clear() { - if (has_limits()) { - if (limits_ != NULL) limits_->::bgs::protocol::UnsignedIntRange::Clear(); - } - exclude_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsignedFieldRestriction::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.UnsignedFieldRestriction) - 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.UnsignedIntRange limits = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_limits())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_exclude; - break; - } - - // repeated uint64 exclude = 2; - case 2: { - if (tag == 16) { - parse_exclude: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 16, input, this->mutable_exclude()))); - } else if (tag == 18) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_exclude()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_exclude; - 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.UnsignedFieldRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.UnsignedFieldRestriction) - return false; -#undef DO_ -} - -void UnsignedFieldRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.UnsignedFieldRestriction) - // optional .bgs.protocol.UnsignedIntRange limits = 1; - if (has_limits()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->limits(), output); - } - - // repeated uint64 exclude = 2; - for (int i = 0; i < this->exclude_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64( - 2, this->exclude(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.UnsignedFieldRestriction) -} - -::google::protobuf::uint8* UnsignedFieldRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.UnsignedFieldRestriction) - // optional .bgs.protocol.UnsignedIntRange limits = 1; - if (has_limits()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->limits(), target); - } - - // repeated uint64 exclude = 2; - for (int i = 0; i < this->exclude_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64ToArray(2, this->exclude(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.UnsignedFieldRestriction) - return target; -} - -int UnsignedFieldRestriction::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange limits = 1; - if (has_limits()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->limits()); - } - - } - // repeated uint64 exclude = 2; - { - int data_size = 0; - for (int i = 0; i < this->exclude_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->exclude(i)); - } - total_size += 1 * this->exclude_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 UnsignedFieldRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsignedFieldRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsignedFieldRestriction::MergeFrom(const UnsignedFieldRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - exclude_.MergeFrom(from.exclude_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_limits()) { - mutable_limits()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.limits()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsignedFieldRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsignedFieldRestriction::CopyFrom(const UnsignedFieldRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsignedFieldRestriction::IsInitialized() const { - return true; -} - void UnsignedFieldRestriction::Swap(UnsignedFieldRestriction* other) { if (other != this) { - std::swap(limits_, other->limits_); - exclude_.Swap(&other->exclude_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsignedFieldRestriction::GetMetadata() const { @@ -2523,201 +965,9 @@ FloatFieldRestriction* FloatFieldRestriction::New() const { return new FloatFieldRestriction; } -void FloatFieldRestriction::Clear() { - if (has_limits()) { - if (limits_ != NULL) limits_->::bgs::protocol::FloatRange::Clear(); - } - exclude_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FloatFieldRestriction::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.FloatFieldRestriction) - 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.FloatRange limits = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_limits())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_exclude; - break; - } - - // repeated float exclude = 2; - case 2: { - if (tag == 21) { - parse_exclude: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 21, input, this->mutable_exclude()))); - } else if (tag == 18) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_exclude()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_exclude; - 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.FloatFieldRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.FloatFieldRestriction) - return false; -#undef DO_ -} - -void FloatFieldRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.FloatFieldRestriction) - // optional .bgs.protocol.FloatRange limits = 1; - if (has_limits()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->limits(), output); - } - - // repeated float exclude = 2; - for (int i = 0; i < this->exclude_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 2, this->exclude(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.FloatFieldRestriction) -} - -::google::protobuf::uint8* FloatFieldRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.FloatFieldRestriction) - // optional .bgs.protocol.FloatRange limits = 1; - if (has_limits()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->limits(), target); - } - - // repeated float exclude = 2; - for (int i = 0; i < this->exclude_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(2, this->exclude(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.FloatFieldRestriction) - return target; -} - -int FloatFieldRestriction::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.FloatRange limits = 1; - if (has_limits()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->limits()); - } - - } - // repeated float exclude = 2; - { - int data_size = 0; - data_size = 4 * this->exclude_size(); - total_size += 1 * this->exclude_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 FloatFieldRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FloatFieldRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FloatFieldRestriction::MergeFrom(const FloatFieldRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - exclude_.MergeFrom(from.exclude_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_limits()) { - mutable_limits()->::bgs::protocol::FloatRange::MergeFrom(from.limits()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FloatFieldRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FloatFieldRestriction::CopyFrom(const FloatFieldRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FloatFieldRestriction::IsInitialized() const { - return true; -} - void FloatFieldRestriction::Swap(FloatFieldRestriction* other) { if (other != this) { - std::swap(limits_, other->limits_); - exclude_.Swap(&other->exclude_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FloatFieldRestriction::GetMetadata() const { @@ -2791,209 +1041,9 @@ StringFieldRestriction* StringFieldRestriction::New() const { return new StringFieldRestriction; } -void StringFieldRestriction::Clear() { - if (has_size()) { - if (size_ != NULL) size_->::bgs::protocol::UnsignedIntRange::Clear(); - } - exclude_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StringFieldRestriction::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.StringFieldRestriction) - 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.UnsignedIntRange size = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_size())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_exclude; - break; - } - - // repeated string exclude = 2; - case 2: { - if (tag == 18) { - parse_exclude: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_exclude())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->exclude(this->exclude_size() - 1).data(), - this->exclude(this->exclude_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "exclude"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_exclude; - 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.StringFieldRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.StringFieldRestriction) - return false; -#undef DO_ -} - -void StringFieldRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.StringFieldRestriction) - // optional .bgs.protocol.UnsignedIntRange size = 1; - if (has_size()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->size(), output); - } - - // repeated string exclude = 2; - for (int i = 0; i < this->exclude_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->exclude(i).data(), this->exclude(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "exclude"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->exclude(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.StringFieldRestriction) -} - -::google::protobuf::uint8* StringFieldRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.StringFieldRestriction) - // optional .bgs.protocol.UnsignedIntRange size = 1; - if (has_size()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->size(), target); - } - - // repeated string exclude = 2; - for (int i = 0; i < this->exclude_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->exclude(i).data(), this->exclude(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "exclude"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->exclude(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.StringFieldRestriction) - return target; -} - -int StringFieldRestriction::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.UnsignedIntRange size = 1; - if (has_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->size()); - } - - } - // repeated string exclude = 2; - total_size += 1 * this->exclude_size(); - for (int i = 0; i < this->exclude_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->exclude(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 StringFieldRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StringFieldRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StringFieldRestriction::MergeFrom(const StringFieldRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - exclude_.MergeFrom(from.exclude_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_size()) { - mutable_size()->::bgs::protocol::UnsignedIntRange::MergeFrom(from.size()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StringFieldRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StringFieldRestriction::CopyFrom(const StringFieldRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StringFieldRestriction::IsInitialized() const { - return true; -} - void StringFieldRestriction::Swap(StringFieldRestriction* other) { if (other != this) { - std::swap(size_, other->size_); - exclude_.Swap(&other->exclude_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StringFieldRestriction::GetMetadata() const { @@ -3094,211 +1144,9 @@ EntityIdRestriction* EntityIdRestriction::New() const { return new EntityIdRestriction; } -void EntityIdRestriction::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(needed_, kind_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool EntityIdRestriction::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.EntityIdRestriction) - 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 needed = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &needed_))); - set_has_needed(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_kind; - break; - } - - // optional .bgs.protocol.EntityIdRestriction.Kind kind = 2; - case 2: { - if (tag == 16) { - parse_kind: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::EntityIdRestriction_Kind_IsValid(value)) { - set_kind(static_cast< ::bgs::protocol::EntityIdRestriction_Kind >(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.EntityIdRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.EntityIdRestriction) - return false; -#undef DO_ -} - -void EntityIdRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.EntityIdRestriction) - // optional bool needed = 1; - if (has_needed()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->needed(), output); - } - - // optional .bgs.protocol.EntityIdRestriction.Kind kind = 2; - if (has_kind()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->kind(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.EntityIdRestriction) -} - -::google::protobuf::uint8* EntityIdRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.EntityIdRestriction) - // optional bool needed = 1; - if (has_needed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->needed(), target); - } - - // optional .bgs.protocol.EntityIdRestriction.Kind kind = 2; - if (has_kind()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->kind(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.EntityIdRestriction) - return target; -} - -int EntityIdRestriction::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool needed = 1; - if (has_needed()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.EntityIdRestriction.Kind kind = 2; - if (has_kind()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind()); - } - - } - 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 EntityIdRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const EntityIdRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void EntityIdRestriction::MergeFrom(const EntityIdRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_needed()) { - set_needed(from.needed()); - } - if (from.has_kind()) { - set_kind(from.kind()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void EntityIdRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityIdRestriction::CopyFrom(const EntityIdRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityIdRestriction::IsInitialized() const { - return true; -} - void EntityIdRestriction::Swap(EntityIdRestriction* other) { if (other != this) { - std::swap(needed_, other->needed_); - std::swap(kind_, other->kind_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata EntityIdRestriction::GetMetadata() const { @@ -3368,155 +1216,9 @@ MessageFieldRestriction* MessageFieldRestriction::New() const { return new MessageFieldRestriction; } -void MessageFieldRestriction::Clear() { - needed_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MessageFieldRestriction::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.MessageFieldRestriction) - 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 needed = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &needed_))); - set_has_needed(); - } 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.MessageFieldRestriction) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.MessageFieldRestriction) - return false; -#undef DO_ -} - -void MessageFieldRestriction::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.MessageFieldRestriction) - // optional bool needed = 1; - if (has_needed()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->needed(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.MessageFieldRestriction) -} - -::google::protobuf::uint8* MessageFieldRestriction::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.MessageFieldRestriction) - // optional bool needed = 1; - if (has_needed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->needed(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.MessageFieldRestriction) - return target; -} - -int MessageFieldRestriction::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool needed = 1; - if (has_needed()) { - 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 MessageFieldRestriction::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MessageFieldRestriction* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MessageFieldRestriction::MergeFrom(const MessageFieldRestriction& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_needed()) { - set_needed(from.needed()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MessageFieldRestriction::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MessageFieldRestriction::CopyFrom(const MessageFieldRestriction& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MessageFieldRestriction::IsInitialized() const { - return true; -} - void MessageFieldRestriction::Swap(MessageFieldRestriction* other) { if (other != this) { - std::swap(needed_, other->needed_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MessageFieldRestriction::GetMetadata() const { 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 a055030ff56..f5007f4bb6b 100644 --- a/src/server/proto/Client/global_extensions/field_options.pb.h +++ b/src/server/proto/Client/global_extensions/field_options.pb.h @@ -120,19 +120,6 @@ class TC_PROTO_API BGSFieldOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BGSFieldOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BGSFieldOptions& from); - void MergeFrom(const BGSFieldOptions& 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(); @@ -256,19 +243,6 @@ class TC_PROTO_API FieldRestriction : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FieldRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldRestriction& from); - void MergeFrom(const FieldRestriction& 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(); @@ -432,19 +406,6 @@ class TC_PROTO_API RepeatedFieldRestriction : public ::google::protobuf::Message // implements Message ---------------------------------------------- RepeatedFieldRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RepeatedFieldRestriction& from); - void MergeFrom(const RepeatedFieldRestriction& 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(); @@ -598,19 +559,6 @@ class TC_PROTO_API SignedFieldRestriction : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SignedFieldRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SignedFieldRestriction& from); - void MergeFrom(const SignedFieldRestriction& 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(); @@ -692,19 +640,6 @@ class TC_PROTO_API UnsignedFieldRestriction : public ::google::protobuf::Message // implements Message ---------------------------------------------- UnsignedFieldRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsignedFieldRestriction& from); - void MergeFrom(const UnsignedFieldRestriction& 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(); @@ -786,19 +721,6 @@ class TC_PROTO_API FloatFieldRestriction : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FloatFieldRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FloatFieldRestriction& from); - void MergeFrom(const FloatFieldRestriction& 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(); @@ -880,19 +802,6 @@ class TC_PROTO_API StringFieldRestriction : public ::google::protobuf::Message { // implements Message ---------------------------------------------- StringFieldRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StringFieldRestriction& from); - void MergeFrom(const StringFieldRestriction& 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(); @@ -978,19 +887,6 @@ class TC_PROTO_API EntityIdRestriction : public ::google::protobuf::Message { // implements Message ---------------------------------------------- EntityIdRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EntityIdRestriction& from); - void MergeFrom(const EntityIdRestriction& 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(); @@ -1095,19 +991,6 @@ class TC_PROTO_API MessageFieldRestriction : public ::google::protobuf::Message // implements Message ---------------------------------------------- MessageFieldRestriction* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MessageFieldRestriction& from); - void MergeFrom(const MessageFieldRestriction& 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(); diff --git a/src/server/proto/Client/global_extensions/message_options.pb.cc b/src/server/proto/Client/global_extensions/message_options.pb.cc index 8b553b675c9..f057eb72ecb 100644 --- a/src/server/proto/Client/global_extensions/message_options.pb.cc +++ b/src/server/proto/Client/global_extensions/message_options.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "global_extensions/message_options.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -89,7 +87,7 @@ void protobuf_AddDesc_global_5fextensions_2fmessage_5foptions_2eproto() { "\002 \001(\010:[\n\017message_options\022\037.google.protob" "uf.MessageOptions\030\220\277\005 \001(\0132\037.bgs.protocol" ".BGSMessageOptionsB&\n\rbnet.protocolB\023Mes" - "sageOptionsProtoH\001", 298); + "sageOptionsProtoH\002", 298); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "global_extensions/message_options.proto", &protobuf_RegisterTypes); BGSMessageOptions::default_instance_ = new BGSMessageOptions(); @@ -168,203 +166,9 @@ BGSMessageOptions* BGSMessageOptions::New() const { return new BGSMessageOptions; } -void BGSMessageOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(custom_select_shard_, custom_validator_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BGSMessageOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.BGSMessageOptions) - 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 custom_select_shard = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &custom_select_shard_))); - set_has_custom_select_shard(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_custom_validator; - break; - } - - // optional bool custom_validator = 2; - case 2: { - if (tag == 16) { - parse_custom_validator: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &custom_validator_))); - set_has_custom_validator(); - } 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.BGSMessageOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.BGSMessageOptions) - return false; -#undef DO_ -} - -void BGSMessageOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.BGSMessageOptions) - // optional bool custom_select_shard = 1; - if (has_custom_select_shard()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->custom_select_shard(), output); - } - - // optional bool custom_validator = 2; - if (has_custom_validator()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->custom_validator(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.BGSMessageOptions) -} - -::google::protobuf::uint8* BGSMessageOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.BGSMessageOptions) - // optional bool custom_select_shard = 1; - if (has_custom_select_shard()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->custom_select_shard(), target); - } - - // optional bool custom_validator = 2; - if (has_custom_validator()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->custom_validator(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.BGSMessageOptions) - return target; -} - -int BGSMessageOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool custom_select_shard = 1; - if (has_custom_select_shard()) { - total_size += 1 + 1; - } - - // optional bool custom_validator = 2; - if (has_custom_validator()) { - 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 BGSMessageOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BGSMessageOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BGSMessageOptions::MergeFrom(const BGSMessageOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_custom_select_shard()) { - set_custom_select_shard(from.custom_select_shard()); - } - if (from.has_custom_validator()) { - set_custom_validator(from.custom_validator()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BGSMessageOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BGSMessageOptions::CopyFrom(const BGSMessageOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BGSMessageOptions::IsInitialized() const { - return true; -} - void BGSMessageOptions::Swap(BGSMessageOptions* other) { if (other != this) { - std::swap(custom_select_shard_, other->custom_select_shard_); - std::swap(custom_validator_, other->custom_validator_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BGSMessageOptions::GetMetadata() const { diff --git a/src/server/proto/Client/global_extensions/message_options.pb.h b/src/server/proto/Client/global_extensions/message_options.pb.h index 41a01488d62..d447a4aca1b 100644 --- a/src/server/proto/Client/global_extensions/message_options.pb.h +++ b/src/server/proto/Client/global_extensions/message_options.pb.h @@ -68,19 +68,6 @@ class TC_PROTO_API BGSMessageOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BGSMessageOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BGSMessageOptions& from); - void MergeFrom(const BGSMessageOptions& 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(); diff --git a/src/server/proto/Client/global_extensions/method_options.pb.cc b/src/server/proto/Client/global_extensions/method_options.pb.cc index c6451c66b33..3b980ceb509 100644 --- a/src/server/proto/Client/global_extensions/method_options.pb.cc +++ b/src/server/proto/Client/global_extensions/method_options.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "global_extensions/method_options.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -100,7 +98,7 @@ void protobuf_AddDesc_global_5fextensions_2fmethod_5foptions_2eproto() { "e\030\007 \001(\010:X\n\016method_options\022\036.google.proto" "buf.MethodOptions\030\220\277\005 \001(\0132\036.bgs.protocol" ".BGSMethodOptionsB%\n\rbnet.protocolB\022Meth" - "odOptionsProtoH\001", 496); + "odOptionsProtoH\002", 496); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "global_extensions/method_options.proto", &protobuf_RegisterTypes); BGSMethodOptions::default_instance_ = new BGSMethodOptions(); @@ -196,426 +194,9 @@ BGSMethodOptions* BGSMethodOptions::New() const { return new BGSMethodOptions; } -void BGSMethodOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 127) { - ZR_(id_, client_identity_routing_); - ZR_(enable_fanout_, handle_destination_unreachable_); - if (has_legacy_fanout_replacement()) { - if (legacy_fanout_replacement_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - legacy_fanout_replacement_->clear(); - } - } - if (has_forward_key()) { - if (forward_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - forward_key_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BGSMethodOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.BGSMethodOptions) - 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 id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_client_identity_routing; - break; - } - - // optional .bgs.protocol.ClientIdentityRoutingType client_identity_routing = 2; - case 2: { - if (tag == 16) { - parse_client_identity_routing: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::ClientIdentityRoutingType_IsValid(value)) { - set_client_identity_routing(static_cast< ::bgs::protocol::ClientIdentityRoutingType >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_enable_fanout; - break; - } - - // optional bool enable_fanout = 3; - case 3: { - if (tag == 24) { - parse_enable_fanout: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &enable_fanout_))); - set_has_enable_fanout(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_legacy_fanout_replacement; - break; - } - - // optional string legacy_fanout_replacement = 4; - case 4: { - if (tag == 34) { - parse_legacy_fanout_replacement: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_legacy_fanout_replacement())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->legacy_fanout_replacement().data(), this->legacy_fanout_replacement().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "legacy_fanout_replacement"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_forward_key; - break; - } - - // optional string forward_key = 5; - case 5: { - if (tag == 42) { - parse_forward_key: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_forward_key())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->forward_key().data(), this->forward_key().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "forward_key"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_idempotent; - break; - } - - // optional bool idempotent = 6; - case 6: { - if (tag == 48) { - parse_idempotent: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &idempotent_))); - set_has_idempotent(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_handle_destination_unreachable; - break; - } - - // optional bool handle_destination_unreachable = 7; - case 7: { - if (tag == 56) { - parse_handle_destination_unreachable: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &handle_destination_unreachable_))); - set_has_handle_destination_unreachable(); - } 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.BGSMethodOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.BGSMethodOptions) - return false; -#undef DO_ -} - -void BGSMethodOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.BGSMethodOptions) - // optional uint32 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->id(), output); - } - - // optional .bgs.protocol.ClientIdentityRoutingType client_identity_routing = 2; - if (has_client_identity_routing()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->client_identity_routing(), output); - } - - // optional bool enable_fanout = 3; - if (has_enable_fanout()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->enable_fanout(), output); - } - - // optional string legacy_fanout_replacement = 4; - if (has_legacy_fanout_replacement()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->legacy_fanout_replacement().data(), this->legacy_fanout_replacement().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "legacy_fanout_replacement"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->legacy_fanout_replacement(), output); - } - - // optional string forward_key = 5; - if (has_forward_key()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->forward_key().data(), this->forward_key().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "forward_key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->forward_key(), output); - } - - // optional bool idempotent = 6; - if (has_idempotent()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->idempotent(), output); - } - - // optional bool handle_destination_unreachable = 7; - if (has_handle_destination_unreachable()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->handle_destination_unreachable(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.BGSMethodOptions) -} - -::google::protobuf::uint8* BGSMethodOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.BGSMethodOptions) - // optional uint32 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->id(), target); - } - - // optional .bgs.protocol.ClientIdentityRoutingType client_identity_routing = 2; - if (has_client_identity_routing()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->client_identity_routing(), target); - } - - // optional bool enable_fanout = 3; - if (has_enable_fanout()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->enable_fanout(), target); - } - - // optional string legacy_fanout_replacement = 4; - if (has_legacy_fanout_replacement()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->legacy_fanout_replacement().data(), this->legacy_fanout_replacement().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "legacy_fanout_replacement"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->legacy_fanout_replacement(), target); - } - - // optional string forward_key = 5; - if (has_forward_key()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->forward_key().data(), this->forward_key().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "forward_key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->forward_key(), target); - } - - // optional bool idempotent = 6; - if (has_idempotent()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->idempotent(), target); - } - - // optional bool handle_destination_unreachable = 7; - if (has_handle_destination_unreachable()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->handle_destination_unreachable(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.BGSMethodOptions) - return target; -} - -int BGSMethodOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->id()); - } - - // optional .bgs.protocol.ClientIdentityRoutingType client_identity_routing = 2; - if (has_client_identity_routing()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->client_identity_routing()); - } - - // optional bool enable_fanout = 3; - if (has_enable_fanout()) { - total_size += 1 + 1; - } - - // optional string legacy_fanout_replacement = 4; - if (has_legacy_fanout_replacement()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->legacy_fanout_replacement()); - } - - // optional string forward_key = 5; - if (has_forward_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->forward_key()); - } - - // optional bool idempotent = 6; - if (has_idempotent()) { - total_size += 1 + 1; - } - - // optional bool handle_destination_unreachable = 7; - if (has_handle_destination_unreachable()) { - 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 BGSMethodOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BGSMethodOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BGSMethodOptions::MergeFrom(const BGSMethodOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_client_identity_routing()) { - set_client_identity_routing(from.client_identity_routing()); - } - if (from.has_enable_fanout()) { - set_enable_fanout(from.enable_fanout()); - } - if (from.has_legacy_fanout_replacement()) { - set_legacy_fanout_replacement(from.legacy_fanout_replacement()); - } - if (from.has_forward_key()) { - set_forward_key(from.forward_key()); - } - if (from.has_idempotent()) { - set_idempotent(from.idempotent()); - } - if (from.has_handle_destination_unreachable()) { - set_handle_destination_unreachable(from.handle_destination_unreachable()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BGSMethodOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BGSMethodOptions::CopyFrom(const BGSMethodOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BGSMethodOptions::IsInitialized() const { - return true; -} - void BGSMethodOptions::Swap(BGSMethodOptions* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(client_identity_routing_, other->client_identity_routing_); - std::swap(enable_fanout_, other->enable_fanout_); - std::swap(legacy_fanout_replacement_, other->legacy_fanout_replacement_); - std::swap(forward_key_, other->forward_key_); - std::swap(idempotent_, other->idempotent_); - std::swap(handle_destination_unreachable_, other->handle_destination_unreachable_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BGSMethodOptions::GetMetadata() const { 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 0df808b81b3..0e325e98b09 100644 --- a/src/server/proto/Client/global_extensions/method_options.pb.h +++ b/src/server/proto/Client/global_extensions/method_options.pb.h @@ -69,19 +69,6 @@ class TC_PROTO_API BGSMethodOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BGSMethodOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BGSMethodOptions& from); - void MergeFrom(const BGSMethodOptions& 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(); diff --git a/src/server/proto/Client/global_extensions/range.pb.cc b/src/server/proto/Client/global_extensions/range.pb.cc index 0272da0cb06..db0ab65cc02 100644 --- a/src/server/proto/Client/global_extensions/range.pb.cc +++ b/src/server/proto/Client/global_extensions/range.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "global_extensions/range.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -131,7 +129,7 @@ void protobuf_AddDesc_global_5fextensions_2frange_2eproto() { "tocol\",\n\020UnsignedIntRange\022\013\n\003min\030\001 \001(\004\022\013" "\n\003max\030\002 \001(\004\"*\n\016SignedIntRange\022\013\n\003min\030\001 \001" "(\003\022\013\n\003max\030\002 \001(\003\"&\n\nFloatRange\022\013\n\003min\030\001 \001" - "(\002\022\013\n\003max\030\002 \001(\002B\002H\001", 179); + "(\002\022\013\n\003max\030\002 \001(\002B\002H\002", 179); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "global_extensions/range.proto", &protobuf_RegisterTypes); UnsignedIntRange::default_instance_ = new UnsignedIntRange(); @@ -210,207 +208,9 @@ UnsignedIntRange* UnsignedIntRange::New() const { return new UnsignedIntRange; } -void UnsignedIntRange::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(min_, max_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsignedIntRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.UnsignedIntRange) - 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 uint64 min = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &min_))); - set_has_min(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_max; - break; - } - - // optional uint64 max = 2; - case 2: { - if (tag == 16) { - parse_max: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &max_))); - set_has_max(); - } 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.UnsignedIntRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.UnsignedIntRange) - return false; -#undef DO_ -} - -void UnsignedIntRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.UnsignedIntRange) - // optional uint64 min = 1; - if (has_min()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->min(), output); - } - - // optional uint64 max = 2; - if (has_max()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->max(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.UnsignedIntRange) -} - -::google::protobuf::uint8* UnsignedIntRange::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.UnsignedIntRange) - // optional uint64 min = 1; - if (has_min()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->min(), target); - } - - // optional uint64 max = 2; - if (has_max()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->max(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.UnsignedIntRange) - return target; -} - -int UnsignedIntRange::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 min = 1; - if (has_min()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->min()); - } - - // optional uint64 max = 2; - if (has_max()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->max()); - } - - } - 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 UnsignedIntRange::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsignedIntRange* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsignedIntRange::MergeFrom(const UnsignedIntRange& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_min()) { - set_min(from.min()); - } - if (from.has_max()) { - set_max(from.max()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsignedIntRange::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsignedIntRange::CopyFrom(const UnsignedIntRange& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsignedIntRange::IsInitialized() const { - return true; -} - void UnsignedIntRange::Swap(UnsignedIntRange* other) { if (other != this) { - std::swap(min_, other->min_); - std::swap(max_, other->max_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsignedIntRange::GetMetadata() const { @@ -482,207 +282,9 @@ SignedIntRange* SignedIntRange::New() const { return new SignedIntRange; } -void SignedIntRange::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(min_, max_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SignedIntRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.SignedIntRange) - 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 int64 min = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &min_))); - set_has_min(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_max; - break; - } - - // optional int64 max = 2; - case 2: { - if (tag == 16) { - parse_max: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_))); - set_has_max(); - } 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.SignedIntRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.SignedIntRange) - return false; -#undef DO_ -} - -void SignedIntRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.SignedIntRange) - // optional int64 min = 1; - if (has_min()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->min(), output); - } - - // optional int64 max = 2; - if (has_max()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.SignedIntRange) -} - -::google::protobuf::uint8* SignedIntRange::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.SignedIntRange) - // optional int64 min = 1; - if (has_min()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->min(), target); - } - - // optional int64 max = 2; - if (has_max()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.SignedIntRange) - return target; -} - -int SignedIntRange::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional int64 min = 1; - if (has_min()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->min()); - } - - // optional int64 max = 2; - if (has_max()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max()); - } - - } - 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 SignedIntRange::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SignedIntRange* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SignedIntRange::MergeFrom(const SignedIntRange& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_min()) { - set_min(from.min()); - } - if (from.has_max()) { - set_max(from.max()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SignedIntRange::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SignedIntRange::CopyFrom(const SignedIntRange& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SignedIntRange::IsInitialized() const { - return true; -} - void SignedIntRange::Swap(SignedIntRange* other) { if (other != this) { - std::swap(min_, other->min_); - std::swap(max_, other->max_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SignedIntRange::GetMetadata() const { @@ -754,203 +356,9 @@ FloatRange* FloatRange::New() const { return new FloatRange; } -void FloatRange::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(min_, max_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FloatRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.FloatRange) - 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 float min = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &min_))); - set_has_min(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_max; - break; - } - - // optional float max = 2; - case 2: { - if (tag == 21) { - parse_max: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &max_))); - set_has_max(); - } 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.FloatRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.FloatRange) - return false; -#undef DO_ -} - -void FloatRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.FloatRange) - // optional float min = 1; - if (has_min()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->min(), output); - } - - // optional float max = 2; - if (has_max()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->max(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.FloatRange) -} - -::google::protobuf::uint8* FloatRange::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.FloatRange) - // optional float min = 1; - if (has_min()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->min(), target); - } - - // optional float max = 2; - if (has_max()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->max(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.FloatRange) - return target; -} - -int FloatRange::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional float min = 1; - if (has_min()) { - total_size += 1 + 4; - } - - // optional float max = 2; - if (has_max()) { - 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 FloatRange::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FloatRange* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FloatRange::MergeFrom(const FloatRange& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_min()) { - set_min(from.min()); - } - if (from.has_max()) { - set_max(from.max()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FloatRange::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FloatRange::CopyFrom(const FloatRange& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FloatRange::IsInitialized() const { - return true; -} - void FloatRange::Swap(FloatRange* other) { if (other != this) { - std::swap(min_, other->min_); - std::swap(max_, other->max_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FloatRange::GetMetadata() const { diff --git a/src/server/proto/Client/global_extensions/range.pb.h b/src/server/proto/Client/global_extensions/range.pb.h index 967aa20d8b4..9d46e3fa614 100644 --- a/src/server/proto/Client/global_extensions/range.pb.h +++ b/src/server/proto/Client/global_extensions/range.pb.h @@ -69,19 +69,6 @@ class TC_PROTO_API UnsignedIntRange : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UnsignedIntRange* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsignedIntRange& from); - void MergeFrom(const UnsignedIntRange& 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(); @@ -158,19 +145,6 @@ class TC_PROTO_API SignedIntRange : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SignedIntRange* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SignedIntRange& from); - void MergeFrom(const SignedIntRange& 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(); @@ -247,19 +221,6 @@ class TC_PROTO_API FloatRange : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FloatRange* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FloatRange& from); - void MergeFrom(const FloatRange& 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(); diff --git a/src/server/proto/Client/global_extensions/routing.pb.cc b/src/server/proto/Client/global_extensions/routing.pb.cc index 3df32b93f87..fc1d411e059 100644 --- a/src/server/proto/Client/global_extensions/routing.pb.cc +++ b/src/server/proto/Client/global_extensions/routing.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "global_extensions/routing.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -66,7 +64,7 @@ void protobuf_AddDesc_global_5fextensions_2frouting_2eproto() { "LIENT_IDENTITY_ROUTING_BATTLE_NET_ACCOUN" "T\020\001\022(\n$CLIENT_IDENTITY_ROUTING_GAME_ACCO" "UNT\020\002\022\'\n#CLIENT_IDENTITY_ROUTING_INSTANC" - "E_ID\020\003B\002H\001", 250); + "E_ID\020\003B\002H\002", 250); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "global_extensions/routing.proto", &protobuf_RegisterTypes); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_global_5fextensions_2frouting_2eproto); diff --git a/src/server/proto/Client/global_extensions/service_options.pb.cc b/src/server/proto/Client/global_extensions/service_options.pb.cc index 695489b7852..1ac7a37bf15 100644 --- a/src/server/proto/Client/global_extensions/service_options.pb.cc +++ b/src/server/proto/Client/global_extensions/service_options.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "global_extensions/service_options.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -129,7 +127,7 @@ void protobuf_AddDesc_global_5fextensions_2fservice_5foptions_2eproto() { "rvice_options\022\037.google.protobuf.ServiceO" "ptions\030\221\277\005 \001(\0132\037.bgs.protocol.SDKService" "OptionsB&\n\rbnet.protocolB\023ServiceOptions" - "ProtoH\001", 687); + "ProtoH\002", 687); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "global_extensions/service_options.proto", &protobuf_RegisterTypes); BGSServiceOptions::default_instance_ = new BGSServiceOptions(); @@ -255,412 +253,9 @@ BGSServiceOptions* BGSServiceOptions::New() const { return new BGSServiceOptions; } -void BGSServiceOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(version_, resolve_client_instance_); - if (has_descriptor_name()) { - if (descriptor_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - descriptor_name_->clear(); - } - } - if (has_shard_name()) { - if (shard_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - shard_name_->clear(); - } - } - type_ = 0; - if (has_api_type()) { - if (api_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - api_type_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BGSServiceOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.BGSServiceOptions) - 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 descriptor_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_descriptor_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->descriptor_name().data(), this->descriptor_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "descriptor_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_version; - break; - } - - // optional uint32 version = 4; - case 4: { - if (tag == 32) { - parse_version: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &version_))); - set_has_version(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_shard_name; - break; - } - - // optional string shard_name = 5; - case 5: { - if (tag == 42) { - parse_shard_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_shard_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->shard_name().data(), this->shard_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "shard_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_resolve_client_instance; - break; - } - - // optional bool resolve_client_instance = 6; - case 6: { - if (tag == 48) { - parse_resolve_client_instance: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &resolve_client_instance_))); - set_has_resolve_client_instance(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_type; - break; - } - - // optional .bgs.protocol.BGSServiceOptions.ServiceType type = 7; - case 7: { - if (tag == 56) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::BGSServiceOptions_ServiceType_IsValid(value)) { - set_type(static_cast< ::bgs::protocol::BGSServiceOptions_ServiceType >(value)); - } else { - mutable_unknown_fields()->AddVarint(7, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_api_type; - break; - } - - // optional string api_type = 8; - case 8: { - if (tag == 66) { - parse_api_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_api_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->api_type().data(), this->api_type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "api_type"); - } 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.BGSServiceOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.BGSServiceOptions) - return false; -#undef DO_ -} - -void BGSServiceOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.BGSServiceOptions) - // optional string descriptor_name = 1; - if (has_descriptor_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->descriptor_name().data(), this->descriptor_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "descriptor_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->descriptor_name(), output); - } - - // optional uint32 version = 4; - if (has_version()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->version(), output); - } - - // optional string shard_name = 5; - if (has_shard_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->shard_name().data(), this->shard_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "shard_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->shard_name(), output); - } - - // optional bool resolve_client_instance = 6; - if (has_resolve_client_instance()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->resolve_client_instance(), output); - } - - // optional .bgs.protocol.BGSServiceOptions.ServiceType type = 7; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->type(), output); - } - - // optional string api_type = 8; - if (has_api_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->api_type().data(), this->api_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "api_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->api_type(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.BGSServiceOptions) -} - -::google::protobuf::uint8* BGSServiceOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.BGSServiceOptions) - // optional string descriptor_name = 1; - if (has_descriptor_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->descriptor_name().data(), this->descriptor_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "descriptor_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->descriptor_name(), target); - } - - // optional uint32 version = 4; - if (has_version()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->version(), target); - } - - // optional string shard_name = 5; - if (has_shard_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->shard_name().data(), this->shard_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "shard_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->shard_name(), target); - } - - // optional bool resolve_client_instance = 6; - if (has_resolve_client_instance()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->resolve_client_instance(), target); - } - - // optional .bgs.protocol.BGSServiceOptions.ServiceType type = 7; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 7, this->type(), target); - } - - // optional string api_type = 8; - if (has_api_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->api_type().data(), this->api_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "api_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->api_type(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.BGSServiceOptions) - return target; -} - -int BGSServiceOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string descriptor_name = 1; - if (has_descriptor_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->descriptor_name()); - } - - // optional uint32 version = 4; - if (has_version()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->version()); - } - - // optional string shard_name = 5; - if (has_shard_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->shard_name()); - } - - // optional bool resolve_client_instance = 6; - if (has_resolve_client_instance()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.BGSServiceOptions.ServiceType type = 7; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional string api_type = 8; - if (has_api_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->api_type()); - } - - } - 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 BGSServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BGSServiceOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BGSServiceOptions::MergeFrom(const BGSServiceOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_descriptor_name()) { - set_descriptor_name(from.descriptor_name()); - } - if (from.has_version()) { - set_version(from.version()); - } - if (from.has_shard_name()) { - set_shard_name(from.shard_name()); - } - if (from.has_resolve_client_instance()) { - set_resolve_client_instance(from.resolve_client_instance()); - } - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_api_type()) { - set_api_type(from.api_type()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BGSServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BGSServiceOptions::CopyFrom(const BGSServiceOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BGSServiceOptions::IsInitialized() const { - return true; -} - void BGSServiceOptions::Swap(BGSServiceOptions* other) { if (other != this) { - std::swap(descriptor_name_, other->descriptor_name_); - std::swap(version_, other->version_); - std::swap(shard_name_, other->shard_name_); - std::swap(resolve_client_instance_, other->resolve_client_instance_); - std::swap(type_, other->type_); - std::swap(api_type_, other->api_type_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BGSServiceOptions::GetMetadata() const { @@ -734,237 +329,9 @@ SDKServiceOptions* SDKServiceOptions::New() const { return new SDKServiceOptions; } -void SDKServiceOptions::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(inbound_, use_client_id_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SDKServiceOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.SDKServiceOptions) - 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 inbound = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &inbound_))); - set_has_inbound(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_outbound; - break; - } - - // optional bool outbound = 2; - case 2: { - if (tag == 16) { - parse_outbound: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &outbound_))); - set_has_outbound(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_use_client_id; - break; - } - - // optional bool use_client_id = 3; - case 3: { - if (tag == 24) { - parse_use_client_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &use_client_id_))); - set_has_use_client_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.SDKServiceOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.SDKServiceOptions) - return false; -#undef DO_ -} - -void SDKServiceOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.SDKServiceOptions) - // optional bool inbound = 1; - if (has_inbound()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->inbound(), output); - } - - // optional bool outbound = 2; - if (has_outbound()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->outbound(), output); - } - - // optional bool use_client_id = 3; - if (has_use_client_id()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->use_client_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.SDKServiceOptions) -} - -::google::protobuf::uint8* SDKServiceOptions::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.SDKServiceOptions) - // optional bool inbound = 1; - if (has_inbound()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->inbound(), target); - } - - // optional bool outbound = 2; - if (has_outbound()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->outbound(), target); - } - - // optional bool use_client_id = 3; - if (has_use_client_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->use_client_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.SDKServiceOptions) - return target; -} - -int SDKServiceOptions::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bool inbound = 1; - if (has_inbound()) { - total_size += 1 + 1; - } - - // optional bool outbound = 2; - if (has_outbound()) { - total_size += 1 + 1; - } - - // optional bool use_client_id = 3; - if (has_use_client_id()) { - 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 SDKServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SDKServiceOptions* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SDKServiceOptions::MergeFrom(const SDKServiceOptions& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_inbound()) { - set_inbound(from.inbound()); - } - if (from.has_outbound()) { - set_outbound(from.outbound()); - } - if (from.has_use_client_id()) { - set_use_client_id(from.use_client_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SDKServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SDKServiceOptions::CopyFrom(const SDKServiceOptions& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SDKServiceOptions::IsInitialized() const { - return true; -} - void SDKServiceOptions::Swap(SDKServiceOptions* other) { if (other != this) { - std::swap(inbound_, other->inbound_); - std::swap(outbound_, other->outbound_); - std::swap(use_client_id_, other->use_client_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SDKServiceOptions::GetMetadata() const { 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 f5c2eb673ff..23378f2390b 100644 --- a/src/server/proto/Client/global_extensions/service_options.pb.h +++ b/src/server/proto/Client/global_extensions/service_options.pb.h @@ -90,19 +90,6 @@ class TC_PROTO_API BGSServiceOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BGSServiceOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BGSServiceOptions& from); - void MergeFrom(const BGSServiceOptions& 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(); @@ -259,19 +246,6 @@ class TC_PROTO_API SDKServiceOptions : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SDKServiceOptions* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SDKServiceOptions& from); - void MergeFrom(const SDKServiceOptions& 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(); diff --git a/src/server/proto/Client/invitation_types.pb.cc b/src/server/proto/Client/invitation_types.pb.cc index 9178355b515..408afac9dd2 100644 --- a/src/server/proto/Client/invitation_types.pb.cc +++ b/src/server/proto/Client/invitation_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "invitation_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -137,7 +135,7 @@ void protobuf_AddDesc_invitation_5ftypes_2eproto() { "ECLINED\020\001\022%\n!SUGGESTION_REMOVED_REASON_E" "XPIRED\020\002\022&\n\"SUGGESTION_REMOVED_REASON_CA" "NCELED\020\003B\'\n\rbnet.protocolB\024InvitationTyp" - "esProtoH\001", 889); + "esProtoH\002", 889); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "invitation_types.proto", &protobuf_RegisterTypes); Invitation::default_instance_ = new Invitation(); @@ -274,512 +272,9 @@ Invitation* Invitation::New() const { return new Invitation; } -void Invitation::Clear() { - _extensions_.Clear(); -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(creation_time_, expiration_time_); - id_ = GOOGLE_ULONGLONG(0); - if (has_inviter_identity()) { - if (inviter_identity_ != NULL) inviter_identity_->::bgs::protocol::Identity::Clear(); - } - if (has_invitee_identity()) { - if (invitee_identity_ != NULL) invitee_identity_->::bgs::protocol::Identity::Clear(); - } - if (has_inviter_name()) { - if (inviter_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - inviter_name_->clear(); - } - } - if (has_invitee_name()) { - if (invitee_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - invitee_name_->clear(); - } - } - if (has_invitation_message()) { - if (invitation_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - invitation_message_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Invitation::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.Invitation) - 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 fixed64 id = 1; - case 1: { - if (tag == 9) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_inviter_identity; - break; - } - - // required .bgs.protocol.Identity inviter_identity = 2; - case 2: { - if (tag == 18) { - parse_inviter_identity: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_inviter_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_invitee_identity; - break; - } - - // required .bgs.protocol.Identity invitee_identity = 3; - case 3: { - if (tag == 26) { - parse_invitee_identity: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_invitee_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_inviter_name; - break; - } - - // optional string inviter_name = 4; - case 4: { - if (tag == 34) { - parse_inviter_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_inviter_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inviter_name().data(), this->inviter_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "inviter_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_invitee_name; - break; - } - - // optional string invitee_name = 5; - case 5: { - if (tag == 42) { - parse_invitee_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_invitee_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitee_name().data(), this->invitee_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "invitee_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_invitation_message; - break; - } - - // optional string invitation_message = 6; - case 6: { - if (tag == 50) { - parse_invitation_message: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_invitation_message())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitation_message().data(), this->invitation_message().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "invitation_message"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_creation_time; - break; - } - - // optional uint64 creation_time = 7; - case 7: { - if (tag == 56) { - parse_creation_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &creation_time_))); - set_has_creation_time(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_expiration_time; - break; - } - - // optional uint64 expiration_time = 8; - case 8: { - if (tag == 64) { - parse_expiration_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &expiration_time_))); - set_has_expiration_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; - } - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.Invitation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.Invitation) - return false; -#undef DO_ -} - -void Invitation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.Invitation) - // required fixed64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->id(), output); - } - - // required .bgs.protocol.Identity inviter_identity = 2; - if (has_inviter_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->inviter_identity(), output); - } - - // required .bgs.protocol.Identity invitee_identity = 3; - if (has_invitee_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->invitee_identity(), output); - } - - // optional string inviter_name = 4; - if (has_inviter_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inviter_name().data(), this->inviter_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "inviter_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->inviter_name(), output); - } - - // optional string invitee_name = 5; - if (has_invitee_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitee_name().data(), this->invitee_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "invitee_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->invitee_name(), output); - } - - // optional string invitation_message = 6; - if (has_invitation_message()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitation_message().data(), this->invitation_message().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "invitation_message"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->invitation_message(), output); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->creation_time(), output); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->expiration_time(), output); - } - - // Extension range [100, 10000) - _extensions_.SerializeWithCachedSizes( - 100, 10000, output); - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.Invitation) -} - -::google::protobuf::uint8* Invitation::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.Invitation) - // required fixed64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->id(), target); - } - - // required .bgs.protocol.Identity inviter_identity = 2; - if (has_inviter_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->inviter_identity(), target); - } - - // required .bgs.protocol.Identity invitee_identity = 3; - if (has_invitee_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->invitee_identity(), target); - } - - // optional string inviter_name = 4; - if (has_inviter_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inviter_name().data(), this->inviter_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "inviter_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->inviter_name(), target); - } - - // optional string invitee_name = 5; - if (has_invitee_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitee_name().data(), this->invitee_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "invitee_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->invitee_name(), target); - } - - // optional string invitation_message = 6; - if (has_invitation_message()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitation_message().data(), this->invitation_message().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "invitation_message"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->invitation_message(), target); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->creation_time(), target); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->expiration_time(), target); - } - - // Extension range [100, 10000) - target = _extensions_.SerializeWithCachedSizesToArray( - 100, 10000, target); - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.Invitation) - return target; -} - -int Invitation::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed64 id = 1; - if (has_id()) { - total_size += 1 + 8; - } - - // required .bgs.protocol.Identity inviter_identity = 2; - if (has_inviter_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->inviter_identity()); - } - - // required .bgs.protocol.Identity invitee_identity = 3; - if (has_invitee_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitee_identity()); - } - - // optional string inviter_name = 4; - if (has_inviter_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->inviter_name()); - } - - // optional string invitee_name = 5; - if (has_invitee_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->invitee_name()); - } - - // optional string invitation_message = 6; - if (has_invitation_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->invitation_message()); - } - - // optional uint64 creation_time = 7; - if (has_creation_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->creation_time()); - } - - // optional uint64 expiration_time = 8; - if (has_expiration_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->expiration_time()); - } - - } - total_size += _extensions_.ByteSize(); - - 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 Invitation::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Invitation* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Invitation::MergeFrom(const Invitation& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_inviter_identity()) { - mutable_inviter_identity()->::bgs::protocol::Identity::MergeFrom(from.inviter_identity()); - } - if (from.has_invitee_identity()) { - mutable_invitee_identity()->::bgs::protocol::Identity::MergeFrom(from.invitee_identity()); - } - if (from.has_inviter_name()) { - set_inviter_name(from.inviter_name()); - } - if (from.has_invitee_name()) { - set_invitee_name(from.invitee_name()); - } - if (from.has_invitation_message()) { - set_invitation_message(from.invitation_message()); - } - if (from.has_creation_time()) { - set_creation_time(from.creation_time()); - } - if (from.has_expiration_time()) { - set_expiration_time(from.expiration_time()); - } - } - _extensions_.MergeFrom(from._extensions_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Invitation::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Invitation::CopyFrom(const Invitation& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Invitation::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - if (has_inviter_identity()) { - if (!this->inviter_identity().IsInitialized()) return false; - } - if (has_invitee_identity()) { - if (!this->invitee_identity().IsInitialized()) return false; - } - - if (!_extensions_.IsInitialized()) return false; return true; -} - void Invitation::Swap(Invitation* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(inviter_identity_, other->inviter_identity_); - std::swap(invitee_identity_, other->invitee_identity_); - std::swap(inviter_name_, other->inviter_name_); - std::swap(invitee_name_, other->invitee_name_); - std::swap(invitation_message_, other->invitation_message_); - std::swap(creation_time_, other->creation_time_); - std::swap(expiration_time_, other->expiration_time_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Invitation::GetMetadata() const { @@ -855,232 +350,9 @@ InvitationParams* InvitationParams::New() const { return new InvitationParams; } -void InvitationParams::Clear() { - _extensions_.Clear(); - if (_has_bits_[0 / 32] & 3) { - if (has_invitation_message()) { - if (invitation_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - invitation_message_->clear(); - } - } - expiration_time_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool InvitationParams::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.InvitationParams) - 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 invitation_message = 1 [deprecated = true]; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_invitation_message())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitation_message().data(), this->invitation_message().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "invitation_message"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_expiration_time; - break; - } - - // optional uint64 expiration_time = 2; - case 2: { - if (tag == 16) { - parse_expiration_time: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &expiration_time_))); - set_has_expiration_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; - } - 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; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.InvitationParams) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.InvitationParams) - return false; -#undef DO_ -} - -void InvitationParams::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.InvitationParams) - // optional string invitation_message = 1 [deprecated = true]; - if (has_invitation_message()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitation_message().data(), this->invitation_message().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "invitation_message"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->invitation_message(), output); - } - - // optional uint64 expiration_time = 2; - if (has_expiration_time()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->expiration_time(), output); - } - - // Extension range [100, 10000) - _extensions_.SerializeWithCachedSizes( - 100, 10000, output); - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.InvitationParams) -} - -::google::protobuf::uint8* InvitationParams::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.InvitationParams) - // optional string invitation_message = 1 [deprecated = true]; - if (has_invitation_message()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->invitation_message().data(), this->invitation_message().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "invitation_message"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->invitation_message(), target); - } - - // optional uint64 expiration_time = 2; - if (has_expiration_time()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->expiration_time(), target); - } - - // Extension range [100, 10000) - target = _extensions_.SerializeWithCachedSizesToArray( - 100, 10000, target); - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.InvitationParams) - return target; -} - -int InvitationParams::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string invitation_message = 1 [deprecated = true]; - if (has_invitation_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->invitation_message()); - } - - // optional uint64 expiration_time = 2; - if (has_expiration_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->expiration_time()); - } - - } - total_size += _extensions_.ByteSize(); - - 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 InvitationParams::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const InvitationParams* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void InvitationParams::MergeFrom(const InvitationParams& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_invitation_message()) { - set_invitation_message(from.invitation_message()); - } - if (from.has_expiration_time()) { - set_expiration_time(from.expiration_time()); - } - } - _extensions_.MergeFrom(from._extensions_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void InvitationParams::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InvitationParams::CopyFrom(const InvitationParams& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InvitationParams::IsInitialized() const { - - if (!_extensions_.IsInitialized()) return false; return true; -} - void InvitationParams::Swap(InvitationParams* other) { if (other != this) { - std::swap(invitation_message_, other->invitation_message_); - std::swap(expiration_time_, other->expiration_time_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata InvitationParams::GetMetadata() const { diff --git a/src/server/proto/Client/invitation_types.pb.h b/src/server/proto/Client/invitation_types.pb.h index 56b61f608d9..32ceb4fa6be 100644 --- a/src/server/proto/Client/invitation_types.pb.h +++ b/src/server/proto/Client/invitation_types.pb.h @@ -114,19 +114,6 @@ class TC_PROTO_API Invitation : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Invitation* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Invitation& from); - void MergeFrom(const Invitation& 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(); @@ -285,19 +272,6 @@ class TC_PROTO_API InvitationParams : public ::google::protobuf::Message { // implements Message ---------------------------------------------- InvitationParams* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InvitationParams& from); - void MergeFrom(const InvitationParams& 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(); diff --git a/src/server/proto/Client/message_types.pb.cc b/src/server/proto/Client/message_types.pb.cc index c1cf2e4e86d..075442328db 100644 --- a/src/server/proto/Client/message_types.pb.cc +++ b/src/server/proto/Client/message_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "message_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -86,7 +84,7 @@ void protobuf_AddDesc_message_5ftypes_2eproto() { "\n\023message_types.proto\022\014bgs.protocol\",\n\tM" "essageId\022\r\n\005epoch\030\001 \001(\004\022\020\n\010position\030\002 \001(" "\004*4\n\017TypingIndicator\022\020\n\014TYPING_START\020\000\022\017" - "\n\013TYPING_STOP\020\001B\002H\001", 139); + "\n\013TYPING_STOP\020\001B\002H\002", 139); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "message_types.proto", &protobuf_RegisterTypes); MessageId::default_instance_ = new MessageId(); @@ -175,207 +173,9 @@ MessageId* MessageId::New() const { return new MessageId; } -void MessageId::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(epoch_, position_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MessageId::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.MessageId) - 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 uint64 epoch = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &epoch_))); - set_has_epoch(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_position; - break; - } - - // optional uint64 position = 2; - case 2: { - if (tag == 16) { - parse_position: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &position_))); - set_has_position(); - } 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.MessageId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.MessageId) - return false; -#undef DO_ -} - -void MessageId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.MessageId) - // optional uint64 epoch = 1; - if (has_epoch()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->epoch(), output); - } - - // optional uint64 position = 2; - if (has_position()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->position(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.MessageId) -} - -::google::protobuf::uint8* MessageId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.MessageId) - // optional uint64 epoch = 1; - if (has_epoch()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->epoch(), target); - } - - // optional uint64 position = 2; - if (has_position()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->position(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.MessageId) - return target; -} - -int MessageId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint64 epoch = 1; - if (has_epoch()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->epoch()); - } - - // optional uint64 position = 2; - if (has_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->position()); - } - - } - 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 MessageId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MessageId* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MessageId::MergeFrom(const MessageId& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_epoch()) { - set_epoch(from.epoch()); - } - if (from.has_position()) { - set_position(from.position()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MessageId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MessageId::CopyFrom(const MessageId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MessageId::IsInitialized() const { - return true; -} - void MessageId::Swap(MessageId* other) { if (other != this) { - std::swap(epoch_, other->epoch_); - std::swap(position_, other->position_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata MessageId::GetMetadata() const { diff --git a/src/server/proto/Client/message_types.pb.h b/src/server/proto/Client/message_types.pb.h index 6142f23c395..1826c9c9a5f 100644 --- a/src/server/proto/Client/message_types.pb.h +++ b/src/server/proto/Client/message_types.pb.h @@ -87,19 +87,6 @@ class TC_PROTO_API MessageId : public ::google::protobuf::Message { // implements Message ---------------------------------------------- MessageId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MessageId& from); - void MergeFrom(const MessageId& 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(); diff --git a/src/server/proto/Client/notification_types.pb.cc b/src/server/proto/Client/notification_types.pb.cc index 15be2234fb4..35c09108775 100644 --- a/src/server/proto/Client/notification_types.pb.cc +++ b/src/server/proto/Client/notification_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "notification_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -187,7 +185,7 @@ void protobuf_AddDesc_notification_5ftypes_2eproto() { "r_battle_tag\030\007 \001(\tB\006\202\371+\002\010\001\022!\n\021target_bat" "tle_tag\030\010 \001(\tB\006\202\371+\002\010\001\022>\n\023forwarding_iden" "tity\030\n \001(\0132!.bgs.protocol.account.v1.Ide" - "ntity:\006\202\371+\002\010\001B\002H\001", 937); + "ntity:\006\202\371+\002\010\001B\002H\002", 937); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "notification_types.proto", &protobuf_RegisterTypes); Target::default_instance_ = new Target(); @@ -274,219 +272,9 @@ Target* Target::New() const { return new Target; } -void Target::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_identity()) { - if (identity_ != NULL) identity_->::bgs::protocol::notification::v1::TargetIdentity::Clear(); - } - if (has_type()) { - if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - type_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Target::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.notification.v1.Target) - 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.notification.v1.TargetIdentity identity = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_type; - break; - } - - // optional string type = 2; - case 2: { - if (tag == 18) { - parse_type: - 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->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.notification.v1.Target) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.notification.v1.Target) - return false; -#undef DO_ -} - -void Target::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.notification.v1.Target) - // optional .bgs.protocol.notification.v1.TargetIdentity identity = 1; - if (has_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->identity(), output); - } - - // optional string type = 2; - 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( - 2, this->type(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.notification.v1.Target) -} - -::google::protobuf::uint8* Target::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.notification.v1.Target) - // optional .bgs.protocol.notification.v1.TargetIdentity identity = 1; - if (has_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->identity(), target); - } - - // optional string type = 2; - 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( - 2, this->type(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.notification.v1.Target) - return target; -} - -int Target::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.notification.v1.TargetIdentity identity = 1; - if (has_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->identity()); - } - - // optional string type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - } - 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 Target::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Target* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Target::MergeFrom(const Target& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_identity()) { - mutable_identity()->::bgs::protocol::notification::v1::TargetIdentity::MergeFrom(from.identity()); - } - if (from.has_type()) { - set_type(from.type()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Target::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Target::CopyFrom(const Target& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Target::IsInitialized() const { - if (has_identity()) { - if (!this->identity().IsInitialized()) return false; - } - return true; -} - void Target::Swap(Target* other) { if (other != this) { - std::swap(identity_, other->identity_); - std::swap(type_, other->type_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Target::GetMetadata() const { @@ -562,208 +350,9 @@ TargetIdentity* TargetIdentity::New() const { return new TargetIdentity; } -void TargetIdentity::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_account()) { - if (account_ != NULL) account_->::bgs::protocol::account::v1::AccountId::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 TargetIdentity::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.notification.v1.TargetIdentity) - 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_game_account; - break; - } - - // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 2; - case 2: { - if (tag == 18) { - parse_game_account: - 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.notification.v1.TargetIdentity) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.notification.v1.TargetIdentity) - return false; -#undef DO_ -} - -void TargetIdentity::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.notification.v1.TargetIdentity) - // 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.GameAccountHandle game_account = 2; - if (has_game_account()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.notification.v1.TargetIdentity) -} - -::google::protobuf::uint8* TargetIdentity::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.notification.v1.TargetIdentity) - // 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.GameAccountHandle game_account = 2; - if (has_game_account()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, 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.notification.v1.TargetIdentity) - return target; -} - -int TargetIdentity::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.GameAccountHandle game_account = 2; - 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 TargetIdentity::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const TargetIdentity* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void TargetIdentity::MergeFrom(const TargetIdentity& 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_game_account()) { - mutable_game_account()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.game_account()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void TargetIdentity::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TargetIdentity::CopyFrom(const TargetIdentity& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TargetIdentity::IsInitialized() const { - if (has_account()) { - if (!this->account().IsInitialized()) return false; - } - if (has_game_account()) { - if (!this->game_account().IsInitialized()) return false; - } - return true; -} - void TargetIdentity::Swap(TargetIdentity* other) { if (other != this) { - std::swap(account_, other->account_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata TargetIdentity::GetMetadata() const { @@ -838,240 +427,9 @@ Subscription* Subscription::New() const { return new Subscription; } -void Subscription::Clear() { - if (_has_bits_[0 / 32] & 6) { - if (has_subscriber()) { - if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear(); - } - delivery_required_ = false; - } - target_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Subscription::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.notification.v1.Subscription) - 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.notification.v1.Target target = 1; - case 1: { - if (tag == 10) { - parse_target: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_target())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_target; - if (input->ExpectTag(18)) goto parse_subscriber; - break; - } - - // optional .bgs.protocol.account.v1.Identity subscriber = 2; - case 2: { - if (tag == 18) { - parse_subscriber: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_subscriber())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_delivery_required; - break; - } - - // optional bool delivery_required = 3 [deprecated = true]; - case 3: { - if (tag == 24) { - parse_delivery_required: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &delivery_required_))); - set_has_delivery_required(); - } 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.notification.v1.Subscription) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.notification.v1.Subscription) - return false; -#undef DO_ -} - -void Subscription::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.notification.v1.Subscription) - // repeated .bgs.protocol.notification.v1.Target target = 1; - for (int i = 0; i < this->target_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->target(i), output); - } - - // optional .bgs.protocol.account.v1.Identity subscriber = 2; - if (has_subscriber()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->subscriber(), output); - } - - // optional bool delivery_required = 3 [deprecated = true]; - if (has_delivery_required()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->delivery_required(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.notification.v1.Subscription) -} - -::google::protobuf::uint8* Subscription::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.notification.v1.Subscription) - // repeated .bgs.protocol.notification.v1.Target target = 1; - for (int i = 0; i < this->target_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->target(i), target); - } - - // optional .bgs.protocol.account.v1.Identity subscriber = 2; - if (has_subscriber()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->subscriber(), target); - } - - // optional bool delivery_required = 3 [deprecated = true]; - if (has_delivery_required()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->delivery_required(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.notification.v1.Subscription) - return target; -} - -int Subscription::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional .bgs.protocol.account.v1.Identity subscriber = 2; - if (has_subscriber()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->subscriber()); - } - - // optional bool delivery_required = 3 [deprecated = true]; - if (has_delivery_required()) { - total_size += 1 + 1; - } - - } - // repeated .bgs.protocol.notification.v1.Target target = 1; - total_size += 1 * this->target_size(); - for (int i = 0; i < this->target_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target(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 Subscription::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Subscription* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Subscription::MergeFrom(const Subscription& from) { - GOOGLE_CHECK_NE(&from, this); - target_.MergeFrom(from.target_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_subscriber()) { - mutable_subscriber()->::bgs::protocol::account::v1::Identity::MergeFrom(from.subscriber()); - } - if (from.has_delivery_required()) { - set_delivery_required(from.delivery_required()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Subscription::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Subscription::CopyFrom(const Subscription& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Subscription::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->target())) return false; - if (has_subscriber()) { - if (!this->subscriber().IsInitialized()) return false; - } - return true; -} - void Subscription::Swap(Subscription* other) { if (other != this) { - target_.Swap(&other->target_); - std::swap(subscriber_, other->subscriber_); - std::swap(delivery_required_, other->delivery_required_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Subscription::GetMetadata() const { @@ -1176,543 +534,9 @@ Notification* Notification::New() const { return new Notification; } -void Notification::Clear() { - if (_has_bits_[0 / 32] & 247) { - if (has_sender_id()) { - if (sender_id_ != NULL) sender_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_target_id()) { - if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_type()) { - if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - type_->clear(); - } - } - if (has_sender_account_id()) { - if (sender_account_id_ != NULL) sender_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_target_account_id()) { - if (target_account_id_ != NULL) target_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_sender_battle_tag()) { - if (sender_battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - sender_battle_tag_->clear(); - } - } - if (has_target_battle_tag()) { - if (target_battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - target_battle_tag_->clear(); - } - } - } - if (has_forwarding_identity()) { - if (forwarding_identity_ != NULL) forwarding_identity_->::bgs::protocol::account::v1::Identity::Clear(); - } - attribute_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Notification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.notification.v1.Notification) - 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 sender_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_sender_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_target_id; - break; - } - - // required .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->ExpectTag(26)) goto parse_type; - break; - } - - // required string type = 3; - case 3: { - if (tag == 26) { - parse_type: - 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(34)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.Attribute attribute = 4; - case 4: { - if (tag == 34) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_attribute; - if (input->ExpectTag(42)) goto parse_sender_account_id; - break; - } - - // optional .bgs.protocol.EntityId sender_account_id = 5; - case 5: { - if (tag == 42) { - parse_sender_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_sender_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_target_account_id; - break; - } - - // optional .bgs.protocol.EntityId target_account_id = 6; - case 6: { - if (tag == 50) { - parse_target_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_target_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_sender_battle_tag; - break; - } - - // optional string sender_battle_tag = 7; - case 7: { - if (tag == 58) { - parse_sender_battle_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_sender_battle_tag())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->sender_battle_tag().data(), this->sender_battle_tag().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "sender_battle_tag"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_target_battle_tag; - break; - } - - // optional string target_battle_tag = 8; - case 8: { - if (tag == 66) { - parse_target_battle_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_target_battle_tag())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_battle_tag().data(), this->target_battle_tag().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "target_battle_tag"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_forwarding_identity; - break; - } - - // optional .bgs.protocol.account.v1.Identity forwarding_identity = 10; - case 10: { - if (tag == 82) { - parse_forwarding_identity: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_forwarding_identity())); - } 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.notification.v1.Notification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.notification.v1.Notification) - return false; -#undef DO_ -} - -void Notification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.notification.v1.Notification) - // optional .bgs.protocol.EntityId sender_id = 1; - if (has_sender_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->sender_id(), output); - } - - // required .bgs.protocol.EntityId target_id = 2; - if (has_target_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->target_id(), output); - } - - // required string type = 3; - 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( - 3, this->type(), output); - } - - // repeated .bgs.protocol.Attribute attribute = 4; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->attribute(i), output); - } - - // optional .bgs.protocol.EntityId sender_account_id = 5; - if (has_sender_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->sender_account_id(), output); - } - - // optional .bgs.protocol.EntityId target_account_id = 6; - if (has_target_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->target_account_id(), output); - } - - // optional string sender_battle_tag = 7; - if (has_sender_battle_tag()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->sender_battle_tag().data(), this->sender_battle_tag().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "sender_battle_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->sender_battle_tag(), output); - } - - // optional string target_battle_tag = 8; - if (has_target_battle_tag()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_battle_tag().data(), this->target_battle_tag().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_battle_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->target_battle_tag(), output); - } - - // optional .bgs.protocol.account.v1.Identity forwarding_identity = 10; - if (has_forwarding_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->forwarding_identity(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.notification.v1.Notification) -} - -::google::protobuf::uint8* Notification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.notification.v1.Notification) - // optional .bgs.protocol.EntityId sender_id = 1; - if (has_sender_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->sender_id(), target); - } - - // required .bgs.protocol.EntityId target_id = 2; - if (has_target_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->target_id(), target); - } - - // required string type = 3; - 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( - 3, this->type(), target); - } - - // repeated .bgs.protocol.Attribute attribute = 4; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->attribute(i), target); - } - - // optional .bgs.protocol.EntityId sender_account_id = 5; - if (has_sender_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->sender_account_id(), target); - } - - // optional .bgs.protocol.EntityId target_account_id = 6; - if (has_target_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->target_account_id(), target); - } - - // optional string sender_battle_tag = 7; - if (has_sender_battle_tag()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->sender_battle_tag().data(), this->sender_battle_tag().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "sender_battle_tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->sender_battle_tag(), target); - } - - // optional string target_battle_tag = 8; - if (has_target_battle_tag()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->target_battle_tag().data(), this->target_battle_tag().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "target_battle_tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->target_battle_tag(), target); - } - - // optional .bgs.protocol.account.v1.Identity forwarding_identity = 10; - if (has_forwarding_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->forwarding_identity(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.notification.v1.Notification) - return target; -} - -int Notification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId sender_id = 1; - if (has_sender_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->sender_id()); - } - - // required .bgs.protocol.EntityId target_id = 2; - if (has_target_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_id()); - } - - // required string type = 3; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - // optional .bgs.protocol.EntityId sender_account_id = 5; - if (has_sender_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->sender_account_id()); - } - - // optional .bgs.protocol.EntityId target_account_id = 6; - if (has_target_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->target_account_id()); - } - - // optional string sender_battle_tag = 7; - if (has_sender_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->sender_battle_tag()); - } - - // optional string target_battle_tag = 8; - if (has_target_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->target_battle_tag()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional .bgs.protocol.account.v1.Identity forwarding_identity = 10; - if (has_forwarding_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->forwarding_identity()); - } - - } - // repeated .bgs.protocol.Attribute attribute = 4; - 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 Notification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Notification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Notification::MergeFrom(const Notification& from) { - GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_sender_id()) { - mutable_sender_id()->::bgs::protocol::EntityId::MergeFrom(from.sender_id()); - } - if (from.has_target_id()) { - mutable_target_id()->::bgs::protocol::EntityId::MergeFrom(from.target_id()); - } - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_sender_account_id()) { - mutable_sender_account_id()->::bgs::protocol::EntityId::MergeFrom(from.sender_account_id()); - } - if (from.has_target_account_id()) { - mutable_target_account_id()->::bgs::protocol::EntityId::MergeFrom(from.target_account_id()); - } - if (from.has_sender_battle_tag()) { - set_sender_battle_tag(from.sender_battle_tag()); - } - if (from.has_target_battle_tag()) { - set_target_battle_tag(from.target_battle_tag()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_forwarding_identity()) { - mutable_forwarding_identity()->::bgs::protocol::account::v1::Identity::MergeFrom(from.forwarding_identity()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Notification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Notification::CopyFrom(const Notification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Notification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false; - if (has_sender_id()) { - if (!this->sender_id().IsInitialized()) return false; - } - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - if (has_sender_account_id()) { - if (!this->sender_account_id().IsInitialized()) return false; - } - if (has_target_account_id()) { - if (!this->target_account_id().IsInitialized()) return false; - } - if (has_forwarding_identity()) { - if (!this->forwarding_identity().IsInitialized()) return false; - } - return true; -} - void Notification::Swap(Notification* other) { if (other != this) { - std::swap(sender_id_, other->sender_id_); - std::swap(target_id_, other->target_id_); - std::swap(type_, other->type_); - attribute_.Swap(&other->attribute_); - std::swap(sender_account_id_, other->sender_account_id_); - std::swap(target_account_id_, other->target_account_id_); - std::swap(sender_battle_tag_, other->sender_battle_tag_); - std::swap(target_battle_tag_, other->target_battle_tag_); - std::swap(forwarding_identity_, other->forwarding_identity_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Notification::GetMetadata() const { diff --git a/src/server/proto/Client/notification_types.pb.h b/src/server/proto/Client/notification_types.pb.h index edd3b154af8..2bc6ee1f49a 100644 --- a/src/server/proto/Client/notification_types.pb.h +++ b/src/server/proto/Client/notification_types.pb.h @@ -76,19 +76,6 @@ class TC_PROTO_API Target : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Target* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Target& from); - void MergeFrom(const Target& 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(); @@ -172,19 +159,6 @@ class TC_PROTO_API TargetIdentity : public ::google::protobuf::Message { // implements Message ---------------------------------------------- TargetIdentity* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TargetIdentity& from); - void MergeFrom(const TargetIdentity& 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(); @@ -265,19 +239,6 @@ class TC_PROTO_API Subscription : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Subscription* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Subscription& from); - void MergeFrom(const Subscription& 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(); @@ -369,19 +330,6 @@ class TC_PROTO_API Notification : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Notification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Notification& from); - void MergeFrom(const Notification& 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(); diff --git a/src/server/proto/Client/presence_listener.pb.cc b/src/server/proto/Client/presence_listener.pb.cc index 5c69413201a..55b823f4be6 100644 --- a/src/server/proto/Client/presence_listener.pb.cc +++ b/src/server/proto/Client/presence_listener.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "presence_listener.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -130,7 +127,7 @@ void protobuf_AddDesc_presence_5flistener_2eproto() { ".v1.StateChangedNotification\032\031.bgs.proto" "col.NO_RESPONSE\"\010\202\371+\004\010\0028\001\0326\202\371+,\n*bnet.pr" "otocol.presence.v1.PresenceListener\212\371+\002\010" - "\001B\002H\001", 685); + "\001B\002H\002", 685); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "presence_listener.proto", &protobuf_RegisterTypes); SubscribeNotification::default_instance_ = new SubscribeNotification(); @@ -208,202 +205,9 @@ SubscribeNotification* SubscribeNotification::New() const { return new SubscribeNotification; } -void SubscribeNotification::Clear() { - if (has_subscriber_id()) { - if (subscriber_id_ != NULL) subscriber_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - state_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeNotification::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.SubscribeNotification) - 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 subscriber_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_subscriber_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_state; - break; - } - - // repeated .bgs.protocol.presence.v1.PresenceState state = 2; - case 2: { - if (tag == 18) { - parse_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_state; - 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.SubscribeNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.SubscribeNotification) - return false; -#undef DO_ -} - -void SubscribeNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.SubscribeNotification) - // optional .bgs.protocol.account.v1.AccountId subscriber_id = 1; - if (has_subscriber_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->subscriber_id(), output); - } - - // repeated .bgs.protocol.presence.v1.PresenceState state = 2; - for (int i = 0; i < this->state_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->state(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.SubscribeNotification) -} - -::google::protobuf::uint8* SubscribeNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.SubscribeNotification) - // optional .bgs.protocol.account.v1.AccountId subscriber_id = 1; - if (has_subscriber_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->subscriber_id(), target); - } - - // repeated .bgs.protocol.presence.v1.PresenceState state = 2; - for (int i = 0; i < this->state_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->state(i), 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.SubscribeNotification) - return target; -} - -int SubscribeNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId subscriber_id = 1; - if (has_subscriber_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->subscriber_id()); - } - - } - // repeated .bgs.protocol.presence.v1.PresenceState state = 2; - total_size += 1 * this->state_size(); - for (int i = 0; i < this->state_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state(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 SubscribeNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeNotification::MergeFrom(const SubscribeNotification& from) { - GOOGLE_CHECK_NE(&from, this); - state_.MergeFrom(from.state_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_subscriber_id()) { - mutable_subscriber_id()->::bgs::protocol::account::v1::AccountId::MergeFrom(from.subscriber_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeNotification::CopyFrom(const SubscribeNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeNotification::IsInitialized() const { - if (has_subscriber_id()) { - if (!this->subscriber_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->state())) return false; - return true; -} - void SubscribeNotification::Swap(SubscribeNotification* other) { if (other != this) { - std::swap(subscriber_id_, other->subscriber_id_); - state_.Swap(&other->state_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeNotification::GetMetadata() const { @@ -476,202 +280,9 @@ StateChangedNotification* StateChangedNotification::New() const { return new StateChangedNotification; } -void StateChangedNotification::Clear() { - if (has_subscriber_id()) { - if (subscriber_id_ != NULL) subscriber_id_->::bgs::protocol::account::v1::AccountId::Clear(); - } - state_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool StateChangedNotification::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.StateChangedNotification) - 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 subscriber_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_subscriber_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_state; - break; - } - - // repeated .bgs.protocol.presence.v1.PresenceState state = 2; - case 2: { - if (tag == 18) { - parse_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_state; - 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.StateChangedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.StateChangedNotification) - return false; -#undef DO_ -} - -void StateChangedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.StateChangedNotification) - // optional .bgs.protocol.account.v1.AccountId subscriber_id = 1; - if (has_subscriber_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->subscriber_id(), output); - } - - // repeated .bgs.protocol.presence.v1.PresenceState state = 2; - for (int i = 0; i < this->state_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->state(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.StateChangedNotification) -} - -::google::protobuf::uint8* StateChangedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.StateChangedNotification) - // optional .bgs.protocol.account.v1.AccountId subscriber_id = 1; - if (has_subscriber_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->subscriber_id(), target); - } - - // repeated .bgs.protocol.presence.v1.PresenceState state = 2; - for (int i = 0; i < this->state_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->state(i), 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.StateChangedNotification) - return target; -} - -int StateChangedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.AccountId subscriber_id = 1; - if (has_subscriber_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->subscriber_id()); - } - - } - // repeated .bgs.protocol.presence.v1.PresenceState state = 2; - total_size += 1 * this->state_size(); - for (int i = 0; i < this->state_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->state(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 StateChangedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const StateChangedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void StateChangedNotification::MergeFrom(const StateChangedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - state_.MergeFrom(from.state_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_subscriber_id()) { - mutable_subscriber_id()->::bgs::protocol::account::v1::AccountId::MergeFrom(from.subscriber_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void StateChangedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StateChangedNotification::CopyFrom(const StateChangedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StateChangedNotification::IsInitialized() const { - if (has_subscriber_id()) { - if (!this->subscriber_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->state())) return false; - return true; -} - void StateChangedNotification::Swap(StateChangedNotification* other) { if (other != this) { - std::swap(subscriber_id_, other->subscriber_id_); - state_.Swap(&other->state_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata StateChangedNotification::GetMetadata() const { @@ -684,7 +295,7 @@ void StateChangedNotification::Swap(StateChangedNotification* other) { // =================================================================== -PresenceListener::PresenceListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +PresenceListener::PresenceListener(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } PresenceListener::~PresenceListener() { @@ -696,20 +307,17 @@ google::protobuf::ServiceDescriptor const* PresenceListener::descriptor() { } void PresenceListener::OnSubscribe(::bgs::protocol::presence::v1::SubscribeNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method PresenceListener.OnSubscribe(bgs.protocol.presence.v1.SubscribeNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("PresenceListener.OnSubscribe", "bgs.protocol.presence.v1.SubscribeNotification", request); SendRequest(service_hash_, 1 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void PresenceListener::OnStateChanged(::bgs::protocol::presence::v1::StateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method PresenceListener.OnStateChanged(bgs.protocol.presence.v1.StateChangedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("PresenceListener.OnStateChanged", "bgs.protocol.presence.v1.StateChangedNotification", request); SendRequest(service_hash_, 2 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } -void PresenceListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) { - TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", - GetCallerInfo().c_str(), methodId); +void PresenceListener::CallServerMethod(uint32 /*token*/, uint32 methodId, MessageBuffer /*buffer*/) { + LogDisallowedMethod(methodId); } // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/presence_listener.pb.h b/src/server/proto/Client/presence_listener.pb.h index d77fa3c1fd1..b69337ff7fd 100644 --- a/src/server/proto/Client/presence_listener.pb.h +++ b/src/server/proto/Client/presence_listener.pb.h @@ -76,19 +76,6 @@ class TC_PROTO_API SubscribeNotification : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeNotification& from); - void MergeFrom(const SubscribeNotification& 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(); @@ -170,19 +157,6 @@ class TC_PROTO_API StateChangedNotification : public ::google::protobuf::Message // implements Message ---------------------------------------------- StateChangedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StateChangedNotification& from); - void MergeFrom(const StateChangedNotification& 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(); @@ -241,6 +215,10 @@ class TC_PROTO_API PresenceListener : public ServiceBase public: explicit PresenceListener(bool use_original_hash); + PresenceListener(PresenceListener const&) = delete; + PresenceListener(PresenceListener&&) = delete; + PresenceListener& operator=(PresenceListener const&) = delete; + PresenceListener& operator=(PresenceListener&&) = delete; virtual ~PresenceListener(); typedef std::integral_constant OriginalHash; @@ -253,11 +231,6 @@ class TC_PROTO_API PresenceListener : public ServiceBase void OnStateChanged(::bgs::protocol::presence::v1::StateChangedNotification const* request, bool client = false, bool server = false); void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final; - - private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(PresenceListener); }; // =================================================================== diff --git a/src/server/proto/Client/presence_service.pb.cc b/src/server/proto/Client/presence_service.pb.cc index 3170e36a15d..f07b04cb9ad 100644 --- a/src/server/proto/Client/presence_service.pb.cc +++ b/src/server/proto/Client/presence_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "presence_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -337,7 +334,7 @@ void protobuf_AddDesc_presence_5fservice_2eproto() { "v1.BatchUnsubscribeRequest\032\024.bgs.protoco" "l.NoData\"\010\202\371+\004\010\t\020\003\032I\202\371+\?\n&bnet.protocol." "presence.PresenceService*\023presence_aggre" - "gator0\001\212\371+\002\020\001B\005H\001\200\001\000", 2180); + "gator0\001\212\371+\002\020\001B\005H\002\200\001\000", 2180); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "presence_service.proto", &protobuf_RegisterTypes); SubscribeRequest::default_instance_ = new SubscribeRequest(); @@ -436,326 +433,9 @@ SubscribeRequest* SubscribeRequest::New() const { return new SubscribeRequest; } -void SubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - program_.Clear(); - key_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeRequest::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.SubscribeRequest) - 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_entity_id; - break; - } - - // required .bgs.protocol.EntityId entity_id = 2; - case 2: { - if (tag == 18) { - parse_entity_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_object_id; - break; - } - - // required uint64 object_id = 3; - case 3: { - if (tag == 24) { - 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(37)) goto parse_program; - break; - } - - // repeated fixed32 program = 4; - case 4: { - if (tag == 37) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - 1, 37, input, this->mutable_program()))); - } else if (tag == 34) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, this->mutable_program()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(37)) goto parse_program; - if (input->ExpectTag(50)) goto parse_key; - break; - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 6; - case 6: { - if (tag == 50) { - parse_key: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_key())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_key; - 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.SubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.SubscribeRequest) - return false; -#undef DO_ -} - -void SubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.SubscribeRequest) - // 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 entity_id = 2; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->entity_id(), output); - } - - // required uint64 object_id = 3; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->object_id(), output); - } - - // repeated fixed32 program = 4; - for (int i = 0; i < this->program_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32( - 4, this->program(i), output); - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 6; - for (int i = 0; i < this->key_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->key(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.SubscribeRequest) -} - -::google::protobuf::uint8* SubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.SubscribeRequest) - // 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 entity_id = 2; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->entity_id(), target); - } - - // required uint64 object_id = 3; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->object_id(), target); - } - - // repeated fixed32 program = 4; - for (int i = 0; i < this->program_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFixed32ToArray(4, this->program(i), target); - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 6; - for (int i = 0; i < this->key_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->key(i), 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.SubscribeRequest) - return target; -} - -int SubscribeRequest::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 entity_id = 2; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // required uint64 object_id = 3; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_id()); - } - - } - // repeated fixed32 program = 4; - { - int data_size = 0; - data_size = 4 * this->program_size(); - total_size += 1 * this->program_size() + data_size; - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 6; - total_size += 1 * this->key_size(); - for (int i = 0; i < this->key_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->key(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 SubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeRequest::MergeFrom(const SubscribeRequest& from) { - GOOGLE_CHECK_NE(&from, this); - program_.MergeFrom(from.program_); - key_.MergeFrom(from.key_); - 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_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeRequest::CopyFrom(const SubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->key())) return false; - return true; -} - void SubscribeRequest::Swap(SubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(entity_id_, other->entity_id_); - std::swap(object_id_, other->object_id_); - program_.Swap(&other->program_); - key_.Swap(&other->key_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeRequest::GetMetadata() const { @@ -833,246 +513,9 @@ UnsubscribeRequest* UnsubscribeRequest::New() const { return new UnsubscribeRequest; } -void UnsubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsubscribeRequest::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.UnsubscribeRequest) - 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_entity_id; - break; - } - - // required .bgs.protocol.EntityId entity_id = 2; - case 2: { - if (tag == 18) { - parse_entity_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 3; - case 3: { - if (tag == 24) { - 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->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.UnsubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.UnsubscribeRequest) - return false; -#undef DO_ -} - -void UnsubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.UnsubscribeRequest) - // 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 entity_id = 2; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->entity_id(), output); - } - - // optional uint64 object_id = 3; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.UnsubscribeRequest) -} - -::google::protobuf::uint8* UnsubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.UnsubscribeRequest) - // 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 entity_id = 2; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->entity_id(), target); - } - - // optional uint64 object_id = 3; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->object_id(), 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.UnsubscribeRequest) - return target; -} - -int UnsubscribeRequest::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 entity_id = 2; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional uint64 object_id = 3; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_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 UnsubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsubscribeRequest::MergeFrom(const UnsubscribeRequest& 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_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsubscribeRequest::CopyFrom(const UnsubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsubscribeRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - return true; -} - void UnsubscribeRequest::Swap(UnsubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(entity_id_, other->entity_id_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsubscribeRequest::GetMetadata() const { @@ -1151,283 +594,9 @@ UpdateRequest* UpdateRequest::New() const { return new UpdateRequest; } -void UpdateRequest::Clear() { - if (_has_bits_[0 / 32] & 13) { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - no_create_ = false; - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - } - field_operation_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UpdateRequest::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.UpdateRequest) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_field_operation; - break; - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - case 2: { - if (tag == 18) { - parse_field_operation: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_field_operation())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_field_operation; - if (input->ExpectTag(24)) goto parse_no_create; - break; - } - - // optional bool no_create = 3; - case 3: { - if (tag == 24) { - parse_no_create: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &no_create_))); - set_has_no_create(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_agent_id; - break; - } - - // optional .bgs.protocol.EntityId agent_id = 4; - case 4: { - if (tag == 34) { - parse_agent_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_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.presence.v1.UpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.UpdateRequest) - return false; -#undef DO_ -} - -void UpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.UpdateRequest) - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - for (int i = 0; i < this->field_operation_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->field_operation(i), output); - } - - // optional bool no_create = 3; - if (has_no_create()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->no_create(), output); - } - - // optional .bgs.protocol.EntityId agent_id = 4; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->agent_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.UpdateRequest) -} - -::google::protobuf::uint8* UpdateRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.UpdateRequest) - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_id(), target); - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - for (int i = 0; i < this->field_operation_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->field_operation(i), target); - } - - // optional bool no_create = 3; - if (has_no_create()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->no_create(), target); - } - - // optional .bgs.protocol.EntityId agent_id = 4; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->agent_id(), 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.UpdateRequest) - return target; -} - -int UpdateRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional bool no_create = 3; - if (has_no_create()) { - total_size += 1 + 1; - } - - // optional .bgs.protocol.EntityId agent_id = 4; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - } - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - total_size += 1 * this->field_operation_size(); - for (int i = 0; i < this->field_operation_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->field_operation(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 UpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UpdateRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UpdateRequest::MergeFrom(const UpdateRequest& from) { - GOOGLE_CHECK_NE(&from, this); - field_operation_.MergeFrom(from.field_operation_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_no_create()) { - set_no_create(from.no_create()); - } - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateRequest::CopyFrom(const UpdateRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->field_operation())) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UpdateRequest::Swap(UpdateRequest* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - field_operation_.Swap(&other->field_operation_); - std::swap(no_create_, other->no_create_); - std::swap(agent_id_, other->agent_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UpdateRequest::GetMetadata() const { @@ -1504,248 +673,9 @@ QueryRequest* QueryRequest::New() const { return new QueryRequest; } -void QueryRequest::Clear() { - if (_has_bits_[0 / 32] & 5) { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - } - key_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool QueryRequest::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.QueryRequest) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_key; - break; - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 2; - case 2: { - if (tag == 18) { - parse_key: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_key())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_key; - if (input->ExpectTag(26)) goto parse_agent_id; - break; - } - - // optional .bgs.protocol.EntityId agent_id = 3; - case 3: { - if (tag == 26) { - parse_agent_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_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.presence.v1.QueryRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.QueryRequest) - return false; -#undef DO_ -} - -void QueryRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.QueryRequest) - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 2; - for (int i = 0; i < this->key_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->key(i), output); - } - - // optional .bgs.protocol.EntityId agent_id = 3; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->agent_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.QueryRequest) -} - -::google::protobuf::uint8* QueryRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.QueryRequest) - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_id(), target); - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 2; - for (int i = 0; i < this->key_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->key(i), target); - } - - // optional .bgs.protocol.EntityId agent_id = 3; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->agent_id(), 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.QueryRequest) - return target; -} - -int QueryRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional .bgs.protocol.EntityId agent_id = 3; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - } - // repeated .bgs.protocol.presence.v1.FieldKey key = 2; - total_size += 1 * this->key_size(); - for (int i = 0; i < this->key_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->key(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 QueryRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const QueryRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void QueryRequest::MergeFrom(const QueryRequest& from) { - GOOGLE_CHECK_NE(&from, this); - key_.MergeFrom(from.key_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void QueryRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QueryRequest::CopyFrom(const QueryRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QueryRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->key())) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void QueryRequest::Swap(QueryRequest* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - key_.Swap(&other->key_); - std::swap(agent_id_, other->agent_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata QueryRequest::GetMetadata() const { @@ -1814,156 +744,9 @@ QueryResponse* QueryResponse::New() const { return new QueryResponse; } -void QueryResponse::Clear() { - field_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool QueryResponse::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.QueryResponse) - 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.presence.v1.Field field = 2; - case 2: { - if (tag == 18) { - parse_field: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_field())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_field; - 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.QueryResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.QueryResponse) - return false; -#undef DO_ -} - -void QueryResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.QueryResponse) - // repeated .bgs.protocol.presence.v1.Field field = 2; - for (int i = 0; i < this->field_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->field(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.QueryResponse) -} - -::google::protobuf::uint8* QueryResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.QueryResponse) - // repeated .bgs.protocol.presence.v1.Field field = 2; - for (int i = 0; i < this->field_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->field(i), 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.QueryResponse) - return target; -} - -int QueryResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.presence.v1.Field field = 2; - total_size += 1 * this->field_size(); - for (int i = 0; i < this->field_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->field(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 QueryResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const QueryResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void QueryResponse::MergeFrom(const QueryResponse& from) { - GOOGLE_CHECK_NE(&from, this); - field_.MergeFrom(from.field_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void QueryResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QueryResponse::CopyFrom(const QueryResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QueryResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false; - return true; -} - void QueryResponse::Swap(QueryResponse* other) { if (other != this) { - field_.Swap(&other->field_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata QueryResponse::GetMetadata() const { @@ -2040,321 +823,9 @@ BatchSubscribeRequest* BatchSubscribeRequest::New() const { return new BatchSubscribeRequest; } -void BatchSubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 17) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - entity_id_.Clear(); - program_.Clear(); - key_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BatchSubscribeRequest::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.BatchSubscribeRequest) - 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_entity_id; - break; - } - - // repeated .bgs.protocol.EntityId entity_id = 2; - case 2: { - if (tag == 18) { - parse_entity_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_entity_id; - if (input->ExpectTag(29)) goto parse_program; - break; - } - - // repeated fixed32 program = 3; - case 3: { - if (tag == 29) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - 1, 29, input, this->mutable_program()))); - } else if (tag == 26) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, this->mutable_program()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_program; - if (input->ExpectTag(34)) goto parse_key; - break; - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 4; - case 4: { - if (tag == 34) { - parse_key: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_key())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_key; - if (input->ExpectTag(40)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 5; - case 5: { - if (tag == 40) { - 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->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.BatchSubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.BatchSubscribeRequest) - return false; -#undef DO_ -} - -void BatchSubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.BatchSubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // repeated .bgs.protocol.EntityId entity_id = 2; - for (int i = 0; i < this->entity_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->entity_id(i), output); - } - - // repeated fixed32 program = 3; - for (int i = 0; i < this->program_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32( - 3, this->program(i), output); - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 4; - for (int i = 0; i < this->key_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->key(i), output); - } - - // optional uint64 object_id = 5; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.BatchSubscribeRequest) -} - -::google::protobuf::uint8* BatchSubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.BatchSubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // repeated .bgs.protocol.EntityId entity_id = 2; - for (int i = 0; i < this->entity_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->entity_id(i), target); - } - - // repeated fixed32 program = 3; - for (int i = 0; i < this->program_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFixed32ToArray(3, this->program(i), target); - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 4; - for (int i = 0; i < this->key_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->key(i), target); - } - - // optional uint64 object_id = 5; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->object_id(), 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.BatchSubscribeRequest) - return target; -} - -int BatchSubscribeRequest::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 uint64 object_id = 5; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_id()); - } - - } - // repeated .bgs.protocol.EntityId entity_id = 2; - total_size += 1 * this->entity_id_size(); - for (int i = 0; i < this->entity_id_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id(i)); - } - - // repeated fixed32 program = 3; - { - int data_size = 0; - data_size = 4 * this->program_size(); - total_size += 1 * this->program_size() + data_size; - } - - // repeated .bgs.protocol.presence.v1.FieldKey key = 4; - total_size += 1 * this->key_size(); - for (int i = 0; i < this->key_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->key(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 BatchSubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BatchSubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BatchSubscribeRequest::MergeFrom(const BatchSubscribeRequest& from) { - GOOGLE_CHECK_NE(&from, this); - entity_id_.MergeFrom(from.entity_id_); - program_.MergeFrom(from.program_); - key_.MergeFrom(from.key_); - 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_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BatchSubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BatchSubscribeRequest::CopyFrom(const BatchSubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BatchSubscribeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->entity_id())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->key())) return false; - return true; -} - void BatchSubscribeRequest::Swap(BatchSubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - entity_id_.Swap(&other->entity_id_); - program_.Swap(&other->program_); - key_.Swap(&other->key_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BatchSubscribeRequest::GetMetadata() const { @@ -2428,202 +899,9 @@ SubscribeResult* SubscribeResult::New() const { return new SubscribeResult; } -void SubscribeResult::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - result_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeResult::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.SubscribeResult) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_result; - break; - } - - // optional uint32 result = 2; - case 2: { - if (tag == 16) { - parse_result: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &result_))); - set_has_result(); - } 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.SubscribeResult) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.SubscribeResult) - return false; -#undef DO_ -} - -void SubscribeResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.SubscribeResult) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - // optional uint32 result = 2; - if (has_result()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->result(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.SubscribeResult) -} - -::google::protobuf::uint8* SubscribeResult::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.SubscribeResult) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_id(), target); - } - - // optional uint32 result = 2; - if (has_result()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->result(), 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.SubscribeResult) - return target; -} - -int SubscribeResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional uint32 result = 2; - if (has_result()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->result()); - } - - } - 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 SubscribeResult::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeResult* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeResult::MergeFrom(const SubscribeResult& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_result()) { - set_result(from.result()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeResult::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeResult::CopyFrom(const SubscribeResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeResult::IsInitialized() const { - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - return true; -} - void SubscribeResult::Swap(SubscribeResult* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - std::swap(result_, other->result_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeResult::GetMetadata() const { @@ -2692,156 +970,9 @@ BatchSubscribeResponse* BatchSubscribeResponse::New() const { return new BatchSubscribeResponse; } -void BatchSubscribeResponse::Clear() { - subscribe_failed_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BatchSubscribeResponse::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.BatchSubscribeResponse) - 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.presence.v1.SubscribeResult subscribe_failed = 1; - case 1: { - if (tag == 10) { - parse_subscribe_failed: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_subscribe_failed())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_subscribe_failed; - 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.BatchSubscribeResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.BatchSubscribeResponse) - return false; -#undef DO_ -} - -void BatchSubscribeResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.BatchSubscribeResponse) - // repeated .bgs.protocol.presence.v1.SubscribeResult subscribe_failed = 1; - for (int i = 0; i < this->subscribe_failed_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->subscribe_failed(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.BatchSubscribeResponse) -} - -::google::protobuf::uint8* BatchSubscribeResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.BatchSubscribeResponse) - // repeated .bgs.protocol.presence.v1.SubscribeResult subscribe_failed = 1; - for (int i = 0; i < this->subscribe_failed_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->subscribe_failed(i), 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.BatchSubscribeResponse) - return target; -} - -int BatchSubscribeResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.presence.v1.SubscribeResult subscribe_failed = 1; - total_size += 1 * this->subscribe_failed_size(); - for (int i = 0; i < this->subscribe_failed_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->subscribe_failed(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 BatchSubscribeResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BatchSubscribeResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BatchSubscribeResponse::MergeFrom(const BatchSubscribeResponse& from) { - GOOGLE_CHECK_NE(&from, this); - subscribe_failed_.MergeFrom(from.subscribe_failed_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BatchSubscribeResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BatchSubscribeResponse::CopyFrom(const BatchSubscribeResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BatchSubscribeResponse::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->subscribe_failed())) return false; - return true; -} - void BatchSubscribeResponse::Swap(BatchSubscribeResponse* other) { if (other != this) { - subscribe_failed_.Swap(&other->subscribe_failed_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BatchSubscribeResponse::GetMetadata() const { @@ -2916,241 +1047,9 @@ BatchUnsubscribeRequest* BatchUnsubscribeRequest::New() const { return new BatchUnsubscribeRequest; } -void BatchUnsubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 5) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - entity_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BatchUnsubscribeRequest::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.BatchUnsubscribeRequest) - 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_entity_id; - break; - } - - // repeated .bgs.protocol.EntityId entity_id = 2; - case 2: { - if (tag == 18) { - parse_entity_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_entity_id; - if (input->ExpectTag(24)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 3; - case 3: { - if (tag == 24) { - 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->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.BatchUnsubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.BatchUnsubscribeRequest) - return false; -#undef DO_ -} - -void BatchUnsubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.BatchUnsubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // repeated .bgs.protocol.EntityId entity_id = 2; - for (int i = 0; i < this->entity_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->entity_id(i), output); - } - - // optional uint64 object_id = 3; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.BatchUnsubscribeRequest) -} - -::google::protobuf::uint8* BatchUnsubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.BatchUnsubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // repeated .bgs.protocol.EntityId entity_id = 2; - for (int i = 0; i < this->entity_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->entity_id(i), target); - } - - // optional uint64 object_id = 3; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->object_id(), 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.BatchUnsubscribeRequest) - return target; -} - -int BatchUnsubscribeRequest::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 uint64 object_id = 3; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_id()); - } - - } - // repeated .bgs.protocol.EntityId entity_id = 2; - total_size += 1 * this->entity_id_size(); - for (int i = 0; i < this->entity_id_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_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 BatchUnsubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BatchUnsubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BatchUnsubscribeRequest::MergeFrom(const BatchUnsubscribeRequest& from) { - GOOGLE_CHECK_NE(&from, this); - entity_id_.MergeFrom(from.entity_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()); - } - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BatchUnsubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BatchUnsubscribeRequest::CopyFrom(const BatchUnsubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BatchUnsubscribeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->entity_id())) return false; - return true; -} - void BatchUnsubscribeRequest::Swap(BatchUnsubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - entity_id_.Swap(&other->entity_id_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BatchUnsubscribeRequest::GetMetadata() const { @@ -3163,7 +1062,7 @@ void BatchUnsubscribeRequest::Swap(BatchUnsubscribeRequest* other) { // =================================================================== -PresenceService::PresenceService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +PresenceService::PresenceService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } PresenceService::~PresenceService() { @@ -3176,205 +1075,151 @@ google::protobuf::ServiceDescriptor const* PresenceService::descriptor() { void PresenceService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::presence::v1::SubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for PresenceService.Subscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.Subscribe(bgs.protocol.presence.v1.SubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - PresenceService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.Subscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleSubscribe(token, methodId, buffer); break; - } - case 2: { - ::bgs::protocol::presence::v1::UnsubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for PresenceService.Unsubscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.Unsubscribe(bgs.protocol.presence.v1.UnsubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - PresenceService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.Unsubscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnsubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 2: + ParseAndHandleUnsubscribe(token, methodId, buffer); break; - } - case 3: { - ::bgs::protocol::presence::v1::UpdateRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for PresenceService.Update server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.Update(bgs.protocol.presence.v1.UpdateRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - PresenceService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.Update() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUpdate(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 3: + ParseAndHandleUpdate(token, methodId, buffer); break; - } - case 4: { - ::bgs::protocol::presence::v1::QueryRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for PresenceService.Query server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.Query(bgs.protocol.presence.v1.QueryRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::presence::v1::QueryResponse::descriptor()); - PresenceService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.Query() returned bgs.protocol.presence.v1.QueryResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::presence::v1::QueryResponse response; - uint32 status = HandleQuery(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 4: + ParseAndHandleQuery(token, methodId, buffer); break; - } - case 8: { - ::bgs::protocol::presence::v1::BatchSubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for PresenceService.BatchSubscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.BatchSubscribe(bgs.protocol.presence.v1.BatchSubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::presence::v1::BatchSubscribeResponse::descriptor()); - PresenceService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.BatchSubscribe() returned bgs.protocol.presence.v1.BatchSubscribeResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::presence::v1::BatchSubscribeResponse response; - uint32 status = HandleBatchSubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 8: + ParseAndHandleBatchSubscribe(token, methodId, buffer); break; - } - case 9: { - ::bgs::protocol::presence::v1::BatchUnsubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for PresenceService.BatchUnsubscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.BatchUnsubscribe(bgs.protocol.presence.v1.BatchUnsubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - PresenceService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.BatchUnsubscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleBatchUnsubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 9: + ParseAndHandleBatchUnsubscribe(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 PresenceService::HandleSubscribe(::bgs::protocol::presence::v1::SubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method PresenceService.Subscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 PresenceService::HandleSubscribe(::bgs::protocol::presence::v1::SubscribeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("PresenceService.Subscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 PresenceService::HandleUnsubscribe(::bgs::protocol::presence::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method PresenceService.Unsubscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 PresenceService::HandleUnsubscribe(::bgs::protocol::presence::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("PresenceService.Unsubscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 PresenceService::HandleUpdate(::bgs::protocol::presence::v1::UpdateRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method PresenceService.Update({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 PresenceService::HandleUpdate(::bgs::protocol::presence::v1::UpdateRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("PresenceService.Update", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 PresenceService::HandleQuery(::bgs::protocol::presence::v1::QueryRequest const* request, ::bgs::protocol::presence::v1::QueryResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method PresenceService.Query({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 PresenceService::HandleQuery(::bgs::protocol::presence::v1::QueryRequest const* request, ::bgs::protocol::presence::v1::QueryResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("PresenceService.Query", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 PresenceService::HandleBatchSubscribe(::bgs::protocol::presence::v1::BatchSubscribeRequest const* request, ::bgs::protocol::presence::v1::BatchSubscribeResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method PresenceService.BatchSubscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 PresenceService::HandleBatchSubscribe(::bgs::protocol::presence::v1::BatchSubscribeRequest const* request, ::bgs::protocol::presence::v1::BatchSubscribeResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("PresenceService.BatchSubscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 PresenceService::HandleBatchUnsubscribe(::bgs::protocol::presence::v1::BatchUnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method PresenceService.BatchUnsubscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 PresenceService::HandleBatchUnsubscribe(::bgs::protocol::presence::v1::BatchUnsubscribeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("PresenceService.BatchUnsubscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void PresenceService::ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::presence::v1::SubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("PresenceService.Subscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("PresenceService.Subscribe", "bgs.protocol.presence.v1.SubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "PresenceService.Subscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void PresenceService::ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::presence::v1::UnsubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("PresenceService.Unsubscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("PresenceService.Unsubscribe", "bgs.protocol.presence.v1.UnsubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "PresenceService.Unsubscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnsubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void PresenceService::ParseAndHandleUpdate(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::presence::v1::UpdateRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("PresenceService.Update"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("PresenceService.Update", "bgs.protocol.presence.v1.UpdateRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "PresenceService.Update", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUpdate(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void PresenceService::ParseAndHandleQuery(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::presence::v1::QueryRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("PresenceService.Query"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("PresenceService.Query", "bgs.protocol.presence.v1.QueryRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "PresenceService.Query", ::bgs::protocol::presence::v1::QueryResponse::descriptor()); + ::bgs::protocol::presence::v1::QueryResponse response; + uint32 status = HandleQuery(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void PresenceService::ParseAndHandleBatchSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::presence::v1::BatchSubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("PresenceService.BatchSubscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("PresenceService.BatchSubscribe", "bgs.protocol.presence.v1.BatchSubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "PresenceService.BatchSubscribe", ::bgs::protocol::presence::v1::BatchSubscribeResponse::descriptor()); + ::bgs::protocol::presence::v1::BatchSubscribeResponse response; + uint32 status = HandleBatchSubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void PresenceService::ParseAndHandleBatchUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::presence::v1::BatchUnsubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("PresenceService.BatchUnsubscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("PresenceService.BatchUnsubscribe", "bgs.protocol.presence.v1.BatchUnsubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "PresenceService.BatchUnsubscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleBatchUnsubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/presence_service.pb.h b/src/server/proto/Client/presence_service.pb.h index 7fb4f39c3d6..4b4284b19e8 100644 --- a/src/server/proto/Client/presence_service.pb.h +++ b/src/server/proto/Client/presence_service.pb.h @@ -83,19 +83,6 @@ class TC_PROTO_API SubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeRequest& from); - void MergeFrom(const SubscribeRequest& 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(); @@ -212,19 +199,6 @@ class TC_PROTO_API UnsubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UnsubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsubscribeRequest& from); - void MergeFrom(const UnsubscribeRequest& 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(); @@ -315,19 +289,6 @@ class TC_PROTO_API UpdateRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UpdateRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UpdateRequest& from); - void MergeFrom(const UpdateRequest& 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(); @@ -431,19 +392,6 @@ class TC_PROTO_API QueryRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- QueryRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const QueryRequest& from); - void MergeFrom(const QueryRequest& 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(); @@ -537,19 +485,6 @@ class TC_PROTO_API QueryResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- QueryResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const QueryResponse& from); - void MergeFrom(const QueryResponse& 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(); @@ -619,19 +554,6 @@ class TC_PROTO_API BatchSubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BatchSubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BatchSubscribeRequest& from); - void MergeFrom(const BatchSubscribeRequest& 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(); @@ -749,19 +671,6 @@ class TC_PROTO_API SubscribeResult : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeResult* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeResult& from); - void MergeFrom(const SubscribeResult& 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(); @@ -840,19 +749,6 @@ class TC_PROTO_API BatchSubscribeResponse : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BatchSubscribeResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BatchSubscribeResponse& from); - void MergeFrom(const BatchSubscribeResponse& 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(); @@ -922,19 +818,6 @@ class TC_PROTO_API BatchUnsubscribeRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- BatchUnsubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BatchUnsubscribeRequest& from); - void MergeFrom(const BatchUnsubscribeRequest& 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(); @@ -1003,6 +886,10 @@ class TC_PROTO_API PresenceService : public ServiceBase public: explicit PresenceService(bool use_original_hash); + PresenceService(PresenceService const&) = delete; + PresenceService(PresenceService&&) = delete; + PresenceService& operator=(PresenceService const&) = delete; + PresenceService& operator=(PresenceService&&) = delete; virtual ~PresenceService(); typedef std::integral_constant OriginalHash; @@ -1022,9 +909,12 @@ class TC_PROTO_API PresenceService : public ServiceBase virtual uint32 HandleBatchUnsubscribe(::bgs::protocol::presence::v1::BatchUnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(PresenceService); + void ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUpdate(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleQuery(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleBatchSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleBatchUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/presence_types.pb.cc b/src/server/proto/Client/presence_types.pb.cc index 8643da92ba0..67400b9caf9 100644 --- a/src/server/proto/Client/presence_types.pb.cc +++ b/src/server/proto/Client/presence_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "presence_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -230,7 +228,7 @@ void protobuf_AddDesc_presence_5ftypes_2eproto() { "ieldOperation\022\017\n\007healing\030\003 \001(\0102_\n\010presen" "ce\022%.bgs.protocol.channel.v1.ChannelStat" "e\030e \001(\0132&.bgs.protocol.presence.v1.Chann" - "elStateB\002H\001", 931); + "elStateB\002H\002", 931); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "presence_types.proto", &protobuf_RegisterTypes); RichPresenceLocalizationKey::default_instance_ = new RichPresenceLocalizationKey(); @@ -321,240 +319,9 @@ RichPresenceLocalizationKey* RichPresenceLocalizationKey::New() const { return new RichPresenceLocalizationKey; } -void RichPresenceLocalizationKey::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(program_, localization_id_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RichPresenceLocalizationKey::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.RichPresenceLocalizationKey) - 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 fixed32 program = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_stream; - break; - } - - // required fixed32 stream = 2; - case 2: { - if (tag == 21) { - parse_stream: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &stream_))); - set_has_stream(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_localization_id; - break; - } - - // required uint32 localization_id = 3; - case 3: { - if (tag == 24) { - parse_localization_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &localization_id_))); - set_has_localization_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.presence.v1.RichPresenceLocalizationKey) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.RichPresenceLocalizationKey) - return false; -#undef DO_ -} - -void RichPresenceLocalizationKey::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.RichPresenceLocalizationKey) - // required fixed32 program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->program(), output); - } - - // required fixed32 stream = 2; - if (has_stream()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->stream(), output); - } - - // required uint32 localization_id = 3; - if (has_localization_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->localization_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.RichPresenceLocalizationKey) -} - -::google::protobuf::uint8* RichPresenceLocalizationKey::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.RichPresenceLocalizationKey) - // required fixed32 program = 1; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->program(), target); - } - - // required fixed32 stream = 2; - if (has_stream()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->stream(), target); - } - - // required uint32 localization_id = 3; - if (has_localization_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->localization_id(), 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.RichPresenceLocalizationKey) - return target; -} - -int RichPresenceLocalizationKey::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed32 program = 1; - if (has_program()) { - total_size += 1 + 4; - } - - // required fixed32 stream = 2; - if (has_stream()) { - total_size += 1 + 4; - } - - // required uint32 localization_id = 3; - if (has_localization_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->localization_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 RichPresenceLocalizationKey::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RichPresenceLocalizationKey* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RichPresenceLocalizationKey::MergeFrom(const RichPresenceLocalizationKey& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_stream()) { - set_stream(from.stream()); - } - if (from.has_localization_id()) { - set_localization_id(from.localization_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RichPresenceLocalizationKey::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RichPresenceLocalizationKey::CopyFrom(const RichPresenceLocalizationKey& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RichPresenceLocalizationKey::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - void RichPresenceLocalizationKey::Swap(RichPresenceLocalizationKey* other) { if (other != this) { - std::swap(program_, other->program_); - std::swap(stream_, other->stream_); - std::swap(localization_id_, other->localization_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RichPresenceLocalizationKey::GetMetadata() const { @@ -630,280 +397,9 @@ FieldKey* FieldKey::New() const { return new FieldKey; } -void FieldKey::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(program_, field_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FieldKey::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.FieldKey) - 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 uint32 program = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_group; - break; - } - - // required uint32 group = 2; - case 2: { - if (tag == 16) { - parse_group: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &group_))); - set_has_group(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_field; - break; - } - - // required uint32 field = 3; - case 3: { - if (tag == 24) { - parse_field: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &field_))); - set_has_field(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_unique_id; - break; - } - - // optional uint64 unique_id = 4; - case 4: { - if (tag == 32) { - parse_unique_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &unique_id_))); - set_has_unique_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.presence.v1.FieldKey) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.FieldKey) - return false; -#undef DO_ -} - -void FieldKey::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.FieldKey) - // required uint32 program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->program(), output); - } - - // required uint32 group = 2; - if (has_group()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->group(), output); - } - - // required uint32 field = 3; - if (has_field()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->field(), output); - } - - // optional uint64 unique_id = 4; - if (has_unique_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->unique_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.FieldKey) -} - -::google::protobuf::uint8* FieldKey::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.FieldKey) - // required uint32 program = 1; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->program(), target); - } - - // required uint32 group = 2; - if (has_group()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->group(), target); - } - - // required uint32 field = 3; - if (has_field()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->field(), target); - } - - // optional uint64 unique_id = 4; - if (has_unique_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->unique_id(), 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.FieldKey) - return target; -} - -int FieldKey::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 program = 1; - if (has_program()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->program()); - } - - // required uint32 group = 2; - if (has_group()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->group()); - } - - // required uint32 field = 3; - if (has_field()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->field()); - } - - // optional uint64 unique_id = 4; - if (has_unique_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->unique_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 FieldKey::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FieldKey* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FieldKey::MergeFrom(const FieldKey& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_group()) { - set_group(from.group()); - } - if (from.has_field()) { - set_field(from.field()); - } - if (from.has_unique_id()) { - set_unique_id(from.unique_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FieldKey::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldKey::CopyFrom(const FieldKey& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldKey::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - void FieldKey::Swap(FieldKey* other) { if (other != this) { - std::swap(program_, other->program_); - std::swap(group_, other->group_); - std::swap(field_, other->field_); - std::swap(unique_id_, other->unique_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FieldKey::GetMetadata() const { @@ -979,209 +475,9 @@ Field* Field::New() const { return new Field; } -void Field::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_key()) { - if (key_ != NULL) key_->::bgs::protocol::presence::v1::FieldKey::Clear(); - } - if (has_value()) { - if (value_ != NULL) value_->::bgs::protocol::Variant::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Field::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.Field) - 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.presence.v1.FieldKey key = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_key())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_value; - break; - } - - // required .bgs.protocol.Variant value = 2; - case 2: { - if (tag == 18) { - parse_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_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.presence.v1.Field) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.Field) - return false; -#undef DO_ -} - -void Field::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.Field) - // required .bgs.protocol.presence.v1.FieldKey key = 1; - if (has_key()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->key(), output); - } - - // required .bgs.protocol.Variant value = 2; - if (has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->value(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.Field) -} - -::google::protobuf::uint8* Field::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.Field) - // required .bgs.protocol.presence.v1.FieldKey key = 1; - if (has_key()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->key(), target); - } - - // required .bgs.protocol.Variant value = 2; - if (has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->value(), 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.Field) - return target; -} - -int Field::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.presence.v1.FieldKey key = 1; - if (has_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->key()); - } - - // required .bgs.protocol.Variant value = 2; - if (has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->value()); - } - - } - 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 Field::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Field* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Field::MergeFrom(const Field& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_key()) { - mutable_key()->::bgs::protocol::presence::v1::FieldKey::MergeFrom(from.key()); - } - if (from.has_value()) { - mutable_value()->::bgs::protocol::Variant::MergeFrom(from.value()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Field::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Field::CopyFrom(const Field& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Field::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - if (has_key()) { - if (!this->key().IsInitialized()) return false; - } - if (has_value()) { - if (!this->value().IsInitialized()) return false; - } - return true; -} - void Field::Swap(Field* other) { if (other != this) { - std::swap(key_, other->key_); - std::swap(value_, other->value_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Field::GetMetadata() const { @@ -1276,209 +572,9 @@ FieldOperation* FieldOperation::New() const { return new FieldOperation; } -void FieldOperation::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_field()) { - if (field_ != NULL) field_->::bgs::protocol::presence::v1::Field::Clear(); - } - operation_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FieldOperation::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.FieldOperation) - 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.presence.v1.Field field = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_field())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_operation; - break; - } - - // optional .bgs.protocol.presence.v1.FieldOperation.OperationType operation = 2 [default = SET]; - case 2: { - if (tag == 16) { - parse_operation: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::presence::v1::FieldOperation_OperationType_IsValid(value)) { - set_operation(static_cast< ::bgs::protocol::presence::v1::FieldOperation_OperationType >(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.presence.v1.FieldOperation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.FieldOperation) - return false; -#undef DO_ -} - -void FieldOperation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.FieldOperation) - // required .bgs.protocol.presence.v1.Field field = 1; - if (has_field()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->field(), output); - } - - // optional .bgs.protocol.presence.v1.FieldOperation.OperationType operation = 2 [default = SET]; - if (has_operation()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->operation(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.FieldOperation) -} - -::google::protobuf::uint8* FieldOperation::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.FieldOperation) - // required .bgs.protocol.presence.v1.Field field = 1; - if (has_field()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->field(), target); - } - - // optional .bgs.protocol.presence.v1.FieldOperation.OperationType operation = 2 [default = SET]; - if (has_operation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->operation(), 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.FieldOperation) - return target; -} - -int FieldOperation::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.presence.v1.Field field = 1; - if (has_field()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->field()); - } - - // optional .bgs.protocol.presence.v1.FieldOperation.OperationType operation = 2 [default = SET]; - if (has_operation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation()); - } - - } - 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 FieldOperation::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FieldOperation* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FieldOperation::MergeFrom(const FieldOperation& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_field()) { - mutable_field()->::bgs::protocol::presence::v1::Field::MergeFrom(from.field()); - } - if (from.has_operation()) { - set_operation(from.operation()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FieldOperation::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldOperation::CopyFrom(const FieldOperation& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldOperation::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_field()) { - if (!this->field().IsInitialized()) return false; - } - return true; -} - void FieldOperation::Swap(FieldOperation* other) { if (other != this) { - std::swap(field_, other->field_); - std::swap(operation_, other->operation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FieldOperation::GetMetadata() const { @@ -1551,202 +647,9 @@ PresenceState* PresenceState::New() const { return new PresenceState; } -void PresenceState::Clear() { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - field_operation_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool PresenceState::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.PresenceState) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_field_operation; - break; - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - case 2: { - if (tag == 18) { - parse_field_operation: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_field_operation())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_field_operation; - 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.PresenceState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.PresenceState) - return false; -#undef DO_ -} - -void PresenceState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.PresenceState) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - for (int i = 0; i < this->field_operation_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->field_operation(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.PresenceState) -} - -::google::protobuf::uint8* PresenceState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.PresenceState) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_id(), target); - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - for (int i = 0; i < this->field_operation_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->field_operation(i), 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.PresenceState) - return target; -} - -int PresenceState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - } - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - total_size += 1 * this->field_operation_size(); - for (int i = 0; i < this->field_operation_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->field_operation(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 PresenceState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PresenceState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void PresenceState::MergeFrom(const PresenceState& from) { - GOOGLE_CHECK_NE(&from, this); - field_operation_.MergeFrom(from.field_operation_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PresenceState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PresenceState::CopyFrom(const PresenceState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PresenceState::IsInitialized() const { - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->field_operation())) return false; - return true; -} - void PresenceState::Swap(PresenceState* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - field_operation_.Swap(&other->field_operation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata PresenceState::GetMetadata() const { @@ -1827,239 +730,9 @@ ChannelState* ChannelState::New() const { return new ChannelState; } -void ChannelState::Clear() { - if (_has_bits_[0 / 32] & 5) { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - healing_ = false; - } - field_operation_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ChannelState::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.ChannelState) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_field_operation; - break; - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - case 2: { - if (tag == 18) { - parse_field_operation: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_field_operation())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_field_operation; - if (input->ExpectTag(24)) goto parse_healing; - break; - } - - // optional bool healing = 3; - case 3: { - if (tag == 24) { - parse_healing: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &healing_))); - set_has_healing(); - } 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.ChannelState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.ChannelState) - return false; -#undef DO_ -} - -void ChannelState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.ChannelState) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - for (int i = 0; i < this->field_operation_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->field_operation(i), output); - } - - // optional bool healing = 3; - if (has_healing()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->healing(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.ChannelState) -} - -::google::protobuf::uint8* ChannelState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.ChannelState) - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_id(), target); - } - - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - for (int i = 0; i < this->field_operation_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->field_operation(i), target); - } - - // optional bool healing = 3; - if (has_healing()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->healing(), 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.ChannelState) - return target; -} - -int ChannelState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional bool healing = 3; - if (has_healing()) { - total_size += 1 + 1; - } - - } - // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2; - total_size += 1 * this->field_operation_size(); - for (int i = 0; i < this->field_operation_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->field_operation(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 ChannelState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ChannelState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ChannelState::MergeFrom(const ChannelState& from) { - GOOGLE_CHECK_NE(&from, this); - field_operation_.MergeFrom(from.field_operation_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_healing()) { - set_healing(from.healing()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ChannelState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ChannelState::CopyFrom(const ChannelState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChannelState::IsInitialized() const { - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->field_operation())) return false; - return true; -} - void ChannelState::Swap(ChannelState* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - field_operation_.Swap(&other->field_operation_); - std::swap(healing_, other->healing_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ChannelState::GetMetadata() const { diff --git a/src/server/proto/Client/presence_types.pb.h b/src/server/proto/Client/presence_types.pb.h index 3542db1a5bd..9554ea4642a 100644 --- a/src/server/proto/Client/presence_types.pb.h +++ b/src/server/proto/Client/presence_types.pb.h @@ -97,19 +97,6 @@ class TC_PROTO_API RichPresenceLocalizationKey : public ::google::protobuf::Mess // implements Message ---------------------------------------------- RichPresenceLocalizationKey* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RichPresenceLocalizationKey& from); - void MergeFrom(const RichPresenceLocalizationKey& 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(); @@ -196,19 +183,6 @@ class TC_PROTO_API FieldKey : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FieldKey* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldKey& from); - void MergeFrom(const FieldKey& 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(); @@ -305,19 +279,6 @@ class TC_PROTO_API Field : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Field* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Field& from); - void MergeFrom(const Field& 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(); @@ -398,19 +359,6 @@ class TC_PROTO_API FieldOperation : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FieldOperation* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldOperation& from); - void MergeFrom(const FieldOperation& 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(); @@ -513,19 +461,6 @@ class TC_PROTO_API PresenceState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- PresenceState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PresenceState& from); - void MergeFrom(const PresenceState& 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(); @@ -607,19 +542,6 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ChannelState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ChannelState& from); - void MergeFrom(const ChannelState& 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(); diff --git a/src/server/proto/Client/profanity_filter_config.pb.cc b/src/server/proto/Client/profanity_filter_config.pb.cc index 7b5c3f4bdb7..4f22d72a660 100644 --- a/src/server/proto/Client/profanity_filter_config.pb.cc +++ b/src/server/proto/Client/profanity_filter_config.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "profanity_filter_config.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -109,7 +107,7 @@ void protobuf_AddDesc_profanity_5ffilter_5fconfig_2eproto() { "tocol.profanity.v1\")\n\nWordFilter\022\014\n\004type" "\030\001 \002(\t\022\r\n\005regex\030\002 \002(\t\"E\n\013WordFilters\0226\n\007" "filters\030\001 \003(\0132%.bgs.protocol.profanity.v" - "1.WordFilterB\002H\001", 176); + "1.WordFilterB\002H\002", 176); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "profanity_filter_config.proto", &protobuf_RegisterTypes); WordFilter::default_instance_ = new WordFilter(); @@ -193,231 +191,9 @@ WordFilter* WordFilter::New() const { return new WordFilter; } -void WordFilter::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_type()) { - if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - type_->clear(); - } - } - if (has_regex()) { - if (regex_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - regex_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool WordFilter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.profanity.v1.WordFilter) - 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 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_regex; - break; - } - - // required string regex = 2; - case 2: { - if (tag == 18) { - parse_regex: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_regex())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->regex().data(), this->regex().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "regex"); - } 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.profanity.v1.WordFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.profanity.v1.WordFilter) - return false; -#undef DO_ -} - -void WordFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.profanity.v1.WordFilter) - // required 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); - } - - // required string regex = 2; - if (has_regex()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->regex().data(), this->regex().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "regex"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->regex(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.profanity.v1.WordFilter) -} - -::google::protobuf::uint8* WordFilter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.profanity.v1.WordFilter) - // required 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); - } - - // required string regex = 2; - if (has_regex()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->regex().data(), this->regex().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "regex"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->regex(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.profanity.v1.WordFilter) - return target; -} - -int WordFilter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - // required string regex = 2; - if (has_regex()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->regex()); - } - - } - 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 WordFilter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const WordFilter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void WordFilter::MergeFrom(const WordFilter& 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_regex()) { - set_regex(from.regex()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void WordFilter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WordFilter::CopyFrom(const WordFilter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WordFilter::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - void WordFilter::Swap(WordFilter* other) { if (other != this) { - std::swap(type_, other->type_); - std::swap(regex_, other->regex_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata WordFilter::GetMetadata() const { @@ -486,156 +262,9 @@ WordFilters* WordFilters::New() const { return new WordFilters; } -void WordFilters::Clear() { - filters_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool WordFilters::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.profanity.v1.WordFilters) - 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.profanity.v1.WordFilter filters = 1; - case 1: { - if (tag == 10) { - parse_filters: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_filters())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_filters; - 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.profanity.v1.WordFilters) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.profanity.v1.WordFilters) - return false; -#undef DO_ -} - -void WordFilters::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.profanity.v1.WordFilters) - // repeated .bgs.protocol.profanity.v1.WordFilter filters = 1; - for (int i = 0; i < this->filters_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->filters(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.profanity.v1.WordFilters) -} - -::google::protobuf::uint8* WordFilters::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.profanity.v1.WordFilters) - // repeated .bgs.protocol.profanity.v1.WordFilter filters = 1; - for (int i = 0; i < this->filters_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->filters(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.profanity.v1.WordFilters) - return target; -} - -int WordFilters::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.profanity.v1.WordFilter filters = 1; - total_size += 1 * this->filters_size(); - for (int i = 0; i < this->filters_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->filters(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 WordFilters::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const WordFilters* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void WordFilters::MergeFrom(const WordFilters& from) { - GOOGLE_CHECK_NE(&from, this); - filters_.MergeFrom(from.filters_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void WordFilters::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WordFilters::CopyFrom(const WordFilters& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WordFilters::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->filters())) return false; - return true; -} - void WordFilters::Swap(WordFilters* other) { if (other != this) { - filters_.Swap(&other->filters_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata WordFilters::GetMetadata() const { diff --git a/src/server/proto/Client/profanity_filter_config.pb.h b/src/server/proto/Client/profanity_filter_config.pb.h index 243b9a66083..352ebebb87a 100644 --- a/src/server/proto/Client/profanity_filter_config.pb.h +++ b/src/server/proto/Client/profanity_filter_config.pb.h @@ -70,19 +70,6 @@ class TC_PROTO_API WordFilter : public ::google::protobuf::Message { // implements Message ---------------------------------------------- WordFilter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const WordFilter& from); - void MergeFrom(const WordFilter& 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(); @@ -169,19 +156,6 @@ class TC_PROTO_API WordFilters : public ::google::protobuf::Message { // implements Message ---------------------------------------------- WordFilters* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const WordFilters& from); - void MergeFrom(const WordFilters& 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(); diff --git a/src/server/proto/Client/report_service.pb.cc b/src/server/proto/Client/report_service.pb.cc index 1d8509728de..c67636a316b 100644 --- a/src/server/proto/Client/report_service.pb.cc +++ b/src/server/proto/Client/report_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "report_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -126,7 +123,7 @@ void protobuf_AddDesc_report_5fservice_2eproto() { "bgs.protocol.report.v1.SubmitReportReque" "st\032\024.bgs.protocol.NoData\"\006\202\371+\002\010\002\0326\202\371+,\n\"" "bnet.protocol.report.ReportService*\006repo" - "rt\212\371+\002\020\001B\005H\001\200\001\000", 575); + "rt\212\371+\002\020\001B\005H\002\200\001\000", 575); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "report_service.proto", &protobuf_RegisterTypes); SendReportRequest::default_instance_ = new SendReportRequest(); @@ -203,164 +200,9 @@ SendReportRequest* SendReportRequest::New() const { return new SendReportRequest; } -void SendReportRequest::Clear() { - if (has_report()) { - if (report_ != NULL) report_->::bgs::protocol::report::v1::Report::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -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.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 .bgs.protocol.report.v1.Report report = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_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.SendReportRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.SendReportRequest) - return false; -#undef DO_ -} - -void SendReportRequest::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()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 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.SendReportRequest) -} - -::google::protobuf::uint8* SendReportRequest::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()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 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.SendReportRequest) - return target; -} - -int SendReportRequest::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()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->report()); - } - - } - 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 SendReportRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SendReportRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SendReportRequest::MergeFrom(const SendReportRequest& 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()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SendReportRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SendReportRequest::CopyFrom(const SendReportRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SendReportRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_report()) { - if (!this->report().IsInitialized()) return false; - } - return true; -} - void SendReportRequest::Swap(SendReportRequest* other) { if (other != this) { - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SendReportRequest::GetMetadata() const { @@ -436,208 +278,9 @@ SubmitReportRequest* SubmitReportRequest::New() const { return new SubmitReportRequest; } -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 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.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)) { - // optional .bgs.protocol.account.v1.GameAccountHandle 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_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; - } - 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.SubmitReportRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.SubmitReportRequest) - return false; -#undef DO_ -} - -void SubmitReportRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@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->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.SubmitReportRequest) -} - -::google::protobuf::uint8* SubmitReportRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@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->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.SubmitReportRequest) - return target; -} - -int SubmitReportRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - 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()); - } - - } - 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 SubmitReportRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubmitReportRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubmitReportRequest::MergeFrom(const SubmitReportRequest& 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::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 SubmitReportRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubmitReportRequest::CopyFrom(const SubmitReportRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubmitReportRequest::IsInitialized() const { - 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 SubmitReportRequest::Swap(SubmitReportRequest* other) { if (other != this) { - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubmitReportRequest::GetMetadata() const { @@ -650,7 +293,7 @@ void SubmitReportRequest::Swap(SubmitReportRequest* other) { // =================================================================== -ReportService::ReportService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ReportService::ReportService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ReportService::~ReportService() { @@ -663,77 +306,59 @@ google::protobuf::ServiceDescriptor const* ReportService::descriptor() { void ReportService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::report::v1::SendReportRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ReportService.SendReport server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ReportService.SendReport(bgs.protocol.report.v1.SendReportRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ReportService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ReportService.SendReport() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSendReport(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleSendReport(token, methodId, buffer); 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_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ReportService.SubmitReport(bgs.protocol.report.v1.SubmitReportRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - ReportService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ReportService.SubmitReport() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleSubmitReport(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 2: + ParseAndHandleSubmitReport(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 ReportService::HandleSendReport(::bgs::protocol::report::v1::SendReportRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ReportService.SendReport({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ReportService::HandleSendReport(::bgs::protocol::report::v1::SendReportRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ReportService.SendReport", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ReportService::HandleSubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ReportService.SubmitReport({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ReportService::HandleSubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ReportService.SubmitReport", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void ReportService::ParseAndHandleSendReport(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::report::v1::SendReportRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ReportService.SendReport"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ReportService.SendReport", "bgs.protocol.report.v1.SendReportRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ReportService.SendReport", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSendReport(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void ReportService::ParseAndHandleSubmitReport(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::report::v1::SubmitReportRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ReportService.SubmitReport"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ReportService.SubmitReport", "bgs.protocol.report.v1.SubmitReportRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ReportService.SubmitReport", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleSubmitReport(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/report_service.pb.h b/src/server/proto/Client/report_service.pb.h index 0d640ca1879..69668627ae1 100644 --- a/src/server/proto/Client/report_service.pb.h +++ b/src/server/proto/Client/report_service.pb.h @@ -76,19 +76,6 @@ class TC_PROTO_API SendReportRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SendReportRequest* 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 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(); @@ -157,19 +144,6 @@ class TC_PROTO_API SubmitReportRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubmitReportRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubmitReportRequest& from); - void MergeFrom(const SubmitReportRequest& 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(); @@ -227,6 +201,10 @@ class TC_PROTO_API ReportService : public ServiceBase public: explicit ReportService(bool use_original_hash); + ReportService(ReportService const&) = delete; + ReportService(ReportService&&) = delete; + ReportService& operator=(ReportService const&) = delete; + ReportService& operator=(ReportService&&) = delete; virtual ~ReportService(); typedef std::integral_constant OriginalHash; @@ -242,9 +220,8 @@ class TC_PROTO_API ReportService : public ServiceBase virtual uint32 HandleSubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ReportService); + void ParseAndHandleSendReport(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleSubmitReport(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/report_types.pb.cc b/src/server/proto/Client/report_types.pb.cc index 2b39cbeb953..8acf415e300 100644 --- a/src/server/proto/Client/report_types.pb.cc +++ b/src/server/proto/Client/report_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "report_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -337,7 +335,7 @@ void protobuf_AddDesc_report_5ftypes_2eproto() { "porting_account\030\004 \001(\0132\026.bgs.protocol.Ent" "ityId\0226\n\026reporting_game_account\030\005 \001(\0132\026." "bgs.protocol.EntityId\022\030\n\020report_timestam" - "p\030\006 \001(\006B\005H\001\200\001\000", 1694); + "p\030\006 \001(\006B\005H\002\200\001\000", 1694); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "report_types.proto", &protobuf_RegisterTypes); ReportType::default_instance_ = new ReportType(); @@ -486,467 +484,9 @@ void ReportType::clear_type() { _oneof_case_[0] = TYPE_NOT_SET; } -void ReportType::Clear() { - if (has_user_description()) { - if (user_description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - user_description_->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 user_description = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_user_description())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_description().data(), this->user_description().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "user_description"); - } 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 user_description = 1; - if (has_user_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_description().data(), this->user_description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "user_description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->user_description(), 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 user_description = 1; - if (has_user_description()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->user_description().data(), this->user_description().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "user_description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->user_description(), 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 user_description = 1; - if (has_user_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->user_description()); - } - - } - 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( - &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_user_description()) { - set_user_description(from.user_description()); - } - } - 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(user_description_, other->user_description_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ReportType::GetMetadata() const { @@ -1026,269 +566,9 @@ 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_program_id()) { - if (program_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - program_id_->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_program_id; - break; - } - - // optional string program_id = 2 [deprecated = true]; - case 2: { - if (tag == 18) { - parse_program_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_program_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program_id().data(), this->program_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "program_id"); - } 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 program_id = 2 [deprecated = true]; - if (has_program_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program_id().data(), this->program_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "program_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->program_id(), 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 program_id = 2 [deprecated = true]; - if (has_program_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program_id().data(), this->program_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "program_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->program_id(), 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 program_id = 2 [deprecated = true]; - if (has_program_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->program_id()); - } - - } - // 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( - &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_program_id()) { - set_program_id(from.program_id()); - } - } - 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(program_id_, other->program_id_); - 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata CustomReport::GetMetadata() const { @@ -1387,208 +667,9 @@ 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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SpamReport::GetMetadata() const { @@ -1657,228 +738,18 @@ const ::google::protobuf::Descriptor* 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( - &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); + return *default_instance_; } -void HarassmentReport::CopyFrom(const HarassmentReport& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +HarassmentReport* HarassmentReport::default_instance_ = NULL; -bool HarassmentReport::IsInitialized() const { - if (has_target()) { - if (!this->target().IsInitialized()) return false; - } - return true; +HarassmentReport* HarassmentReport::New() const { + return new HarassmentReport; } 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata HarassmentReport::GetMetadata() const { @@ -1956,219 +827,9 @@ 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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RealLifeThreatReport::GetMetadata() const { @@ -2246,219 +907,9 @@ 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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata InappropriateBattleTagReport::GetMetadata() const { @@ -2530,163 +981,9 @@ 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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata HackingReport::GetMetadata() const { @@ -2758,163 +1055,9 @@ 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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BottingReport::GetMetadata() const { @@ -3001,387 +1144,9 @@ Report* Report::New() const { return new Report; } -void Report::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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( - &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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Report::GetMetadata() const { diff --git a/src/server/proto/Client/report_types.pb.h b/src/server/proto/Client/report_types.pb.h index 0bdadba72f1..374cf7545a7 100644 --- a/src/server/proto/Client/report_types.pb.h +++ b/src/server/proto/Client/report_types.pb.h @@ -114,19 +114,6 @@ class TC_PROTO_API ReportType : public ::google::protobuf::Message { // 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(); @@ -284,19 +271,6 @@ class TC_PROTO_API CustomReport : public ::google::protobuf::Message { // 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(); @@ -396,19 +370,6 @@ class TC_PROTO_API SpamReport : public ::google::protobuf::Message { // 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(); @@ -513,19 +474,6 @@ class TC_PROTO_API HarassmentReport : public ::google::protobuf::Message { // 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(); @@ -609,19 +557,6 @@ class TC_PROTO_API RealLifeThreatReport : public ::google::protobuf::Message { // 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(); @@ -705,19 +640,6 @@ class TC_PROTO_API InappropriateBattleTagReport : public ::google::protobuf::Mes // 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(); @@ -801,19 +723,6 @@ class TC_PROTO_API HackingReport : public ::google::protobuf::Message { // 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(); @@ -882,19 +791,6 @@ class TC_PROTO_API BottingReport : public ::google::protobuf::Message { // 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(); @@ -963,19 +859,6 @@ class TC_PROTO_API Report : public ::google::protobuf::Message { // 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(); diff --git a/src/server/proto/Client/resource_service.pb.cc b/src/server/proto/Client/resource_service.pb.cc index 1933d90f85f..11be715e690 100644 --- a/src/server/proto/Client/resource_service.pb.cc +++ b/src/server/proto/Client/resource_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "resource_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -99,7 +96,7 @@ void protobuf_AddDesc_resource_5fservice_2eproto() { "otocol.resources.v1.ContentHandleRequest" "\032\033.bgs.protocol.ContentHandle\"\006\202\371+\002\010\001\0328\202" "\371+.\n!bnet.protocol.resources.Resources*\t" - "resources\212\371+\002\020\001B\005H\001\200\001\000", 382); + "resources\212\371+\002\020\001B\005H\002\200\001\000", 382); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "resource_service.proto", &protobuf_RegisterTypes); ContentHandleRequest::default_instance_ = new ContentHandleRequest(); @@ -176,241 +173,9 @@ ContentHandleRequest* ContentHandleRequest::New() const { return new ContentHandleRequest; } -void ContentHandleRequest::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(program_, stream_); - version_ = 1701729619u; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ContentHandleRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.resources.v1.ContentHandleRequest) - 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 fixed32 program = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &program_))); - set_has_program(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_stream; - break; - } - - // required fixed32 stream = 2; - case 2: { - if (tag == 21) { - parse_stream: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &stream_))); - set_has_stream(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_version; - break; - } - - // optional fixed32 version = 3 [default = 1701729619]; - case 3: { - if (tag == 29) { - parse_version: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &version_))); - set_has_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.resources.v1.ContentHandleRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.resources.v1.ContentHandleRequest) - return false; -#undef DO_ -} - -void ContentHandleRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.resources.v1.ContentHandleRequest) - // required fixed32 program = 1; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->program(), output); - } - - // required fixed32 stream = 2; - if (has_stream()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->stream(), output); - } - - // optional fixed32 version = 3 [default = 1701729619]; - if (has_version()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(3, this->version(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.resources.v1.ContentHandleRequest) -} - -::google::protobuf::uint8* ContentHandleRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.resources.v1.ContentHandleRequest) - // required fixed32 program = 1; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->program(), target); - } - - // required fixed32 stream = 2; - if (has_stream()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->stream(), target); - } - - // optional fixed32 version = 3 [default = 1701729619]; - if (has_version()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(3, this->version(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.resources.v1.ContentHandleRequest) - return target; -} - -int ContentHandleRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required fixed32 program = 1; - if (has_program()) { - total_size += 1 + 4; - } - - // required fixed32 stream = 2; - if (has_stream()) { - total_size += 1 + 4; - } - - // optional fixed32 version = 3 [default = 1701729619]; - if (has_version()) { - 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 ContentHandleRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ContentHandleRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ContentHandleRequest::MergeFrom(const ContentHandleRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_stream()) { - set_stream(from.stream()); - } - if (from.has_version()) { - set_version(from.version()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ContentHandleRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContentHandleRequest::CopyFrom(const ContentHandleRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContentHandleRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - void ContentHandleRequest::Swap(ContentHandleRequest* other) { if (other != this) { - std::swap(program_, other->program_); - std::swap(stream_, other->stream_); - std::swap(version_, other->version_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ContentHandleRequest::GetMetadata() const { @@ -423,7 +188,7 @@ void ContentHandleRequest::Swap(ContentHandleRequest* other) { // =================================================================== -ResourcesService::ResourcesService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +ResourcesService::ResourcesService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } ResourcesService::~ResourcesService() { @@ -436,45 +201,36 @@ google::protobuf::ServiceDescriptor const* ResourcesService::descriptor() { void ResourcesService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::resources::v1::ContentHandleRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ResourcesService.GetContentHandle server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ResourcesService.GetContentHandle(bgs.protocol.resources.v1.ContentHandleRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::ContentHandle::descriptor()); - ResourcesService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ResourcesService.GetContentHandle() returned bgs.protocol.ContentHandle{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::ContentHandle response; - uint32 status = HandleGetContentHandle(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleGetContentHandle(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 ResourcesService::HandleGetContentHandle(::bgs::protocol::resources::v1::ContentHandleRequest const* request, ::bgs::protocol::ContentHandle* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ResourcesService.GetContentHandle({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 ResourcesService::HandleGetContentHandle(::bgs::protocol::resources::v1::ContentHandleRequest const* request, ::bgs::protocol::ContentHandle* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("ResourcesService.GetContentHandle", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void ResourcesService::ParseAndHandleGetContentHandle(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::resources::v1::ContentHandleRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("ResourcesService.GetContentHandle"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("ResourcesService.GetContentHandle", "bgs.protocol.resources.v1.ContentHandleRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "ResourcesService.GetContentHandle", ::bgs::protocol::ContentHandle::descriptor()); + ::bgs::protocol::ContentHandle response; + uint32 status = HandleGetContentHandle(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/resource_service.pb.h b/src/server/proto/Client/resource_service.pb.h index 73483456258..3c1bfa04564 100644 --- a/src/server/proto/Client/resource_service.pb.h +++ b/src/server/proto/Client/resource_service.pb.h @@ -74,19 +74,6 @@ class TC_PROTO_API ContentHandleRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ContentHandleRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ContentHandleRequest& from); - void MergeFrom(const ContentHandleRequest& 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(); @@ -150,6 +137,10 @@ class TC_PROTO_API ResourcesService : public ServiceBase public: explicit ResourcesService(bool use_original_hash); + ResourcesService(ResourcesService const&) = delete; + ResourcesService(ResourcesService&&) = delete; + ResourcesService& operator=(ResourcesService const&) = delete; + ResourcesService& operator=(ResourcesService&&) = delete; virtual ~ResourcesService(); typedef std::integral_constant OriginalHash; @@ -164,9 +155,7 @@ class TC_PROTO_API ResourcesService : public ServiceBase virtual uint32 HandleGetContentHandle(::bgs::protocol::resources::v1::ContentHandleRequest const* request, ::bgs::protocol::ContentHandle* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ResourcesService); + void ParseAndHandleGetContentHandle(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // =================================================================== diff --git a/src/server/proto/Client/role_types.pb.cc b/src/server/proto/Client/role_types.pb.cc index 2a011bfbe40..3a485c78d71 100644 --- a/src/server/proto/Client/role_types.pb.cc +++ b/src/server/proto/Client/role_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "role_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -127,7 +125,7 @@ void protobuf_AddDesc_role_5ftypes_2eproto() { "(\rB\002\020\001\022\020\n\010required\030\005 \001(\010\022\016\n\006unique\030\006 \001(\010" "\022\027\n\017relegation_role\030\007 \001(\r\022\031\n\rkickable_ro" "le\030\t \003(\rB\002\020\001\022\032\n\016removable_role\030\n \003(\rB\002\020\001" - "\022\034\n\020mentionable_role\030\013 \003(\rB\002\020\001B\002H\001", 434); + "\022\034\n\020mentionable_role\030\013 \003(\rB\002\020\001B\002H\002", 434); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "role_types.proto", &protobuf_RegisterTypes); Role::default_instance_ = new Role(); @@ -178,12 +176,9 @@ 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_)); } @@ -221,568 +216,9 @@ Role* Role::New() const { return new Role; } -void Role::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 115) { - ZR_(id_, unique_); - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - relegation_role_ = 0u; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - privilege_.Clear(); - assignable_role_.Clear(); - kickable_role_.Clear(); - removable_role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Role::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.Role) - 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 uint32 id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // required string name = 2; - case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_privilege; - break; - } - - // repeated string privilege = 3; - case 3: { - if (tag == 26) { - parse_privilege: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_privilege())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->privilege(this->privilege_size() - 1).data(), - this->privilege(this->privilege_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "privilege"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_privilege; - if (input->ExpectTag(34)) goto parse_assignable_role; - break; - } - - // repeated uint32 assignable_role = 4 [packed = true]; - case 4: { - if (tag == 34) { - parse_assignable_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_assignable_role()))); - } else if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34, input, this->mutable_assignable_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_required; - break; - } - - // optional bool required = 5; - case 5: { - if (tag == 40) { - parse_required: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &required_))); - set_has_required(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_unique; - break; - } - - // optional bool unique = 6; - case 6: { - if (tag == 48) { - parse_unique: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &unique_))); - set_has_unique(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_relegation_role; - break; - } - - // optional uint32 relegation_role = 7; - case 7: { - if (tag == 56) { - parse_relegation_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &relegation_role_))); - set_has_relegation_role(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_kickable_role; - break; - } - - // repeated uint32 kickable_role = 9 [packed = true]; - case 9: { - if (tag == 74) { - parse_kickable_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_kickable_role()))); - } else if (tag == 72) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 74, input, this->mutable_kickable_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_removable_role; - break; - } - - // repeated uint32 removable_role = 10 [packed = true]; - case 10: { - if (tag == 82) { - parse_removable_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_removable_role()))); - } else if (tag == 80) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 82, input, this->mutable_removable_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.Role) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.Role) - return false; -#undef DO_ -} - -void Role::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.Role) - // required uint32 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->id(), output); - } - - // required string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // repeated string privilege = 3; - for (int i = 0; i < this->privilege_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->privilege(i).data(), this->privilege(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "privilege"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->privilege(i), output); - } - - // repeated uint32 assignable_role = 4 [packed = true]; - if (this->assignable_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_assignable_role_cached_byte_size_); - } - for (int i = 0; i < this->assignable_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->assignable_role(i), output); - } - - // optional bool required = 5; - if (has_required()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->required(), output); - } - - // optional bool unique = 6; - if (has_unique()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->unique(), output); - } - - // optional uint32 relegation_role = 7; - if (has_relegation_role()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->relegation_role(), output); - } - - // repeated uint32 kickable_role = 9 [packed = true]; - if (this->kickable_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_kickable_role_cached_byte_size_); - } - for (int i = 0; i < this->kickable_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->kickable_role(i), output); - } - - // repeated uint32 removable_role = 10 [packed = true]; - if (this->removable_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_removable_role_cached_byte_size_); - } - for (int i = 0; i < this->removable_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->removable_role(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.Role) -} - -::google::protobuf::uint8* Role::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.Role) - // required uint32 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->id(), target); - } - - // required string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // repeated string privilege = 3; - for (int i = 0; i < this->privilege_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->privilege(i).data(), this->privilege(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "privilege"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->privilege(i), target); - } - - // repeated uint32 assignable_role = 4 [packed = true]; - if (this->assignable_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _assignable_role_cached_byte_size_, target); - } - for (int i = 0; i < this->assignable_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->assignable_role(i), target); - } - - // optional bool required = 5; - if (has_required()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->required(), target); - } - - // optional bool unique = 6; - if (has_unique()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->unique(), target); - } - - // optional uint32 relegation_role = 7; - if (has_relegation_role()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->relegation_role(), target); - } - - // repeated uint32 kickable_role = 9 [packed = true]; - if (this->kickable_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 9, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _kickable_role_cached_byte_size_, target); - } - for (int i = 0; i < this->kickable_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->kickable_role(i), target); - } - - // repeated uint32 removable_role = 10 [packed = true]; - if (this->removable_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 10, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _removable_role_cached_byte_size_, target); - } - for (int i = 0; i < this->removable_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->removable_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.Role) - return target; -} - -int Role::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->id()); - } - - // required string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional bool required = 5; - if (has_required()) { - total_size += 1 + 1; - } - - // optional bool unique = 6; - if (has_unique()) { - total_size += 1 + 1; - } - - // optional uint32 relegation_role = 7; - if (has_relegation_role()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->relegation_role()); - } - - } - // repeated string privilege = 3; - total_size += 1 * this->privilege_size(); - for (int i = 0; i < this->privilege_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->privilege(i)); - } - - // repeated uint32 assignable_role = 4 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->assignable_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->assignable_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _assignable_role_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated uint32 kickable_role = 9 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->kickable_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->kickable_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _kickable_role_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated uint32 removable_role = 10 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->removable_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->removable_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _removable_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 Role::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Role* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Role::MergeFrom(const Role& from) { - GOOGLE_CHECK_NE(&from, this); - privilege_.MergeFrom(from.privilege_); - assignable_role_.MergeFrom(from.assignable_role_); - kickable_role_.MergeFrom(from.kickable_role_); - removable_role_.MergeFrom(from.removable_role_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_required()) { - set_required(from.required()); - } - if (from.has_unique()) { - set_unique(from.unique()); - } - if (from.has_relegation_role()) { - set_relegation_role(from.relegation_role()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Role::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Role::CopyFrom(const Role& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Role::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - void Role::Swap(Role* other) { if (other != this) { - std::swap(id_, other->id_); - std::swap(name_, other->name_); - privilege_.Swap(&other->privilege_); - assignable_role_.Swap(&other->assignable_role_); - std::swap(required_, other->required_); - std::swap(unique_, other->unique_); - std::swap(relegation_role_, other->relegation_role_); - kickable_role_.Swap(&other->kickable_role_); - removable_role_.Swap(&other->removable_role_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Role::GetMetadata() const { @@ -826,13 +262,9 @@ void RoleState::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; 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; - _mentionable_role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -870,543 +302,9 @@ RoleState* RoleState::New() const { return new RoleState; } -void RoleState::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 29) { - ZR_(required_, relegation_role_); - if (has_name()) { - if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - name_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - assignable_role_.Clear(); - kickable_role_.Clear(); - removable_role_.Clear(); - mentionable_role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RoleState::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.RoleState) - 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 name = 2; - case 2: { - if (tag == 18) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_assignable_role; - break; - } - - // repeated uint32 assignable_role = 4 [packed = true]; - case 4: { - if (tag == 34) { - parse_assignable_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_assignable_role()))); - } else if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34, input, this->mutable_assignable_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_required; - break; - } - - // optional bool required = 5; - case 5: { - if (tag == 40) { - parse_required: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &required_))); - set_has_required(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_unique; - break; - } - - // optional bool unique = 6; - case 6: { - if (tag == 48) { - parse_unique: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &unique_))); - set_has_unique(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_relegation_role; - break; - } - - // optional uint32 relegation_role = 7; - case 7: { - if (tag == 56) { - parse_relegation_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &relegation_role_))); - set_has_relegation_role(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_kickable_role; - break; - } - - // repeated uint32 kickable_role = 9 [packed = true]; - case 9: { - if (tag == 74) { - parse_kickable_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_kickable_role()))); - } else if (tag == 72) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 74, input, this->mutable_kickable_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_removable_role; - break; - } - - // repeated uint32 removable_role = 10 [packed = true]; - case 10: { - if (tag == 82) { - parse_removable_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_removable_role()))); - } else if (tag == 80) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 82, input, this->mutable_removable_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_mentionable_role; - break; - } - - // repeated uint32 mentionable_role = 11 [packed = true]; - case 11: { - if (tag == 90) { - parse_mentionable_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_mentionable_role()))); - } else if (tag == 88) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 90, input, this->mutable_mentionable_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.RoleState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.RoleState) - return false; -#undef DO_ -} - -void RoleState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.RoleState) - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // repeated uint32 assignable_role = 4 [packed = true]; - if (this->assignable_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_assignable_role_cached_byte_size_); - } - for (int i = 0; i < this->assignable_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->assignable_role(i), output); - } - - // optional bool required = 5; - if (has_required()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->required(), output); - } - - // optional bool unique = 6; - if (has_unique()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->unique(), output); - } - - // optional uint32 relegation_role = 7; - if (has_relegation_role()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->relegation_role(), output); - } - - // repeated uint32 kickable_role = 9 [packed = true]; - if (this->kickable_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_kickable_role_cached_byte_size_); - } - for (int i = 0; i < this->kickable_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->kickable_role(i), output); - } - - // repeated uint32 removable_role = 10 [packed = true]; - if (this->removable_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_removable_role_cached_byte_size_); - } - for (int i = 0; i < this->removable_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->removable_role(i), output); - } - - // repeated uint32 mentionable_role = 11 [packed = true]; - if (this->mentionable_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(11, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_mentionable_role_cached_byte_size_); - } - for (int i = 0; i < this->mentionable_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->mentionable_role(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.RoleState) -} - -::google::protobuf::uint8* RoleState::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.RoleState) - // optional string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // repeated uint32 assignable_role = 4 [packed = true]; - if (this->assignable_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _assignable_role_cached_byte_size_, target); - } - for (int i = 0; i < this->assignable_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->assignable_role(i), target); - } - - // optional bool required = 5; - if (has_required()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->required(), target); - } - - // optional bool unique = 6; - if (has_unique()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->unique(), target); - } - - // optional uint32 relegation_role = 7; - if (has_relegation_role()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->relegation_role(), target); - } - - // repeated uint32 kickable_role = 9 [packed = true]; - if (this->kickable_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 9, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _kickable_role_cached_byte_size_, target); - } - for (int i = 0; i < this->kickable_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->kickable_role(i), target); - } - - // repeated uint32 removable_role = 10 [packed = true]; - if (this->removable_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 10, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _removable_role_cached_byte_size_, target); - } - for (int i = 0; i < this->removable_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->removable_role(i), target); - } - - // repeated uint32 mentionable_role = 11 [packed = true]; - if (this->mentionable_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 11, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _mentionable_role_cached_byte_size_, target); - } - for (int i = 0; i < this->mentionable_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->mentionable_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.RoleState) - return target; -} - -int RoleState::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional bool required = 5; - if (has_required()) { - total_size += 1 + 1; - } - - // optional bool unique = 6; - if (has_unique()) { - total_size += 1 + 1; - } - - // optional uint32 relegation_role = 7; - if (has_relegation_role()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->relegation_role()); - } - - } - // repeated uint32 assignable_role = 4 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->assignable_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->assignable_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _assignable_role_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated uint32 kickable_role = 9 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->kickable_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->kickable_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _kickable_role_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated uint32 removable_role = 10 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->removable_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->removable_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _removable_role_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated uint32 mentionable_role = 11 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->mentionable_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->mentionable_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _mentionable_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 RoleState::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RoleState* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RoleState::MergeFrom(const RoleState& from) { - GOOGLE_CHECK_NE(&from, this); - assignable_role_.MergeFrom(from.assignable_role_); - kickable_role_.MergeFrom(from.kickable_role_); - removable_role_.MergeFrom(from.removable_role_); - mentionable_role_.MergeFrom(from.mentionable_role_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_required()) { - set_required(from.required()); - } - if (from.has_unique()) { - set_unique(from.unique()); - } - if (from.has_relegation_role()) { - set_relegation_role(from.relegation_role()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RoleState::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RoleState::CopyFrom(const RoleState& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RoleState::IsInitialized() const { - return true; -} - void RoleState::Swap(RoleState* other) { if (other != this) { - std::swap(name_, other->name_); - assignable_role_.Swap(&other->assignable_role_); - std::swap(required_, other->required_); - std::swap(unique_, other->unique_); - std::swap(relegation_role_, other->relegation_role_); - kickable_role_.Swap(&other->kickable_role_); - removable_role_.Swap(&other->removable_role_); - mentionable_role_.Swap(&other->mentionable_role_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RoleState::GetMetadata() const { diff --git a/src/server/proto/Client/role_types.pb.h b/src/server/proto/Client/role_types.pb.h index 7ef7c370935..f74941034a8 100644 --- a/src/server/proto/Client/role_types.pb.h +++ b/src/server/proto/Client/role_types.pb.h @@ -68,19 +68,6 @@ class TC_PROTO_API Role : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Role* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Role& from); - void MergeFrom(const Role& 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(); @@ -205,14 +192,11 @@ class TC_PROTO_API Role : public ::google::protobuf::Message { ::std::string* name_; ::google::protobuf::RepeatedPtrField< ::std::string> privilege_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > assignable_role_; - mutable int _assignable_role_cached_byte_size_; ::google::protobuf::uint32 id_; bool required_; bool unique_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > kickable_role_; - mutable int _kickable_role_cached_byte_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > removable_role_; - mutable int _removable_role_cached_byte_size_; ::google::protobuf::uint32 relegation_role_; friend void TC_PROTO_API protobuf_AddDesc_role_5ftypes_2eproto(); friend void protobuf_AssignDesc_role_5ftypes_2eproto(); @@ -251,19 +235,6 @@ class TC_PROTO_API RoleState : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RoleState* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RoleState& from); - void MergeFrom(const RoleState& 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(); @@ -374,16 +345,12 @@ class TC_PROTO_API RoleState : public ::google::protobuf::Message { mutable int _cached_size_; ::std::string* name_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > assignable_role_; - mutable int _assignable_role_cached_byte_size_; bool required_; bool unique_; ::google::protobuf::uint32 relegation_role_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > kickable_role_; - mutable int _kickable_role_cached_byte_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > removable_role_; - mutable int _removable_role_cached_byte_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > mentionable_role_; - mutable int _mentionable_role_cached_byte_size_; friend void TC_PROTO_API protobuf_AddDesc_role_5ftypes_2eproto(); friend void protobuf_AssignDesc_role_5ftypes_2eproto(); friend void protobuf_ShutdownFile_role_5ftypes_2eproto(); diff --git a/src/server/proto/Client/rpc_config.pb.cc b/src/server/proto/Client/rpc_config.pb.cc index cd1ccb151f0..d8fceaa177b 100644 --- a/src/server/proto/Client/rpc_config.pb.cc +++ b/src/server/proto/Client/rpc_config.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "rpc_config.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -185,7 +183,7 @@ void protobuf_AddDesc_rpc_5fconfig_2eproto() { "_service_name\030\001 \002(\t\022\033\n\023client_service_na" "me\030\002 \002(\t\"L\n\016ServiceAliases\022:\n\016protocol_a" "lias\030\001 \003(\0132\".bgs.protocol.config.Protoco" - "lAliasB\002H\001", 770); + "lAliasB\002H\002", 770); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "rpc_config.proto", &protobuf_RegisterTypes); RPCMethodConfig::default_instance_ = new RPCMethodConfig(); @@ -299,715 +297,9 @@ RPCMethodConfig* RPCMethodConfig::New() const { return new RPCMethodConfig; } -void RPCMethodConfig::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(fixed_packet_size_, variable_multiplier_); - ZR_(rate_limit_count_, rate_limit_seconds_); - if (has_service_name()) { - if (service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - service_name_->clear(); - } - } - if (has_method_name()) { - if (method_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - method_name_->clear(); - } - } - fixed_call_cost_ = 1u; - multiplier_ = 1; - } - if (_has_bits_[8 / 32] & 32512) { - ZR_(max_packet_size_, method_id_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RPCMethodConfig::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.config.RPCMethodConfig) - 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 service_name = 1 [deprecated = true]; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_service_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->service_name().data(), this->service_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "service_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_method_name; - break; - } - - // optional string method_name = 2 [deprecated = true]; - case 2: { - if (tag == 18) { - parse_method_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_method_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->method_name().data(), this->method_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "method_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_fixed_call_cost; - break; - } - - // optional uint32 fixed_call_cost = 3 [default = 1]; - case 3: { - if (tag == 24) { - parse_fixed_call_cost: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &fixed_call_cost_))); - set_has_fixed_call_cost(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_fixed_packet_size; - break; - } - - // optional uint32 fixed_packet_size = 4 [default = 0]; - case 4: { - if (tag == 32) { - parse_fixed_packet_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &fixed_packet_size_))); - set_has_fixed_packet_size(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_variable_multiplier; - break; - } - - // optional float variable_multiplier = 5 [default = 0]; - case 5: { - if (tag == 45) { - parse_variable_multiplier: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &variable_multiplier_))); - set_has_variable_multiplier(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(53)) goto parse_multiplier; - break; - } - - // optional float multiplier = 6 [default = 1]; - case 6: { - if (tag == 53) { - parse_multiplier: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &multiplier_))); - set_has_multiplier(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_rate_limit_count; - break; - } - - // optional uint32 rate_limit_count = 7; - case 7: { - if (tag == 56) { - parse_rate_limit_count: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rate_limit_count_))); - set_has_rate_limit_count(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_rate_limit_seconds; - break; - } - - // optional uint32 rate_limit_seconds = 8; - case 8: { - if (tag == 64) { - parse_rate_limit_seconds: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rate_limit_seconds_))); - set_has_rate_limit_seconds(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_max_packet_size; - break; - } - - // optional uint32 max_packet_size = 9; - case 9: { - if (tag == 72) { - parse_max_packet_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_packet_size_))); - set_has_max_packet_size(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_max_encoded_size; - break; - } - - // optional uint32 max_encoded_size = 10; - case 10: { - if (tag == 80) { - parse_max_encoded_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_encoded_size_))); - set_has_max_encoded_size(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(93)) goto parse_timeout; - break; - } - - // optional float timeout = 11; - case 11: { - if (tag == 93) { - parse_timeout: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &timeout_))); - set_has_timeout(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(96)) goto parse_cap_balance; - break; - } - - // optional uint32 cap_balance = 12; - case 12: { - if (tag == 96) { - parse_cap_balance: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &cap_balance_))); - set_has_cap_balance(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(109)) goto parse_income_per_second; - break; - } - - // optional float income_per_second = 13 [default = 0]; - case 13: { - if (tag == 109) { - parse_income_per_second: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &income_per_second_))); - set_has_income_per_second(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(112)) goto parse_service_hash; - break; - } - - // optional uint32 service_hash = 14; - case 14: { - if (tag == 112) { - parse_service_hash: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &service_hash_))); - set_has_service_hash(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(120)) goto parse_method_id; - break; - } - - // optional uint32 method_id = 15; - case 15: { - if (tag == 120) { - parse_method_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &method_id_))); - set_has_method_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.config.RPCMethodConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.config.RPCMethodConfig) - return false; -#undef DO_ -} - -void RPCMethodConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.config.RPCMethodConfig) - // optional string service_name = 1 [deprecated = true]; - if (has_service_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->service_name().data(), this->service_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "service_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->service_name(), output); - } - - // optional string method_name = 2 [deprecated = true]; - if (has_method_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->method_name().data(), this->method_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "method_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->method_name(), output); - } - - // optional uint32 fixed_call_cost = 3 [default = 1]; - if (has_fixed_call_cost()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->fixed_call_cost(), output); - } - - // optional uint32 fixed_packet_size = 4 [default = 0]; - if (has_fixed_packet_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->fixed_packet_size(), output); - } - - // optional float variable_multiplier = 5 [default = 0]; - if (has_variable_multiplier()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->variable_multiplier(), output); - } - - // optional float multiplier = 6 [default = 1]; - if (has_multiplier()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->multiplier(), output); - } - - // optional uint32 rate_limit_count = 7; - if (has_rate_limit_count()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->rate_limit_count(), output); - } - - // optional uint32 rate_limit_seconds = 8; - if (has_rate_limit_seconds()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->rate_limit_seconds(), output); - } - - // optional uint32 max_packet_size = 9; - if (has_max_packet_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->max_packet_size(), output); - } - - // optional uint32 max_encoded_size = 10; - if (has_max_encoded_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->max_encoded_size(), output); - } - - // optional float timeout = 11; - if (has_timeout()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->timeout(), output); - } - - // optional uint32 cap_balance = 12; - if (has_cap_balance()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->cap_balance(), output); - } - - // optional float income_per_second = 13 [default = 0]; - if (has_income_per_second()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->income_per_second(), output); - } - - // optional uint32 service_hash = 14; - if (has_service_hash()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->service_hash(), output); - } - - // optional uint32 method_id = 15; - if (has_method_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(15, this->method_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.config.RPCMethodConfig) -} - -::google::protobuf::uint8* RPCMethodConfig::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.config.RPCMethodConfig) - // optional string service_name = 1 [deprecated = true]; - if (has_service_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->service_name().data(), this->service_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "service_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->service_name(), target); - } - - // optional string method_name = 2 [deprecated = true]; - if (has_method_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->method_name().data(), this->method_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "method_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->method_name(), target); - } - - // optional uint32 fixed_call_cost = 3 [default = 1]; - if (has_fixed_call_cost()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->fixed_call_cost(), target); - } - - // optional uint32 fixed_packet_size = 4 [default = 0]; - if (has_fixed_packet_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->fixed_packet_size(), target); - } - - // optional float variable_multiplier = 5 [default = 0]; - if (has_variable_multiplier()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->variable_multiplier(), target); - } - - // optional float multiplier = 6 [default = 1]; - if (has_multiplier()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->multiplier(), target); - } - - // optional uint32 rate_limit_count = 7; - if (has_rate_limit_count()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->rate_limit_count(), target); - } - - // optional uint32 rate_limit_seconds = 8; - if (has_rate_limit_seconds()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->rate_limit_seconds(), target); - } - - // optional uint32 max_packet_size = 9; - if (has_max_packet_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->max_packet_size(), target); - } - - // optional uint32 max_encoded_size = 10; - if (has_max_encoded_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->max_encoded_size(), target); - } - - // optional float timeout = 11; - if (has_timeout()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->timeout(), target); - } - - // optional uint32 cap_balance = 12; - if (has_cap_balance()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->cap_balance(), target); - } - - // optional float income_per_second = 13 [default = 0]; - if (has_income_per_second()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->income_per_second(), target); - } - - // optional uint32 service_hash = 14; - if (has_service_hash()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->service_hash(), target); - } - - // optional uint32 method_id = 15; - if (has_method_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(15, this->method_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.config.RPCMethodConfig) - return target; -} - -int RPCMethodConfig::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string service_name = 1 [deprecated = true]; - if (has_service_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->service_name()); - } - - // optional string method_name = 2 [deprecated = true]; - if (has_method_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->method_name()); - } - - // optional uint32 fixed_call_cost = 3 [default = 1]; - if (has_fixed_call_cost()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->fixed_call_cost()); - } - - // optional uint32 fixed_packet_size = 4 [default = 0]; - if (has_fixed_packet_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->fixed_packet_size()); - } - - // optional float variable_multiplier = 5 [default = 0]; - if (has_variable_multiplier()) { - total_size += 1 + 4; - } - - // optional float multiplier = 6 [default = 1]; - if (has_multiplier()) { - total_size += 1 + 4; - } - - // optional uint32 rate_limit_count = 7; - if (has_rate_limit_count()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rate_limit_count()); - } - - // optional uint32 rate_limit_seconds = 8; - if (has_rate_limit_seconds()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rate_limit_seconds()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional uint32 max_packet_size = 9; - if (has_max_packet_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_packet_size()); - } - - // optional uint32 max_encoded_size = 10; - if (has_max_encoded_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_encoded_size()); - } - - // optional float timeout = 11; - if (has_timeout()) { - total_size += 1 + 4; - } - - // optional uint32 cap_balance = 12; - if (has_cap_balance()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->cap_balance()); - } - - // optional float income_per_second = 13 [default = 0]; - if (has_income_per_second()) { - total_size += 1 + 4; - } - - // optional uint32 service_hash = 14; - if (has_service_hash()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->service_hash()); - } - - // optional uint32 method_id = 15; - if (has_method_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->method_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 RPCMethodConfig::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RPCMethodConfig* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RPCMethodConfig::MergeFrom(const RPCMethodConfig& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_service_name()) { - set_service_name(from.service_name()); - } - if (from.has_method_name()) { - set_method_name(from.method_name()); - } - if (from.has_fixed_call_cost()) { - set_fixed_call_cost(from.fixed_call_cost()); - } - if (from.has_fixed_packet_size()) { - set_fixed_packet_size(from.fixed_packet_size()); - } - if (from.has_variable_multiplier()) { - set_variable_multiplier(from.variable_multiplier()); - } - if (from.has_multiplier()) { - set_multiplier(from.multiplier()); - } - if (from.has_rate_limit_count()) { - set_rate_limit_count(from.rate_limit_count()); - } - if (from.has_rate_limit_seconds()) { - set_rate_limit_seconds(from.rate_limit_seconds()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_max_packet_size()) { - set_max_packet_size(from.max_packet_size()); - } - if (from.has_max_encoded_size()) { - set_max_encoded_size(from.max_encoded_size()); - } - if (from.has_timeout()) { - set_timeout(from.timeout()); - } - if (from.has_cap_balance()) { - set_cap_balance(from.cap_balance()); - } - if (from.has_income_per_second()) { - set_income_per_second(from.income_per_second()); - } - if (from.has_service_hash()) { - set_service_hash(from.service_hash()); - } - if (from.has_method_id()) { - set_method_id(from.method_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RPCMethodConfig::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RPCMethodConfig::CopyFrom(const RPCMethodConfig& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RPCMethodConfig::IsInitialized() const { - return true; -} - void RPCMethodConfig::Swap(RPCMethodConfig* other) { if (other != this) { - std::swap(service_name_, other->service_name_); - std::swap(method_name_, other->method_name_); - std::swap(fixed_call_cost_, other->fixed_call_cost_); - std::swap(fixed_packet_size_, other->fixed_packet_size_); - std::swap(variable_multiplier_, other->variable_multiplier_); - std::swap(multiplier_, other->multiplier_); - std::swap(rate_limit_count_, other->rate_limit_count_); - std::swap(rate_limit_seconds_, other->rate_limit_seconds_); - std::swap(max_packet_size_, other->max_packet_size_); - std::swap(max_encoded_size_, other->max_encoded_size_); - std::swap(timeout_, other->timeout_); - std::swap(cap_balance_, other->cap_balance_); - std::swap(income_per_second_, other->income_per_second_); - std::swap(service_hash_, other->service_hash_); - std::swap(method_id_, other->method_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RPCMethodConfig::GetMetadata() const { @@ -1084,319 +376,9 @@ RPCMeterConfig* RPCMeterConfig::New() const { return new RPCMeterConfig; } -void RPCMeterConfig::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 30) { - ZR_(initial_balance_, startup_period_); - income_per_second_ = 1u; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - method_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RPCMeterConfig::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.config.RPCMeterConfig) - 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.config.RPCMethodConfig method = 1; - case 1: { - if (tag == 10) { - parse_method: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_method())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_method; - if (input->ExpectTag(16)) goto parse_income_per_second; - break; - } - - // optional uint32 income_per_second = 2 [default = 1]; - case 2: { - if (tag == 16) { - parse_income_per_second: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &income_per_second_))); - set_has_income_per_second(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_initial_balance; - break; - } - - // optional uint32 initial_balance = 3; - case 3: { - if (tag == 24) { - parse_initial_balance: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &initial_balance_))); - set_has_initial_balance(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_cap_balance; - break; - } - - // optional uint32 cap_balance = 4; - case 4: { - if (tag == 32) { - parse_cap_balance: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &cap_balance_))); - set_has_cap_balance(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_startup_period; - break; - } - - // optional float startup_period = 5 [default = 0]; - case 5: { - if (tag == 45) { - parse_startup_period: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &startup_period_))); - set_has_startup_period(); - } 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.config.RPCMeterConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.config.RPCMeterConfig) - return false; -#undef DO_ -} - -void RPCMeterConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.config.RPCMeterConfig) - // repeated .bgs.protocol.config.RPCMethodConfig method = 1; - for (int i = 0; i < this->method_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->method(i), output); - } - - // optional uint32 income_per_second = 2 [default = 1]; - if (has_income_per_second()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->income_per_second(), output); - } - - // optional uint32 initial_balance = 3; - if (has_initial_balance()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->initial_balance(), output); - } - - // optional uint32 cap_balance = 4; - if (has_cap_balance()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->cap_balance(), output); - } - - // optional float startup_period = 5 [default = 0]; - if (has_startup_period()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->startup_period(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.config.RPCMeterConfig) -} - -::google::protobuf::uint8* RPCMeterConfig::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.config.RPCMeterConfig) - // repeated .bgs.protocol.config.RPCMethodConfig method = 1; - for (int i = 0; i < this->method_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->method(i), target); - } - - // optional uint32 income_per_second = 2 [default = 1]; - if (has_income_per_second()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->income_per_second(), target); - } - - // optional uint32 initial_balance = 3; - if (has_initial_balance()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->initial_balance(), target); - } - - // optional uint32 cap_balance = 4; - if (has_cap_balance()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->cap_balance(), target); - } - - // optional float startup_period = 5 [default = 0]; - if (has_startup_period()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->startup_period(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.config.RPCMeterConfig) - return target; -} - -int RPCMeterConfig::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint32 income_per_second = 2 [default = 1]; - if (has_income_per_second()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->income_per_second()); - } - - // optional uint32 initial_balance = 3; - if (has_initial_balance()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->initial_balance()); - } - - // optional uint32 cap_balance = 4; - if (has_cap_balance()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->cap_balance()); - } - - // optional float startup_period = 5 [default = 0]; - if (has_startup_period()) { - total_size += 1 + 4; - } - - } - // repeated .bgs.protocol.config.RPCMethodConfig method = 1; - total_size += 1 * this->method_size(); - for (int i = 0; i < this->method_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->method(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 RPCMeterConfig::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RPCMeterConfig* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RPCMeterConfig::MergeFrom(const RPCMeterConfig& from) { - GOOGLE_CHECK_NE(&from, this); - method_.MergeFrom(from.method_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_income_per_second()) { - set_income_per_second(from.income_per_second()); - } - if (from.has_initial_balance()) { - set_initial_balance(from.initial_balance()); - } - if (from.has_cap_balance()) { - set_cap_balance(from.cap_balance()); - } - if (from.has_startup_period()) { - set_startup_period(from.startup_period()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RPCMeterConfig::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RPCMeterConfig::CopyFrom(const RPCMeterConfig& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RPCMeterConfig::IsInitialized() const { - return true; -} - void RPCMeterConfig::Swap(RPCMeterConfig* other) { if (other != this) { - method_.Swap(&other->method_); - std::swap(income_per_second_, other->income_per_second_); - std::swap(initial_balance_, other->initial_balance_); - std::swap(cap_balance_, other->cap_balance_); - std::swap(startup_period_, other->startup_period_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RPCMeterConfig::GetMetadata() const { @@ -1475,231 +457,9 @@ ProtocolAlias* ProtocolAlias::New() const { return new ProtocolAlias; } -void ProtocolAlias::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_server_service_name()) { - if (server_service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - server_service_name_->clear(); - } - } - if (has_client_service_name()) { - if (client_service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_service_name_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ProtocolAlias::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.config.ProtocolAlias) - 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 server_service_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_server_service_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->server_service_name().data(), this->server_service_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "server_service_name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_client_service_name; - break; - } - - // required string client_service_name = 2; - case 2: { - if (tag == 18) { - parse_client_service_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_client_service_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_service_name().data(), this->client_service_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "client_service_name"); - } 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.config.ProtocolAlias) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.config.ProtocolAlias) - return false; -#undef DO_ -} - -void ProtocolAlias::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.config.ProtocolAlias) - // required string server_service_name = 1; - if (has_server_service_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->server_service_name().data(), this->server_service_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "server_service_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->server_service_name(), output); - } - - // required string client_service_name = 2; - if (has_client_service_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_service_name().data(), this->client_service_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_service_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->client_service_name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.config.ProtocolAlias) -} - -::google::protobuf::uint8* ProtocolAlias::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.config.ProtocolAlias) - // required string server_service_name = 1; - if (has_server_service_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->server_service_name().data(), this->server_service_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "server_service_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->server_service_name(), target); - } - - // required string client_service_name = 2; - if (has_client_service_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_service_name().data(), this->client_service_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_service_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->client_service_name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.config.ProtocolAlias) - return target; -} - -int ProtocolAlias::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string server_service_name = 1; - if (has_server_service_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->server_service_name()); - } - - // required string client_service_name = 2; - if (has_client_service_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_service_name()); - } - - } - 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 ProtocolAlias::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ProtocolAlias* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ProtocolAlias::MergeFrom(const ProtocolAlias& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_server_service_name()) { - set_server_service_name(from.server_service_name()); - } - if (from.has_client_service_name()) { - set_client_service_name(from.client_service_name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ProtocolAlias::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProtocolAlias::CopyFrom(const ProtocolAlias& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProtocolAlias::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - void ProtocolAlias::Swap(ProtocolAlias* other) { if (other != this) { - std::swap(server_service_name_, other->server_service_name_); - std::swap(client_service_name_, other->client_service_name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ProtocolAlias::GetMetadata() const { @@ -1768,156 +528,9 @@ ServiceAliases* ServiceAliases::New() const { return new ServiceAliases; } -void ServiceAliases::Clear() { - protocol_alias_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ServiceAliases::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.config.ServiceAliases) - 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.config.ProtocolAlias protocol_alias = 1; - case 1: { - if (tag == 10) { - parse_protocol_alias: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_protocol_alias())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_protocol_alias; - 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.config.ServiceAliases) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.config.ServiceAliases) - return false; -#undef DO_ -} - -void ServiceAliases::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.config.ServiceAliases) - // repeated .bgs.protocol.config.ProtocolAlias protocol_alias = 1; - for (int i = 0; i < this->protocol_alias_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->protocol_alias(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.config.ServiceAliases) -} - -::google::protobuf::uint8* ServiceAliases::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.config.ServiceAliases) - // repeated .bgs.protocol.config.ProtocolAlias protocol_alias = 1; - for (int i = 0; i < this->protocol_alias_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->protocol_alias(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.config.ServiceAliases) - return target; -} - -int ServiceAliases::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.config.ProtocolAlias protocol_alias = 1; - total_size += 1 * this->protocol_alias_size(); - for (int i = 0; i < this->protocol_alias_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->protocol_alias(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 ServiceAliases::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ServiceAliases* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ServiceAliases::MergeFrom(const ServiceAliases& from) { - GOOGLE_CHECK_NE(&from, this); - protocol_alias_.MergeFrom(from.protocol_alias_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ServiceAliases::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ServiceAliases::CopyFrom(const ServiceAliases& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ServiceAliases::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->protocol_alias())) return false; - return true; -} - void ServiceAliases::Swap(ServiceAliases* other) { if (other != this) { - protocol_alias_.Swap(&other->protocol_alias_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ServiceAliases::GetMetadata() const { diff --git a/src/server/proto/Client/rpc_config.pb.h b/src/server/proto/Client/rpc_config.pb.h index 02adb159a83..f72ef718d65 100644 --- a/src/server/proto/Client/rpc_config.pb.h +++ b/src/server/proto/Client/rpc_config.pb.h @@ -71,19 +71,6 @@ class TC_PROTO_API RPCMethodConfig : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RPCMethodConfig* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RPCMethodConfig& from); - void MergeFrom(const RPCMethodConfig& 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(); @@ -300,19 +287,6 @@ class TC_PROTO_API RPCMeterConfig : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RPCMeterConfig* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RPCMeterConfig& from); - void MergeFrom(const RPCMeterConfig& 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(); @@ -422,19 +396,6 @@ class TC_PROTO_API ProtocolAlias : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ProtocolAlias* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ProtocolAlias& from); - void MergeFrom(const ProtocolAlias& 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(); @@ -521,19 +482,6 @@ class TC_PROTO_API ServiceAliases : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ServiceAliases* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ServiceAliases& from); - void MergeFrom(const ServiceAliases& 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(); diff --git a/src/server/proto/Client/rpc_types.pb.cc b/src/server/proto/Client/rpc_types.pb.cc index 1e66615f965..4a2fc1ad028 100644 --- a/src/server/proto/Client/rpc_types.pb.cc +++ b/src/server/proto/Client/rpc_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "rpc_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -326,7 +324,7 @@ void protobuf_AddDesc_rpc_5ftypes_2eproto() { "\022\017\n\007timeout\030\007 \001(\004\022/\n\016forward_target\030\010 \001(" "\0132\027.bgs.protocol.ProcessId\022\024\n\014return_top" "ic\030\t \001(\t\022\021\n\tclient_id\030\013 \001(\tB\033\n\rbnet.prot" - "ocolB\010RpcProtoH\001P\000P\001P\002P\003", 1344); + "ocolB\010RpcProtoH\002P\000P\001P\002P\003", 1344); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "rpc_types.proto", &protobuf_RegisterTypes); NO_RESPONSE::default_instance_ = new NO_RESPONSE(); @@ -413,111 +411,9 @@ NO_RESPONSE* NO_RESPONSE::New() const { return new NO_RESPONSE; } -void NO_RESPONSE::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool NO_RESPONSE::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.NO_RESPONSE) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - 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.NO_RESPONSE) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.NO_RESPONSE) - return false; -#undef DO_ -} - -void NO_RESPONSE::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.NO_RESPONSE) - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.NO_RESPONSE) -} - -::google::protobuf::uint8* NO_RESPONSE::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.NO_RESPONSE) - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.NO_RESPONSE) - return target; -} - -int NO_RESPONSE::ByteSize() const { - int total_size = 0; - - 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 NO_RESPONSE::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const NO_RESPONSE* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void NO_RESPONSE::MergeFrom(const NO_RESPONSE& from) { - GOOGLE_CHECK_NE(&from, this); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void NO_RESPONSE::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NO_RESPONSE::CopyFrom(const NO_RESPONSE& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NO_RESPONSE::IsInitialized() const { - return true; -} - void NO_RESPONSE::Swap(NO_RESPONSE* other) { if (other != this) { - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata NO_RESPONSE::GetMetadata() const { @@ -593,214 +489,9 @@ Address* Address::New() const { return new Address; } -void Address::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_address()) { - if (address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - address_->clear(); - } - } - port_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Address::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.Address) - 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 address = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_address())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->address().data(), this->address().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "address"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_port; - break; - } - - // optional uint32 port = 2; - case 2: { - if (tag == 16) { - parse_port: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &port_))); - set_has_port(); - } 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.Address) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.Address) - return false; -#undef DO_ -} - -void Address::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.Address) - // required string address = 1; - if (has_address()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->address().data(), this->address().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "address"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->address(), output); - } - - // optional uint32 port = 2; - if (has_port()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->port(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.Address) -} - -::google::protobuf::uint8* Address::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.Address) - // required string address = 1; - if (has_address()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->address().data(), this->address().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "address"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->address(), target); - } - - // optional uint32 port = 2; - if (has_port()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->port(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.Address) - return target; -} - -int Address::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string address = 1; - if (has_address()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->address()); - } - - // optional uint32 port = 2; - if (has_port()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->port()); - } - - } - 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 Address::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Address* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Address::MergeFrom(const Address& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_address()) { - set_address(from.address()); - } - if (from.has_port()) { - set_port(from.port()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Address::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Address::CopyFrom(const Address& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Address::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - void Address::Swap(Address* other) { if (other != this) { - std::swap(address_, other->address_); - std::swap(port_, other->port_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Address::GetMetadata() const { @@ -872,208 +563,9 @@ ProcessId* ProcessId::New() const { return new ProcessId; } -void ProcessId::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(label_, epoch_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ProcessId::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.ProcessId) - 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 uint32 label = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &label_))); - set_has_label(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_epoch; - break; - } - - // required uint32 epoch = 2; - case 2: { - if (tag == 16) { - parse_epoch: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &epoch_))); - set_has_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.ProcessId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.ProcessId) - return false; -#undef DO_ -} - -void ProcessId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.ProcessId) - // required uint32 label = 1; - if (has_label()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->label(), output); - } - - // required uint32 epoch = 2; - if (has_epoch()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->epoch(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.ProcessId) -} - -::google::protobuf::uint8* ProcessId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.ProcessId) - // required uint32 label = 1; - if (has_label()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->label(), target); - } - - // required uint32 epoch = 2; - if (has_epoch()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->epoch(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.ProcessId) - return target; -} - -int ProcessId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 label = 1; - if (has_label()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->label()); - } - - // required uint32 epoch = 2; - if (has_epoch()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->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 ProcessId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ProcessId* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ProcessId::MergeFrom(const ProcessId& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_label()) { - set_label(from.label()); - } - if (from.has_epoch()) { - set_epoch(from.epoch()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ProcessId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProcessId::CopyFrom(const ProcessId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProcessId::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - void ProcessId::Swap(ProcessId* other) { if (other != this) { - std::swap(label_, other->label_); - std::swap(epoch_, other->epoch_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ProcessId::GetMetadata() const { @@ -1147,203 +639,9 @@ ObjectAddress* ObjectAddress::New() const { return new ObjectAddress; } -void ObjectAddress::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_host()) { - if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ObjectAddress::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.ObjectAddress) - 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.ProcessId host = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_host())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 2 [default = 0]; - case 2: { - if (tag == 16) { - 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->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.ObjectAddress) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.ObjectAddress) - return false; -#undef DO_ -} - -void ObjectAddress::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.ObjectAddress) - // required .bgs.protocol.ProcessId host = 1; - if (has_host()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->host(), output); - } - - // optional uint64 object_id = 2 [default = 0]; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.ObjectAddress) -} - -::google::protobuf::uint8* ObjectAddress::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.ObjectAddress) - // required .bgs.protocol.ProcessId host = 1; - if (has_host()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->host(), target); - } - - // optional uint64 object_id = 2 [default = 0]; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->object_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.ObjectAddress) - return target; -} - -int ObjectAddress::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.ProcessId host = 1; - if (has_host()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->host()); - } - - // optional uint64 object_id = 2 [default = 0]; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_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 ObjectAddress::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ObjectAddress* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ObjectAddress::MergeFrom(const ObjectAddress& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_host()) { - mutable_host()->::bgs::protocol::ProcessId::MergeFrom(from.host()); - } - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ObjectAddress::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObjectAddress::CopyFrom(const ObjectAddress& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObjectAddress::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_host()) { - if (!this->host().IsInitialized()) return false; - } - return true; -} - void ObjectAddress::Swap(ObjectAddress* other) { if (other != this) { - std::swap(host_, other->host_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ObjectAddress::GetMetadata() const { @@ -1411,111 +709,9 @@ NoData* NoData::New() const { return new NoData; } -void NoData::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool NoData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.NoData) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - 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.NoData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.NoData) - return false; -#undef DO_ -} - -void NoData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.NoData) - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.NoData) -} - -::google::protobuf::uint8* NoData::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.NoData) - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.NoData) - return target; -} - -int NoData::ByteSize() const { - int total_size = 0; - - 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 NoData::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const NoData* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void NoData::MergeFrom(const NoData& from) { - GOOGLE_CHECK_NE(&from, this); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void NoData::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NoData::CopyFrom(const NoData& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NoData::IsInitialized() const { - return true; -} - void NoData::Swap(NoData* other) { if (other != this) { - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata NoData::GetMetadata() const { @@ -1593,289 +789,9 @@ ErrorInfo* ErrorInfo::New() const { return new ErrorInfo; } -void ErrorInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(status_, method_id_); - if (has_object_address()) { - if (object_address_ != NULL) object_address_->::bgs::protocol::ObjectAddress::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ErrorInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.ErrorInfo) - 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.ObjectAddress object_address = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_object_address())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_status; - break; - } - - // required uint32 status = 2; - case 2: { - if (tag == 16) { - parse_status: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &status_))); - set_has_status(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_service_hash; - break; - } - - // required uint32 service_hash = 3; - case 3: { - if (tag == 24) { - parse_service_hash: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &service_hash_))); - set_has_service_hash(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_method_id; - break; - } - - // required uint32 method_id = 4; - case 4: { - if (tag == 32) { - parse_method_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &method_id_))); - set_has_method_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.ErrorInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.ErrorInfo) - return false; -#undef DO_ -} - -void ErrorInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.ErrorInfo) - // required .bgs.protocol.ObjectAddress object_address = 1; - if (has_object_address()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->object_address(), output); - } - - // required uint32 status = 2; - if (has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->status(), output); - } - - // required uint32 service_hash = 3; - if (has_service_hash()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->service_hash(), output); - } - - // required uint32 method_id = 4; - if (has_method_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->method_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.ErrorInfo) -} - -::google::protobuf::uint8* ErrorInfo::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.ErrorInfo) - // required .bgs.protocol.ObjectAddress object_address = 1; - if (has_object_address()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->object_address(), target); - } - - // required uint32 status = 2; - if (has_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->status(), target); - } - - // required uint32 service_hash = 3; - if (has_service_hash()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->service_hash(), target); - } - - // required uint32 method_id = 4; - if (has_method_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->method_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.ErrorInfo) - return target; -} - -int ErrorInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.ObjectAddress object_address = 1; - if (has_object_address()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->object_address()); - } - - // required uint32 status = 2; - if (has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->status()); - } - - // required uint32 service_hash = 3; - if (has_service_hash()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->service_hash()); - } - - // required uint32 method_id = 4; - if (has_method_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->method_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 ErrorInfo::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ErrorInfo* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ErrorInfo::MergeFrom(const ErrorInfo& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_object_address()) { - mutable_object_address()->::bgs::protocol::ObjectAddress::MergeFrom(from.object_address()); - } - if (from.has_status()) { - set_status(from.status()); - } - if (from.has_service_hash()) { - set_service_hash(from.service_hash()); - } - if (from.has_method_id()) { - set_method_id(from.method_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ErrorInfo::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ErrorInfo::CopyFrom(const ErrorInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ErrorInfo::IsInitialized() const { - if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; - if (has_object_address()) { - if (!this->object_address().IsInitialized()) return false; - } - return true; -} - void ErrorInfo::Swap(ErrorInfo* other) { if (other != this) { - std::swap(object_address_, other->object_address_); - std::swap(status_, other->status_); - std::swap(service_hash_, other->service_hash_); - std::swap(method_id_, other->method_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ErrorInfo::GetMetadata() const { @@ -1956,255 +872,9 @@ FanoutTarget* FanoutTarget::New() const { return new FanoutTarget; } -void FanoutTarget::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_client_id()) { - if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_id_->clear(); - } - } - if (has_key()) { - if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - key_->clear(); - } - } - object_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool FanoutTarget::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.FanoutTarget) - 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 client_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_client_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "client_id"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_key; - break; - } - - // optional bytes key = 2; - case 2: { - if (tag == 18) { - parse_key: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_key())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 3; - case 3: { - if (tag == 24) { - 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->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.FanoutTarget) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.FanoutTarget) - return false; -#undef DO_ -} - -void FanoutTarget::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.FanoutTarget) - // optional string client_id = 1; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->client_id(), output); - } - - // optional bytes key = 2; - if (has_key()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->key(), output); - } - - // optional uint64 object_id = 3; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.FanoutTarget) -} - -::google::protobuf::uint8* FanoutTarget::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.FanoutTarget) - // optional string client_id = 1; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->client_id(), target); - } - - // optional bytes key = 2; - if (has_key()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->key(), target); - } - - // optional uint64 object_id = 3; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->object_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.FanoutTarget) - return target; -} - -int FanoutTarget::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string client_id = 1; - if (has_client_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_id()); - } - - // optional bytes key = 2; - if (has_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->key()); - } - - // optional uint64 object_id = 3; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_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 FanoutTarget::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const FanoutTarget* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void FanoutTarget::MergeFrom(const FanoutTarget& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_client_id()) { - set_client_id(from.client_id()); - } - if (from.has_key()) { - set_key(from.key()); - } - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void FanoutTarget::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FanoutTarget::CopyFrom(const FanoutTarget& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FanoutTarget::IsInitialized() const { - return true; -} - void FanoutTarget::Swap(FanoutTarget* other) { if (other != this) { - std::swap(client_id_, other->client_id_); - std::swap(key_, other->key_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata FanoutTarget::GetMetadata() const { @@ -2319,905 +989,9 @@ Header* Header::New() const { return new Header; } -void Header::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 191) { - ZR_(service_id_, size_); - status_ = 0u; - timeout_ = GOOGLE_ULONGLONG(0); - } - if (_has_bits_[8 / 32] & 52480) { - is_response_ = false; - service_hash_ = 0u; - if (has_client_id()) { - if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_id_->clear(); - } - } - if (has_client_record()) { - if (client_record_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_record_->clear(); - } - } - if (has_original_sender()) { - if (original_sender_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - original_sender_->clear(); - } - } - } - if (_has_bits_[16 / 32] & 458752) { - sender_token_ = 0u; - router_label_ = 0u; - if (has_error_reason()) { - if (error_reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - error_reason_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - error_.Clear(); - forward_targets_.Clear(); - fanout_target_.Clear(); - client_id_fanout_target_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool Header::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.Header) - 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)) { - // required uint32 service_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &service_id_))); - set_has_service_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_method_id; - break; - } - - // optional uint32 method_id = 2; - case 2: { - if (tag == 16) { - parse_method_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &method_id_))); - set_has_method_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_token; - break; - } - - // required uint32 token = 3; - case 3: { - if (tag == 24) { - parse_token: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &token_))); - set_has_token(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 4 [default = 0]; - 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_size; - break; - } - - // optional uint32 size = 5 [default = 0]; - case 5: { - if (tag == 40) { - parse_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &size_))); - set_has_size(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_status; - break; - } - - // optional uint32 status = 6 [default = 0]; - case 6: { - if (tag == 48) { - parse_status: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &status_))); - set_has_status(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_error; - break; - } - - // repeated .bgs.protocol.ErrorInfo error = 7; - case 7: { - if (tag == 58) { - parse_error: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_error())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_error; - if (input->ExpectTag(64)) goto parse_timeout; - break; - } - - // optional uint64 timeout = 8; - case 8: { - if (tag == 64) { - parse_timeout: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &timeout_))); - set_has_timeout(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_is_response; - break; - } - - // optional bool is_response = 9; - case 9: { - if (tag == 72) { - parse_is_response: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_response_))); - set_has_is_response(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_forward_targets; - break; - } - - // repeated .bgs.protocol.ProcessId forward_targets = 10; - case 10: { - if (tag == 82) { - parse_forward_targets: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_forward_targets())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_forward_targets; - if (input->ExpectTag(93)) goto parse_service_hash; - break; - } - - // optional fixed32 service_hash = 11; - case 11: { - if (tag == 93) { - parse_service_hash: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &service_hash_))); - set_has_service_hash(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(106)) goto parse_client_id; - break; - } - - // optional string client_id = 13; - case 13: { - if (tag == 106) { - parse_client_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_client_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "client_id"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(114)) goto parse_fanout_target; - break; - } - - // repeated .bgs.protocol.FanoutTarget fanout_target = 14; - case 14: { - if (tag == 114) { - parse_fanout_target: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_fanout_target())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(114)) goto parse_fanout_target; - if (input->ExpectTag(122)) goto parse_client_id_fanout_target; - break; - } - - // repeated string client_id_fanout_target = 15; - case 15: { - if (tag == 122) { - parse_client_id_fanout_target: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_client_id_fanout_target())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id_fanout_target(this->client_id_fanout_target_size() - 1).data(), - this->client_id_fanout_target(this->client_id_fanout_target_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "client_id_fanout_target"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(122)) goto parse_client_id_fanout_target; - if (input->ExpectTag(130)) goto parse_client_record; - break; - } - - // optional bytes client_record = 16; - case 16: { - if (tag == 130) { - parse_client_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_client_record())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(138)) goto parse_original_sender; - break; - } - - // optional bytes original_sender = 17; - case 17: { - if (tag == 138) { - parse_original_sender: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_original_sender())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(144)) goto parse_sender_token; - break; - } - - // optional uint32 sender_token = 18; - case 18: { - if (tag == 144) { - parse_sender_token: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &sender_token_))); - set_has_sender_token(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(152)) goto parse_router_label; - break; - } - - // optional uint32 router_label = 19; - case 19: { - if (tag == 152) { - parse_router_label: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &router_label_))); - set_has_router_label(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(162)) goto parse_error_reason; - break; - } - - // optional string error_reason = 20; - case 20: { - if (tag == 162) { - parse_error_reason: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_error_reason())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->error_reason().data(), this->error_reason().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "error_reason"); - } 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.Header) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.Header) - return false; -#undef DO_ -} - -void Header::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.Header) - // required uint32 service_id = 1; - if (has_service_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->service_id(), output); - } - - // optional uint32 method_id = 2; - if (has_method_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->method_id(), output); - } - - // required uint32 token = 3; - if (has_token()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->token(), output); - } - - // optional uint64 object_id = 4 [default = 0]; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->object_id(), output); - } - - // optional uint32 size = 5 [default = 0]; - if (has_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->size(), output); - } - - // optional uint32 status = 6 [default = 0]; - if (has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->status(), output); - } - - // repeated .bgs.protocol.ErrorInfo error = 7; - for (int i = 0; i < this->error_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->error(i), output); - } - - // optional uint64 timeout = 8; - if (has_timeout()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->timeout(), output); - } - - // optional bool is_response = 9; - if (has_is_response()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->is_response(), output); - } - - // repeated .bgs.protocol.ProcessId forward_targets = 10; - for (int i = 0; i < this->forward_targets_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->forward_targets(i), output); - } - - // optional fixed32 service_hash = 11; - if (has_service_hash()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(11, this->service_hash(), output); - } - - // optional string client_id = 13; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 13, this->client_id(), output); - } - - // repeated .bgs.protocol.FanoutTarget fanout_target = 14; - for (int i = 0; i < this->fanout_target_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 14, this->fanout_target(i), output); - } - - // repeated string client_id_fanout_target = 15; - for (int i = 0; i < this->client_id_fanout_target_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id_fanout_target(i).data(), this->client_id_fanout_target(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id_fanout_target"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 15, this->client_id_fanout_target(i), output); - } - - // optional bytes client_record = 16; - if (has_client_record()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 16, this->client_record(), output); - } - - // optional bytes original_sender = 17; - if (has_original_sender()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 17, this->original_sender(), output); - } - - // optional uint32 sender_token = 18; - if (has_sender_token()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(18, this->sender_token(), output); - } - - // optional uint32 router_label = 19; - if (has_router_label()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->router_label(), output); - } - - // optional string error_reason = 20; - if (has_error_reason()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->error_reason().data(), this->error_reason().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "error_reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 20, this->error_reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.Header) -} - -::google::protobuf::uint8* Header::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.Header) - // required uint32 service_id = 1; - if (has_service_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->service_id(), target); - } - - // optional uint32 method_id = 2; - if (has_method_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->method_id(), target); - } - - // required uint32 token = 3; - if (has_token()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->token(), target); - } - - // optional uint64 object_id = 4 [default = 0]; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->object_id(), target); - } - - // optional uint32 size = 5 [default = 0]; - if (has_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->size(), target); - } - - // optional uint32 status = 6 [default = 0]; - if (has_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->status(), target); - } - - // repeated .bgs.protocol.ErrorInfo error = 7; - for (int i = 0; i < this->error_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->error(i), target); - } - - // optional uint64 timeout = 8; - if (has_timeout()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->timeout(), target); - } - - // optional bool is_response = 9; - if (has_is_response()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->is_response(), target); - } - - // repeated .bgs.protocol.ProcessId forward_targets = 10; - for (int i = 0; i < this->forward_targets_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 10, this->forward_targets(i), target); - } - - // optional fixed32 service_hash = 11; - if (has_service_hash()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(11, this->service_hash(), target); - } - - // optional string client_id = 13; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 13, this->client_id(), target); - } - - // repeated .bgs.protocol.FanoutTarget fanout_target = 14; - for (int i = 0; i < this->fanout_target_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 14, this->fanout_target(i), target); - } - - // repeated string client_id_fanout_target = 15; - for (int i = 0; i < this->client_id_fanout_target_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id_fanout_target(i).data(), this->client_id_fanout_target(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id_fanout_target"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(15, this->client_id_fanout_target(i), target); - } - - // optional bytes client_record = 16; - if (has_client_record()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 16, this->client_record(), target); - } - - // optional bytes original_sender = 17; - if (has_original_sender()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 17, this->original_sender(), target); - } - - // optional uint32 sender_token = 18; - if (has_sender_token()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(18, this->sender_token(), target); - } - - // optional uint32 router_label = 19; - if (has_router_label()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->router_label(), target); - } - - // optional string error_reason = 20; - if (has_error_reason()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->error_reason().data(), this->error_reason().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "error_reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 20, this->error_reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.Header) - return target; -} - -int Header::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 service_id = 1; - if (has_service_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->service_id()); - } - - // optional uint32 method_id = 2; - if (has_method_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->method_id()); - } - - // required uint32 token = 3; - if (has_token()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->token()); - } - - // optional uint64 object_id = 4 [default = 0]; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_id()); - } - - // optional uint32 size = 5 [default = 0]; - if (has_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->size()); - } - - // optional uint32 status = 6 [default = 0]; - if (has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->status()); - } - - // optional uint64 timeout = 8; - if (has_timeout()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->timeout()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional bool is_response = 9; - if (has_is_response()) { - total_size += 1 + 1; - } - - // optional fixed32 service_hash = 11; - if (has_service_hash()) { - total_size += 1 + 4; - } - - // optional string client_id = 13; - if (has_client_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_id()); - } - - // optional bytes client_record = 16; - if (has_client_record()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->client_record()); - } - - // optional bytes original_sender = 17; - if (has_original_sender()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->original_sender()); - } - - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - // optional uint32 sender_token = 18; - if (has_sender_token()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->sender_token()); - } - - // optional uint32 router_label = 19; - if (has_router_label()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->router_label()); - } - - // optional string error_reason = 20; - if (has_error_reason()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->error_reason()); - } - - } - // repeated .bgs.protocol.ErrorInfo error = 7; - total_size += 1 * this->error_size(); - for (int i = 0; i < this->error_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->error(i)); - } - - // repeated .bgs.protocol.ProcessId forward_targets = 10; - total_size += 1 * this->forward_targets_size(); - for (int i = 0; i < this->forward_targets_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->forward_targets(i)); - } - - // repeated .bgs.protocol.FanoutTarget fanout_target = 14; - total_size += 1 * this->fanout_target_size(); - for (int i = 0; i < this->fanout_target_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->fanout_target(i)); - } - - // repeated string client_id_fanout_target = 15; - total_size += 1 * this->client_id_fanout_target_size(); - for (int i = 0; i < this->client_id_fanout_target_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_id_fanout_target(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 Header::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const Header* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void Header::MergeFrom(const Header& from) { - GOOGLE_CHECK_NE(&from, this); - error_.MergeFrom(from.error_); - forward_targets_.MergeFrom(from.forward_targets_); - fanout_target_.MergeFrom(from.fanout_target_); - client_id_fanout_target_.MergeFrom(from.client_id_fanout_target_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_service_id()) { - set_service_id(from.service_id()); - } - if (from.has_method_id()) { - set_method_id(from.method_id()); - } - if (from.has_token()) { - set_token(from.token()); - } - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - if (from.has_size()) { - set_size(from.size()); - } - if (from.has_status()) { - set_status(from.status()); - } - if (from.has_timeout()) { - set_timeout(from.timeout()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_is_response()) { - set_is_response(from.is_response()); - } - if (from.has_service_hash()) { - set_service_hash(from.service_hash()); - } - if (from.has_client_id()) { - set_client_id(from.client_id()); - } - if (from.has_client_record()) { - set_client_record(from.client_record()); - } - if (from.has_original_sender()) { - set_original_sender(from.original_sender()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_sender_token()) { - set_sender_token(from.sender_token()); - } - if (from.has_router_label()) { - set_router_label(from.router_label()); - } - if (from.has_error_reason()) { - set_error_reason(from.error_reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void Header::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Header::CopyFrom(const Header& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Header::IsInitialized() const { - if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->error())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->forward_targets())) return false; - return true; -} - void Header::Swap(Header* other) { if (other != this) { - std::swap(service_id_, other->service_id_); - std::swap(method_id_, other->method_id_); - std::swap(token_, other->token_); - std::swap(object_id_, other->object_id_); - std::swap(size_, other->size_); - std::swap(status_, other->status_); - error_.Swap(&other->error_); - std::swap(timeout_, other->timeout_); - std::swap(is_response_, other->is_response_); - forward_targets_.Swap(&other->forward_targets_); - std::swap(service_hash_, other->service_hash_); - std::swap(client_id_, other->client_id_); - fanout_target_.Swap(&other->fanout_target_); - client_id_fanout_target_.Swap(&other->client_id_fanout_target_); - std::swap(client_record_, other->client_record_); - std::swap(original_sender_, other->original_sender_); - std::swap(sender_token_, other->sender_token_); - std::swap(router_label_, other->router_label_); - std::swap(error_reason_, other->error_reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata Header::GetMetadata() const { @@ -3314,545 +1088,9 @@ KafkaHeader* KafkaHeader::New() const { return new KafkaHeader; } -void KafkaHeader::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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_(service_hash_, timeout_); - status_ = 0u; - if (has_forward_target()) { - if (forward_target_ != NULL) forward_target_->::bgs::protocol::ProcessId::Clear(); - } - } - if (_has_bits_[8 / 32] & 768) { - if (has_return_topic()) { - if (return_topic_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return_topic_->clear(); - } - } - if (has_client_id()) { - if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - client_id_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool KafkaHeader::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.KafkaHeader) - 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 service_hash = 1; - case 1: { - if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &service_hash_))); - set_has_service_hash(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_method_id; - break; - } - - // optional uint32 method_id = 2; - case 2: { - if (tag == 16) { - parse_method_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &method_id_))); - set_has_method_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_token; - break; - } - - // optional uint32 token = 3; - case 3: { - if (tag == 24) { - parse_token: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &token_))); - set_has_token(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 4 [default = 0]; - 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_size; - break; - } - - // optional uint32 size = 5 [default = 0]; - case 5: { - if (tag == 40) { - parse_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &size_))); - set_has_size(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_status; - break; - } - - // optional uint32 status = 6 [default = 0]; - case 6: { - if (tag == 48) { - parse_status: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &status_))); - set_has_status(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_timeout; - break; - } - - // optional uint64 timeout = 7; - case 7: { - if (tag == 56) { - parse_timeout: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &timeout_))); - set_has_timeout(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_forward_target; - break; - } - - // optional .bgs.protocol.ProcessId forward_target = 8; - case 8: { - if (tag == 66) { - parse_forward_target: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_forward_target())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_return_topic; - break; - } - - // optional string return_topic = 9; - case 9: { - if (tag == 74) { - parse_return_topic: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_return_topic())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->return_topic().data(), this->return_topic().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "return_topic"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_client_id; - break; - } - - // optional string client_id = 11; - case 11: { - if (tag == 90) { - parse_client_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_client_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "client_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.KafkaHeader) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.KafkaHeader) - return false; -#undef DO_ -} - -void KafkaHeader::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.KafkaHeader) - // optional fixed32 service_hash = 1; - if (has_service_hash()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->service_hash(), output); - } - - // optional uint32 method_id = 2; - if (has_method_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->method_id(), output); - } - - // optional uint32 token = 3; - if (has_token()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->token(), output); - } - - // optional uint64 object_id = 4 [default = 0]; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->object_id(), output); - } - - // optional uint32 size = 5 [default = 0]; - if (has_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->size(), output); - } - - // optional uint32 status = 6 [default = 0]; - if (has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->status(), output); - } - - // optional uint64 timeout = 7; - if (has_timeout()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->timeout(), output); - } - - // optional .bgs.protocol.ProcessId forward_target = 8; - if (has_forward_target()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->forward_target(), output); - } - - // optional string return_topic = 9; - if (has_return_topic()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->return_topic().data(), this->return_topic().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "return_topic"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->return_topic(), output); - } - - // optional string client_id = 11; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 11, this->client_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.KafkaHeader) -} - -::google::protobuf::uint8* KafkaHeader::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.KafkaHeader) - // optional fixed32 service_hash = 1; - if (has_service_hash()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->service_hash(), target); - } - - // optional uint32 method_id = 2; - if (has_method_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->method_id(), target); - } - - // optional uint32 token = 3; - if (has_token()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->token(), target); - } - - // optional uint64 object_id = 4 [default = 0]; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->object_id(), target); - } - - // optional uint32 size = 5 [default = 0]; - if (has_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->size(), target); - } - - // optional uint32 status = 6 [default = 0]; - if (has_status()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->status(), target); - } - - // optional uint64 timeout = 7; - if (has_timeout()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->timeout(), target); - } - - // optional .bgs.protocol.ProcessId forward_target = 8; - if (has_forward_target()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 8, this->forward_target(), target); - } - - // optional string return_topic = 9; - if (has_return_topic()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->return_topic().data(), this->return_topic().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "return_topic"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 9, this->return_topic(), target); - } - - // optional string client_id = 11; - if (has_client_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->client_id().data(), this->client_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "client_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 11, this->client_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.KafkaHeader) - return target; -} - -int KafkaHeader::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional fixed32 service_hash = 1; - if (has_service_hash()) { - total_size += 1 + 4; - } - - // optional uint32 method_id = 2; - if (has_method_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->method_id()); - } - - // optional uint32 token = 3; - if (has_token()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->token()); - } - - // optional uint64 object_id = 4 [default = 0]; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_id()); - } - - // optional uint32 size = 5 [default = 0]; - if (has_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->size()); - } - - // optional uint32 status = 6 [default = 0]; - if (has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->status()); - } - - // optional uint64 timeout = 7; - if (has_timeout()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->timeout()); - } - - // optional .bgs.protocol.ProcessId forward_target = 8; - if (has_forward_target()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->forward_target()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional string return_topic = 9; - if (has_return_topic()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->return_topic()); - } - - // optional string client_id = 11; - if (has_client_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_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 KafkaHeader::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const KafkaHeader* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void KafkaHeader::MergeFrom(const KafkaHeader& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_service_hash()) { - set_service_hash(from.service_hash()); - } - if (from.has_method_id()) { - set_method_id(from.method_id()); - } - if (from.has_token()) { - set_token(from.token()); - } - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - if (from.has_size()) { - set_size(from.size()); - } - if (from.has_status()) { - set_status(from.status()); - } - if (from.has_timeout()) { - set_timeout(from.timeout()); - } - if (from.has_forward_target()) { - mutable_forward_target()->::bgs::protocol::ProcessId::MergeFrom(from.forward_target()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_return_topic()) { - set_return_topic(from.return_topic()); - } - if (from.has_client_id()) { - set_client_id(from.client_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void KafkaHeader::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void KafkaHeader::CopyFrom(const KafkaHeader& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KafkaHeader::IsInitialized() const { - if (has_forward_target()) { - if (!this->forward_target().IsInitialized()) return false; - } - return true; -} - void KafkaHeader::Swap(KafkaHeader* other) { if (other != this) { - std::swap(service_hash_, other->service_hash_); - std::swap(method_id_, other->method_id_); - std::swap(token_, other->token_); - std::swap(object_id_, other->object_id_); - std::swap(size_, other->size_); - std::swap(status_, other->status_); - std::swap(timeout_, other->timeout_); - std::swap(forward_target_, other->forward_target_); - std::swap(return_topic_, other->return_topic_); - std::swap(client_id_, other->client_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata KafkaHeader::GetMetadata() const { diff --git a/src/server/proto/Client/rpc_types.pb.h b/src/server/proto/Client/rpc_types.pb.h index 64750f7e4fb..e035332b44a 100644 --- a/src/server/proto/Client/rpc_types.pb.h +++ b/src/server/proto/Client/rpc_types.pb.h @@ -79,19 +79,6 @@ class TC_PROTO_API NO_RESPONSE : public ::google::protobuf::Message { // implements Message ---------------------------------------------- NO_RESPONSE* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const NO_RESPONSE& from); - void MergeFrom(const NO_RESPONSE& 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(); @@ -148,19 +135,6 @@ class TC_PROTO_API Address : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Address* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Address& from); - void MergeFrom(const Address& 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(); @@ -242,19 +216,6 @@ class TC_PROTO_API ProcessId : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ProcessId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ProcessId& from); - void MergeFrom(const ProcessId& 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(); @@ -331,19 +292,6 @@ class TC_PROTO_API ObjectAddress : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ObjectAddress* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ObjectAddress& from); - void MergeFrom(const ObjectAddress& 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(); @@ -422,19 +370,6 @@ class TC_PROTO_API NoData : public ::google::protobuf::Message { // implements Message ---------------------------------------------- NoData* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const NoData& from); - void MergeFrom(const NoData& 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(); @@ -491,19 +426,6 @@ class TC_PROTO_API ErrorInfo : public ::google::protobuf::Message { // implements Message ---------------------------------------------- ErrorInfo* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ErrorInfo& from); - void MergeFrom(const ErrorInfo& 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(); @@ -602,19 +524,6 @@ class TC_PROTO_API FanoutTarget : public ::google::protobuf::Message { // implements Message ---------------------------------------------- FanoutTarget* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FanoutTarget& from); - void MergeFrom(const FanoutTarget& 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(); @@ -711,19 +620,6 @@ class TC_PROTO_API Header : public ::google::protobuf::Message { // implements Message ---------------------------------------------- Header* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Header& from); - void MergeFrom(const Header& 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(); @@ -1006,19 +902,6 @@ class TC_PROTO_API KafkaHeader : public ::google::protobuf::Message { // implements Message ---------------------------------------------- KafkaHeader* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const KafkaHeader& from); - void MergeFrom(const KafkaHeader& 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(); diff --git a/src/server/proto/Client/user_manager_service.pb.cc b/src/server/proto/Client/user_manager_service.pb.cc index cbb9bdae4a9..bd2c0a0509b 100644 --- a/src/server/proto/Client/user_manager_service.pb.cc +++ b/src/server/proto/Client/user_manager_service.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "user_manager_service.pb.h" -#include #include #include @@ -15,8 +14,6 @@ #include #include #include -#include "Log.h" -#include "Errors.h" #include "BattlenetRpcErrorCodes.h" // @@protoc_insertion_point(includes) @@ -396,7 +393,7 @@ void protobuf_AddDesc_user_5fmanager_5fservice_2eproto() { ".protocol.user_manager.v1.RecentPlayersR" "emovedNotification\032\031.bgs.protocol.NO_RES" "PONSE\"\006\202\371+\002\010\014\0328\202\371+.\n,bnet.protocol.user_" - "manager.UserManagerNotify\212\371+\002\010\001B\005H\001\200\001\000", 2958); + "manager.UserManagerNotify\212\371+\002\010\001B\005H\002\200\001\000", 2958); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "user_manager_service.proto", &protobuf_RegisterTypes); SubscribeRequest::default_instance_ = new SubscribeRequest(); @@ -493,203 +490,9 @@ SubscribeRequest* SubscribeRequest::New() const { return new SubscribeRequest; } -void SubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.SubscribeRequest) - 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(16)) goto parse_object_id; - break; - } - - // required uint64 object_id = 2; - case 2: { - if (tag == 16) { - 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->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.user_manager.v1.SubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.SubscribeRequest) - return false; -#undef DO_ -} - -void SubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.SubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // required uint64 object_id = 2; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.SubscribeRequest) -} - -::google::protobuf::uint8* SubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.SubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // required uint64 object_id = 2; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->object_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.SubscribeRequest) - return target; -} - -int SubscribeRequest::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 uint64 object_id = 2; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_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 SubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeRequest::MergeFrom(const SubscribeRequest& 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_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeRequest::CopyFrom(const SubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void SubscribeRequest::Swap(SubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeRequest::GetMetadata() const { @@ -759,195 +562,9 @@ SubscribeResponse* SubscribeResponse::New() const { return new SubscribeResponse; } -void SubscribeResponse::Clear() { - blocked_players_.Clear(); - recent_players_.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.user_manager.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)) { - // repeated .bgs.protocol.user_manager.v1.BlockedPlayer blocked_players = 1; - case 1: { - if (tag == 10) { - parse_blocked_players: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_blocked_players())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_blocked_players; - if (input->ExpectTag(18)) goto parse_recent_players; - break; - } - - // repeated .bgs.protocol.user_manager.v1.RecentPlayer recent_players = 2; - case 2: { - if (tag == 18) { - parse_recent_players: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_recent_players())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_recent_players; - 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.user_manager.v1.SubscribeResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.SubscribeResponse) - return false; -#undef DO_ -} - -void SubscribeResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.SubscribeResponse) - // repeated .bgs.protocol.user_manager.v1.BlockedPlayer blocked_players = 1; - for (int i = 0; i < this->blocked_players_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->blocked_players(i), output); - } - - // repeated .bgs.protocol.user_manager.v1.RecentPlayer recent_players = 2; - for (int i = 0; i < this->recent_players_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->recent_players(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.SubscribeResponse) -} - -::google::protobuf::uint8* SubscribeResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.SubscribeResponse) - // repeated .bgs.protocol.user_manager.v1.BlockedPlayer blocked_players = 1; - for (int i = 0; i < this->blocked_players_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->blocked_players(i), target); - } - - // repeated .bgs.protocol.user_manager.v1.RecentPlayer recent_players = 2; - for (int i = 0; i < this->recent_players_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->recent_players(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.SubscribeResponse) - return target; -} - -int SubscribeResponse::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.user_manager.v1.BlockedPlayer blocked_players = 1; - total_size += 1 * this->blocked_players_size(); - for (int i = 0; i < this->blocked_players_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blocked_players(i)); - } - - // repeated .bgs.protocol.user_manager.v1.RecentPlayer recent_players = 2; - total_size += 1 * this->recent_players_size(); - for (int i = 0; i < this->recent_players_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->recent_players(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( - &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); - blocked_players_.MergeFrom(from.blocked_players_); - recent_players_.MergeFrom(from.recent_players_); - 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->blocked_players())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->recent_players())) return false; - return true; -} - void SubscribeResponse::Swap(SubscribeResponse* other) { if (other != this) { - blocked_players_.Swap(&other->blocked_players_); - recent_players_.Swap(&other->recent_players_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata SubscribeResponse::GetMetadata() const { @@ -1021,202 +638,9 @@ UnsubscribeRequest* UnsubscribeRequest::New() const { return new UnsubscribeRequest; } -void UnsubscribeRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsubscribeRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.UnsubscribeRequest) - 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(16)) goto parse_object_id; - break; - } - - // optional uint64 object_id = 2; - case 2: { - if (tag == 16) { - 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->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.user_manager.v1.UnsubscribeRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.UnsubscribeRequest) - return false; -#undef DO_ -} - -void UnsubscribeRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.UnsubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint64 object_id = 2; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->object_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.UnsubscribeRequest) -} - -::google::protobuf::uint8* UnsubscribeRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.UnsubscribeRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint64 object_id = 2; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->object_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.UnsubscribeRequest) - return target; -} - -int UnsubscribeRequest::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 uint64 object_id = 2; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_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 UnsubscribeRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsubscribeRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsubscribeRequest::MergeFrom(const UnsubscribeRequest& 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_object_id()) { - set_object_id(from.object_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsubscribeRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsubscribeRequest::CopyFrom(const UnsubscribeRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsubscribeRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void UnsubscribeRequest::Swap(UnsubscribeRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(object_id_, other->object_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnsubscribeRequest::GetMetadata() const { @@ -1291,242 +715,9 @@ AddRecentPlayersRequest* AddRecentPlayersRequest::New() const { return new AddRecentPlayersRequest; } -void AddRecentPlayersRequest::Clear() { - if (_has_bits_[0 / 32] & 6) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - program_ = 0u; - } - players_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AddRecentPlayersRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.AddRecentPlayersRequest) - 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.user_manager.v1.RecentPlayer players = 1; - case 1: { - if (tag == 10) { - parse_players: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_players())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_players; - if (input->ExpectTag(18)) goto parse_agent_id; - break; - } - - // optional .bgs.protocol.EntityId agent_id = 2; - case 2: { - if (tag == 18) { - parse_agent_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_program; - break; - } - - // optional uint32 program = 3; - case 3: { - if (tag == 24) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &program_))); - set_has_program(); - } 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.user_manager.v1.AddRecentPlayersRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.AddRecentPlayersRequest) - return false; -#undef DO_ -} - -void AddRecentPlayersRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.AddRecentPlayersRequest) - // repeated .bgs.protocol.user_manager.v1.RecentPlayer players = 1; - for (int i = 0; i < this->players_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->players(i), output); - } - - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->agent_id(), output); - } - - // optional uint32 program = 3; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.AddRecentPlayersRequest) -} - -::google::protobuf::uint8* AddRecentPlayersRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.AddRecentPlayersRequest) - // repeated .bgs.protocol.user_manager.v1.RecentPlayer players = 1; - for (int i = 0; i < this->players_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->players(i), target); - } - - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->agent_id(), target); - } - - // optional uint32 program = 3; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->program(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.AddRecentPlayersRequest) - return target; -} - -int AddRecentPlayersRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional .bgs.protocol.EntityId agent_id = 2; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // optional uint32 program = 3; - if (has_program()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->program()); - } - - } - // repeated .bgs.protocol.user_manager.v1.RecentPlayer players = 1; - total_size += 1 * this->players_size(); - for (int i = 0; i < this->players_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->players(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 AddRecentPlayersRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AddRecentPlayersRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AddRecentPlayersRequest::MergeFrom(const AddRecentPlayersRequest& from) { - GOOGLE_CHECK_NE(&from, this); - players_.MergeFrom(from.players_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); - } - if (from.has_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AddRecentPlayersRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AddRecentPlayersRequest::CopyFrom(const AddRecentPlayersRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddRecentPlayersRequest::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->players())) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void AddRecentPlayersRequest::Swap(AddRecentPlayersRequest* other) { if (other != this) { - players_.Swap(&other->players_); - std::swap(agent_id_, other->agent_id_); - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata AddRecentPlayersRequest::GetMetadata() const { @@ -1600,202 +791,9 @@ ClearRecentPlayersRequest* ClearRecentPlayersRequest::New() const { return new ClearRecentPlayersRequest; } -void ClearRecentPlayersRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - program_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ClearRecentPlayersRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.ClearRecentPlayersRequest) - 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(16)) goto parse_program; - break; - } - - // optional uint32 program = 2; - case 2: { - if (tag == 16) { - parse_program: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &program_))); - set_has_program(); - } 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.user_manager.v1.ClearRecentPlayersRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.ClearRecentPlayersRequest) - return false; -#undef DO_ -} - -void ClearRecentPlayersRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.ClearRecentPlayersRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // optional uint32 program = 2; - if (has_program()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->program(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.ClearRecentPlayersRequest) -} - -::google::protobuf::uint8* ClearRecentPlayersRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.ClearRecentPlayersRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // optional uint32 program = 2; - if (has_program()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->program(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.ClearRecentPlayersRequest) - return target; -} - -int ClearRecentPlayersRequest::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 uint32 program = 2; - if (has_program()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->program()); - } - - } - 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 ClearRecentPlayersRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClearRecentPlayersRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ClearRecentPlayersRequest::MergeFrom(const ClearRecentPlayersRequest& 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_program()) { - set_program(from.program()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClearRecentPlayersRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClearRecentPlayersRequest::CopyFrom(const ClearRecentPlayersRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClearRecentPlayersRequest::IsInitialized() const { - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - return true; -} - void ClearRecentPlayersRequest::Swap(ClearRecentPlayersRequest* other) { if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(program_, other->program_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata ClearRecentPlayersRequest::GetMetadata() const { @@ -1855,225 +853,25 @@ void BlockPlayerRequest::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* BlockPlayerRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BlockPlayerRequest_descriptor_; -} - -const BlockPlayerRequest& BlockPlayerRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_user_5fmanager_5fservice_2eproto(); - return *default_instance_; -} - -BlockPlayerRequest* BlockPlayerRequest::default_instance_ = NULL; - -BlockPlayerRequest* BlockPlayerRequest::New() const { - return new BlockPlayerRequest; -} - -void BlockPlayerRequest::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 BlockPlayerRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.BlockPlayerRequest) - 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; - } - - // required .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.user_manager.v1.BlockPlayerRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.BlockPlayerRequest) - return false; -#undef DO_ -} - -void BlockPlayerRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.BlockPlayerRequest) - // 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 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.user_manager.v1.BlockPlayerRequest) -} - -::google::protobuf::uint8* BlockPlayerRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.BlockPlayerRequest) - // 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 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.user_manager.v1.BlockPlayerRequest) - return target; -} - -int BlockPlayerRequest::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 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 BlockPlayerRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BlockPlayerRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BlockPlayerRequest::MergeFrom(const BlockPlayerRequest& 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()); +const ::google::protobuf::Descriptor* BlockPlayerRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BlockPlayerRequest_descriptor_; } -void BlockPlayerRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); +const BlockPlayerRequest& BlockPlayerRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_user_5fmanager_5fservice_2eproto(); + return *default_instance_; } -void BlockPlayerRequest::CopyFrom(const BlockPlayerRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} +BlockPlayerRequest* BlockPlayerRequest::default_instance_ = NULL; -bool BlockPlayerRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_target_id()) { - if (!this->target_id().IsInitialized()) return false; - } - return true; +BlockPlayerRequest* BlockPlayerRequest::New() const { + return new BlockPlayerRequest; } void BlockPlayerRequest::Swap(BlockPlayerRequest* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BlockPlayerRequest::GetMetadata() const { @@ -2149,209 +947,9 @@ UnblockPlayerRequest* UnblockPlayerRequest::New() const { return new UnblockPlayerRequest; } -void UnblockPlayerRequest::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 UnblockPlayerRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.UnblockPlayerRequest) - 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; - } - - // required .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.user_manager.v1.UnblockPlayerRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.UnblockPlayerRequest) - return false; -#undef DO_ -} - -void UnblockPlayerRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.UnblockPlayerRequest) - // 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 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.user_manager.v1.UnblockPlayerRequest) -} - -::google::protobuf::uint8* UnblockPlayerRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.UnblockPlayerRequest) - // 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 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.user_manager.v1.UnblockPlayerRequest) - return target; -} - -int UnblockPlayerRequest::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 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 UnblockPlayerRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnblockPlayerRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnblockPlayerRequest::MergeFrom(const UnblockPlayerRequest& 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 UnblockPlayerRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnblockPlayerRequest::CopyFrom(const UnblockPlayerRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnblockPlayerRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - 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 UnblockPlayerRequest::Swap(UnblockPlayerRequest* 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_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata UnblockPlayerRequest::GetMetadata() const { @@ -2431,252 +1029,9 @@ BlockedPlayerAddedNotification* BlockedPlayerAddedNotification::New() const { return new BlockedPlayerAddedNotification; } -void BlockedPlayerAddedNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_player()) { - if (player_ != NULL) player_->::bgs::protocol::user_manager::v1::BlockedPlayer::Clear(); - } - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BlockedPlayerAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.BlockedPlayerAddedNotification) - 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.user_manager.v1.BlockedPlayer player = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_player())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_game_account_id; - break; - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - case 2: { - if (tag == 18) { - parse_game_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 3; - case 3: { - if (tag == 26) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_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.user_manager.v1.BlockedPlayerAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.BlockedPlayerAddedNotification) - return false; -#undef DO_ -} - -void BlockedPlayerAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.BlockedPlayerAddedNotification) - // required .bgs.protocol.user_manager.v1.BlockedPlayer player = 1; - if (has_player()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->player(), output); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account_id(), output); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->account_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.BlockedPlayerAddedNotification) -} - -::google::protobuf::uint8* BlockedPlayerAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.BlockedPlayerAddedNotification) - // required .bgs.protocol.user_manager.v1.BlockedPlayer player = 1; - if (has_player()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->player(), target); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_account_id(), target); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->account_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.BlockedPlayerAddedNotification) - return target; -} - -int BlockedPlayerAddedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.user_manager.v1.BlockedPlayer player = 1; - if (has_player()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->player()); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id()); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_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 BlockedPlayerAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BlockedPlayerAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BlockedPlayerAddedNotification::MergeFrom(const BlockedPlayerAddedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_player()) { - mutable_player()->::bgs::protocol::user_manager::v1::BlockedPlayer::MergeFrom(from.player()); - } - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BlockedPlayerAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlockedPlayerAddedNotification::CopyFrom(const BlockedPlayerAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BlockedPlayerAddedNotification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_player()) { - if (!this->player().IsInitialized()) return false; - } - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; -} - void BlockedPlayerAddedNotification::Swap(BlockedPlayerAddedNotification* other) { if (other != this) { - std::swap(player_, other->player_); - std::swap(game_account_id_, other->game_account_id_); - std::swap(account_id_, other->account_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BlockedPlayerAddedNotification::GetMetadata() const { @@ -2756,252 +1111,9 @@ BlockedPlayerRemovedNotification* BlockedPlayerRemovedNotification::New() const return new BlockedPlayerRemovedNotification; } -void BlockedPlayerRemovedNotification::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_player()) { - if (player_ != NULL) player_->::bgs::protocol::user_manager::v1::BlockedPlayer::Clear(); - } - if (has_game_account_id()) { - if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BlockedPlayerRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.BlockedPlayerRemovedNotification) - 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.user_manager.v1.BlockedPlayer player = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_player())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_game_account_id; - break; - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - case 2: { - if (tag == 18) { - parse_game_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_game_account_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_account_id; - break; - } - - // optional .bgs.protocol.EntityId account_id = 3; - case 3: { - if (tag == 26) { - parse_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_account_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.user_manager.v1.BlockedPlayerRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.BlockedPlayerRemovedNotification) - return false; -#undef DO_ -} - -void BlockedPlayerRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.BlockedPlayerRemovedNotification) - // required .bgs.protocol.user_manager.v1.BlockedPlayer player = 1; - if (has_player()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->player(), output); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->game_account_id(), output); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->account_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.BlockedPlayerRemovedNotification) -} - -::google::protobuf::uint8* BlockedPlayerRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.BlockedPlayerRemovedNotification) - // required .bgs.protocol.user_manager.v1.BlockedPlayer player = 1; - if (has_player()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->player(), target); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->game_account_id(), target); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->account_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.BlockedPlayerRemovedNotification) - return target; -} - -int BlockedPlayerRemovedNotification::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.user_manager.v1.BlockedPlayer player = 1; - if (has_player()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->player()); - } - - // optional .bgs.protocol.EntityId game_account_id = 2; - if (has_game_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->game_account_id()); - } - - // optional .bgs.protocol.EntityId account_id = 3; - if (has_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->account_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 BlockedPlayerRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BlockedPlayerRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BlockedPlayerRemovedNotification::MergeFrom(const BlockedPlayerRemovedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_player()) { - mutable_player()->::bgs::protocol::user_manager::v1::BlockedPlayer::MergeFrom(from.player()); - } - if (from.has_game_account_id()) { - mutable_game_account_id()->::bgs::protocol::EntityId::MergeFrom(from.game_account_id()); - } - if (from.has_account_id()) { - mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BlockedPlayerRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlockedPlayerRemovedNotification::CopyFrom(const BlockedPlayerRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BlockedPlayerRemovedNotification::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_player()) { - if (!this->player().IsInitialized()) return false; - } - if (has_game_account_id()) { - if (!this->game_account_id().IsInitialized()) return false; - } - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; -} - void BlockedPlayerRemovedNotification::Swap(BlockedPlayerRemovedNotification* other) { if (other != this) { - std::swap(player_, other->player_); - std::swap(game_account_id_, other->game_account_id_); - std::swap(account_id_, other->account_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BlockedPlayerRemovedNotification::GetMetadata() const { @@ -3070,156 +1182,9 @@ RecentPlayersAddedNotification* RecentPlayersAddedNotification::New() const { return new RecentPlayersAddedNotification; } -void RecentPlayersAddedNotification::Clear() { - player_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RecentPlayersAddedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.RecentPlayersAddedNotification) - 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.user_manager.v1.RecentPlayer player = 1; - case 1: { - if (tag == 10) { - parse_player: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_player())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_player; - 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.user_manager.v1.RecentPlayersAddedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.RecentPlayersAddedNotification) - return false; -#undef DO_ -} - -void RecentPlayersAddedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.RecentPlayersAddedNotification) - // repeated .bgs.protocol.user_manager.v1.RecentPlayer player = 1; - for (int i = 0; i < this->player_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->player(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.RecentPlayersAddedNotification) -} - -::google::protobuf::uint8* RecentPlayersAddedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.RecentPlayersAddedNotification) - // repeated .bgs.protocol.user_manager.v1.RecentPlayer player = 1; - for (int i = 0; i < this->player_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->player(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.RecentPlayersAddedNotification) - return target; -} - -int RecentPlayersAddedNotification::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.user_manager.v1.RecentPlayer player = 1; - total_size += 1 * this->player_size(); - for (int i = 0; i < this->player_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->player(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 RecentPlayersAddedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RecentPlayersAddedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RecentPlayersAddedNotification::MergeFrom(const RecentPlayersAddedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - player_.MergeFrom(from.player_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RecentPlayersAddedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RecentPlayersAddedNotification::CopyFrom(const RecentPlayersAddedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RecentPlayersAddedNotification::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->player())) return false; - return true; -} - void RecentPlayersAddedNotification::Swap(RecentPlayersAddedNotification* other) { if (other != this) { - player_.Swap(&other->player_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RecentPlayersAddedNotification::GetMetadata() const { @@ -3288,156 +1253,9 @@ RecentPlayersRemovedNotification* RecentPlayersRemovedNotification::New() const return new RecentPlayersRemovedNotification; } -void RecentPlayersRemovedNotification::Clear() { - player_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RecentPlayersRemovedNotification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.RecentPlayersRemovedNotification) - 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.user_manager.v1.RecentPlayer player = 1; - case 1: { - if (tag == 10) { - parse_player: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_player())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_player; - 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.user_manager.v1.RecentPlayersRemovedNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.RecentPlayersRemovedNotification) - return false; -#undef DO_ -} - -void RecentPlayersRemovedNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.RecentPlayersRemovedNotification) - // repeated .bgs.protocol.user_manager.v1.RecentPlayer player = 1; - for (int i = 0; i < this->player_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->player(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.RecentPlayersRemovedNotification) -} - -::google::protobuf::uint8* RecentPlayersRemovedNotification::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.RecentPlayersRemovedNotification) - // repeated .bgs.protocol.user_manager.v1.RecentPlayer player = 1; - for (int i = 0; i < this->player_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->player(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.RecentPlayersRemovedNotification) - return target; -} - -int RecentPlayersRemovedNotification::ByteSize() const { - int total_size = 0; - - // repeated .bgs.protocol.user_manager.v1.RecentPlayer player = 1; - total_size += 1 * this->player_size(); - for (int i = 0; i < this->player_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->player(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 RecentPlayersRemovedNotification::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RecentPlayersRemovedNotification* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RecentPlayersRemovedNotification::MergeFrom(const RecentPlayersRemovedNotification& from) { - GOOGLE_CHECK_NE(&from, this); - player_.MergeFrom(from.player_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RecentPlayersRemovedNotification::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RecentPlayersRemovedNotification::CopyFrom(const RecentPlayersRemovedNotification& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RecentPlayersRemovedNotification::IsInitialized() const { - if (!::google::protobuf::internal::AllAreInitialized(this->player())) return false; - return true; -} - void RecentPlayersRemovedNotification::Swap(RecentPlayersRemovedNotification* other) { if (other != this) { - player_.Swap(&other->player_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RecentPlayersRemovedNotification::GetMetadata() const { @@ -3450,7 +1268,7 @@ void RecentPlayersRemovedNotification::Swap(RecentPlayersRemovedNotification* ot // =================================================================== -UserManagerService::UserManagerService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +UserManagerService::UserManagerService(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } UserManagerService::~UserManagerService() { @@ -3463,240 +1281,177 @@ google::protobuf::ServiceDescriptor const* UserManagerService::descriptor() { void UserManagerService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId & 0x3FFFFFFF) { - case 1: { - ::bgs::protocol::user_manager::v1::SubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for UserManagerService.Subscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.Subscribe(bgs.protocol.user_manager.v1.SubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::user_manager::v1::SubscribeResponse::descriptor()); - UserManagerService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.Subscribe() returned bgs.protocol.user_manager.v1.SubscribeResponse{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::user_manager::v1::SubscribeResponse response; - uint32 status = HandleSubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 1: + ParseAndHandleSubscribe(token, methodId, buffer); break; - } - case 10: { - ::bgs::protocol::user_manager::v1::AddRecentPlayersRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for UserManagerService.AddRecentPlayers server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.AddRecentPlayers(bgs.protocol.user_manager.v1.AddRecentPlayersRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - UserManagerService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.AddRecentPlayers() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleAddRecentPlayers(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 10: + ParseAndHandleAddRecentPlayers(token, methodId, buffer); break; - } - case 11: { - ::bgs::protocol::user_manager::v1::ClearRecentPlayersRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for UserManagerService.ClearRecentPlayers server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.ClearRecentPlayers(bgs.protocol.user_manager.v1.ClearRecentPlayersRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - UserManagerService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.ClearRecentPlayers() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleClearRecentPlayers(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 11: + ParseAndHandleClearRecentPlayers(token, methodId, buffer); break; - } - case 20: { - ::bgs::protocol::user_manager::v1::BlockPlayerRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for UserManagerService.BlockPlayer server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.BlockPlayer(bgs.protocol.user_manager.v1.BlockPlayerRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - UserManagerService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.BlockPlayer() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleBlockPlayer(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 20: + ParseAndHandleBlockPlayer(token, methodId, buffer); break; - } - case 21: { - ::bgs::protocol::user_manager::v1::UnblockPlayerRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for UserManagerService.UnblockPlayer server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.UnblockPlayer(bgs.protocol.user_manager.v1.UnblockPlayerRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - UserManagerService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.UnblockPlayer() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnblockPlayer(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 21: + ParseAndHandleUnblockPlayer(token, methodId, buffer); break; - } - case 40: { - ::bgs::protocol::user_manager::v1::BlockPlayerRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for UserManagerService.BlockPlayerForSession server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.BlockPlayerForSession(bgs.protocol.user_manager.v1.BlockPlayerRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - UserManagerService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.BlockPlayerForSession() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleBlockPlayerForSession(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 40: + ParseAndHandleBlockPlayerForSession(token, methodId, buffer); break; - } - case 51: { - ::bgs::protocol::user_manager::v1::UnsubscribeRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for UserManagerService.Unsubscribe server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.Unsubscribe(bgs.protocol.user_manager.v1.UnsubscribeRequest{ %s }).", - GetCallerInfo().c_str(), request.ShortDebugString().c_str()); - std::function continuation = [token, methodId](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) - { - ASSERT(response->GetDescriptor() == ::bgs::protocol::NoData::descriptor()); - UserManagerService* self = static_cast(service); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method UserManagerService.Unsubscribe() returned bgs.protocol.NoData{ %s } status %u.", - self->GetCallerInfo().c_str(), response->ShortDebugString().c_str(), status); - if (!status) - self->SendResponse(self->service_hash_, methodId, token, response); - else - self->SendResponse(self->service_hash_, methodId, token, status); - }; - ::bgs::protocol::NoData response; - uint32 status = HandleUnsubscribe(&request, &response, continuation); - if (continuation) - continuation(this, status, &response); + case 51: + ParseAndHandleUnsubscribe(token, methodId, buffer); break; - } default: - TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); + LogInvalidMethod(methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); break; } } -uint32 UserManagerService::HandleSubscribe(::bgs::protocol::user_manager::v1::SubscribeRequest const* request, ::bgs::protocol::user_manager::v1::SubscribeResponse* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method UserManagerService.Subscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 UserManagerService::HandleSubscribe(::bgs::protocol::user_manager::v1::SubscribeRequest const* request, ::bgs::protocol::user_manager::v1::SubscribeResponse* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("UserManagerService.Subscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 UserManagerService::HandleAddRecentPlayers(::bgs::protocol::user_manager::v1::AddRecentPlayersRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method UserManagerService.AddRecentPlayers({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 UserManagerService::HandleAddRecentPlayers(::bgs::protocol::user_manager::v1::AddRecentPlayersRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("UserManagerService.AddRecentPlayers", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 UserManagerService::HandleClearRecentPlayers(::bgs::protocol::user_manager::v1::ClearRecentPlayersRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method UserManagerService.ClearRecentPlayers({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 UserManagerService::HandleClearRecentPlayers(::bgs::protocol::user_manager::v1::ClearRecentPlayersRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("UserManagerService.ClearRecentPlayers", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 UserManagerService::HandleBlockPlayer(::bgs::protocol::user_manager::v1::BlockPlayerRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method UserManagerService.BlockPlayer({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 UserManagerService::HandleBlockPlayer(::bgs::protocol::user_manager::v1::BlockPlayerRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("UserManagerService.BlockPlayer", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 UserManagerService::HandleUnblockPlayer(::bgs::protocol::user_manager::v1::UnblockPlayerRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method UserManagerService.UnblockPlayer({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 UserManagerService::HandleUnblockPlayer(::bgs::protocol::user_manager::v1::UnblockPlayerRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("UserManagerService.UnblockPlayer", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 UserManagerService::HandleBlockPlayerForSession(::bgs::protocol::user_manager::v1::BlockPlayerRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method UserManagerService.BlockPlayerForSession({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 UserManagerService::HandleBlockPlayerForSession(::bgs::protocol::user_manager::v1::BlockPlayerRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("UserManagerService.BlockPlayerForSession", request); return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 UserManagerService::HandleUnsubscribe(::bgs::protocol::user_manager::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method UserManagerService.Unsubscribe({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); +uint32 UserManagerService::HandleUnsubscribe(::bgs::protocol::user_manager::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* /*response*/, std::function& /*continuation*/) { + LogUnimplementedServerMethod("UserManagerService.Unsubscribe", request); return ERROR_RPC_NOT_IMPLEMENTED; } +void UserManagerService::ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::user_manager::v1::SubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("UserManagerService.Subscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("UserManagerService.Subscribe", "bgs.protocol.user_manager.v1.SubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "UserManagerService.Subscribe", ::bgs::protocol::user_manager::v1::SubscribeResponse::descriptor()); + ::bgs::protocol::user_manager::v1::SubscribeResponse response; + uint32 status = HandleSubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void UserManagerService::ParseAndHandleAddRecentPlayers(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::user_manager::v1::AddRecentPlayersRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("UserManagerService.AddRecentPlayers"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("UserManagerService.AddRecentPlayers", "bgs.protocol.user_manager.v1.AddRecentPlayersRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "UserManagerService.AddRecentPlayers", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleAddRecentPlayers(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void UserManagerService::ParseAndHandleClearRecentPlayers(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::user_manager::v1::ClearRecentPlayersRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("UserManagerService.ClearRecentPlayers"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("UserManagerService.ClearRecentPlayers", "bgs.protocol.user_manager.v1.ClearRecentPlayersRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "UserManagerService.ClearRecentPlayers", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleClearRecentPlayers(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void UserManagerService::ParseAndHandleBlockPlayer(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::user_manager::v1::BlockPlayerRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("UserManagerService.BlockPlayer"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("UserManagerService.BlockPlayer", "bgs.protocol.user_manager.v1.BlockPlayerRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "UserManagerService.BlockPlayer", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleBlockPlayer(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void UserManagerService::ParseAndHandleUnblockPlayer(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::user_manager::v1::UnblockPlayerRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("UserManagerService.UnblockPlayer"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("UserManagerService.UnblockPlayer", "bgs.protocol.user_manager.v1.UnblockPlayerRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "UserManagerService.UnblockPlayer", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnblockPlayer(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void UserManagerService::ParseAndHandleBlockPlayerForSession(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::user_manager::v1::BlockPlayerRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("UserManagerService.BlockPlayerForSession"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("UserManagerService.BlockPlayerForSession", "bgs.protocol.user_manager.v1.BlockPlayerRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "UserManagerService.BlockPlayerForSession", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleBlockPlayerForSession(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + +void UserManagerService::ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer) { + ::bgs::protocol::user_manager::v1::UnsubscribeRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + LogFailedParsingRequest("UserManagerService.Unsubscribe"); + SendResponse(service_hash_, methodId, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + LogCallServerMethod("UserManagerService.Unsubscribe", "bgs.protocol.user_manager.v1.UnsubscribeRequest", &request); + std::function continuation = CreateServerContinuation(token, methodId, "UserManagerService.Unsubscribe", ::bgs::protocol::NoData::descriptor()); + ::bgs::protocol::NoData response; + uint32 status = HandleUnsubscribe(&request, &response, continuation); + if (continuation) + continuation(this, status, &response); +} + // =================================================================== -UserManagerListener::UserManagerListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { +UserManagerListener::UserManagerListener(bool use_original_hash) : ServiceBase(use_original_hash ? OriginalHash::value : NameHash::value) { } UserManagerListener::~UserManagerListener() { @@ -3708,32 +1463,27 @@ google::protobuf::ServiceDescriptor const* UserManagerListener::descriptor() { } void UserManagerListener::OnBlockedPlayerAdded(::bgs::protocol::user_manager::v1::BlockedPlayerAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method UserManagerListener.OnBlockedPlayerAdded(bgs.protocol.user_manager.v1.BlockedPlayerAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("UserManagerListener.OnBlockedPlayerAdded", "bgs.protocol.user_manager.v1.BlockedPlayerAddedNotification", request); SendRequest(service_hash_, 1 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void UserManagerListener::OnBlockedPlayerRemoved(::bgs::protocol::user_manager::v1::BlockedPlayerRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method UserManagerListener.OnBlockedPlayerRemoved(bgs.protocol.user_manager.v1.BlockedPlayerRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("UserManagerListener.OnBlockedPlayerRemoved", "bgs.protocol.user_manager.v1.BlockedPlayerRemovedNotification", request); SendRequest(service_hash_, 2 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void UserManagerListener::OnRecentPlayersAdded(::bgs::protocol::user_manager::v1::RecentPlayersAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method UserManagerListener.OnRecentPlayersAdded(bgs.protocol.user_manager.v1.RecentPlayersAddedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("UserManagerListener.OnRecentPlayersAdded", "bgs.protocol.user_manager.v1.RecentPlayersAddedNotification", request); SendRequest(service_hash_, 11 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } void UserManagerListener::OnRecentPlayersRemoved(::bgs::protocol::user_manager::v1::RecentPlayersRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method UserManagerListener.OnRecentPlayersRemoved(bgs.protocol.user_manager.v1.RecentPlayersRemovedNotification{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + LogCallClientMethod("UserManagerListener.OnRecentPlayersRemoved", "bgs.protocol.user_manager.v1.RecentPlayersRemovedNotification", request); SendRequest(service_hash_, 12 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request); } -void UserManagerListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) { - TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", - GetCallerInfo().c_str(), methodId); +void UserManagerListener::CallServerMethod(uint32 /*token*/, uint32 methodId, MessageBuffer /*buffer*/) { + LogDisallowedMethod(methodId); } // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/user_manager_service.pb.h b/src/server/proto/Client/user_manager_service.pb.h index 11171879551..6ec6f2b313d 100644 --- a/src/server/proto/Client/user_manager_service.pb.h +++ b/src/server/proto/Client/user_manager_service.pb.h @@ -85,19 +85,6 @@ class TC_PROTO_API SubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- SubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeRequest& from); - void MergeFrom(const SubscribeRequest& 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(); @@ -176,19 +163,6 @@ class TC_PROTO_API SubscribeResponse : public ::google::protobuf::Message { // 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(); @@ -271,19 +245,6 @@ class TC_PROTO_API UnsubscribeRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UnsubscribeRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsubscribeRequest& from); - void MergeFrom(const UnsubscribeRequest& 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(); @@ -362,19 +323,6 @@ class TC_PROTO_API AddRecentPlayersRequest : public ::google::protobuf::Message // implements Message ---------------------------------------------- AddRecentPlayersRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AddRecentPlayersRequest& from); - void MergeFrom(const AddRecentPlayersRequest& 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(); @@ -466,19 +414,6 @@ class TC_PROTO_API ClearRecentPlayersRequest : public ::google::protobuf::Messag // implements Message ---------------------------------------------- ClearRecentPlayersRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ClearRecentPlayersRequest& from); - void MergeFrom(const ClearRecentPlayersRequest& 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(); @@ -557,19 +492,6 @@ class TC_PROTO_API BlockPlayerRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BlockPlayerRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BlockPlayerRequest& from); - void MergeFrom(const BlockPlayerRequest& 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(); @@ -650,19 +572,6 @@ class TC_PROTO_API UnblockPlayerRequest : public ::google::protobuf::Message { // implements Message ---------------------------------------------- UnblockPlayerRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnblockPlayerRequest& from); - void MergeFrom(const UnblockPlayerRequest& 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(); @@ -743,19 +652,6 @@ class TC_PROTO_API BlockedPlayerAddedNotification : public ::google::protobuf::M // implements Message ---------------------------------------------- BlockedPlayerAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BlockedPlayerAddedNotification& from); - void MergeFrom(const BlockedPlayerAddedNotification& 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(); @@ -848,19 +744,6 @@ class TC_PROTO_API BlockedPlayerRemovedNotification : public ::google::protobuf: // implements Message ---------------------------------------------- BlockedPlayerRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BlockedPlayerRemovedNotification& from); - void MergeFrom(const BlockedPlayerRemovedNotification& 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(); @@ -953,19 +836,6 @@ class TC_PROTO_API RecentPlayersAddedNotification : public ::google::protobuf::M // implements Message ---------------------------------------------- RecentPlayersAddedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RecentPlayersAddedNotification& from); - void MergeFrom(const RecentPlayersAddedNotification& 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(); @@ -1035,19 +905,6 @@ class TC_PROTO_API RecentPlayersRemovedNotification : public ::google::protobuf: // implements Message ---------------------------------------------- RecentPlayersRemovedNotification* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RecentPlayersRemovedNotification& from); - void MergeFrom(const RecentPlayersRemovedNotification& 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(); @@ -1094,6 +951,10 @@ class TC_PROTO_API UserManagerService : public ServiceBase public: explicit UserManagerService(bool use_original_hash); + UserManagerService(UserManagerService const&) = delete; + UserManagerService(UserManagerService&&) = delete; + UserManagerService& operator=(UserManagerService const&) = delete; + UserManagerService& operator=(UserManagerService&&) = delete; virtual ~UserManagerService(); typedef std::integral_constant OriginalHash; @@ -1114,9 +975,13 @@ class TC_PROTO_API UserManagerService : public ServiceBase virtual uint32 HandleUnsubscribe(::bgs::protocol::user_manager::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function& continuation); private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UserManagerService); + void ParseAndHandleSubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleAddRecentPlayers(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleClearRecentPlayers(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleBlockPlayer(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnblockPlayer(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleBlockPlayerForSession(uint32 token, uint32 methodId, MessageBuffer& buffer); + void ParseAndHandleUnsubscribe(uint32 token, uint32 methodId, MessageBuffer& buffer); }; // ------------------------------------------------------------------- @@ -1126,6 +991,10 @@ class TC_PROTO_API UserManagerListener : public ServiceBase public: explicit UserManagerListener(bool use_original_hash); + UserManagerListener(UserManagerListener const&) = delete; + UserManagerListener(UserManagerListener&&) = delete; + UserManagerListener& operator=(UserManagerListener const&) = delete; + UserManagerListener& operator=(UserManagerListener&&) = delete; virtual ~UserManagerListener(); typedef std::integral_constant OriginalHash; @@ -1140,11 +1009,6 @@ class TC_PROTO_API UserManagerListener : public ServiceBase void OnRecentPlayersRemoved(::bgs::protocol::user_manager::v1::RecentPlayersRemovedNotification const* request, bool client = false, bool server = false); void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final; - - private: - uint32 service_hash_; - - GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UserManagerListener); }; // =================================================================== diff --git a/src/server/proto/Client/user_manager_types.pb.cc b/src/server/proto/Client/user_manager_types.pb.cc index 2210f1481b4..1a8129a9283 100644 --- a/src/server/proto/Client/user_manager_types.pb.cc +++ b/src/server/proto/Client/user_manager_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "user_manager_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -125,7 +123,7 @@ void protobuf_AddDesc_user_5fmanager_5ftypes_2eproto() { "ayer\022*\n\naccount_id\030\001 \002(\0132\026.bgs.protocol." "EntityId\022\032\n\nbattle_tag\030\002 \001(\tB\006\202\371+\002\010\001\022\020\n\004" "role\030\003 \003(\rB\002\030\001\022\026\n\nprivileges\030\004 \001(\004B\002\030\001B\002" - "H\001P\000", 444); + "H\002P\000", 444); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "user_manager_types.proto", &protobuf_RegisterTypes); RecentPlayer::default_instance_ = new RecentPlayer(); @@ -213,329 +211,9 @@ RecentPlayer* RecentPlayer::New() const { return new RecentPlayer; } -void RecentPlayer::Clear() { - if (_has_bits_[0 / 32] & 23) { - if (has_entity_id()) { - if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_program()) { - if (program_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - program_->clear(); - } - } - timestamp_played_ = GOOGLE_ULONGLONG(0); - counter_ = 0u; - } - attributes_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool RecentPlayer::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.RecentPlayer) - 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 entity_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_program; - break; - } - - // optional string program = 2; - case 2: { - if (tag == 18) { - parse_program: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_program())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program().data(), this->program().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "program"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_timestamp_played; - break; - } - - // optional fixed64 timestamp_played = 3; - case 3: { - if (tag == 25) { - parse_timestamp_played: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, ×tamp_played_))); - set_has_timestamp_played(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_attributes; - break; - } - - // repeated .bgs.protocol.Attribute attributes = 4; - case 4: { - if (tag == 34) { - parse_attributes: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attributes())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_attributes; - if (input->ExpectTag(53)) goto parse_counter; - break; - } - - // optional fixed32 counter = 6 [default = 0]; - case 6: { - if (tag == 53) { - parse_counter: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &counter_))); - set_has_counter(); - } 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.user_manager.v1.RecentPlayer) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.RecentPlayer) - return false; -#undef DO_ -} - -void RecentPlayer::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.RecentPlayer) - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->entity_id(), output); - } - - // optional string program = 2; - if (has_program()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program().data(), this->program().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "program"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->program(), output); - } - - // optional fixed64 timestamp_played = 3; - if (has_timestamp_played()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->timestamp_played(), output); - } - - // repeated .bgs.protocol.Attribute attributes = 4; - for (int i = 0; i < this->attributes_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->attributes(i), output); - } - - // optional fixed32 counter = 6 [default = 0]; - if (has_counter()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(6, this->counter(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.RecentPlayer) -} - -::google::protobuf::uint8* RecentPlayer::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.RecentPlayer) - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->entity_id(), target); - } - - // optional string program = 2; - if (has_program()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->program().data(), this->program().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "program"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->program(), target); - } - - // optional fixed64 timestamp_played = 3; - if (has_timestamp_played()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->timestamp_played(), target); - } - - // repeated .bgs.protocol.Attribute attributes = 4; - for (int i = 0; i < this->attributes_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->attributes(i), target); - } - - // optional fixed32 counter = 6 [default = 0]; - if (has_counter()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(6, this->counter(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.RecentPlayer) - return target; -} - -int RecentPlayer::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId entity_id = 1; - if (has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->entity_id()); - } - - // optional string program = 2; - if (has_program()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->program()); - } - - // optional fixed64 timestamp_played = 3; - if (has_timestamp_played()) { - total_size += 1 + 8; - } - - // optional fixed32 counter = 6 [default = 0]; - if (has_counter()) { - total_size += 1 + 4; - } - - } - // repeated .bgs.protocol.Attribute attributes = 4; - total_size += 1 * this->attributes_size(); - for (int i = 0; i < this->attributes_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->attributes(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 RecentPlayer::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const RecentPlayer* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void RecentPlayer::MergeFrom(const RecentPlayer& from) { - GOOGLE_CHECK_NE(&from, this); - attributes_.MergeFrom(from.attributes_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_entity_id()) { - mutable_entity_id()->::bgs::protocol::EntityId::MergeFrom(from.entity_id()); - } - if (from.has_program()) { - set_program(from.program()); - } - if (from.has_timestamp_played()) { - set_timestamp_played(from.timestamp_played()); - } - if (from.has_counter()) { - set_counter(from.counter()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void RecentPlayer::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RecentPlayer::CopyFrom(const RecentPlayer& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RecentPlayer::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_entity_id()) { - if (!this->entity_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->attributes())) return false; - return true; -} - void RecentPlayer::Swap(RecentPlayer* other) { if (other != this) { - std::swap(entity_id_, other->entity_id_); - std::swap(program_, other->program_); - std::swap(timestamp_played_, other->timestamp_played_); - attributes_.Swap(&other->attributes_); - std::swap(counter_, other->counter_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata RecentPlayer::GetMetadata() const { @@ -616,301 +294,9 @@ BlockedPlayer* BlockedPlayer::New() const { return new BlockedPlayer; } -void BlockedPlayer::Clear() { - if (_has_bits_[0 / 32] & 11) { - if (has_account_id()) { - if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_battle_tag()) { - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - battle_tag_->clear(); - } - } - privileges_ = GOOGLE_ULONGLONG(0); - } - role_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool BlockedPlayer::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.user_manager.v1.BlockedPlayer) - 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_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->ExpectTag(24)) goto parse_role; - break; - } - - // repeated uint32 role = 3 [deprecated = true]; - case 3: { - if (tag == 24) { - parse_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 24, input, this->mutable_role()))); - } else if (tag == 26) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_role; - if (input->ExpectTag(32)) goto parse_privileges; - break; - } - - // optional uint64 privileges = 4 [deprecated = true]; - 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->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.user_manager.v1.BlockedPlayer) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.user_manager.v1.BlockedPlayer) - return false; -#undef DO_ -} - -void BlockedPlayer::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.user_manager.v1.BlockedPlayer) - // required .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->account_id(), 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); - } - - // repeated uint32 role = 3 [deprecated = true]; - for (int i = 0; i < this->role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 3, this->role(i), output); - } - - // optional uint64 privileges = 4 [deprecated = true]; - if (has_privileges()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->privileges(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.user_manager.v1.BlockedPlayer) -} - -::google::protobuf::uint8* BlockedPlayer::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.user_manager.v1.BlockedPlayer) - // required .bgs.protocol.EntityId account_id = 1; - if (has_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->account_id(), 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); - } - - // repeated uint32 role = 3 [deprecated = true]; - for (int i = 0; i < this->role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(3, this->role(i), target); - } - - // optional uint64 privileges = 4 [deprecated = true]; - if (has_privileges()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->privileges(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.user_manager.v1.BlockedPlayer) - return target; -} - -int BlockedPlayer::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 string battle_tag = 2; - if (has_battle_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->battle_tag()); - } - - // optional uint64 privileges = 4 [deprecated = true]; - if (has_privileges()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->privileges()); - } - - } - // repeated uint32 role = 3 [deprecated = true]; - { - int data_size = 0; - for (int i = 0; i < this->role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->role(i)); - } - total_size += 1 * this->role_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 BlockedPlayer::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const BlockedPlayer* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void BlockedPlayer::MergeFrom(const BlockedPlayer& from) { - GOOGLE_CHECK_NE(&from, this); - 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_battle_tag()) { - set_battle_tag(from.battle_tag()); - } - if (from.has_privileges()) { - set_privileges(from.privileges()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void BlockedPlayer::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlockedPlayer::CopyFrom(const BlockedPlayer& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BlockedPlayer::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (has_account_id()) { - if (!this->account_id().IsInitialized()) return false; - } - return true; -} - void BlockedPlayer::Swap(BlockedPlayer* other) { if (other != this) { - std::swap(account_id_, other->account_id_); - std::swap(battle_tag_, other->battle_tag_); - role_.Swap(&other->role_); - std::swap(privileges_, other->privileges_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata BlockedPlayer::GetMetadata() const { diff --git a/src/server/proto/Client/user_manager_types.pb.h b/src/server/proto/Client/user_manager_types.pb.h index d71fd74bb0b..db863ab1ffa 100644 --- a/src/server/proto/Client/user_manager_types.pb.h +++ b/src/server/proto/Client/user_manager_types.pb.h @@ -73,19 +73,6 @@ class TC_PROTO_API RecentPlayer : public ::google::protobuf::Message { // implements Message ---------------------------------------------- RecentPlayer* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RecentPlayer& from); - void MergeFrom(const RecentPlayer& 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(); @@ -202,19 +189,6 @@ class TC_PROTO_API BlockedPlayer : public ::google::protobuf::Message { // implements Message ---------------------------------------------- BlockedPlayer* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BlockedPlayer& from); - void MergeFrom(const BlockedPlayer& 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(); diff --git a/src/server/proto/Client/voice_types.pb.cc b/src/server/proto/Client/voice_types.pb.cc index 38884a80173..8853013199a 100644 --- a/src/server/proto/Client/voice_types.pb.cc +++ b/src/server/proto/Client/voice_types.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "voice_types.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace bgs { @@ -102,7 +100,7 @@ void protobuf_AddDesc_voice_5ftypes_2eproto() { "\020\001\022\037\n\033VOICE_MUTE_REASON_REQUESTED\020\002\022\037\n\033V" "OICE_MUTE_REASON_SQUELCHED\020\003*D\n\024VoicePro" "viderVersion\022\025\n\021VOICE_PROVIDER_V4\020\000\022\025\n\021V" - "OICE_PROVIDER_V5\020\001B\002H\001", 502); + "OICE_PROVIDER_V5\020\001B\002H\002", 502); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "voice_types.proto", &protobuf_RegisterTypes); VoiceCredentials::default_instance_ = new VoiceCredentials(); @@ -237,383 +235,9 @@ VoiceCredentials* VoiceCredentials::New() const { return new VoiceCredentials; } -void VoiceCredentials::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(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] & 31) { - ZR_(join_type_, mute_reason_); - if (has_voice_id()) { - if (voice_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - voice_id_->clear(); - } - } - if (has_token()) { - if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - token_->clear(); - } - } - if (has_url()) { - if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - url_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool VoiceCredentials::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.VoiceCredentials) - 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 voice_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_voice_id())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->voice_id().data(), this->voice_id().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "voice_id"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_token; - break; - } - - // optional string token = 2; - case 2: { - if (tag == 18) { - parse_token: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->token().data(), this->token().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "token"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_url; - break; - } - - // optional string url = 3; - case 3: { - if (tag == 26) { - parse_url: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_url())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->url().data(), this->url().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "url"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_join_type; - break; - } - - // optional .bgs.protocol.VoiceJoinType join_type = 4; - case 4: { - if (tag == 32) { - parse_join_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::VoiceJoinType_IsValid(value)) { - set_join_type(static_cast< ::bgs::protocol::VoiceJoinType >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_mute_reason; - break; - } - - // optional .bgs.protocol.VoiceMuteReason mute_reason = 5; - case 5: { - if (tag == 40) { - parse_mute_reason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::bgs::protocol::VoiceMuteReason_IsValid(value)) { - set_mute_reason(static_cast< ::bgs::protocol::VoiceMuteReason >(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.VoiceCredentials) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.VoiceCredentials) - return false; -#undef DO_ -} - -void VoiceCredentials::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.VoiceCredentials) - // optional string voice_id = 1; - if (has_voice_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->voice_id().data(), this->voice_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "voice_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->voice_id(), output); - } - - // optional string token = 2; - if (has_token()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->token().data(), this->token().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - // optional string url = 3; - if (has_url()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->url().data(), this->url().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->url(), output); - } - - // optional .bgs.protocol.VoiceJoinType join_type = 4; - if (has_join_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->join_type(), output); - } - - // optional .bgs.protocol.VoiceMuteReason mute_reason = 5; - if (has_mute_reason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->mute_reason(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.VoiceCredentials) -} - -::google::protobuf::uint8* VoiceCredentials::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.VoiceCredentials) - // optional string voice_id = 1; - if (has_voice_id()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->voice_id().data(), this->voice_id().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "voice_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->voice_id(), target); - } - - // optional string token = 2; - if (has_token()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->token().data(), this->token().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), target); - } - - // optional string url = 3; - if (has_url()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->url().data(), this->url().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->url(), target); - } - - // optional .bgs.protocol.VoiceJoinType join_type = 4; - if (has_join_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->join_type(), target); - } - - // optional .bgs.protocol.VoiceMuteReason mute_reason = 5; - if (has_mute_reason()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->mute_reason(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.VoiceCredentials) - return target; -} - -int VoiceCredentials::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string voice_id = 1; - if (has_voice_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->voice_id()); - } - - // optional string token = 2; - if (has_token()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // optional string url = 3; - if (has_url()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->url()); - } - - // optional .bgs.protocol.VoiceJoinType join_type = 4; - if (has_join_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->join_type()); - } - - // optional .bgs.protocol.VoiceMuteReason mute_reason = 5; - if (has_mute_reason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->mute_reason()); - } - - } - 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 VoiceCredentials::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const VoiceCredentials* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void VoiceCredentials::MergeFrom(const VoiceCredentials& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_voice_id()) { - set_voice_id(from.voice_id()); - } - if (from.has_token()) { - set_token(from.token()); - } - if (from.has_url()) { - set_url(from.url()); - } - if (from.has_join_type()) { - set_join_type(from.join_type()); - } - if (from.has_mute_reason()) { - set_mute_reason(from.mute_reason()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void VoiceCredentials::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VoiceCredentials::CopyFrom(const VoiceCredentials& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VoiceCredentials::IsInitialized() const { - return true; -} - void VoiceCredentials::Swap(VoiceCredentials* other) { if (other != this) { - std::swap(voice_id_, other->voice_id_); - std::swap(token_, other->token_); - std::swap(url_, other->url_); - std::swap(join_type_, other->join_type_); - std::swap(mute_reason_, other->mute_reason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + GetReflection()->Swap(this, other);} } ::google::protobuf::Metadata VoiceCredentials::GetMetadata() const { diff --git a/src/server/proto/Client/voice_types.pb.h b/src/server/proto/Client/voice_types.pb.h index acfce0e0ec8..b44a532f0d2 100644 --- a/src/server/proto/Client/voice_types.pb.h +++ b/src/server/proto/Client/voice_types.pb.h @@ -127,19 +127,6 @@ class TC_PROTO_API VoiceCredentials : public ::google::protobuf::Message { // implements Message ---------------------------------------------- VoiceCredentials* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VoiceCredentials& from); - void MergeFrom(const VoiceCredentials& 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(); diff --git a/src/server/proto/Login/Login.pb.cc b/src/server/proto/Login/Login.pb.cc index b3873487f0d..37ee94d0348 100644 --- a/src/server/proto/Login/Login.pb.cc +++ b/src/server/proto/Login/Login.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Login.pb.h" -#include #include #include @@ -15,7 +14,6 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) namespace Battlenet { diff --git a/src/server/proto/PrecompiledHeaders/protoPCH.h b/src/server/proto/PrecompiledHeaders/protoPCH.h index eecf90cfe0c..90a6660650a 100644 --- a/src/server/proto/PrecompiledHeaders/protoPCH.h +++ b/src/server/proto/PrecompiledHeaders/protoPCH.h @@ -15,7 +15,6 @@ * with this program. If not, see . */ -#include "Log.h" #include "club_types.pb.h" #include #include diff --git a/src/server/proto/RealmList/RealmList.pb.cc b/src/server/proto/RealmList/RealmList.pb.cc index e9a1526835b..c94de181531 100644 --- a/src/server/proto/RealmList/RealmList.pb.cc +++ b/src/server/proto/RealmList/RealmList.pb.cc @@ -4,7 +4,6 @@ #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "RealmList.pb.h" -#include #include #include @@ -15,14 +14,8 @@ #include #include #include -#include "Log.h" // @@protoc_insertion_point(includes) -// Fix stupid windows.h included from Log.h->Common.h -#ifdef SendMessage -#undef SendMessage -#endif - namespace JSON { namespace RealmList { diff --git a/src/server/proto/ServiceBase.cpp b/src/server/proto/ServiceBase.cpp new file mode 100644 index 00000000000..cbf5b65fd00 --- /dev/null +++ b/src/server/proto/ServiceBase.cpp @@ -0,0 +1,69 @@ +/* + * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include "ServiceBase.h" +#include "Errors.h" +#include "Log.h" +#include + +void ServiceBase::LogDisallowedMethod(uint32 methodId) +{ + TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u", + GetCallerInfo().c_str(), methodId); +} + +void ServiceBase::LogCallClientMethod(char const* methodName, char const* inputTypeName, google::protobuf::Message const* request) +{ + TC_LOG_DEBUG("service.protobuf", "%s Server called client method %s(%s{ %s })", + GetCallerInfo().c_str(), methodName, inputTypeName, request->ShortDebugString().c_str()); +} + +void ServiceBase::LogCallServerMethod(char const* methodName, char const* inputTypeName, google::protobuf::Message const* request) +{ + TC_LOG_DEBUG("service.protobuf", "%s Client called server method %s(%s{ %s }).", + GetCallerInfo().c_str(), methodName, inputTypeName, request->ShortDebugString().c_str()); +} + +void ServiceBase::LogUnimplementedServerMethod(char const* methodName, google::protobuf::Message const* request) +{ + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method %s({ %s })", + GetCallerInfo().c_str(), methodName, request->ShortDebugString().c_str()); +} + +void ServiceBase::LogInvalidMethod(uint32 methodId) +{ + TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); +} + +void ServiceBase::LogFailedParsingRequest(char const* methodName) +{ + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for %s server method call.", GetCallerInfo().c_str(), methodName); +} + +std::function ServiceBase::CreateServerContinuation(uint32 token, uint32 methodId, char const* methodName, google::protobuf::Descriptor const* outputDescriptor) +{ + return [token, methodId, methodName, outputDescriptor](ServiceBase* service, uint32 status, ::google::protobuf::Message const* response) + { + ASSERT(response->GetDescriptor() == outputDescriptor); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method %s() %s{ %s } status %u.", + service->GetCallerInfo().c_str(), methodName, outputDescriptor->full_name().c_str(), response->ShortDebugString().c_str(), status); + if (!status) + service->SendResponse(service->GetServiceHash(), methodId, token, response); + else + service->SendResponse(service->GetServiceHash(), methodId, token, status); + }; +} diff --git a/src/server/proto/ServiceBase.h b/src/server/proto/ServiceBase.h index 4d546693e4e..644b8447ed3 100644 --- a/src/server/proto/ServiceBase.h +++ b/src/server/proto/ServiceBase.h @@ -27,6 +27,7 @@ namespace google { namespace protobuf { + class Descriptor; class Message; } } @@ -34,16 +35,32 @@ namespace google class TC_PROTO_API ServiceBase { public: + explicit ServiceBase(uint32 serviceHash) : service_hash_(serviceHash) { } + virtual ~ServiceBase() { } virtual void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) = 0; + virtual std::string GetCallerInfo() const = 0; + + void LogDisallowedMethod(uint32 methodId); + void LogCallClientMethod(char const* methodName, char const* inputTypeName, google::protobuf::Message const* request); + void LogCallServerMethod(char const* methodName, char const* inputTypeName, google::protobuf::Message const* request); + void LogUnimplementedServerMethod(char const* methodName, google::protobuf::Message const* request); + void LogInvalidMethod(uint32 methodId); + void LogFailedParsingRequest(char const* methodName); + + uint32 GetServiceHash() const { return service_hash_; } + protected: + std::function CreateServerContinuation(uint32 token, uint32 methodId, char const* methodName, google::protobuf::Descriptor const* outputDescriptor); + virtual void SendRequest(uint32 serviceHash, uint32 methodId, google::protobuf::Message const* request, std::function callback) = 0; virtual void SendRequest(uint32 serviceHash, uint32 methodId, google::protobuf::Message const* request) = 0; virtual void SendResponse(uint32 serviceHash, uint32 methodId, uint32 token, uint32 status) = 0; virtual void SendResponse(uint32 serviceHash, uint32 methodId, uint32 token, google::protobuf::Message const* response) = 0; - virtual std::string GetCallerInfo() const = 0; + + uint32 service_hash_; }; #endif // ServiceBase_h__ -- cgit v1.2.3