diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-04-25 22:50:11 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-04-25 22:50:11 +0200 |
commit | f9bf082be962d45de79f936d625f644253e9b810 (patch) | |
tree | a7c40c0b5baf522d04896721df5c5d91e25c834e /src/server/proto | |
parent | 05709a24976cc4cd378ee62bdfec52510892aa5b (diff) |
Core: Updated to 11.1.5
Diffstat (limited to 'src/server/proto')
-rw-r--r-- | src/server/proto/Client/api/client/v2/presence_types.pb.cc | 979 | ||||
-rw-r--r-- | src/server/proto/Client/api/client/v2/presence_types.pb.h | 1631 |
2 files changed, 2610 insertions, 0 deletions
diff --git a/src/server/proto/Client/api/client/v2/presence_types.pb.cc b/src/server/proto/Client/api/client/v2/presence_types.pb.cc new file mode 100644 index 00000000000..5cae430dc00 --- /dev/null +++ b/src/server/proto/Client/api/client/v2/presence_types.pb.cc @@ -0,0 +1,979 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/client/v2/presence_types.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "api/client/v2/presence_types.pb.h" + +#include <utility> + +#include <google/protobuf/stubs/common.h> +#include <google/protobuf/stubs/once.h> +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/wire_format_lite_inl.h> +#include <google/protobuf/descriptor.h> +#include <google/protobuf/generated_message_reflection.h> +#include <google/protobuf/reflection_ops.h> +#include <google/protobuf/wire_format.h> +// @@protoc_insertion_point(includes) + +namespace bgs { +namespace protocol { +namespace presence { +namespace v2 { + +namespace { + +const ::google::protobuf::Descriptor* RichPresenceKey_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RichPresenceKey_reflection_ = NULL; +const ::google::protobuf::Descriptor* PresenceFieldKey_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PresenceFieldKey_reflection_ = NULL; +const ::google::protobuf::Descriptor* PresenceField_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PresenceField_reflection_ = NULL; +const ::google::protobuf::Descriptor* PresenceFieldState_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PresenceFieldState_reflection_ = NULL; +const ::google::protobuf::Descriptor* PresenceFieldUpdate_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PresenceFieldUpdate_reflection_ = NULL; +const ::google::protobuf::Descriptor* PresenceOnlineGameAccount_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PresenceOnlineGameAccount_reflection_ = NULL; +const ::google::protobuf::Descriptor* PresenceOnlineGameAccountFieldValue_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PresenceOnlineGameAccountFieldValue_reflection_ = NULL; +const ::google::protobuf::Descriptor* PresenceExternalIdentityFieldValue_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PresenceExternalIdentityFieldValue_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* PresenceQueryBehavior_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* PresenceAccountStatus_descriptor_ = NULL; + +} // namespace + +void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto() { + protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "api/client/v2/presence_types.proto"); + GOOGLE_CHECK(file != NULL); + RichPresenceKey_descriptor_ = file->message_type(0); + static const int RichPresenceKey_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichPresenceKey, title_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichPresenceKey, stream_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichPresenceKey, localization_id_), + }; + RichPresenceKey_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RichPresenceKey_descriptor_, + RichPresenceKey::default_instance_, + RichPresenceKey_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichPresenceKey, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichPresenceKey, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RichPresenceKey)); + PresenceFieldKey_descriptor_ = file->message_type(1); + static const int PresenceFieldKey_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldKey, title_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldKey, group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldKey, field_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldKey, unique_id_), + }; + PresenceFieldKey_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PresenceFieldKey_descriptor_, + PresenceFieldKey::default_instance_, + PresenceFieldKey_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldKey, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldKey, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PresenceFieldKey)); + PresenceField_descriptor_ = file->message_type(2); + static const int PresenceField_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceField, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceField, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceField, deleted_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceField, updated_time_us_), + }; + PresenceField_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PresenceField_descriptor_, + PresenceField::default_instance_, + PresenceField_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceField, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceField, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PresenceField)); + PresenceFieldState_descriptor_ = file->message_type(3); + static const int PresenceFieldState_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldState, account_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldState, game_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldState, fields_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldState, oldest_time_us_), + }; + PresenceFieldState_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PresenceFieldState_descriptor_, + PresenceFieldState::default_instance_, + PresenceFieldState_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldState, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldState, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PresenceFieldState)); + PresenceFieldUpdate_descriptor_ = file->message_type(4); + static const int PresenceFieldUpdate_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldUpdate, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldUpdate, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldUpdate, delete__), + }; + PresenceFieldUpdate_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PresenceFieldUpdate_descriptor_, + PresenceFieldUpdate::default_instance_, + PresenceFieldUpdate_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldUpdate, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceFieldUpdate, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PresenceFieldUpdate)); + PresenceOnlineGameAccount_descriptor_ = file->message_type(5); + static const int PresenceOnlineGameAccount_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceOnlineGameAccount, game_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceOnlineGameAccount, online_time_us_), + }; + PresenceOnlineGameAccount_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PresenceOnlineGameAccount_descriptor_, + PresenceOnlineGameAccount::default_instance_, + PresenceOnlineGameAccount_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceOnlineGameAccount, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceOnlineGameAccount, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PresenceOnlineGameAccount)); + PresenceOnlineGameAccountFieldValue_descriptor_ = file->message_type(6); + static const int PresenceOnlineGameAccountFieldValue_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceOnlineGameAccountFieldValue, online_game_accounts_), + }; + PresenceOnlineGameAccountFieldValue_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PresenceOnlineGameAccountFieldValue_descriptor_, + PresenceOnlineGameAccountFieldValue::default_instance_, + PresenceOnlineGameAccountFieldValue_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceOnlineGameAccountFieldValue, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceOnlineGameAccountFieldValue, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PresenceOnlineGameAccountFieldValue)); + PresenceExternalIdentityFieldValue_descriptor_ = file->message_type(7); + static const int PresenceExternalIdentityFieldValue_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceExternalIdentityFieldValue, unique_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceExternalIdentityFieldValue, display_id_), + }; + PresenceExternalIdentityFieldValue_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PresenceExternalIdentityFieldValue_descriptor_, + PresenceExternalIdentityFieldValue::default_instance_, + PresenceExternalIdentityFieldValue_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceExternalIdentityFieldValue, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PresenceExternalIdentityFieldValue, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PresenceExternalIdentityFieldValue)); + PresenceQueryBehavior_descriptor_ = file->enum_type(0); + PresenceAccountStatus_descriptor_ = file->enum_type(1); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RichPresenceKey_descriptor_, &RichPresenceKey::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PresenceFieldKey_descriptor_, &PresenceFieldKey::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PresenceField_descriptor_, &PresenceField::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PresenceFieldState_descriptor_, &PresenceFieldState::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PresenceFieldUpdate_descriptor_, &PresenceFieldUpdate::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PresenceOnlineGameAccount_descriptor_, &PresenceOnlineGameAccount::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PresenceOnlineGameAccountFieldValue_descriptor_, &PresenceOnlineGameAccountFieldValue::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PresenceExternalIdentityFieldValue_descriptor_, &PresenceExternalIdentityFieldValue::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto() { + delete RichPresenceKey::default_instance_; + delete RichPresenceKey_reflection_; + delete PresenceFieldKey::default_instance_; + delete PresenceFieldKey_reflection_; + delete PresenceField::default_instance_; + delete PresenceField_reflection_; + delete PresenceFieldState::default_instance_; + delete PresenceFieldState_reflection_; + delete PresenceFieldUpdate::default_instance_; + delete PresenceFieldUpdate_reflection_; + delete PresenceOnlineGameAccount::default_instance_; + delete PresenceOnlineGameAccount_reflection_; + delete PresenceOnlineGameAccountFieldValue::default_instance_; + delete PresenceOnlineGameAccountFieldValue_reflection_; + delete PresenceExternalIdentityFieldValue::default_instance_; + delete PresenceExternalIdentityFieldValue_reflection_; +} + +void protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::bgs::protocol::v2::protobuf_AddDesc_api_2fcommon_2fv2_2fattribute_5ftypes_2eproto(); + ::bgs::protocol::account::v2::protobuf_AddDesc_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\"api/client/v2/presence_types.proto\022\030bg" + "s.protocol.presence.v2\032#api/common/v2/at" + "tribute_types.proto\032\'api/common/v2/game_" + "account_handle.proto\"L\n\017RichPresenceKey\022" + "\020\n\010title_id\030\001 \001(\r\022\016\n\006stream\030\002 \001(\007\022\027\n\017loc" + "alization_id\030\003 \001(\r\"U\n\020PresenceFieldKey\022\020" + "\n\010title_id\030\001 \001(\r\022\r\n\005group\030\002 \001(\r\022\r\n\005field" + "\030\003 \001(\r\022\021\n\tunique_id\030\004 \001(\004\"\233\001\n\rPresenceFi" + "eld\0227\n\003key\030\001 \001(\0132*.bgs.protocol.presence" + ".v2.PresenceFieldKey\022\'\n\005value\030\002 \001(\0132\030.bg" + "s.protocol.v2.Variant\022\017\n\007deleted\030\003 \001(\010\022\027" + "\n\017updated_time_us\030\004 \001(\004\"\273\001\n\022PresenceFiel" + "dState\022\022\n\naccount_id\030\001 \001(\004\022@\n\014game_accou" + "nt\030\002 \001(\0132*.bgs.protocol.account.v2.GameA" + "ccountHandle\0227\n\006fields\030\003 \003(\0132\'.bgs.proto" + "col.presence.v2.PresenceField\022\026\n\016oldest_" + "time_us\030\004 \001(\004\"\207\001\n\023PresenceFieldUpdate\0227\n" + "\003key\030\001 \001(\0132*.bgs.protocol.presence.v2.Pr" + "esenceFieldKey\022\'\n\005value\030\002 \001(\0132\030.bgs.prot" + "ocol.v2.Variant\022\016\n\006delete\030\003 \001(\010\"u\n\031Prese" + "nceOnlineGameAccount\022@\n\014game_account\030\001 \001" + "(\0132*.bgs.protocol.account.v2.GameAccount" + "Handle\022\026\n\016online_time_us\030\002 \001(\004\"x\n#Presen" + "ceOnlineGameAccountFieldValue\022Q\n\024online_" + "game_accounts\030\001 \003(\01323.bgs.protocol.prese" + "nce.v2.PresenceOnlineGameAccount\"K\n\"Pres" + "enceExternalIdentityFieldValue\022\021\n\tunique" + "_id\030\001 \001(\t\022\022\n\ndisplay_id\030\002 \001(\t*r\n\025Presenc" + "eQueryBehavior\022\033\n\027BATTLE_NET_ACCOUNT_ONL" + "Y\020\000\022\035\n\031INCLUDE_SAME_GAME_ACCOUNT\020\001\022\035\n\031IN" + "CLUDE_ALL_GAME_ACCOUNTS\020\002*C\n\025PresenceAcc" + "ountStatus\022\013\n\007OFFLINE\020\000\022\n\n\006ONLINE\020\001\022\010\n\004A" + "WAY\020\002\022\007\n\003DND\020\003B\002H\002", 1298); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "api/client/v2/presence_types.proto", &protobuf_RegisterTypes); + RichPresenceKey::default_instance_ = new RichPresenceKey(); + PresenceFieldKey::default_instance_ = new PresenceFieldKey(); + PresenceField::default_instance_ = new PresenceField(); + PresenceFieldState::default_instance_ = new PresenceFieldState(); + PresenceFieldUpdate::default_instance_ = new PresenceFieldUpdate(); + PresenceOnlineGameAccount::default_instance_ = new PresenceOnlineGameAccount(); + PresenceOnlineGameAccountFieldValue::default_instance_ = new PresenceOnlineGameAccountFieldValue(); + PresenceExternalIdentityFieldValue::default_instance_ = new PresenceExternalIdentityFieldValue(); + RichPresenceKey::default_instance_->InitAsDefaultInstance(); + PresenceFieldKey::default_instance_->InitAsDefaultInstance(); + PresenceField::default_instance_->InitAsDefaultInstance(); + PresenceFieldState::default_instance_->InitAsDefaultInstance(); + PresenceFieldUpdate::default_instance_->InitAsDefaultInstance(); + PresenceOnlineGameAccount::default_instance_->InitAsDefaultInstance(); + PresenceOnlineGameAccountFieldValue::default_instance_->InitAsDefaultInstance(); + PresenceExternalIdentityFieldValue::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_api_2fclient_2fv2_2fpresence_5ftypes_2eproto { + StaticDescriptorInitializer_api_2fclient_2fv2_2fpresence_5ftypes_2eproto() { + protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + } +} static_descriptor_initializer_api_2fclient_2fv2_2fpresence_5ftypes_2eproto_; +const ::google::protobuf::EnumDescriptor* PresenceQueryBehavior_descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceQueryBehavior_descriptor_; +} +bool PresenceQueryBehavior_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* PresenceAccountStatus_descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceAccountStatus_descriptor_; +} +bool PresenceAccountStatus_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +// =================================================================== + +#ifndef _MSC_VER +const int RichPresenceKey::kTitleIdFieldNumber; +const int RichPresenceKey::kStreamFieldNumber; +const int RichPresenceKey::kLocalizationIdFieldNumber; +#endif // !_MSC_VER + +RichPresenceKey::RichPresenceKey() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v2.RichPresenceKey) +} + +void RichPresenceKey::InitAsDefaultInstance() { +} + +RichPresenceKey::RichPresenceKey(const RichPresenceKey& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v2.RichPresenceKey) +} + +void RichPresenceKey::SharedCtor() { + _cached_size_ = 0; + title_id_ = 0u; + stream_ = 0u; + localization_id_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RichPresenceKey::~RichPresenceKey() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v2.RichPresenceKey) + SharedDtor(); +} + +void RichPresenceKey::SharedDtor() { + if (this != default_instance_) { + } +} + +void RichPresenceKey::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RichPresenceKey::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RichPresenceKey_descriptor_; +} + +const RichPresenceKey& RichPresenceKey::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + return *default_instance_; +} + +RichPresenceKey* RichPresenceKey::default_instance_ = NULL; + +RichPresenceKey* RichPresenceKey::New() const { + return new RichPresenceKey; +} + +void RichPresenceKey::Swap(RichPresenceKey* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata RichPresenceKey::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RichPresenceKey_descriptor_; + metadata.reflection = RichPresenceKey_reflection_; + return metadata; +} + +// =================================================================== + +#ifndef _MSC_VER +const int PresenceFieldKey::kTitleIdFieldNumber; +const int PresenceFieldKey::kGroupFieldNumber; +const int PresenceFieldKey::kFieldFieldNumber; +const int PresenceFieldKey::kUniqueIdFieldNumber; +#endif // !_MSC_VER + +PresenceFieldKey::PresenceFieldKey() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v2.PresenceFieldKey) +} + +void PresenceFieldKey::InitAsDefaultInstance() { +} + +PresenceFieldKey::PresenceFieldKey(const PresenceFieldKey& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v2.PresenceFieldKey) +} + +void PresenceFieldKey::SharedCtor() { + _cached_size_ = 0; + title_id_ = 0u; + group_ = 0u; + field_ = 0u; + unique_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PresenceFieldKey::~PresenceFieldKey() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v2.PresenceFieldKey) + SharedDtor(); +} + +void PresenceFieldKey::SharedDtor() { + if (this != default_instance_) { + } +} + +void PresenceFieldKey::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PresenceFieldKey::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceFieldKey_descriptor_; +} + +const PresenceFieldKey& PresenceFieldKey::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + return *default_instance_; +} + +PresenceFieldKey* PresenceFieldKey::default_instance_ = NULL; + +PresenceFieldKey* PresenceFieldKey::New() const { + return new PresenceFieldKey; +} + +void PresenceFieldKey::Swap(PresenceFieldKey* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata PresenceFieldKey::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PresenceFieldKey_descriptor_; + metadata.reflection = PresenceFieldKey_reflection_; + return metadata; +} + +// =================================================================== + +#ifndef _MSC_VER +const int PresenceField::kKeyFieldNumber; +const int PresenceField::kValueFieldNumber; +const int PresenceField::kDeletedFieldNumber; +const int PresenceField::kUpdatedTimeUsFieldNumber; +#endif // !_MSC_VER + +PresenceField::PresenceField() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v2.PresenceField) +} + +void PresenceField::InitAsDefaultInstance() { + key_ = const_cast< ::bgs::protocol::presence::v2::PresenceFieldKey*>(&::bgs::protocol::presence::v2::PresenceFieldKey::default_instance()); + value_ = const_cast< ::bgs::protocol::v2::Variant*>(&::bgs::protocol::v2::Variant::default_instance()); +} + +PresenceField::PresenceField(const PresenceField& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v2.PresenceField) +} + +void PresenceField::SharedCtor() { + _cached_size_ = 0; + key_ = NULL; + value_ = NULL; + deleted_ = false; + updated_time_us_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PresenceField::~PresenceField() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v2.PresenceField) + SharedDtor(); +} + +void PresenceField::SharedDtor() { + if (this != default_instance_) { + delete key_; + delete value_; + } +} + +void PresenceField::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PresenceField::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceField_descriptor_; +} + +const PresenceField& PresenceField::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + return *default_instance_; +} + +PresenceField* PresenceField::default_instance_ = NULL; + +PresenceField* PresenceField::New() const { + return new PresenceField; +} + +void PresenceField::Swap(PresenceField* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata PresenceField::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PresenceField_descriptor_; + metadata.reflection = PresenceField_reflection_; + return metadata; +} + +// =================================================================== + +#ifndef _MSC_VER +const int PresenceFieldState::kAccountIdFieldNumber; +const int PresenceFieldState::kGameAccountFieldNumber; +const int PresenceFieldState::kFieldsFieldNumber; +const int PresenceFieldState::kOldestTimeUsFieldNumber; +#endif // !_MSC_VER + +PresenceFieldState::PresenceFieldState() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v2.PresenceFieldState) +} + +void PresenceFieldState::InitAsDefaultInstance() { + game_account_ = const_cast< ::bgs::protocol::account::v2::GameAccountHandle*>(&::bgs::protocol::account::v2::GameAccountHandle::default_instance()); +} + +PresenceFieldState::PresenceFieldState(const PresenceFieldState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v2.PresenceFieldState) +} + +void PresenceFieldState::SharedCtor() { + _cached_size_ = 0; + account_id_ = GOOGLE_ULONGLONG(0); + game_account_ = NULL; + oldest_time_us_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PresenceFieldState::~PresenceFieldState() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v2.PresenceFieldState) + SharedDtor(); +} + +void PresenceFieldState::SharedDtor() { + if (this != default_instance_) { + delete game_account_; + } +} + +void PresenceFieldState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PresenceFieldState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceFieldState_descriptor_; +} + +const PresenceFieldState& PresenceFieldState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + return *default_instance_; +} + +PresenceFieldState* PresenceFieldState::default_instance_ = NULL; + +PresenceFieldState* PresenceFieldState::New() const { + return new PresenceFieldState; +} + +void PresenceFieldState::Swap(PresenceFieldState* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata PresenceFieldState::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PresenceFieldState_descriptor_; + metadata.reflection = PresenceFieldState_reflection_; + return metadata; +} + +// =================================================================== + +#ifndef _MSC_VER +const int PresenceFieldUpdate::kKeyFieldNumber; +const int PresenceFieldUpdate::kValueFieldNumber; +const int PresenceFieldUpdate::kDeleteFieldNumber; +#endif // !_MSC_VER + +PresenceFieldUpdate::PresenceFieldUpdate() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v2.PresenceFieldUpdate) +} + +void PresenceFieldUpdate::InitAsDefaultInstance() { + key_ = const_cast< ::bgs::protocol::presence::v2::PresenceFieldKey*>(&::bgs::protocol::presence::v2::PresenceFieldKey::default_instance()); + value_ = const_cast< ::bgs::protocol::v2::Variant*>(&::bgs::protocol::v2::Variant::default_instance()); +} + +PresenceFieldUpdate::PresenceFieldUpdate(const PresenceFieldUpdate& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v2.PresenceFieldUpdate) +} + +void PresenceFieldUpdate::SharedCtor() { + _cached_size_ = 0; + key_ = NULL; + value_ = NULL; + delete__ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PresenceFieldUpdate::~PresenceFieldUpdate() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v2.PresenceFieldUpdate) + SharedDtor(); +} + +void PresenceFieldUpdate::SharedDtor() { + if (this != default_instance_) { + delete key_; + delete value_; + } +} + +void PresenceFieldUpdate::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PresenceFieldUpdate::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceFieldUpdate_descriptor_; +} + +const PresenceFieldUpdate& PresenceFieldUpdate::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + return *default_instance_; +} + +PresenceFieldUpdate* PresenceFieldUpdate::default_instance_ = NULL; + +PresenceFieldUpdate* PresenceFieldUpdate::New() const { + return new PresenceFieldUpdate; +} + +void PresenceFieldUpdate::Swap(PresenceFieldUpdate* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata PresenceFieldUpdate::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PresenceFieldUpdate_descriptor_; + metadata.reflection = PresenceFieldUpdate_reflection_; + return metadata; +} + +// =================================================================== + +#ifndef _MSC_VER +const int PresenceOnlineGameAccount::kGameAccountFieldNumber; +const int PresenceOnlineGameAccount::kOnlineTimeUsFieldNumber; +#endif // !_MSC_VER + +PresenceOnlineGameAccount::PresenceOnlineGameAccount() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v2.PresenceOnlineGameAccount) +} + +void PresenceOnlineGameAccount::InitAsDefaultInstance() { + game_account_ = const_cast< ::bgs::protocol::account::v2::GameAccountHandle*>(&::bgs::protocol::account::v2::GameAccountHandle::default_instance()); +} + +PresenceOnlineGameAccount::PresenceOnlineGameAccount(const PresenceOnlineGameAccount& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v2.PresenceOnlineGameAccount) +} + +void PresenceOnlineGameAccount::SharedCtor() { + _cached_size_ = 0; + game_account_ = NULL; + online_time_us_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PresenceOnlineGameAccount::~PresenceOnlineGameAccount() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v2.PresenceOnlineGameAccount) + SharedDtor(); +} + +void PresenceOnlineGameAccount::SharedDtor() { + if (this != default_instance_) { + delete game_account_; + } +} + +void PresenceOnlineGameAccount::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PresenceOnlineGameAccount::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceOnlineGameAccount_descriptor_; +} + +const PresenceOnlineGameAccount& PresenceOnlineGameAccount::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + return *default_instance_; +} + +PresenceOnlineGameAccount* PresenceOnlineGameAccount::default_instance_ = NULL; + +PresenceOnlineGameAccount* PresenceOnlineGameAccount::New() const { + return new PresenceOnlineGameAccount; +} + +void PresenceOnlineGameAccount::Swap(PresenceOnlineGameAccount* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata PresenceOnlineGameAccount::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PresenceOnlineGameAccount_descriptor_; + metadata.reflection = PresenceOnlineGameAccount_reflection_; + return metadata; +} + +// =================================================================== + +#ifndef _MSC_VER +const int PresenceOnlineGameAccountFieldValue::kOnlineGameAccountsFieldNumber; +#endif // !_MSC_VER + +PresenceOnlineGameAccountFieldValue::PresenceOnlineGameAccountFieldValue() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue) +} + +void PresenceOnlineGameAccountFieldValue::InitAsDefaultInstance() { +} + +PresenceOnlineGameAccountFieldValue::PresenceOnlineGameAccountFieldValue(const PresenceOnlineGameAccountFieldValue& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue) +} + +void PresenceOnlineGameAccountFieldValue::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PresenceOnlineGameAccountFieldValue::~PresenceOnlineGameAccountFieldValue() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue) + SharedDtor(); +} + +void PresenceOnlineGameAccountFieldValue::SharedDtor() { + if (this != default_instance_) { + } +} + +void PresenceOnlineGameAccountFieldValue::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PresenceOnlineGameAccountFieldValue::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceOnlineGameAccountFieldValue_descriptor_; +} + +const PresenceOnlineGameAccountFieldValue& PresenceOnlineGameAccountFieldValue::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + return *default_instance_; +} + +PresenceOnlineGameAccountFieldValue* PresenceOnlineGameAccountFieldValue::default_instance_ = NULL; + +PresenceOnlineGameAccountFieldValue* PresenceOnlineGameAccountFieldValue::New() const { + return new PresenceOnlineGameAccountFieldValue; +} + +void PresenceOnlineGameAccountFieldValue::Swap(PresenceOnlineGameAccountFieldValue* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata PresenceOnlineGameAccountFieldValue::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PresenceOnlineGameAccountFieldValue_descriptor_; + metadata.reflection = PresenceOnlineGameAccountFieldValue_reflection_; + return metadata; +} + +// =================================================================== + +#ifndef _MSC_VER +const int PresenceExternalIdentityFieldValue::kUniqueIdFieldNumber; +const int PresenceExternalIdentityFieldValue::kDisplayIdFieldNumber; +#endif // !_MSC_VER + +PresenceExternalIdentityFieldValue::PresenceExternalIdentityFieldValue() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue) +} + +void PresenceExternalIdentityFieldValue::InitAsDefaultInstance() { +} + +PresenceExternalIdentityFieldValue::PresenceExternalIdentityFieldValue(const PresenceExternalIdentityFieldValue& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue) +} + +void PresenceExternalIdentityFieldValue::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + unique_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + display_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PresenceExternalIdentityFieldValue::~PresenceExternalIdentityFieldValue() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue) + SharedDtor(); +} + +void PresenceExternalIdentityFieldValue::SharedDtor() { + if (unique_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete unique_id_; + } + if (display_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete display_id_; + } + if (this != default_instance_) { + } +} + +void PresenceExternalIdentityFieldValue::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PresenceExternalIdentityFieldValue::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PresenceExternalIdentityFieldValue_descriptor_; +} + +const PresenceExternalIdentityFieldValue& PresenceExternalIdentityFieldValue::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + return *default_instance_; +} + +PresenceExternalIdentityFieldValue* PresenceExternalIdentityFieldValue::default_instance_ = NULL; + +PresenceExternalIdentityFieldValue* PresenceExternalIdentityFieldValue::New() const { + return new PresenceExternalIdentityFieldValue; +} + +void PresenceExternalIdentityFieldValue::Swap(PresenceExternalIdentityFieldValue* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata PresenceExternalIdentityFieldValue::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PresenceExternalIdentityFieldValue_descriptor_; + metadata.reflection = PresenceExternalIdentityFieldValue_reflection_; + return metadata; +} + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v2 +} // namespace presence +} // namespace protocol +} // namespace bgs + +// @@protoc_insertion_point(global_scope) diff --git a/src/server/proto/Client/api/client/v2/presence_types.pb.h b/src/server/proto/Client/api/client/v2/presence_types.pb.h new file mode 100644 index 00000000000..d1b3259fd35 --- /dev/null +++ b/src/server/proto/Client/api/client/v2/presence_types.pb.h @@ -0,0 +1,1631 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/client/v2/presence_types.proto + +#ifndef PROTOBUF_api_2fclient_2fv2_2fpresence_5ftypes_2eproto__INCLUDED +#define PROTOBUF_api_2fclient_2fv2_2fpresence_5ftypes_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 2006000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> +#include <google/protobuf/extension_set.h> +#include <google/protobuf/generated_enum_reflection.h> +#include <google/protobuf/unknown_field_set.h> +#include "api/common/v2/attribute_types.pb.h" +#include "api/common/v2/game_account_handle.pb.h" +#include "Define.h" // for TC_PROTO_API +// @@protoc_insertion_point(includes) + +namespace bgs { +namespace protocol { +namespace presence { +namespace v2 { + +// Internal implementation detail -- do not call these. +void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); +void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); +void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + +class RichPresenceKey; +class PresenceFieldKey; +class PresenceField; +class PresenceFieldState; +class PresenceFieldUpdate; +class PresenceOnlineGameAccount; +class PresenceOnlineGameAccountFieldValue; +class PresenceExternalIdentityFieldValue; + +enum PresenceQueryBehavior { + BATTLE_NET_ACCOUNT_ONLY = 0, + INCLUDE_SAME_GAME_ACCOUNT = 1, + INCLUDE_ALL_GAME_ACCOUNTS = 2 +}; +TC_PROTO_API bool PresenceQueryBehavior_IsValid(int value); +const PresenceQueryBehavior PresenceQueryBehavior_MIN = BATTLE_NET_ACCOUNT_ONLY; +const PresenceQueryBehavior PresenceQueryBehavior_MAX = INCLUDE_ALL_GAME_ACCOUNTS; +const int PresenceQueryBehavior_ARRAYSIZE = PresenceQueryBehavior_MAX + 1; + +TC_PROTO_API const ::google::protobuf::EnumDescriptor* PresenceQueryBehavior_descriptor(); +inline const ::std::string& PresenceQueryBehavior_Name(PresenceQueryBehavior value) { + return ::google::protobuf::internal::NameOfEnum( + PresenceQueryBehavior_descriptor(), value); +} +inline bool PresenceQueryBehavior_Parse( + const ::std::string& name, PresenceQueryBehavior* value) { + return ::google::protobuf::internal::ParseNamedEnum<PresenceQueryBehavior>( + PresenceQueryBehavior_descriptor(), name, value); +} +enum PresenceAccountStatus { + OFFLINE = 0, + ONLINE = 1, + AWAY = 2, + DND = 3 +}; +TC_PROTO_API bool PresenceAccountStatus_IsValid(int value); +const PresenceAccountStatus PresenceAccountStatus_MIN = OFFLINE; +const PresenceAccountStatus PresenceAccountStatus_MAX = DND; +const int PresenceAccountStatus_ARRAYSIZE = PresenceAccountStatus_MAX + 1; + +TC_PROTO_API const ::google::protobuf::EnumDescriptor* PresenceAccountStatus_descriptor(); +inline const ::std::string& PresenceAccountStatus_Name(PresenceAccountStatus value) { + return ::google::protobuf::internal::NameOfEnum( + PresenceAccountStatus_descriptor(), value); +} +inline bool PresenceAccountStatus_Parse( + const ::std::string& name, PresenceAccountStatus* value) { + return ::google::protobuf::internal::ParseNamedEnum<PresenceAccountStatus>( + PresenceAccountStatus_descriptor(), name, value); +} +// =================================================================== + +class TC_PROTO_API RichPresenceKey : public ::google::protobuf::Message { + public: + RichPresenceKey(); + virtual ~RichPresenceKey(); + + RichPresenceKey(const RichPresenceKey& from); + + inline RichPresenceKey& operator=(const RichPresenceKey& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RichPresenceKey& default_instance(); + + void Swap(RichPresenceKey* other); + + // implements Message ---------------------------------------------- + + RichPresenceKey* New() const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 title_id = 1; + inline bool has_title_id() const; + inline void clear_title_id(); + static const int kTitleIdFieldNumber = 1; + inline ::google::protobuf::uint32 title_id() const; + inline void set_title_id(::google::protobuf::uint32 value); + + // optional fixed32 stream = 2; + inline bool has_stream() const; + inline void clear_stream(); + static const int kStreamFieldNumber = 2; + inline ::google::protobuf::uint32 stream() const; + inline void set_stream(::google::protobuf::uint32 value); + + // optional uint32 localization_id = 3; + inline bool has_localization_id() const; + inline void clear_localization_id(); + static const int kLocalizationIdFieldNumber = 3; + inline ::google::protobuf::uint32 localization_id() const; + inline void set_localization_id(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v2.RichPresenceKey) + private: + inline void set_has_title_id(); + inline void clear_has_title_id(); + inline void set_has_stream(); + inline void clear_has_stream(); + inline void set_has_localization_id(); + inline void clear_has_localization_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::uint32 title_id_; + ::google::protobuf::uint32 stream_; + ::google::protobuf::uint32 localization_id_; + friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static RichPresenceKey* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API PresenceFieldKey : public ::google::protobuf::Message { + public: + PresenceFieldKey(); + virtual ~PresenceFieldKey(); + + PresenceFieldKey(const PresenceFieldKey& from); + + inline PresenceFieldKey& operator=(const PresenceFieldKey& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PresenceFieldKey& default_instance(); + + void Swap(PresenceFieldKey* other); + + // implements Message ---------------------------------------------- + + PresenceFieldKey* New() const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 title_id = 1; + inline bool has_title_id() const; + inline void clear_title_id(); + static const int kTitleIdFieldNumber = 1; + inline ::google::protobuf::uint32 title_id() const; + inline void set_title_id(::google::protobuf::uint32 value); + + // optional uint32 group = 2; + inline bool has_group() const; + inline void clear_group(); + static const int kGroupFieldNumber = 2; + inline ::google::protobuf::uint32 group() const; + inline void set_group(::google::protobuf::uint32 value); + + // optional uint32 field = 3; + inline bool has_field() const; + inline void clear_field(); + static const int kFieldFieldNumber = 3; + inline ::google::protobuf::uint32 field() const; + inline void set_field(::google::protobuf::uint32 value); + + // optional uint64 unique_id = 4; + inline bool has_unique_id() const; + inline void clear_unique_id(); + static const int kUniqueIdFieldNumber = 4; + inline ::google::protobuf::uint64 unique_id() const; + inline void set_unique_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v2.PresenceFieldKey) + private: + inline void set_has_title_id(); + inline void clear_has_title_id(); + inline void set_has_group(); + inline void clear_has_group(); + inline void set_has_field(); + inline void clear_has_field(); + inline void set_has_unique_id(); + inline void clear_has_unique_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::uint32 title_id_; + ::google::protobuf::uint32 group_; + ::google::protobuf::uint64 unique_id_; + ::google::protobuf::uint32 field_; + friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static PresenceFieldKey* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API PresenceField : public ::google::protobuf::Message { + public: + PresenceField(); + virtual ~PresenceField(); + + PresenceField(const PresenceField& from); + + inline PresenceField& operator=(const PresenceField& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PresenceField& default_instance(); + + void Swap(PresenceField* other); + + // implements Message ---------------------------------------------- + + PresenceField* New() const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.presence.v2.PresenceFieldKey key = 1; + inline bool has_key() const; + inline void clear_key(); + static const int kKeyFieldNumber = 1; + inline const ::bgs::protocol::presence::v2::PresenceFieldKey& key() const; + inline ::bgs::protocol::presence::v2::PresenceFieldKey* mutable_key(); + inline ::bgs::protocol::presence::v2::PresenceFieldKey* release_key(); + inline void set_allocated_key(::bgs::protocol::presence::v2::PresenceFieldKey* key); + + // optional .bgs.protocol.v2.Variant value = 2; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 2; + inline const ::bgs::protocol::v2::Variant& value() const; + inline ::bgs::protocol::v2::Variant* mutable_value(); + inline ::bgs::protocol::v2::Variant* release_value(); + inline void set_allocated_value(::bgs::protocol::v2::Variant* value); + + // optional bool deleted = 3; + inline bool has_deleted() const; + inline void clear_deleted(); + static const int kDeletedFieldNumber = 3; + inline bool deleted() const; + inline void set_deleted(bool value); + + // optional uint64 updated_time_us = 4; + inline bool has_updated_time_us() const; + inline void clear_updated_time_us(); + static const int kUpdatedTimeUsFieldNumber = 4; + inline ::google::protobuf::uint64 updated_time_us() const; + inline void set_updated_time_us(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v2.PresenceField) + private: + inline void set_has_key(); + inline void clear_has_key(); + inline void set_has_value(); + inline void clear_has_value(); + inline void set_has_deleted(); + inline void clear_has_deleted(); + inline void set_has_updated_time_us(); + inline void clear_has_updated_time_us(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::presence::v2::PresenceFieldKey* key_; + ::bgs::protocol::v2::Variant* value_; + ::google::protobuf::uint64 updated_time_us_; + bool deleted_; + friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static PresenceField* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API PresenceFieldState : public ::google::protobuf::Message { + public: + PresenceFieldState(); + virtual ~PresenceFieldState(); + + PresenceFieldState(const PresenceFieldState& from); + + inline PresenceFieldState& operator=(const PresenceFieldState& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PresenceFieldState& default_instance(); + + void Swap(PresenceFieldState* other); + + // implements Message ---------------------------------------------- + + PresenceFieldState* New() const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 account_id = 1; + inline bool has_account_id() const; + inline void clear_account_id(); + static const int kAccountIdFieldNumber = 1; + inline ::google::protobuf::uint64 account_id() const; + inline void set_account_id(::google::protobuf::uint64 value); + + // optional .bgs.protocol.account.v2.GameAccountHandle game_account = 2; + inline bool has_game_account() const; + inline void clear_game_account(); + static const int kGameAccountFieldNumber = 2; + inline const ::bgs::protocol::account::v2::GameAccountHandle& game_account() const; + inline ::bgs::protocol::account::v2::GameAccountHandle* mutable_game_account(); + inline ::bgs::protocol::account::v2::GameAccountHandle* release_game_account(); + inline void set_allocated_game_account(::bgs::protocol::account::v2::GameAccountHandle* game_account); + + // repeated .bgs.protocol.presence.v2.PresenceField fields = 3; + inline int fields_size() const; + inline void clear_fields(); + static const int kFieldsFieldNumber = 3; + inline const ::bgs::protocol::presence::v2::PresenceField& fields(int index) const; + inline ::bgs::protocol::presence::v2::PresenceField* mutable_fields(int index); + inline ::bgs::protocol::presence::v2::PresenceField* add_fields(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceField >& + fields() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceField >* + mutable_fields(); + + // optional uint64 oldest_time_us = 4; + inline bool has_oldest_time_us() const; + inline void clear_oldest_time_us(); + static const int kOldestTimeUsFieldNumber = 4; + inline ::google::protobuf::uint64 oldest_time_us() const; + inline void set_oldest_time_us(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v2.PresenceFieldState) + private: + inline void set_has_account_id(); + inline void clear_has_account_id(); + inline void set_has_game_account(); + inline void clear_has_game_account(); + inline void set_has_oldest_time_us(); + inline void clear_has_oldest_time_us(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::uint64 account_id_; + ::bgs::protocol::account::v2::GameAccountHandle* game_account_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceField > fields_; + ::google::protobuf::uint64 oldest_time_us_; + friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static PresenceFieldState* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API PresenceFieldUpdate : public ::google::protobuf::Message { + public: + PresenceFieldUpdate(); + virtual ~PresenceFieldUpdate(); + + PresenceFieldUpdate(const PresenceFieldUpdate& from); + + inline PresenceFieldUpdate& operator=(const PresenceFieldUpdate& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PresenceFieldUpdate& default_instance(); + + void Swap(PresenceFieldUpdate* other); + + // implements Message ---------------------------------------------- + + PresenceFieldUpdate* New() const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.presence.v2.PresenceFieldKey key = 1; + inline bool has_key() const; + inline void clear_key(); + static const int kKeyFieldNumber = 1; + inline const ::bgs::protocol::presence::v2::PresenceFieldKey& key() const; + inline ::bgs::protocol::presence::v2::PresenceFieldKey* mutable_key(); + inline ::bgs::protocol::presence::v2::PresenceFieldKey* release_key(); + inline void set_allocated_key(::bgs::protocol::presence::v2::PresenceFieldKey* key); + + // optional .bgs.protocol.v2.Variant value = 2; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 2; + inline const ::bgs::protocol::v2::Variant& value() const; + inline ::bgs::protocol::v2::Variant* mutable_value(); + inline ::bgs::protocol::v2::Variant* release_value(); + inline void set_allocated_value(::bgs::protocol::v2::Variant* value); + + // optional bool delete = 3; + inline bool has_delete_() const; + inline void clear_delete_(); + static const int kDeleteFieldNumber = 3; + inline bool delete_() const; + inline void set_delete_(bool value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v2.PresenceFieldUpdate) + private: + inline void set_has_key(); + inline void clear_has_key(); + inline void set_has_value(); + inline void clear_has_value(); + inline void set_has_delete_(); + inline void clear_has_delete_(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::presence::v2::PresenceFieldKey* key_; + ::bgs::protocol::v2::Variant* value_; + bool delete__; + friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static PresenceFieldUpdate* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API PresenceOnlineGameAccount : public ::google::protobuf::Message { + public: + PresenceOnlineGameAccount(); + virtual ~PresenceOnlineGameAccount(); + + PresenceOnlineGameAccount(const PresenceOnlineGameAccount& from); + + inline PresenceOnlineGameAccount& operator=(const PresenceOnlineGameAccount& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PresenceOnlineGameAccount& default_instance(); + + void Swap(PresenceOnlineGameAccount* other); + + // implements Message ---------------------------------------------- + + PresenceOnlineGameAccount* New() const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v2.GameAccountHandle game_account = 1; + inline bool has_game_account() const; + inline void clear_game_account(); + static const int kGameAccountFieldNumber = 1; + inline const ::bgs::protocol::account::v2::GameAccountHandle& game_account() const; + inline ::bgs::protocol::account::v2::GameAccountHandle* mutable_game_account(); + inline ::bgs::protocol::account::v2::GameAccountHandle* release_game_account(); + inline void set_allocated_game_account(::bgs::protocol::account::v2::GameAccountHandle* game_account); + + // optional uint64 online_time_us = 2; + inline bool has_online_time_us() const; + inline void clear_online_time_us(); + static const int kOnlineTimeUsFieldNumber = 2; + inline ::google::protobuf::uint64 online_time_us() const; + inline void set_online_time_us(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v2.PresenceOnlineGameAccount) + private: + inline void set_has_game_account(); + inline void clear_has_game_account(); + inline void set_has_online_time_us(); + inline void clear_has_online_time_us(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v2::GameAccountHandle* game_account_; + ::google::protobuf::uint64 online_time_us_; + friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static PresenceOnlineGameAccount* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API PresenceOnlineGameAccountFieldValue : public ::google::protobuf::Message { + public: + PresenceOnlineGameAccountFieldValue(); + virtual ~PresenceOnlineGameAccountFieldValue(); + + PresenceOnlineGameAccountFieldValue(const PresenceOnlineGameAccountFieldValue& from); + + inline PresenceOnlineGameAccountFieldValue& operator=(const PresenceOnlineGameAccountFieldValue& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PresenceOnlineGameAccountFieldValue& default_instance(); + + void Swap(PresenceOnlineGameAccountFieldValue* other); + + // implements Message ---------------------------------------------- + + PresenceOnlineGameAccountFieldValue* New() const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .bgs.protocol.presence.v2.PresenceOnlineGameAccount online_game_accounts = 1; + inline int online_game_accounts_size() const; + inline void clear_online_game_accounts(); + static const int kOnlineGameAccountsFieldNumber = 1; + inline const ::bgs::protocol::presence::v2::PresenceOnlineGameAccount& online_game_accounts(int index) const; + inline ::bgs::protocol::presence::v2::PresenceOnlineGameAccount* mutable_online_game_accounts(int index); + inline ::bgs::protocol::presence::v2::PresenceOnlineGameAccount* add_online_game_accounts(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceOnlineGameAccount >& + online_game_accounts() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceOnlineGameAccount >* + mutable_online_game_accounts(); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceOnlineGameAccount > online_game_accounts_; + friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static PresenceOnlineGameAccountFieldValue* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API PresenceExternalIdentityFieldValue : public ::google::protobuf::Message { + public: + PresenceExternalIdentityFieldValue(); + virtual ~PresenceExternalIdentityFieldValue(); + + PresenceExternalIdentityFieldValue(const PresenceExternalIdentityFieldValue& from); + + inline PresenceExternalIdentityFieldValue& operator=(const PresenceExternalIdentityFieldValue& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PresenceExternalIdentityFieldValue& default_instance(); + + void Swap(PresenceExternalIdentityFieldValue* other); + + // implements Message ---------------------------------------------- + + PresenceExternalIdentityFieldValue* New() const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string unique_id = 1; + inline bool has_unique_id() const; + inline void clear_unique_id(); + static const int kUniqueIdFieldNumber = 1; + inline const ::std::string& unique_id() const; + inline void set_unique_id(const ::std::string& value); + inline void set_unique_id(const char* value); + inline void set_unique_id(const char* value, size_t size); + inline ::std::string* mutable_unique_id(); + inline ::std::string* release_unique_id(); + inline void set_allocated_unique_id(::std::string* unique_id); + + // optional string display_id = 2; + inline bool has_display_id() const; + inline void clear_display_id(); + static const int kDisplayIdFieldNumber = 2; + inline const ::std::string& display_id() const; + inline void set_display_id(const ::std::string& value); + inline void set_display_id(const char* value); + inline void set_display_id(const char* value, size_t size); + inline ::std::string* mutable_display_id(); + inline ::std::string* release_display_id(); + inline void set_allocated_display_id(::std::string* display_id); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue) + private: + inline void set_has_unique_id(); + inline void clear_has_unique_id(); + inline void set_has_display_id(); + inline void clear_has_display_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* unique_id_; + ::std::string* display_id_; + friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_AssignDesc_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_api_2fclient_2fv2_2fpresence_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static PresenceExternalIdentityFieldValue* default_instance_; +}; +// =================================================================== + +// =================================================================== + +// =================================================================== + +// RichPresenceKey + +// optional uint32 title_id = 1; +inline bool RichPresenceKey::has_title_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RichPresenceKey::set_has_title_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void RichPresenceKey::clear_has_title_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RichPresenceKey::clear_title_id() { + title_id_ = 0u; + clear_has_title_id(); +} +inline ::google::protobuf::uint32 RichPresenceKey::title_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.RichPresenceKey.title_id) + return title_id_; +} +inline void RichPresenceKey::set_title_id(::google::protobuf::uint32 value) { + set_has_title_id(); + title_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.RichPresenceKey.title_id) +} + +// optional fixed32 stream = 2; +inline bool RichPresenceKey::has_stream() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RichPresenceKey::set_has_stream() { + _has_bits_[0] |= 0x00000002u; +} +inline void RichPresenceKey::clear_has_stream() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RichPresenceKey::clear_stream() { + stream_ = 0u; + clear_has_stream(); +} +inline ::google::protobuf::uint32 RichPresenceKey::stream() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.RichPresenceKey.stream) + return stream_; +} +inline void RichPresenceKey::set_stream(::google::protobuf::uint32 value) { + set_has_stream(); + stream_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.RichPresenceKey.stream) +} + +// optional uint32 localization_id = 3; +inline bool RichPresenceKey::has_localization_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RichPresenceKey::set_has_localization_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void RichPresenceKey::clear_has_localization_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RichPresenceKey::clear_localization_id() { + localization_id_ = 0u; + clear_has_localization_id(); +} +inline ::google::protobuf::uint32 RichPresenceKey::localization_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.RichPresenceKey.localization_id) + return localization_id_; +} +inline void RichPresenceKey::set_localization_id(::google::protobuf::uint32 value) { + set_has_localization_id(); + localization_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.RichPresenceKey.localization_id) +} + +// ------------------------------------------------------------------- + +// PresenceFieldKey + +// optional uint32 title_id = 1; +inline bool PresenceFieldKey::has_title_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PresenceFieldKey::set_has_title_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void PresenceFieldKey::clear_has_title_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PresenceFieldKey::clear_title_id() { + title_id_ = 0u; + clear_has_title_id(); +} +inline ::google::protobuf::uint32 PresenceFieldKey::title_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldKey.title_id) + return title_id_; +} +inline void PresenceFieldKey::set_title_id(::google::protobuf::uint32 value) { + set_has_title_id(); + title_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceFieldKey.title_id) +} + +// optional uint32 group = 2; +inline bool PresenceFieldKey::has_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PresenceFieldKey::set_has_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void PresenceFieldKey::clear_has_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PresenceFieldKey::clear_group() { + group_ = 0u; + clear_has_group(); +} +inline ::google::protobuf::uint32 PresenceFieldKey::group() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldKey.group) + return group_; +} +inline void PresenceFieldKey::set_group(::google::protobuf::uint32 value) { + set_has_group(); + group_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceFieldKey.group) +} + +// optional uint32 field = 3; +inline bool PresenceFieldKey::has_field() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void PresenceFieldKey::set_has_field() { + _has_bits_[0] |= 0x00000004u; +} +inline void PresenceFieldKey::clear_has_field() { + _has_bits_[0] &= ~0x00000004u; +} +inline void PresenceFieldKey::clear_field() { + field_ = 0u; + clear_has_field(); +} +inline ::google::protobuf::uint32 PresenceFieldKey::field() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldKey.field) + return field_; +} +inline void PresenceFieldKey::set_field(::google::protobuf::uint32 value) { + set_has_field(); + field_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceFieldKey.field) +} + +// optional uint64 unique_id = 4; +inline bool PresenceFieldKey::has_unique_id() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void PresenceFieldKey::set_has_unique_id() { + _has_bits_[0] |= 0x00000008u; +} +inline void PresenceFieldKey::clear_has_unique_id() { + _has_bits_[0] &= ~0x00000008u; +} +inline void PresenceFieldKey::clear_unique_id() { + unique_id_ = GOOGLE_ULONGLONG(0); + clear_has_unique_id(); +} +inline ::google::protobuf::uint64 PresenceFieldKey::unique_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldKey.unique_id) + return unique_id_; +} +inline void PresenceFieldKey::set_unique_id(::google::protobuf::uint64 value) { + set_has_unique_id(); + unique_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceFieldKey.unique_id) +} + +// ------------------------------------------------------------------- + +// PresenceField + +// optional .bgs.protocol.presence.v2.PresenceFieldKey key = 1; +inline bool PresenceField::has_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PresenceField::set_has_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void PresenceField::clear_has_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PresenceField::clear_key() { + if (key_ != NULL) key_->::bgs::protocol::presence::v2::PresenceFieldKey::Clear(); + clear_has_key(); +} +inline const ::bgs::protocol::presence::v2::PresenceFieldKey& PresenceField::key() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceField.key) + return key_ != NULL ? *key_ : *default_instance_->key_; +} +inline ::bgs::protocol::presence::v2::PresenceFieldKey* PresenceField::mutable_key() { + set_has_key(); + if (key_ == NULL) key_ = new ::bgs::protocol::presence::v2::PresenceFieldKey; + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceField.key) + return key_; +} +inline ::bgs::protocol::presence::v2::PresenceFieldKey* PresenceField::release_key() { + clear_has_key(); + ::bgs::protocol::presence::v2::PresenceFieldKey* temp = key_; + key_ = NULL; + return temp; +} +inline void PresenceField::set_allocated_key(::bgs::protocol::presence::v2::PresenceFieldKey* key) { + delete key_; + key_ = key; + if (key) { + set_has_key(); + } else { + clear_has_key(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v2.PresenceField.key) +} + +// optional .bgs.protocol.v2.Variant value = 2; +inline bool PresenceField::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PresenceField::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void PresenceField::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PresenceField::clear_value() { + if (value_ != NULL) value_->::bgs::protocol::v2::Variant::Clear(); + clear_has_value(); +} +inline const ::bgs::protocol::v2::Variant& PresenceField::value() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceField.value) + return value_ != NULL ? *value_ : *default_instance_->value_; +} +inline ::bgs::protocol::v2::Variant* PresenceField::mutable_value() { + set_has_value(); + if (value_ == NULL) value_ = new ::bgs::protocol::v2::Variant; + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceField.value) + return value_; +} +inline ::bgs::protocol::v2::Variant* PresenceField::release_value() { + clear_has_value(); + ::bgs::protocol::v2::Variant* temp = value_; + value_ = NULL; + return temp; +} +inline void PresenceField::set_allocated_value(::bgs::protocol::v2::Variant* value) { + delete value_; + value_ = value; + if (value) { + set_has_value(); + } else { + clear_has_value(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v2.PresenceField.value) +} + +// optional bool deleted = 3; +inline bool PresenceField::has_deleted() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void PresenceField::set_has_deleted() { + _has_bits_[0] |= 0x00000004u; +} +inline void PresenceField::clear_has_deleted() { + _has_bits_[0] &= ~0x00000004u; +} +inline void PresenceField::clear_deleted() { + deleted_ = false; + clear_has_deleted(); +} +inline bool PresenceField::deleted() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceField.deleted) + return deleted_; +} +inline void PresenceField::set_deleted(bool value) { + set_has_deleted(); + deleted_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceField.deleted) +} + +// optional uint64 updated_time_us = 4; +inline bool PresenceField::has_updated_time_us() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void PresenceField::set_has_updated_time_us() { + _has_bits_[0] |= 0x00000008u; +} +inline void PresenceField::clear_has_updated_time_us() { + _has_bits_[0] &= ~0x00000008u; +} +inline void PresenceField::clear_updated_time_us() { + updated_time_us_ = GOOGLE_ULONGLONG(0); + clear_has_updated_time_us(); +} +inline ::google::protobuf::uint64 PresenceField::updated_time_us() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceField.updated_time_us) + return updated_time_us_; +} +inline void PresenceField::set_updated_time_us(::google::protobuf::uint64 value) { + set_has_updated_time_us(); + updated_time_us_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceField.updated_time_us) +} + +// ------------------------------------------------------------------- + +// PresenceFieldState + +// optional uint64 account_id = 1; +inline bool PresenceFieldState::has_account_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PresenceFieldState::set_has_account_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void PresenceFieldState::clear_has_account_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PresenceFieldState::clear_account_id() { + account_id_ = GOOGLE_ULONGLONG(0); + clear_has_account_id(); +} +inline ::google::protobuf::uint64 PresenceFieldState::account_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldState.account_id) + return account_id_; +} +inline void PresenceFieldState::set_account_id(::google::protobuf::uint64 value) { + set_has_account_id(); + account_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceFieldState.account_id) +} + +// optional .bgs.protocol.account.v2.GameAccountHandle game_account = 2; +inline bool PresenceFieldState::has_game_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PresenceFieldState::set_has_game_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void PresenceFieldState::clear_has_game_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PresenceFieldState::clear_game_account() { + if (game_account_ != NULL) game_account_->::bgs::protocol::account::v2::GameAccountHandle::Clear(); + clear_has_game_account(); +} +inline const ::bgs::protocol::account::v2::GameAccountHandle& PresenceFieldState::game_account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldState.game_account) + return game_account_ != NULL ? *game_account_ : *default_instance_->game_account_; +} +inline ::bgs::protocol::account::v2::GameAccountHandle* PresenceFieldState::mutable_game_account() { + set_has_game_account(); + if (game_account_ == NULL) game_account_ = new ::bgs::protocol::account::v2::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceFieldState.game_account) + return game_account_; +} +inline ::bgs::protocol::account::v2::GameAccountHandle* PresenceFieldState::release_game_account() { + clear_has_game_account(); + ::bgs::protocol::account::v2::GameAccountHandle* temp = game_account_; + game_account_ = NULL; + return temp; +} +inline void PresenceFieldState::set_allocated_game_account(::bgs::protocol::account::v2::GameAccountHandle* game_account) { + delete game_account_; + game_account_ = game_account; + if (game_account) { + set_has_game_account(); + } else { + clear_has_game_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v2.PresenceFieldState.game_account) +} + +// repeated .bgs.protocol.presence.v2.PresenceField fields = 3; +inline int PresenceFieldState::fields_size() const { + return fields_.size(); +} +inline void PresenceFieldState::clear_fields() { + fields_.Clear(); +} +inline const ::bgs::protocol::presence::v2::PresenceField& PresenceFieldState::fields(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldState.fields) + return fields_.Get(index); +} +inline ::bgs::protocol::presence::v2::PresenceField* PresenceFieldState::mutable_fields(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceFieldState.fields) + return fields_.Mutable(index); +} +inline ::bgs::protocol::presence::v2::PresenceField* PresenceFieldState::add_fields() { + // @@protoc_insertion_point(field_add:bgs.protocol.presence.v2.PresenceFieldState.fields) + return fields_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceField >& +PresenceFieldState::fields() const { + // @@protoc_insertion_point(field_list:bgs.protocol.presence.v2.PresenceFieldState.fields) + return fields_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceField >* +PresenceFieldState::mutable_fields() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.presence.v2.PresenceFieldState.fields) + return &fields_; +} + +// optional uint64 oldest_time_us = 4; +inline bool PresenceFieldState::has_oldest_time_us() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void PresenceFieldState::set_has_oldest_time_us() { + _has_bits_[0] |= 0x00000008u; +} +inline void PresenceFieldState::clear_has_oldest_time_us() { + _has_bits_[0] &= ~0x00000008u; +} +inline void PresenceFieldState::clear_oldest_time_us() { + oldest_time_us_ = GOOGLE_ULONGLONG(0); + clear_has_oldest_time_us(); +} +inline ::google::protobuf::uint64 PresenceFieldState::oldest_time_us() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldState.oldest_time_us) + return oldest_time_us_; +} +inline void PresenceFieldState::set_oldest_time_us(::google::protobuf::uint64 value) { + set_has_oldest_time_us(); + oldest_time_us_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceFieldState.oldest_time_us) +} + +// ------------------------------------------------------------------- + +// PresenceFieldUpdate + +// optional .bgs.protocol.presence.v2.PresenceFieldKey key = 1; +inline bool PresenceFieldUpdate::has_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PresenceFieldUpdate::set_has_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void PresenceFieldUpdate::clear_has_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PresenceFieldUpdate::clear_key() { + if (key_ != NULL) key_->::bgs::protocol::presence::v2::PresenceFieldKey::Clear(); + clear_has_key(); +} +inline const ::bgs::protocol::presence::v2::PresenceFieldKey& PresenceFieldUpdate::key() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldUpdate.key) + return key_ != NULL ? *key_ : *default_instance_->key_; +} +inline ::bgs::protocol::presence::v2::PresenceFieldKey* PresenceFieldUpdate::mutable_key() { + set_has_key(); + if (key_ == NULL) key_ = new ::bgs::protocol::presence::v2::PresenceFieldKey; + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceFieldUpdate.key) + return key_; +} +inline ::bgs::protocol::presence::v2::PresenceFieldKey* PresenceFieldUpdate::release_key() { + clear_has_key(); + ::bgs::protocol::presence::v2::PresenceFieldKey* temp = key_; + key_ = NULL; + return temp; +} +inline void PresenceFieldUpdate::set_allocated_key(::bgs::protocol::presence::v2::PresenceFieldKey* key) { + delete key_; + key_ = key; + if (key) { + set_has_key(); + } else { + clear_has_key(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v2.PresenceFieldUpdate.key) +} + +// optional .bgs.protocol.v2.Variant value = 2; +inline bool PresenceFieldUpdate::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PresenceFieldUpdate::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void PresenceFieldUpdate::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PresenceFieldUpdate::clear_value() { + if (value_ != NULL) value_->::bgs::protocol::v2::Variant::Clear(); + clear_has_value(); +} +inline const ::bgs::protocol::v2::Variant& PresenceFieldUpdate::value() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldUpdate.value) + return value_ != NULL ? *value_ : *default_instance_->value_; +} +inline ::bgs::protocol::v2::Variant* PresenceFieldUpdate::mutable_value() { + set_has_value(); + if (value_ == NULL) value_ = new ::bgs::protocol::v2::Variant; + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceFieldUpdate.value) + return value_; +} +inline ::bgs::protocol::v2::Variant* PresenceFieldUpdate::release_value() { + clear_has_value(); + ::bgs::protocol::v2::Variant* temp = value_; + value_ = NULL; + return temp; +} +inline void PresenceFieldUpdate::set_allocated_value(::bgs::protocol::v2::Variant* value) { + delete value_; + value_ = value; + if (value) { + set_has_value(); + } else { + clear_has_value(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v2.PresenceFieldUpdate.value) +} + +// optional bool delete = 3; +inline bool PresenceFieldUpdate::has_delete_() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void PresenceFieldUpdate::set_has_delete_() { + _has_bits_[0] |= 0x00000004u; +} +inline void PresenceFieldUpdate::clear_has_delete_() { + _has_bits_[0] &= ~0x00000004u; +} +inline void PresenceFieldUpdate::clear_delete_() { + delete__ = false; + clear_has_delete_(); +} +inline bool PresenceFieldUpdate::delete_() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceFieldUpdate.delete) + return delete__; +} +inline void PresenceFieldUpdate::set_delete_(bool value) { + set_has_delete_(); + delete__ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceFieldUpdate.delete) +} + +// ------------------------------------------------------------------- + +// PresenceOnlineGameAccount + +// optional .bgs.protocol.account.v2.GameAccountHandle game_account = 1; +inline bool PresenceOnlineGameAccount::has_game_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PresenceOnlineGameAccount::set_has_game_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void PresenceOnlineGameAccount::clear_has_game_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PresenceOnlineGameAccount::clear_game_account() { + if (game_account_ != NULL) game_account_->::bgs::protocol::account::v2::GameAccountHandle::Clear(); + clear_has_game_account(); +} +inline const ::bgs::protocol::account::v2::GameAccountHandle& PresenceOnlineGameAccount::game_account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceOnlineGameAccount.game_account) + return game_account_ != NULL ? *game_account_ : *default_instance_->game_account_; +} +inline ::bgs::protocol::account::v2::GameAccountHandle* PresenceOnlineGameAccount::mutable_game_account() { + set_has_game_account(); + if (game_account_ == NULL) game_account_ = new ::bgs::protocol::account::v2::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceOnlineGameAccount.game_account) + return game_account_; +} +inline ::bgs::protocol::account::v2::GameAccountHandle* PresenceOnlineGameAccount::release_game_account() { + clear_has_game_account(); + ::bgs::protocol::account::v2::GameAccountHandle* temp = game_account_; + game_account_ = NULL; + return temp; +} +inline void PresenceOnlineGameAccount::set_allocated_game_account(::bgs::protocol::account::v2::GameAccountHandle* game_account) { + delete game_account_; + game_account_ = game_account; + if (game_account) { + set_has_game_account(); + } else { + clear_has_game_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v2.PresenceOnlineGameAccount.game_account) +} + +// optional uint64 online_time_us = 2; +inline bool PresenceOnlineGameAccount::has_online_time_us() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PresenceOnlineGameAccount::set_has_online_time_us() { + _has_bits_[0] |= 0x00000002u; +} +inline void PresenceOnlineGameAccount::clear_has_online_time_us() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PresenceOnlineGameAccount::clear_online_time_us() { + online_time_us_ = GOOGLE_ULONGLONG(0); + clear_has_online_time_us(); +} +inline ::google::protobuf::uint64 PresenceOnlineGameAccount::online_time_us() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceOnlineGameAccount.online_time_us) + return online_time_us_; +} +inline void PresenceOnlineGameAccount::set_online_time_us(::google::protobuf::uint64 value) { + set_has_online_time_us(); + online_time_us_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceOnlineGameAccount.online_time_us) +} + +// ------------------------------------------------------------------- + +// PresenceOnlineGameAccountFieldValue + +// repeated .bgs.protocol.presence.v2.PresenceOnlineGameAccount online_game_accounts = 1; +inline int PresenceOnlineGameAccountFieldValue::online_game_accounts_size() const { + return online_game_accounts_.size(); +} +inline void PresenceOnlineGameAccountFieldValue::clear_online_game_accounts() { + online_game_accounts_.Clear(); +} +inline const ::bgs::protocol::presence::v2::PresenceOnlineGameAccount& PresenceOnlineGameAccountFieldValue::online_game_accounts(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue.online_game_accounts) + return online_game_accounts_.Get(index); +} +inline ::bgs::protocol::presence::v2::PresenceOnlineGameAccount* PresenceOnlineGameAccountFieldValue::mutable_online_game_accounts(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue.online_game_accounts) + return online_game_accounts_.Mutable(index); +} +inline ::bgs::protocol::presence::v2::PresenceOnlineGameAccount* PresenceOnlineGameAccountFieldValue::add_online_game_accounts() { + // @@protoc_insertion_point(field_add:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue.online_game_accounts) + return online_game_accounts_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceOnlineGameAccount >& +PresenceOnlineGameAccountFieldValue::online_game_accounts() const { + // @@protoc_insertion_point(field_list:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue.online_game_accounts) + return online_game_accounts_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v2::PresenceOnlineGameAccount >* +PresenceOnlineGameAccountFieldValue::mutable_online_game_accounts() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.presence.v2.PresenceOnlineGameAccountFieldValue.online_game_accounts) + return &online_game_accounts_; +} + +// ------------------------------------------------------------------- + +// PresenceExternalIdentityFieldValue + +// optional string unique_id = 1; +inline bool PresenceExternalIdentityFieldValue::has_unique_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PresenceExternalIdentityFieldValue::set_has_unique_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void PresenceExternalIdentityFieldValue::clear_has_unique_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PresenceExternalIdentityFieldValue::clear_unique_id() { + if (unique_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + unique_id_->clear(); + } + clear_has_unique_id(); +} +inline const ::std::string& PresenceExternalIdentityFieldValue::unique_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.unique_id) + return *unique_id_; +} +inline void PresenceExternalIdentityFieldValue::set_unique_id(const ::std::string& value) { + set_has_unique_id(); + if (unique_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + unique_id_ = new ::std::string; + } + unique_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.unique_id) +} +inline void PresenceExternalIdentityFieldValue::set_unique_id(const char* value) { + set_has_unique_id(); + if (unique_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + unique_id_ = new ::std::string; + } + unique_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.unique_id) +} +inline void PresenceExternalIdentityFieldValue::set_unique_id(const char* value, size_t size) { + set_has_unique_id(); + if (unique_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + unique_id_ = new ::std::string; + } + unique_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.unique_id) +} +inline ::std::string* PresenceExternalIdentityFieldValue::mutable_unique_id() { + set_has_unique_id(); + if (unique_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + unique_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.unique_id) + return unique_id_; +} +inline ::std::string* PresenceExternalIdentityFieldValue::release_unique_id() { + clear_has_unique_id(); + if (unique_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = unique_id_; + unique_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void PresenceExternalIdentityFieldValue::set_allocated_unique_id(::std::string* unique_id) { + if (unique_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete unique_id_; + } + if (unique_id) { + set_has_unique_id(); + unique_id_ = unique_id; + } else { + clear_has_unique_id(); + unique_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.unique_id) +} + +// optional string display_id = 2; +inline bool PresenceExternalIdentityFieldValue::has_display_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PresenceExternalIdentityFieldValue::set_has_display_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void PresenceExternalIdentityFieldValue::clear_has_display_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PresenceExternalIdentityFieldValue::clear_display_id() { + if (display_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_id_->clear(); + } + clear_has_display_id(); +} +inline const ::std::string& PresenceExternalIdentityFieldValue::display_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.display_id) + return *display_id_; +} +inline void PresenceExternalIdentityFieldValue::set_display_id(const ::std::string& value) { + set_has_display_id(); + if (display_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_id_ = new ::std::string; + } + display_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.display_id) +} +inline void PresenceExternalIdentityFieldValue::set_display_id(const char* value) { + set_has_display_id(); + if (display_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_id_ = new ::std::string; + } + display_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.display_id) +} +inline void PresenceExternalIdentityFieldValue::set_display_id(const char* value, size_t size) { + set_has_display_id(); + if (display_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_id_ = new ::std::string; + } + display_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.display_id) +} +inline ::std::string* PresenceExternalIdentityFieldValue::mutable_display_id() { + set_has_display_id(); + if (display_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.display_id) + return display_id_; +} +inline ::std::string* PresenceExternalIdentityFieldValue::release_display_id() { + clear_has_display_id(); + if (display_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = display_id_; + display_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void PresenceExternalIdentityFieldValue::set_allocated_display_id(::std::string* display_id) { + if (display_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete display_id_; + } + if (display_id) { + set_has_display_id(); + display_id_ = display_id; + } else { + clear_has_display_id(); + display_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v2.PresenceExternalIdentityFieldValue.display_id) +} + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v2 +} // namespace presence +} // namespace protocol +} // namespace bgs + +#ifndef SWIG +namespace google { +namespace protobuf { +template <> struct is_proto_enum< ::bgs::protocol::presence::v2::PresenceQueryBehavior> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::presence::v2::PresenceQueryBehavior>() { + return ::bgs::protocol::presence::v2::PresenceQueryBehavior_descriptor(); +} +template <> struct is_proto_enum< ::bgs::protocol::presence::v2::PresenceAccountStatus> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::presence::v2::PresenceAccountStatus>() { + return ::bgs::protocol::presence::v2::PresenceAccountStatus_descriptor(); +} +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_api_2fclient_2fv2_2fpresence_5ftypes_2eproto__INCLUDED |