diff --git a/CypherCore.sln b/CypherCore.sln index 981cdedf4..10f1dc179 100644 --- a/CypherCore.sln +++ b/CypherCore.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.10 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29926.136 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BNetServer", "Source\BNetServer\BNetServer.csproj", "{EEBFCEE3-CFAC-4D2E-927F-8E24E07A4218}" EndProject @@ -17,8 +17,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Servers", "Servers", "{480E EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libs", "Libs", "{0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Google.Protobuf", "Deps\Source\Google.Protobuf\Google.Protobuf.csproj", "{54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|linux-x64 = Debug|linux-x64 @@ -89,18 +87,6 @@ Global {2F7515AD-18E3-4ACA-A14B-1929F76299E7}.Release|mac-x64.Build.0 = Release|x64 {2F7515AD-18E3-4ACA-A14B-1929F76299E7}.Release|win-x64.ActiveCfg = Release|x64 {2F7515AD-18E3-4ACA-A14B-1929F76299E7}.Release|win-x64.Build.0 = Release|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Debug|linux-x64.ActiveCfg = Debug|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Debug|linux-x64.Build.0 = Debug|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Debug|mac-x64.ActiveCfg = Debug|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Debug|mac-x64.Build.0 = Debug|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Debug|win-x64.ActiveCfg = Debug|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Debug|win-x64.Build.0 = Debug|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Release|linux-x64.ActiveCfg = Release|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Release|linux-x64.Build.0 = Release|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Release|mac-x64.ActiveCfg = Release|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Release|mac-x64.Build.0 = Release|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Release|win-x64.ActiveCfg = Release|x64 - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}.Release|win-x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -111,7 +97,6 @@ Global {3B8C9AB8-2DC3-4655-BF67-AE2001D3B4F6} = {0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19} {1899C17C-1FA4-4807-B90E-0336C5748C1A} = {0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19} {2F7515AD-18E3-4ACA-A14B-1929F76299E7} = {0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19} - {54EBBA35-DEFE-4967-8B87-4FBA47FDC33D} = {0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {836F0B44-1360-4E79-8ED9-F3D23C2ACEF5} diff --git a/Source/BNetServer/Networking/Session.cs b/Source/BNetServer/Networking/Session.cs index a1fa5dc84..bd7999c9d 100644 --- a/Source/BNetServer/Networking/Session.cs +++ b/Source/BNetServer/Networking/Session.cs @@ -354,7 +354,7 @@ namespace BNetServer.Networking response.State = new Bgs.Protocol.Account.V1.AccountState(); response.State.PrivacyInfo = new Bgs.Protocol.Account.V1.PrivacyInfo(); response.State.PrivacyInfo.IsUsingRid = false; - response.State.PrivacyInfo.IsRealIdVisibleForViewFriends = false; + response.State.PrivacyInfo.IsVisibleForViewFriends = false; response.State.PrivacyInfo.IsHiddenFromFriendFinder = true; response.Tags = new Bgs.Protocol.Account.V1.AccountFieldTags(); diff --git a/Source/BNetServer/Services/AccountService.cs b/Source/BNetServer/Services/AccountService.cs index 15c908ab8..473cf0824 100644 --- a/Source/BNetServer/Services/AccountService.cs +++ b/Source/BNetServer/Services/AccountService.cs @@ -31,28 +31,13 @@ namespace BNetServer.Networking { switch (methodId) { - case 12: - { - GameAccountHandle request = new GameAccountHandle(); - request.MergeFrom(stream); - - GameAccountBlob response = new GameAccountBlob(); - BattlenetRpcErrorCode status = HandleGetGameAccountBlob(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.GetGameAccountBlob(GameAccountHandle: {1}) returned GameAccountBlob: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } case 13: { - GetAccountRequest request = new GetAccountRequest(); + ResolveAccountRequest request = new ResolveAccountRequest(); request.MergeFrom(stream); - GetAccountResponse response = new GetAccountResponse(); - BattlenetRpcErrorCode status = HandleGetAccount(request, response); + ResolveAccountResponse response = new ResolveAccountResponse(); + BattlenetRpcErrorCode status = HandleResolveAccount(request, response); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.GetAccount(GetAccountRequest: {1}) returned GetAccountResponse: {2} status: {3}.", GetCallerInfo(), request.ToString(), response.ToString(), status); if (status == 0) @@ -61,21 +46,6 @@ namespace BNetServer.Networking SendResponse(token, status); break; } - case 14: - { - CreateGameAccountRequest request = new CreateGameAccountRequest(); - request.MergeFrom(stream); - - GameAccountHandle response = new GameAccountHandle(); - BattlenetRpcErrorCode status = HandleCreateGameAccount(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.CreateGameAccount(CreateGameAccountRequest: {1}) returned GameAccountHandle: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } case 15: { IsIgrAddressRequest request = new IsIgrAddressRequest(); @@ -91,39 +61,11 @@ namespace BNetServer.Networking SendResponse(token, status); break; } - case 20: - { - CacheExpireRequest request = new CacheExpireRequest(); - request.MergeFrom(stream); - - BattlenetRpcErrorCode status = HandleCacheExpire(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.CacheExpire(CacheExpireRequest: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 21: - { - CredentialUpdateRequest request = new CredentialUpdateRequest(); - request.MergeFrom(stream); - - CredentialUpdateResponse response = new CredentialUpdateResponse(); - BattlenetRpcErrorCode status = HandleCredentialUpdate(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.CredentialUpdate(CredentialUpdateRequest: {1}) returned CredentialUpdateResponse: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } case 25: { SubscriptionUpdateRequest request = new SubscriptionUpdateRequest(); request.MergeFrom(stream); - SubscriptionUpdateResponse response = new SubscriptionUpdateResponse(); BattlenetRpcErrorCode status = HandleSubscribe(request, response); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.Subscribe(SubscriptionUpdateRequest: {1}) returned SubscriptionUpdateResponse: {2} status: {3}.", @@ -239,21 +181,6 @@ namespace BNetServer.Networking SendResponse(token, status); break; } - case 36: - { - ForwardCacheExpireRequest request = new ForwardCacheExpireRequest(); - request.MergeFrom(stream); - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleForwardCacheExpire(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.ForwardCacheExpire(ForwardCacheExpireRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } case 37: { GetAuthorizedDataRequest request = new GetAuthorizedDataRequest(); @@ -269,90 +196,6 @@ namespace BNetServer.Networking SendResponse(token, status); break; } - case 38: - { - AccountFlagUpdateRequest request = new AccountFlagUpdateRequest(); - request.MergeFrom(stream); - - BattlenetRpcErrorCode status = HandleAccountFlagUpdate(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.AccountFlagUpdate(AccountFlagUpdateRequest: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 39: - { - GameAccountFlagUpdateRequest request = new GameAccountFlagUpdateRequest(); - request.MergeFrom(stream); - - BattlenetRpcErrorCode status = HandleGameAccountFlagUpdate(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.GameAccountFlagUpdate(GameAccountFlagUpdateRequest: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - /* case 40: - { - UpdateParentalControlsAndCAISRequest request = new UpdateParentalControlsAndCAISRequest(); - request.MergeFrom(stream); - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleUpdateParentalControlsAndCAIS(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.UpdateParentalControlsAndCAIS(UpdateParentalControlsAndCAISRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 41: - { - CreateGameAccountRequest request = new CreateGameAccountRequest(); - request.MergeFrom(stream); - - CreateGameAccountResponse response = new CreateGameAccountResponse(); - BattlenetRpcErrorCode status = HandleCreateGameAccount2(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.CreateGameAccount2(CreateGameAccountRequest: {1}) returned CreateGameAccountResponse: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 42: - { - GetGameAccountRequest request = new GetGameAccountRequest(); - request.MergeFrom(stream); - - GetGameAccountResponse response = new GetGameAccountResponse(); - BattlenetRpcErrorCode status = HandleGetGameAccount(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.GetGameAccount(GetGameAccountRequest: {1}) returned GetGameAccountResponse: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, &response); - else - SendResponse(token, status); - break; - } - case 43: - { - QueueDeductRecordRequest request = new QueueDeductRecordRequest(); - request.MergeFrom(stream); - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleQueueDeductRecord(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.QueueDeductRecord(QueueDeductRecordRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - }*/ default: Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId); SendResponse(token, BattlenetRpcErrorCode.RpcInvalidMethod); @@ -360,21 +203,9 @@ namespace BNetServer.Networking } } - BattlenetRpcErrorCode HandleGetGameAccountBlob(GameAccountHandle request, GameAccountBlob response) + BattlenetRpcErrorCode HandleResolveAccount(ResolveAccountRequest request, ResolveAccountResponse response) { - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GetAccount({1})", GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleGetAccount(GetAccountRequest request, GetAccountResponse response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GetAccount({1})", GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleCreateGameAccount(CreateGameAccountRequest request, GameAccountHandle response) - { - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.CreateGameAccount({1})", GetCallerInfo(), request.ToString()); + Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.ResolveAccount({1})", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } @@ -384,18 +215,6 @@ namespace BNetServer.Networking return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleCacheExpire(CacheExpireRequest request) - { - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.CacheExpire({1})", GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleCredentialUpdate(CredentialUpdateRequest request, CredentialUpdateResponse response) - { - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.CredentialUpdate({1})", GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - BattlenetRpcErrorCode HandleSubscribe(SubscriptionUpdateRequest request, SubscriptionUpdateResponse response) { Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.Subscribe({1})", GetCallerInfo(), request.ToString()); @@ -442,58 +261,17 @@ namespace BNetServer.Networking return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleForwardCacheExpire(ForwardCacheExpireRequest request, NoData response) - { - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.ForwardCacheExpire({1})", GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - BattlenetRpcErrorCode HandleGetAuthorizedData(GetAuthorizedDataRequest request, GetAuthorizedDataResponse response) { Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GetAuthorizedData({1})", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleAccountFlagUpdate(AccountFlagUpdateRequest request) - { - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.AccountFlagUpdate({1})", GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - BattlenetRpcErrorCode HandleGameAccountFlagUpdate(GameAccountFlagUpdateRequest request) { Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GameAccountFlagUpdate({1})", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } - - /*BattlenetRpcErrorCode HandleUpdateParentalControlsAndCAIS(UpdateParentalControlsAndCAISRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.UpdateParentalControlsAndCAIS: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleCreateGameAccount2(CreateGameAccountRequest request, CreateGameAccountResponse response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.CreateGameAccount2: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleGetGameAccount(GetGameAccountRequest request, GetGameAccountResponse response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GetGameAccount: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleQueueDeductRecord(QueueDeductRecordRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.QueueDeductRecord: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - */ } class AccountListener : ServiceBase diff --git a/Source/BNetServer/Services/ChallengeService.cs b/Source/BNetServer/Services/ChallengeService.cs index 970f346a4..75e979259 100644 --- a/Source/BNetServer/Services/ChallengeService.cs +++ b/Source/BNetServer/Services/ChallengeService.cs @@ -23,114 +23,6 @@ using Google.Protobuf; namespace BNetServer.Networking { - class ChallengeService : ServiceBase - { - public ChallengeService(Session session, uint serviceHash) : base(session, serviceHash) { } - - public override void CallServerMethod(uint token, uint methodId, CodedInputStream stream) - { - switch (methodId) - { - case 1: - { - ChallengePickedRequest request = new ChallengePickedRequest(); - request.MergeFrom(stream); - - - ChallengePickedResponse response = new ChallengePickedResponse(); - BattlenetRpcErrorCode status = HandleChallengePicked(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChallengeService.ChallengePicked(bgs.protocol.challenge.v1.ChallengePickedRequest: {1}) returned bgs.protocol.challenge.v1.ChallengePickedResponse: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 2: - { - ChallengeAnsweredRequest request = new ChallengeAnsweredRequest(); - request.MergeFrom(stream); - - - ChallengeAnsweredResponse response = new ChallengeAnsweredResponse(); - BattlenetRpcErrorCode status = HandleChallengeAnswered(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChallengeService.ChallengeAnswered(bgs.protocol.challenge.v1.ChallengeAnsweredRequest: {1}) returned bgs.protocol.challenge.v1.ChallengeAnsweredResponse: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 3: - { - ChallengeCancelledRequest request = new ChallengeCancelledRequest(); - request.MergeFrom(stream); - - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleChallengeCancelled(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChallengeService.ChallengeCancelled(bgs.protocol.challenge.v1.ChallengeCancelledRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 4: - { - SendChallengeToUserRequest request = new SendChallengeToUserRequest(); - request.MergeFrom(stream); - - - SendChallengeToUserResponse response = new SendChallengeToUserResponse(); - BattlenetRpcErrorCode status = HandleSendChallengeToUser(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChallengeService.SendChallengeToUser(bgs.protocol.challenge.v1.SendChallengeToUserRequest: {1}) returned bgs.protocol.challenge.v1.SendChallengeToUserResponse: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - default: - Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId); - SendResponse(token, BattlenetRpcErrorCode.RpcInvalidMethod); - break; - } - } - - BattlenetRpcErrorCode HandleChallengePicked(ChallengePickedRequest request, ChallengePickedResponse response) { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeService.ChallengePicked: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleChallengeAnswered(ChallengeAnsweredRequest request, ChallengeAnsweredResponse response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeService.ChallengeAnswered: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleChallengeCancelled(ChallengeCancelledRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeService.ChallengeCancelled: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleSendChallengeToUser(SendChallengeToUserRequest request, SendChallengeToUserResponse response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeService.SendChallengeToUser: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - } - class ChallengeListener : ServiceBase { public ChallengeListener(Session session, uint serviceHash) : base(session, serviceHash) { } @@ -139,32 +31,6 @@ namespace BNetServer.Networking { switch (methodId) { - case 1: - { - ChallengeUserRequest request = new ChallengeUserRequest(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnChallengeUser(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChallengeListener.OnChallengeUser(bgs.protocol.challenge.v1.ChallengeUserRequest: {1} status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 2: - { - ChallengeResultRequest request = new ChallengeResultRequest(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnChallengeResult(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChallengeListener.OnChallengeResult(bgs.protocol.challenge.v1.ChallengeResultRequest: {1} status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } case 3: { ChallengeExternalRequest request = new ChallengeExternalRequest(); @@ -198,19 +64,6 @@ namespace BNetServer.Networking } } - BattlenetRpcErrorCode HandleOnChallengeUser(ChallengeUserRequest request) { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeListener.OnChallengeUser: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleOnChallengeResult(ChallengeResultRequest request) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeListener.OnChallengeResult: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - BattlenetRpcErrorCode HandleOnExternalChallenge(ChallengeExternalRequest request) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeListener.OnExternalChallenge: {1}", diff --git a/Source/BNetServer/Services/ChannelService.cs b/Source/BNetServer/Services/ChannelService.cs deleted file mode 100644 index 4e5fd42fe..000000000 --- a/Source/BNetServer/Services/ChannelService.cs +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Copyright (C) 2012-2020 CypherCore - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -using Bgs.Protocol; -using Bgs.Protocol.Channel.V1; -using BNetServer.Services; -using Framework.Constants; -using Google.Protobuf; - -namespace BNetServer.Networking -{ - class ChannelService : ServiceBase - { - public ChannelService(Session session, uint serviceHash) : base(session, serviceHash) { } - - public override void CallServerMethod(uint token, uint methodId, CodedInputStream stream) - { - switch (methodId) - { - case 2: - { - RemoveMemberRequest request = new RemoveMemberRequest(); - request.MergeFrom(stream); - - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleRemoveMember(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelService.RemoveMember(bgs.protocol.channel.v1.RemoveMemberRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 3: - { - SendMessageRequest request = new SendMessageRequest(); - request.MergeFrom(stream); - - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleSendMessage(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelService.SendMessage(bgs.protocol.channel.v1.SendMessageRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 4: - { - UpdateChannelStateRequest request = new UpdateChannelStateRequest(); - request.MergeFrom(stream); - - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleUpdateChannelState(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelService.UpdateChannelState(bgs.protocol.channel.v1.UpdateChannelStateRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 5: - { - UpdateMemberStateRequest request = new UpdateMemberStateRequest(); - request.MergeFrom(stream); - - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleUpdateMemberState(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelService.UpdateMemberState(bgs.protocol.channel.v1.UpdateMemberStateRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 6: - { - DissolveRequest request = new DissolveRequest(); - request.MergeFrom(stream); - - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleDissolve(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelService.Dissolve(bgs.protocol.channel.v1.DissolveRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - default: - Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId); - SendResponse(token, BattlenetRpcErrorCode.RpcInvalidMethod); - break; - } - } - - BattlenetRpcErrorCode HandleRemoveMember(RemoveMemberRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelService.RemoveMember: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleSendMessage(SendMessageRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelService.SendMessage: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleUpdateChannelState(UpdateChannelStateRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelService.UpdateChannelState: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleUpdateMemberState(UpdateMemberStateRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelService.UpdateMemberState: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleDissolve(DissolveRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelService.Dissolve: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - } - - class ChannelListener : ServiceBase - { - public ChannelListener(Session session, uint serviceHash) : base(session, serviceHash) { } - - public override void CallServerMethod(uint token, uint methodId, CodedInputStream stream) - { - switch (methodId) - { - case 1: - { - JoinNotification request = new JoinNotification(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnJoin(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelListener.OnJoin(bgs.protocol.channel.v1.JoinNotification: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 2: - { - MemberAddedNotification request = new MemberAddedNotification(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnMemberAdded(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelListener.OnMemberAdded(bgs.protocol.channel.v1.MemberAddedNotification: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 3: - { - LeaveNotification request = new LeaveNotification(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnLeave(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelListener.OnLeave(bgs.protocol.channel.v1.LeaveNotification: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 4: - { - MemberRemovedNotification request = new MemberRemovedNotification(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnMemberRemoved(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelListener.OnMemberRemoved(bgs.protocol.channel.v1.MemberRemovedNotification: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 5: - { - SendMessageNotification request = new SendMessageNotification(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnSendMessage(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelListener.OnSendMessage(bgs.protocol.channel.v1.SendMessageNotification: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 6: - { - UpdateChannelStateNotification request = new UpdateChannelStateNotification(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnUpdateChannelState(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelListener.OnUpdateChannelState(bgs.protocol.channel.v1.UpdateChannelStateNotification: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - case 7: - { - UpdateMemberStateNotification request = new UpdateMemberStateNotification(); - request.MergeFrom(stream); - - - BattlenetRpcErrorCode status = HandleOnUpdateMemberState(request); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method ChannelListener.OnUpdateMemberState(bgs.protocol.channel.v1.UpdateMemberStateNotification: {1}) status: {2}.", - GetCallerInfo(), request.ToString(), status); - if (status != 0) - SendResponse(token, status); - break; - } - default: - Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId); - SendResponse(token, BattlenetRpcErrorCode.RpcInvalidMethod); - break; - } - } - - BattlenetRpcErrorCode HandleOnJoin(JoinNotification request) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelListener.OnJoin: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleOnMemberAdded(MemberAddedNotification request) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelListener.OnMemberAdded: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleOnLeave(LeaveNotification request) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelListener.OnLeave: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleOnMemberRemoved(MemberRemovedNotification request) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelListener.OnMemberRemoved: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleOnSendMessage(SendMessageNotification request) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelListener.OnSendMessage: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleOnUpdateChannelState(UpdateChannelStateNotification request) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelListener.OnUpdateChannelState: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleOnUpdateMemberState(UpdateMemberStateNotification request) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChannelListener.OnUpdateMemberState: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - } -} diff --git a/Source/BNetServer/Services/FriendService.cs b/Source/BNetServer/Services/FriendService.cs index 5a3bc9197..e0d6688bb 100644 --- a/Source/BNetServer/Services/FriendService.cs +++ b/Source/BNetServer/Services/FriendService.cs @@ -35,7 +35,6 @@ namespace BNetServer.Networking { SubscribeRequest request = new SubscribeRequest(); request.MergeFrom(stream); - SubscribeResponse response = new SubscribeResponse(); BattlenetRpcErrorCode status = HandleSubscribe(request, response); @@ -51,7 +50,6 @@ namespace BNetServer.Networking { SendInvitationRequest request = new SendInvitationRequest(); request.MergeFrom(stream); - NoData response = new NoData(); BattlenetRpcErrorCode status = HandleSendInvitation(request, response); @@ -65,9 +63,8 @@ namespace BNetServer.Networking } case 3: { - GenericInvitationRequest request = new GenericInvitationRequest(); + AcceptInvitationRequest request = new AcceptInvitationRequest(); request.MergeFrom(stream); - NoData response = new NoData(); BattlenetRpcErrorCode status = HandleAcceptInvitation(request, response); @@ -81,9 +78,8 @@ namespace BNetServer.Networking } case 4: { - GenericInvitationRequest request = new GenericInvitationRequest(); + RevokeInvitationRequest request = new RevokeInvitationRequest(); request.MergeFrom(stream); - NoData response = new NoData(); BattlenetRpcErrorCode status = HandleRevokeInvitation(request, response); @@ -97,9 +93,8 @@ namespace BNetServer.Networking } case 5: { - GenericInvitationRequest request = new GenericInvitationRequest(); + DeclineInvitationRequest request = new DeclineInvitationRequest(); request.MergeFrom(stream); - NoData response = new NoData(); BattlenetRpcErrorCode status = HandleDeclineInvitation(request, response); @@ -113,9 +108,8 @@ namespace BNetServer.Networking } case 6: { - GenericInvitationRequest request = new GenericInvitationRequest(); + IgnoreInvitationRequest request = new IgnoreInvitationRequest(); request.MergeFrom(stream); - NoData response = new NoData(); BattlenetRpcErrorCode status = HandleIgnoreInvitation(request, response); @@ -127,29 +121,12 @@ namespace BNetServer.Networking SendResponse(token, status); break; } - case 7: - { - AssignRoleRequest request = new AssignRoleRequest(); - request.MergeFrom(stream); - - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleAssignRole(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsService.AssignRole(bgs.protocol.friends.v1.AssignRoleRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } case 8: { - GenericFriendRequest request = new GenericFriendRequest(); + RemoveFriendRequest request = new RemoveFriendRequest(); request.MergeFrom(stream); - - GenericFriendResponse response = new GenericFriendResponse(); + NoData response = new NoData(); BattlenetRpcErrorCode status = HandleRemoveFriend(request, response); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsService.RemoveFriend(bgs.protocol.friends.v1.GenericFriendRequest: {1}) returned bgs.protocol.friends.v1.GenericFriendResponse: {2} status: {3}.", GetCallerInfo(), request.ToString(), response.ToString(), status); @@ -163,7 +140,6 @@ namespace BNetServer.Networking { ViewFriendsRequest request = new ViewFriendsRequest(); request.MergeFrom(stream); - ViewFriendsResponse response = new ViewFriendsResponse(); BattlenetRpcErrorCode status = HandleViewFriends(request, response); @@ -179,7 +155,6 @@ namespace BNetServer.Networking { UpdateFriendStateRequest request = new UpdateFriendStateRequest(); request.MergeFrom(stream); - NoData response = new NoData(); BattlenetRpcErrorCode status = HandleUpdateFriendState(request, response); @@ -195,7 +170,6 @@ namespace BNetServer.Networking { UnsubscribeRequest request = new UnsubscribeRequest(); request.MergeFrom(stream); - NoData response = new NoData(); BattlenetRpcErrorCode status = HandleUnsubscribe(request, response); @@ -209,9 +183,8 @@ namespace BNetServer.Networking } case 12: { - GenericFriendRequest request = new GenericFriendRequest(); + RevokeAllInvitationsRequest request = new RevokeAllInvitationsRequest(); request.MergeFrom(stream); - NoData response = new NoData(); BattlenetRpcErrorCode status = HandleRevokeAllInvitations(request, response); @@ -223,38 +196,6 @@ namespace BNetServer.Networking SendResponse(token, status); break; } - /*case 13: - { - GetFriendListRequest request = new GetFriendListRequest(); - request.MergeFrom(stream); - - - GetFriendListResponse response = new GetFriendListResponse(); - BattlenetRpcErrorCode status = HandleGetFriendList(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsService.GetFriendList(bgs.protocol.friends.v1.GetFriendListRequest: {1}) returned bgs.protocol.friends.v1.GetFriendListResponse: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - } - case 14: - { - CreateFriendshipRequest request = new CreateFriendshipRequest(); - request.MergeFrom(stream); - - - NoData response = new NoData(); - BattlenetRpcErrorCode status = HandleCreateFriendship(request, response); - Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsService.CreateFriendship(bgs.protocol.friends.v1.CreateFriendshipRequest: {1}) returned bgs.protocol.NoData: {2} status: {3}.", - GetCallerInfo(), request.ToString(), response.ToString(), status); - if (status == 0) - SendResponse(token, response); - else - SendResponse(token, status); - break; - }*/ default: Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId); SendResponse(token, BattlenetRpcErrorCode.RpcInvalidMethod); @@ -276,42 +217,35 @@ namespace BNetServer.Networking return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleAcceptInvitation(GenericInvitationRequest request, NoData response) + BattlenetRpcErrorCode HandleAcceptInvitation(AcceptInvitationRequest request, NoData response) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.AcceptInvitation: {1}", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleRevokeInvitation(GenericInvitationRequest request, NoData response) + BattlenetRpcErrorCode HandleRevokeInvitation(RevokeInvitationRequest request, NoData response) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.RevokeInvitation: {1}", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleDeclineInvitation(GenericInvitationRequest request, NoData response) + BattlenetRpcErrorCode HandleDeclineInvitation(DeclineInvitationRequest request, NoData response) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.DeclineInvitation: {1}", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleIgnoreInvitation(GenericInvitationRequest request, NoData response) + BattlenetRpcErrorCode HandleIgnoreInvitation(IgnoreInvitationRequest request, NoData response) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.IgnoreInvitation: {1}", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleAssignRole(AssignRoleRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.AssignRole: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleRemoveFriend(GenericFriendRequest request, GenericFriendResponse response) + BattlenetRpcErrorCode HandleRemoveFriend(RemoveFriendRequest request, NoData response) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.RemoveFriend: {1}", GetCallerInfo(), request.ToString()); @@ -339,27 +273,12 @@ namespace BNetServer.Networking return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleRevokeAllInvitations(GenericFriendRequest request, NoData response) + BattlenetRpcErrorCode HandleRevokeAllInvitations(RevokeAllInvitationsRequest request, NoData response) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.RevokeAllInvitations: {1}", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } - - /*BattlenetRpcErrorCode HandleGetFriendList(GetFriendListRequest request, GetFriendListResponse response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.GetFriendList: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - - BattlenetRpcErrorCode HandleCreateFriendship(CreateFriendshipRequest request, NoData response) - { - Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.CreateFriendship: {1}", - GetCallerInfo(), request.ToString()); - return BattlenetRpcErrorCode.RpcNotImplemented; - } - */ } class FriendsListener : ServiceBase @@ -374,7 +293,6 @@ namespace BNetServer.Networking { FriendNotification request = new FriendNotification(); request.MergeFrom(stream); - BattlenetRpcErrorCode status = HandleOnFriendAdded(request); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnFriendAdded(bgs.protocol.friends.v1.FriendNotification: {1}) status: {2}.", @@ -387,7 +305,6 @@ namespace BNetServer.Networking { FriendNotification request = new FriendNotification(); request.MergeFrom(stream); - BattlenetRpcErrorCode status = HandleOnFriendRemoved(request); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnFriendRemoved(bgs.protocol.friends.v1.FriendNotification: {1}) status: {2}.", @@ -400,7 +317,6 @@ namespace BNetServer.Networking { InvitationNotification request = new InvitationNotification(); request.MergeFrom(stream); - BattlenetRpcErrorCode status = HandleOnReceivedInvitationAdded(request); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnReceivedInvitationAdded(bgs.protocol.friends.v1.InvitationNotification: {1}) status: {2}.", @@ -413,7 +329,6 @@ namespace BNetServer.Networking { InvitationNotification request = new InvitationNotification(); request.MergeFrom(stream); - BattlenetRpcErrorCode status = HandleOnReceivedInvitationRemoved(request); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnReceivedInvitationRemoved(bgs.protocol.friends.v1.InvitationNotification: {1}) status: {2}.", @@ -426,7 +341,6 @@ namespace BNetServer.Networking { InvitationNotification request = new InvitationNotification(); request.MergeFrom(stream); - BattlenetRpcErrorCode status = HandleOnSentInvitationAdded(request); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnSentInvitationAdded(bgs.protocol.friends.v1.InvitationNotification: {1}) status: {2}.", @@ -439,7 +353,6 @@ namespace BNetServer.Networking { InvitationNotification request = new InvitationNotification(); request.MergeFrom(stream); - BattlenetRpcErrorCode status = HandleOnSentInvitationRemoved(request); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnSentInvitationRemoved(bgs.protocol.friends.v1.InvitationNotification: {1}) status: {2}.", @@ -452,7 +365,6 @@ namespace BNetServer.Networking { UpdateFriendStateNotification request = new UpdateFriendStateNotification(); request.MergeFrom(stream); - BattlenetRpcErrorCode status = HandleOnUpdateFriendState(request); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnUpdateFriendState(bgs.protocol.friends.v1.UpdateFriendStateNotification: {1}) status: {2}.", diff --git a/Source/BNetServer/Services/ServiceDispatcher.cs b/Source/BNetServer/Services/ServiceDispatcher.cs index f447ba8f7..d79cb7b95 100644 --- a/Source/BNetServer/Services/ServiceDispatcher.cs +++ b/Source/BNetServer/Services/ServiceDispatcher.cs @@ -30,8 +30,6 @@ namespace BNetServer.Services AddService(OriginalHash.AccountService); AddService(OriginalHash.AccountListener); AddService(OriginalHash.AuthenticationService); - AddService(OriginalHash.ChallengeService); - AddService(OriginalHash.ChannelService); AddService(OriginalHash.ConnectionService); AddService(OriginalHash.FriendsService); AddService(OriginalHash.GameUtilitiesService); diff --git a/Source/BNetServer/Services/UserManagerService.cs b/Source/BNetServer/Services/UserManagerService.cs index 37f4c615f..ec6d5a864 100644 --- a/Source/BNetServer/Services/UserManagerService.cs +++ b/Source/BNetServer/Services/UserManagerService.cs @@ -51,7 +51,7 @@ namespace BNetServer.Networking AddRecentPlayersRequest request = new AddRecentPlayersRequest(); request.MergeFrom(stream); - AddRecentPlayersResponse response = new AddRecentPlayersResponse(); + NoData response = new NoData(); BattlenetRpcErrorCode status = HandleAddRecentPlayers(request, response); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method UserManagerService.AddRecentPlayers(bgs.protocol.user_manager.v1.AddRecentPlayersRequest: {1}) returned bgs.protocol.user_manager.v1.AddRecentPlayersResponse: {2} status: {3}.", GetCallerInfo(), request.ToString(), response.ToString(), status); @@ -65,9 +65,9 @@ namespace BNetServer.Networking { ClearRecentPlayersRequest request = new ClearRecentPlayersRequest(); request.MergeFrom(stream); - - ClearRecentPlayersResponse response = new ClearRecentPlayersResponse(); + + NoData response = new NoData(); BattlenetRpcErrorCode status = HandleClearRecentPlayers(request, response); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method UserManagerService.ClearRecentPlayers(bgs.protocol.user_manager.v1.ClearRecentPlayersRequest: {1}) returned bgs.protocol.user_manager.v1.ClearRecentPlayersResponse: {2} status: {3}.", GetCallerInfo(), request.ToString(), response.ToString(), status); @@ -171,14 +171,14 @@ namespace BNetServer.Networking return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleAddRecentPlayers(AddRecentPlayersRequest request, AddRecentPlayersResponse response) + BattlenetRpcErrorCode HandleAddRecentPlayers(AddRecentPlayersRequest request, NoData response) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method UserManagerService.AddRecentPlayers: {1}", GetCallerInfo(), request.ToString()); return BattlenetRpcErrorCode.RpcNotImplemented; } - BattlenetRpcErrorCode HandleClearRecentPlayers(ClearRecentPlayersRequest request, ClearRecentPlayersResponse response) + BattlenetRpcErrorCode HandleClearRecentPlayers(ClearRecentPlayersRequest request, NoData response) { Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method UserManagerService.ClearRecentPlayers: {1}", GetCallerInfo(), request.ToString()); diff --git a/Source/Framework/Framework.csproj b/Source/Framework/Framework.csproj index 047fb819c..9196d5217 100644 --- a/Source/Framework/Framework.csproj +++ b/Source/Framework/Framework.csproj @@ -5,12 +5,9 @@ x64 true - - - - + diff --git a/Source/Framework/Proto/AccountService.cs b/Source/Framework/Proto/AccountService.cs index d91692c3d..39e4b963a 100644 --- a/Source/Framework/Proto/AccountService.cs +++ b/Source/Framework/Proto/AccountService.cs @@ -1,6230 +1,5111 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/account_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/account_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Account.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Account.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/account_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class AccountServiceReflection - { - - #region Descriptor - /// File descriptor for bgs/low/pb/client/account_service.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountServiceReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "CidiZ3MvbG93L3BiL2NsaWVudC9hY2NvdW50X3NlcnZpY2UucHJvdG8SF2Jn", - "cy5wcm90b2NvbC5hY2NvdW50LnYxGiViZ3MvbG93L3BiL2NsaWVudC9hY2Nv", - "dW50X3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw", - "ZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90byKC", - "AgoRR2V0QWNjb3VudFJlcXVlc3QSNgoDcmVmGAEgASgLMikuYmdzLnByb3Rv", - "Y29sLmFjY291bnQudjEuQWNjb3VudFJlZmVyZW5jZRIRCglmZXRjaF9hbGwY", - "CiABKAgSEgoKZmV0Y2hfYmxvYhgLIAEoCBIQCghmZXRjaF9pZBgMIAEoCBIT", - "CgtmZXRjaF9lbWFpbBgNIAEoCBIYChBmZXRjaF9iYXR0bGVfdGFnGA4gASgI", - "EhcKD2ZldGNoX2Z1bGxfbmFtZRgPIAEoCBITCgtmZXRjaF9saW5rcxgQIAEo", - "CBIfChdmZXRjaF9wYXJlbnRhbF9jb250cm9scxgRIAEoCCK0AgoSR2V0QWNj", - "b3VudFJlc3BvbnNlEjIKBGJsb2IYCyABKAsyJC5iZ3MucHJvdG9jb2wuYWNj", - "b3VudC52MS5BY2NvdW50QmxvYhIuCgJpZBgMIAEoCzIiLmJncy5wcm90b2Nv", - "bC5hY2NvdW50LnYxLkFjY291bnRJZBINCgVlbWFpbBgNIAMoCRISCgpiYXR0", - "bGVfdGFnGA4gASgJEhEKCWZ1bGxfbmFtZRgPIAEoCRI3CgVsaW5rcxgQIAMo", - "CzIoLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2NvdW50TGluaxJL", - "ChVwYXJlbnRhbF9jb250cm9sX2luZm8YESABKAsyLC5iZ3MucHJvdG9jb2wu", - "YWNjb3VudC52MS5QYXJlbnRhbENvbnRyb2xJbmZvIosBChhDcmVhdGVHYW1l", - "QWNjb3VudFJlcXVlc3QSMwoHYWNjb3VudBgBIAEoCzIiLmJncy5wcm90b2Nv", - "bC5hY2NvdW50LnYxLkFjY291bnRJZBIOCgZyZWdpb24YAiABKA0SDwoHcHJv", - "Z3JhbRgDIAEoBxIZChFyZWFsbV9wZXJtaXNzaW9ucxgEIAEoDSKaAQoSQ2Fj", - "aGVFeHBpcmVSZXF1ZXN0EjMKB2FjY291bnQYASADKAsyIi5iZ3MucHJvdG9j", - "b2wuYWNjb3VudC52MS5BY2NvdW50SWQSQAoMZ2FtZV9hY2NvdW50GAIgAygL", - "MiouYmdzLnByb3RvY29sLmFjY291bnQudjEuR2FtZUFjY291bnRIYW5kbGUS", - "DQoFZW1haWwYAyADKAki6AEKF0NyZWRlbnRpYWxVcGRhdGVSZXF1ZXN0EjMK", - "B2FjY291bnQYASABKAsyIi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2Nv", - "dW50SWQSQwoPb2xkX2NyZWRlbnRpYWxzGAIgAygLMiouYmdzLnByb3RvY29s", - "LmFjY291bnQudjEuQWNjb3VudENyZWRlbnRpYWwSQwoPbmV3X2NyZWRlbnRp", - "YWxzGAMgAygLMiouYmdzLnByb3RvY29sLmFjY291bnQudjEuQWNjb3VudENy", - "ZWRlbnRpYWwSDgoGcmVnaW9uGAQgASgNIhoKGENyZWRlbnRpYWxVcGRhdGVS", - "ZXNwb25zZSJ9ChhBY2NvdW50RmxhZ1VwZGF0ZVJlcXVlc3QSMwoHYWNjb3Vu", - "dBgBIAEoCzIiLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRJZBIO", - "CgZyZWdpb24YAiABKA0SDAoEZmxhZxgDIAEoBBIOCgZhY3RpdmUYBCABKAgi", - "fgocR2FtZUFjY291bnRGbGFnVXBkYXRlUmVxdWVzdBJACgxnYW1lX2FjY291", - "bnQYASABKAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3Vu", - "dEhhbmRsZRIMCgRmbGFnGAIgASgEEg4KBmFjdGl2ZRgDIAEoCCJWChlTdWJz", - "Y3JpcHRpb25VcGRhdGVSZXF1ZXN0EjkKA3JlZhgCIAMoCzIsLmJncy5wcm90", - "b2NvbC5hY2NvdW50LnYxLlN1YnNjcmliZXJSZWZlcmVuY2UiVwoaU3Vic2Ny", - "aXB0aW9uVXBkYXRlUmVzcG9uc2USOQoDcmVmGAEgAygLMiwuYmdzLnByb3Rv", - "Y29sLmFjY291bnQudjEuU3Vic2NyaWJlclJlZmVyZW5jZSI9ChNJc0lnckFk", - "ZHJlc3NSZXF1ZXN0EhYKDmNsaWVudF9hZGRyZXNzGAEgASgJEg4KBnJlZ2lv", - "bhgCIAEoDSIxChRBY2NvdW50U2VydmljZVJlZ2lvbhIKCgJpZBgBIAEoDRIN", - "CgVzaGFyZBgCIAEoCSJVChRBY2NvdW50U2VydmljZUNvbmZpZxI9CgZyZWdp", - "b24YASADKAsyLS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2NvdW50U2Vy", - "dmljZVJlZ2lvbiLcAQoWR2V0QWNjb3VudFN0YXRlUmVxdWVzdBIpCgllbnRp", - "dHlfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSDwoHcHJvZ3Jh", - "bRgCIAEoDRIOCgZyZWdpb24YAyABKA0SPQoHb3B0aW9ucxgKIAEoCzIsLmJn", - "cy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRGaWVsZE9wdGlvbnMSNwoE", - "dGFncxgLIAEoCzIpLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRG", - "aWVsZFRhZ3MiiAEKF0dldEFjY291bnRTdGF0ZVJlc3BvbnNlEjQKBXN0YXRl", - "GAEgASgLMiUuYmdzLnByb3RvY29sLmFjY291bnQudjEuQWNjb3VudFN0YXRl", - "EjcKBHRhZ3MYAiABKAsyKS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2Nv", - "dW50RmllbGRUYWdzIv0BChpHZXRHYW1lQWNjb3VudFN0YXRlUmVxdWVzdBIu", - "CgphY2NvdW50X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkQgIY", - "ARIvCg9nYW1lX2FjY291bnRfaWQYAiABKAsyFi5iZ3MucHJvdG9jb2wuRW50", - "aXR5SWQSQQoHb3B0aW9ucxgKIAEoCzIwLmJncy5wcm90b2NvbC5hY2NvdW50", - "LnYxLkdhbWVBY2NvdW50RmllbGRPcHRpb25zEjsKBHRhZ3MYCyABKAsyLS5i", - "Z3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEZpZWxkVGFncyKU", - "AQobR2V0R2FtZUFjY291bnRTdGF0ZVJlc3BvbnNlEjgKBXN0YXRlGAEgASgL", - "MikuYmdzLnByb3RvY29sLmFjY291bnQudjEuR2FtZUFjY291bnRTdGF0ZRI7", - "CgR0YWdzGAIgASgLMi0uYmdzLnByb3RvY29sLmFjY291bnQudjEuR2FtZUFj", - "Y291bnRGaWVsZFRhZ3Mi3gEKEkdldExpY2Vuc2VzUmVxdWVzdBIpCgl0YXJn", - "ZXRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSHgoWZmV0Y2hf", - "YWNjb3VudF9saWNlbnNlcxgCIAEoCBIjChtmZXRjaF9nYW1lX2FjY291bnRf", - "bGljZW5zZXMYAyABKAgSJgoeZmV0Y2hfZHluYW1pY19hY2NvdW50X2xpY2Vu", - "c2VzGAQgASgIEg8KB3Byb2dyYW0YBSABKAcSHwoXZXhjbHVkZV91bmtub3du", - "X3Byb2dyYW0YBiABKAgiUAoTR2V0TGljZW5zZXNSZXNwb25zZRI5CghsaWNl", - "bnNlcxgBIAMoCzInLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRM", - "aWNlbnNlIkYKGUdldEdhbWVTZXNzaW9uSW5mb1JlcXVlc3QSKQoJZW50aXR5", - "X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkIlwKGkdldEdhbWVT", - "ZXNzaW9uSW5mb1Jlc3BvbnNlEj4KDHNlc3Npb25faW5mbxgCIAEoCzIoLmJn", - "cy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVTZXNzaW9uSW5mbyJ+Ch9HZXRH", - "YW1lVGltZVJlbWFpbmluZ0luZm9SZXF1ZXN0Ei8KD2dhbWVfYWNjb3VudF9p", - "ZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIqCgphY2NvdW50X2lk", - "GAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkInQKIEdldEdhbWVUaW1l", - "UmVtYWluaW5nSW5mb1Jlc3BvbnNlElAKGGdhbWVfdGltZV9yZW1haW5pbmdf", - "aW5mbxgBIAEoCzIuLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVUaW1l", - "UmVtYWluaW5nSW5mbyI/ChJHZXRDQUlTSW5mb1JlcXVlc3QSKQoJZW50aXR5", - "X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkIkcKE0dldENBSVNJ", - "bmZvUmVzcG9uc2USMAoJY2Fpc19pbmZvGAEgASgLMh0uYmdzLnByb3RvY29s", - "LmFjY291bnQudjEuQ0FJUyJGChlGb3J3YXJkQ2FjaGVFeHBpcmVSZXF1ZXN0", - "EikKCWVudGl0eV9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCJu", - "ChhHZXRBdXRob3JpemVkRGF0YVJlcXVlc3QSKQoJZW50aXR5X2lkGAEgASgL", - "MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEgsKA3RhZxgCIAMoCRIaChJwcml2", - "aWxlZ2VkX25ldHdvcmsYAyABKAgiUgoZR2V0QXV0aG9yaXplZERhdGFSZXNw", - "b25zZRI1CgRkYXRhGAEgAygLMicuYmdzLnByb3RvY29sLmFjY291bnQudjEu", - "QXV0aG9yaXplZERhdGEi0AEKGEFjY291bnRTdGF0ZU5vdGlmaWNhdGlvbhI8", - "Cg1hY2NvdW50X3N0YXRlGAEgASgLMiUuYmdzLnByb3RvY29sLmFjY291bnQu", - "djEuQWNjb3VudFN0YXRlEhUKDXN1YnNjcmliZXJfaWQYAiABKAQSPwoMYWNj", - "b3VudF90YWdzGAMgASgLMikuYmdzLnByb3RvY29sLmFjY291bnQudjEuQWNj", - "b3VudEZpZWxkVGFncxIeChZzdWJzY3JpcHRpb25fY29tcGxldGVkGAQgASgI", - "IuYBChxHYW1lQWNjb3VudFN0YXRlTm90aWZpY2F0aW9uEkUKEmdhbWVfYWNj", - "b3VudF9zdGF0ZRgBIAEoCzIpLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdh", - "bWVBY2NvdW50U3RhdGUSFQoNc3Vic2NyaWJlcl9pZBgCIAEoBBJIChFnYW1l", - "X2FjY291bnRfdGFncxgDIAEoCzItLmJncy5wcm90b2NvbC5hY2NvdW50LnYx", - "LkdhbWVBY2NvdW50RmllbGRUYWdzEh4KFnN1YnNjcmlwdGlvbl9jb21wbGV0", - "ZWQYBCABKAgisgEKF0dhbWVBY2NvdW50Tm90aWZpY2F0aW9uEj8KDWdhbWVf", - "YWNjb3VudHMYASADKAsyKC5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1l", - "QWNjb3VudExpc3QSFQoNc3Vic2NyaWJlcl9pZBgCIAEoBBI/CgxhY2NvdW50", - "X3RhZ3MYAyABKAsyKS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2NvdW50", - "RmllbGRUYWdzIqgBCh5HYW1lQWNjb3VudFNlc3Npb25Ob3RpZmljYXRpb24S", - "QAoMZ2FtZV9hY2NvdW50GAEgASgLMiouYmdzLnByb3RvY29sLmFjY291bnQu", - "djEuR2FtZUFjY291bnRIYW5kbGUSRAoMc2Vzc2lvbl9pbmZvGAIgASgLMi4u", - "YmdzLnByb3RvY29sLmFjY291bnQudjEuR2FtZVNlc3Npb25VcGRhdGVJbmZv", - "Ms4PCg5BY2NvdW50U2VydmljZRJmCg5HZXRHYW1lQWNjb3VudBIqLmJncy5w", - "cm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2NvdW50SGFuZGxlGiguYmdzLnBy", - "b3RvY29sLmFjY291bnQudjEuR2FtZUFjY291bnRCbG9iEmUKCkdldEFjY291", - "bnQSKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HZXRBY2NvdW50UmVxdWVz", - "dBorLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdldEFjY291bnRSZXNwb25z", - "ZRJyChFDcmVhdGVHYW1lQWNjb3VudBIxLmJncy5wcm90b2NvbC5hY2NvdW50", - "LnYxLkNyZWF0ZUdhbWVBY2NvdW50UmVxdWVzdBoqLmJncy5wcm90b2NvbC5h", - "Y2NvdW50LnYxLkdhbWVBY2NvdW50SGFuZGxlElIKDElzSWdyQWRkcmVzcxIs", - "LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLklzSWdyQWRkcmVzc1JlcXVlc3Qa", - "FC5iZ3MucHJvdG9jb2wuTm9EYXRhElUKC0NhY2hlRXhwaXJlEisuYmdzLnBy", - "b3RvY29sLmFjY291bnQudjEuQ2FjaGVFeHBpcmVSZXF1ZXN0GhkuYmdzLnBy", - "b3RvY29sLk5PX1JFU1BPTlNFEncKEENyZWRlbnRpYWxVcGRhdGUSMC5iZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MS5DcmVkZW50aWFsVXBkYXRlUmVxdWVzdBox", - "LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkNyZWRlbnRpYWxVcGRhdGVSZXNw", - "b25zZRJ0CglTdWJzY3JpYmUSMi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5T", - "dWJzY3JpcHRpb25VcGRhdGVSZXF1ZXN0GjMuYmdzLnByb3RvY29sLmFjY291", - "bnQudjEuU3Vic2NyaXB0aW9uVXBkYXRlUmVzcG9uc2USVwoLVW5zdWJzY3Jp", - "YmUSMi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5TdWJzY3JpcHRpb25VcGRh", - "dGVSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YRJ0Cg9HZXRBY2NvdW50", - "U3RhdGUSLy5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HZXRBY2NvdW50U3Rh", - "dGVSZXF1ZXN0GjAuYmdzLnByb3RvY29sLmFjY291bnQudjEuR2V0QWNjb3Vu", - "dFN0YXRlUmVzcG9uc2USgAEKE0dldEdhbWVBY2NvdW50U3RhdGUSMy5iZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MS5HZXRHYW1lQWNjb3VudFN0YXRlUmVxdWVz", - "dBo0LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdldEdhbWVBY2NvdW50U3Rh", - "dGVSZXNwb25zZRJoCgtHZXRMaWNlbnNlcxIrLmJncy5wcm90b2NvbC5hY2Nv", - "dW50LnYxLkdldExpY2Vuc2VzUmVxdWVzdBosLmJncy5wcm90b2NvbC5hY2Nv", - "dW50LnYxLkdldExpY2Vuc2VzUmVzcG9uc2USjwEKGEdldEdhbWVUaW1lUmVt", - "YWluaW5nSW5mbxI4LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdldEdhbWVU", - "aW1lUmVtYWluaW5nSW5mb1JlcXVlc3QaOS5iZ3MucHJvdG9jb2wuYWNjb3Vu", - "dC52MS5HZXRHYW1lVGltZVJlbWFpbmluZ0luZm9SZXNwb25zZRJ9ChJHZXRH", - "YW1lU2Vzc2lvbkluZm8SMi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HZXRH", - "YW1lU2Vzc2lvbkluZm9SZXF1ZXN0GjMuYmdzLnByb3RvY29sLmFjY291bnQu", - "djEuR2V0R2FtZVNlc3Npb25JbmZvUmVzcG9uc2USaAoLR2V0Q0FJU0luZm8S", - "Ky5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HZXRDQUlTSW5mb1JlcXVlc3Qa", - "LC5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HZXRDQUlTSW5mb1Jlc3BvbnNl", - "El4KEkZvcndhcmRDYWNoZUV4cGlyZRIyLmJncy5wcm90b2NvbC5hY2NvdW50", - "LnYxLkZvcndhcmRDYWNoZUV4cGlyZVJlcXVlc3QaFC5iZ3MucHJvdG9jb2wu", - "Tm9EYXRhEnoKEUdldEF1dGhvcml6ZWREYXRhEjEuYmdzLnByb3RvY29sLmFj", - "Y291bnQudjEuR2V0QXV0aG9yaXplZERhdGFSZXF1ZXN0GjIuYmdzLnByb3Rv", - "Y29sLmFjY291bnQudjEuR2V0QXV0aG9yaXplZERhdGFSZXNwb25zZRJhChFB", - "Y2NvdW50RmxhZ1VwZGF0ZRIxLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFj", - "Y291bnRGbGFnVXBkYXRlUmVxdWVzdBoZLmJncy5wcm90b2NvbC5OT19SRVNQ", - "T05TRRJpChVHYW1lQWNjb3VudEZsYWdVcGRhdGUSNS5iZ3MucHJvdG9jb2wu", - "YWNjb3VudC52MS5HYW1lQWNjb3VudEZsYWdVcGRhdGVSZXF1ZXN0GhkuYmdz", - "LnByb3RvY29sLk5PX1JFU1BPTlNFMsMDCg9BY2NvdW50TGlzdGVuZXISZQoV", - "T25BY2NvdW50U3RhdGVVcGRhdGVkEjEuYmdzLnByb3RvY29sLmFjY291bnQu", - "djEuQWNjb3VudFN0YXRlTm90aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5P", - "X1JFU1BPTlNFEm0KGU9uR2FtZUFjY291bnRTdGF0ZVVwZGF0ZWQSNS5iZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudFN0YXRlTm90aWZpY2F0", - "aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFEmkKFU9uR2FtZUFjY291", - "bnRzVXBkYXRlZBIwLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2Nv", - "dW50Tm90aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgOI", - "AgESbwoUT25HYW1lU2Vzc2lvblVwZGF0ZWQSNy5iZ3MucHJvdG9jb2wuYWNj", - "b3VudC52MS5HYW1lQWNjb3VudFNlc3Npb25Ob3RpZmljYXRpb24aGS5iZ3Mu", - "cHJvdG9jb2wuTk9fUkVTUE9OU0UiA4gCAUIFSAKAAQBiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetAccountRequest), Bgs.Protocol.Account.V1.GetAccountRequest.Parser, new[]{ "Ref", "FetchAll", "FetchBlob", "FetchId", "FetchEmail", "FetchBattleTag", "FetchFullName", "FetchLinks", "FetchParentalControls" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetAccountResponse), Bgs.Protocol.Account.V1.GetAccountResponse.Parser, new[]{ "Blob", "Id", "Email", "BattleTag", "FullName", "Links", "ParentalControlInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.CreateGameAccountRequest), Bgs.Protocol.Account.V1.CreateGameAccountRequest.Parser, new[]{ "Account", "Region", "Program", "RealmPermissions" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.CacheExpireRequest), Bgs.Protocol.Account.V1.CacheExpireRequest.Parser, new[]{ "Account", "GameAccount", "Email" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.CredentialUpdateRequest), Bgs.Protocol.Account.V1.CredentialUpdateRequest.Parser, new[]{ "Account", "OldCredentials", "NewCredentials", "Region" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.CredentialUpdateResponse), Bgs.Protocol.Account.V1.CredentialUpdateResponse.Parser, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountFlagUpdateRequest), Bgs.Protocol.Account.V1.AccountFlagUpdateRequest.Parser, new[]{ "Account", "Region", "Flag", "Active" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountFlagUpdateRequest), Bgs.Protocol.Account.V1.GameAccountFlagUpdateRequest.Parser, new[]{ "GameAccount", "Flag", "Active" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.SubscriptionUpdateRequest), Bgs.Protocol.Account.V1.SubscriptionUpdateRequest.Parser, new[]{ "Ref" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.SubscriptionUpdateResponse), Bgs.Protocol.Account.V1.SubscriptionUpdateResponse.Parser, new[]{ "Ref" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.IsIgrAddressRequest), Bgs.Protocol.Account.V1.IsIgrAddressRequest.Parser, new[]{ "ClientAddress", "Region" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountServiceRegion), Bgs.Protocol.Account.V1.AccountServiceRegion.Parser, new[]{ "Id", "Shard" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountServiceConfig), Bgs.Protocol.Account.V1.AccountServiceConfig.Parser, new[]{ "Region" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetAccountStateRequest), Bgs.Protocol.Account.V1.GetAccountStateRequest.Parser, new[]{ "EntityId", "Program", "Region", "Options", "Tags" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetAccountStateResponse), Bgs.Protocol.Account.V1.GetAccountStateResponse.Parser, new[]{ "State", "Tags" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetGameAccountStateRequest), Bgs.Protocol.Account.V1.GetGameAccountStateRequest.Parser, new[]{ "AccountId", "GameAccountId", "Options", "Tags" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetGameAccountStateResponse), Bgs.Protocol.Account.V1.GetGameAccountStateResponse.Parser, new[]{ "State", "Tags" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetLicensesRequest), Bgs.Protocol.Account.V1.GetLicensesRequest.Parser, new[]{ "TargetId", "FetchAccountLicenses", "FetchGameAccountLicenses", "FetchDynamicAccountLicenses", "Program", "ExcludeUnknownProgram" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetLicensesResponse), Bgs.Protocol.Account.V1.GetLicensesResponse.Parser, new[]{ "Licenses" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetGameSessionInfoRequest), Bgs.Protocol.Account.V1.GetGameSessionInfoRequest.Parser, new[]{ "EntityId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetGameSessionInfoResponse), Bgs.Protocol.Account.V1.GetGameSessionInfoResponse.Parser, new[]{ "SessionInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetGameTimeRemainingInfoRequest), Bgs.Protocol.Account.V1.GetGameTimeRemainingInfoRequest.Parser, new[]{ "GameAccountId", "AccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetGameTimeRemainingInfoResponse), Bgs.Protocol.Account.V1.GetGameTimeRemainingInfoResponse.Parser, new[]{ "GameTimeRemainingInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetCAISInfoRequest), Bgs.Protocol.Account.V1.GetCAISInfoRequest.Parser, new[]{ "EntityId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetCAISInfoResponse), Bgs.Protocol.Account.V1.GetCAISInfoResponse.Parser, new[]{ "CaisInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.ForwardCacheExpireRequest), Bgs.Protocol.Account.V1.ForwardCacheExpireRequest.Parser, new[]{ "EntityId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetAuthorizedDataRequest), Bgs.Protocol.Account.V1.GetAuthorizedDataRequest.Parser, new[]{ "EntityId", "Tag", "PrivilegedNetwork" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GetAuthorizedDataResponse), Bgs.Protocol.Account.V1.GetAuthorizedDataResponse.Parser, new[]{ "Data" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountStateNotification), Bgs.Protocol.Account.V1.AccountStateNotification.Parser, new[]{ "AccountState", "SubscriberId", "AccountTags", "SubscriptionCompleted" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountStateNotification), Bgs.Protocol.Account.V1.GameAccountStateNotification.Parser, new[]{ "GameAccountState", "SubscriberId", "GameAccountTags", "SubscriptionCompleted" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountNotification), Bgs.Protocol.Account.V1.GameAccountNotification.Parser, new[]{ "GameAccounts", "SubscriberId", "AccountTags" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountSessionNotification), Bgs.Protocol.Account.V1.GameAccountSessionNotification.Parser, new[]{ "GameAccount", "SessionInfo" }, null, null, null) - })); - } - #endregion + /// Holder for reflection information generated from bgs/low/pb/client/account_service.proto + public static partial class AccountServiceReflection { + #region Descriptor + /// File descriptor for bgs/low/pb/client/account_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAccountRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAccountRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAccountRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAccountRequest(GetAccountRequest other) : this() - { - Ref = other.ref_ != null ? other.Ref.Clone() : null; - fetchAll_ = other.fetchAll_; - fetchBlob_ = other.fetchBlob_; - fetchId_ = other.fetchId_; - fetchEmail_ = other.fetchEmail_; - fetchBattleTag_ = other.fetchBattleTag_; - fetchFullName_ = other.fetchFullName_; - fetchLinks_ = other.fetchLinks_; - fetchParentalControls_ = other.fetchParentalControls_; - } - - public GetAccountRequest Clone() - { - return new GetAccountRequest(this); - } - - /// Field number for the "ref" field. - public const int RefFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountReference ref_; - public Bgs.Protocol.Account.V1.AccountReference Ref - { - get { return ref_; } - set - { - ref_ = value; - } - } - - /// Field number for the "fetch_all" field. - public const int FetchAllFieldNumber = 10; - private bool fetchAll_; - public bool FetchAll - { - get { return fetchAll_; } - set - { - fetchAll_ = value; - } - } - - /// Field number for the "fetch_blob" field. - public const int FetchBlobFieldNumber = 11; - private bool fetchBlob_; - public bool FetchBlob - { - get { return fetchBlob_; } - set - { - fetchBlob_ = value; - } - } - - /// Field number for the "fetch_id" field. - public const int FetchIdFieldNumber = 12; - private bool fetchId_; - public bool FetchId - { - get { return fetchId_; } - set - { - fetchId_ = value; - } - } - - /// Field number for the "fetch_email" field. - public const int FetchEmailFieldNumber = 13; - private bool fetchEmail_; - public bool FetchEmail - { - get { return fetchEmail_; } - set - { - fetchEmail_ = value; - } - } - - /// Field number for the "fetch_battle_tag" field. - public const int FetchBattleTagFieldNumber = 14; - private bool fetchBattleTag_; - public bool FetchBattleTag - { - get { return fetchBattleTag_; } - set - { - fetchBattleTag_ = value; - } - } - - /// Field number for the "fetch_full_name" field. - public const int FetchFullNameFieldNumber = 15; - private bool fetchFullName_; - public bool FetchFullName - { - get { return fetchFullName_; } - set - { - fetchFullName_ = value; - } - } - - /// Field number for the "fetch_links" field. - public const int FetchLinksFieldNumber = 16; - private bool fetchLinks_; - public bool FetchLinks - { - get { return fetchLinks_; } - set - { - fetchLinks_ = value; - } - } - - /// Field number for the "fetch_parental_controls" field. - public const int FetchParentalControlsFieldNumber = 17; - private bool fetchParentalControls_; - public bool FetchParentalControls - { - get { return fetchParentalControls_; } - set - { - fetchParentalControls_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetAccountRequest); - } - - public bool Equals(GetAccountRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Ref, other.Ref)) return false; - if (FetchAll != other.FetchAll) return false; - if (FetchBlob != other.FetchBlob) return false; - if (FetchId != other.FetchId) return false; - if (FetchEmail != other.FetchEmail) return false; - if (FetchBattleTag != other.FetchBattleTag) return false; - if (FetchFullName != other.FetchFullName) return false; - if (FetchLinks != other.FetchLinks) return false; - if (FetchParentalControls != other.FetchParentalControls) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ref_ != null) hash ^= Ref.GetHashCode(); - if (FetchAll != false) hash ^= FetchAll.GetHashCode(); - if (FetchBlob != false) hash ^= FetchBlob.GetHashCode(); - if (FetchId != false) hash ^= FetchId.GetHashCode(); - if (FetchEmail != false) hash ^= FetchEmail.GetHashCode(); - if (FetchBattleTag != false) hash ^= FetchBattleTag.GetHashCode(); - if (FetchFullName != false) hash ^= FetchFullName.GetHashCode(); - if (FetchLinks != false) hash ^= FetchLinks.GetHashCode(); - if (FetchParentalControls != false) hash ^= FetchParentalControls.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (ref_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Ref); - } - if (FetchAll != false) - { - output.WriteRawTag(80); - output.WriteBool(FetchAll); - } - if (FetchBlob != false) - { - output.WriteRawTag(88); - output.WriteBool(FetchBlob); - } - if (FetchId != false) - { - output.WriteRawTag(96); - output.WriteBool(FetchId); - } - if (FetchEmail != false) - { - output.WriteRawTag(104); - output.WriteBool(FetchEmail); - } - if (FetchBattleTag != false) - { - output.WriteRawTag(112); - output.WriteBool(FetchBattleTag); - } - if (FetchFullName != false) - { - output.WriteRawTag(120); - output.WriteBool(FetchFullName); - } - if (FetchLinks != false) - { - output.WriteRawTag(128, 1); - output.WriteBool(FetchLinks); - } - if (FetchParentalControls != false) - { - output.WriteRawTag(136, 1); - output.WriteBool(FetchParentalControls); - } - } - - public int CalculateSize() - { - int size = 0; - if (ref_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ref); - } - if (FetchAll != false) - { - size += 1 + 1; - } - if (FetchBlob != false) - { - size += 1 + 1; - } - if (FetchId != false) - { - size += 1 + 1; - } - if (FetchEmail != false) - { - size += 1 + 1; - } - if (FetchBattleTag != false) - { - size += 1 + 1; - } - if (FetchFullName != false) - { - size += 1 + 1; - } - if (FetchLinks != false) - { - size += 2 + 1; - } - if (FetchParentalControls != false) - { - size += 2 + 1; - } - return size; - } - - public void MergeFrom(GetAccountRequest other) - { - if (other == null) - { - return; - } - if (other.ref_ != null) - { - if (ref_ == null) - { - ref_ = new Bgs.Protocol.Account.V1.AccountReference(); - } - Ref.MergeFrom(other.Ref); - } - if (other.FetchAll != false) - { - FetchAll = other.FetchAll; - } - if (other.FetchBlob != false) - { - FetchBlob = other.FetchBlob; - } - if (other.FetchId != false) - { - FetchId = other.FetchId; - } - if (other.FetchEmail != false) - { - FetchEmail = other.FetchEmail; - } - if (other.FetchBattleTag != false) - { - FetchBattleTag = other.FetchBattleTag; - } - if (other.FetchFullName != false) - { - FetchFullName = other.FetchFullName; - } - if (other.FetchLinks != false) - { - FetchLinks = other.FetchLinks; - } - if (other.FetchParentalControls != false) - { - FetchParentalControls = other.FetchParentalControls; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (ref_ == null) - { - ref_ = new Bgs.Protocol.Account.V1.AccountReference(); - } - input.ReadMessage(ref_); - break; - } - case 80: - { - FetchAll = input.ReadBool(); - break; - } - case 88: - { - FetchBlob = input.ReadBool(); - break; - } - case 96: - { - FetchId = input.ReadBool(); - break; - } - case 104: - { - FetchEmail = input.ReadBool(); - break; - } - case 112: - { - FetchBattleTag = input.ReadBool(); - break; - } - case 120: - { - FetchFullName = input.ReadBool(); - break; - } - case 128: - { - FetchLinks = input.ReadBool(); - break; - } - case 136: - { - FetchParentalControls = input.ReadBool(); - break; - } - } - } - } + private static pbr::FileDescriptor descriptor; + static AccountServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CidiZ3MvbG93L3BiL2NsaWVudC9hY2NvdW50X3NlcnZpY2UucHJvdG8SF2Jn", + "cy5wcm90b2NvbC5hY2NvdW50LnYxGiViZ3MvbG93L3BiL2NsaWVudC9hY2Nv", + "dW50X3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw", + "ZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90bxo5", + "YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVzc2FnZV9v", + "cHRpb25zLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5z", + "aW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjhiZ3MvbG93L3BiL2NsaWVudC9n", + "bG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rfb3B0aW9ucy5wcm90bxo5YmdzL2xv", + "dy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvc2VydmljZV9vcHRpb25z", + "LnByb3RvImkKFVJlc29sdmVBY2NvdW50UmVxdWVzdBI2CgNyZWYYASABKAsy", + "KS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2NvdW50UmVmZXJlbmNlEhAK", + "CGZldGNoX2lkGAwgASgIOgaC+SsCCAEiSAoWUmVzb2x2ZUFjY291bnRSZXNw", + "b25zZRIuCgJpZBgMIAEoCzIiLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFj", + "Y291bnRJZCJ+ChxHYW1lQWNjb3VudEZsYWdVcGRhdGVSZXF1ZXN0EkAKDGdh", + "bWVfYWNjb3VudBgBIAEoCzIqLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdh", + "bWVBY2NvdW50SGFuZGxlEgwKBGZsYWcYAiABKAQSDgoGYWN0aXZlGAMgASgI", + "IlYKGVN1YnNjcmlwdGlvblVwZGF0ZVJlcXVlc3QSOQoDcmVmGAIgAygLMiwu", + "YmdzLnByb3RvY29sLmFjY291bnQudjEuU3Vic2NyaWJlclJlZmVyZW5jZSJX", + "ChpTdWJzY3JpcHRpb25VcGRhdGVSZXNwb25zZRI5CgNyZWYYASADKAsyLC5i", + "Z3MucHJvdG9jb2wuYWNjb3VudC52MS5TdWJzY3JpYmVyUmVmZXJlbmNlIj0K", + "E0lzSWdyQWRkcmVzc1JlcXVlc3QSFgoOY2xpZW50X2FkZHJlc3MYASABKAkS", + "DgoGcmVnaW9uGAIgASgNIuQBChZHZXRBY2NvdW50U3RhdGVSZXF1ZXN0EjEK", + "CWVudGl0eV9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZEIGgvkr", + "AhABEg8KB3Byb2dyYW0YAiABKA0SDgoGcmVnaW9uGAMgASgNEj0KB29wdGlv", + "bnMYCiABKAsyLC5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2NvdW50Rmll", + "bGRPcHRpb25zEjcKBHRhZ3MYCyABKAsyKS5iZ3MucHJvdG9jb2wuYWNjb3Vu", + "dC52MS5BY2NvdW50RmllbGRUYWdzIogBChdHZXRBY2NvdW50U3RhdGVSZXNw", + "b25zZRI0CgVzdGF0ZRgBIAEoCzIlLmJncy5wcm90b2NvbC5hY2NvdW50LnYx", + "LkFjY291bnRTdGF0ZRI3CgR0YWdzGAIgASgLMikuYmdzLnByb3RvY29sLmFj", + "Y291bnQudjEuQWNjb3VudEZpZWxkVGFncyJTChxHZXRTaWduZWRBY2NvdW50", + "U3RhdGVSZXF1ZXN0EjMKB2FjY291bnQYASABKAsyIi5iZ3MucHJvdG9jb2wu", + "YWNjb3VudC52MS5BY2NvdW50SWQiLgodR2V0U2lnbmVkQWNjb3VudFN0YXRl", + "UmVzcG9uc2USDQoFdG9rZW4YASABKAki/QEKGkdldEdhbWVBY2NvdW50U3Rh", + "dGVSZXF1ZXN0Ei4KCmFjY291bnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wu", + "RW50aXR5SWRCAhgBEi8KD2dhbWVfYWNjb3VudF9pZBgCIAEoCzIWLmJncy5w", + "cm90b2NvbC5FbnRpdHlJZBJBCgdvcHRpb25zGAogASgLMjAuYmdzLnByb3Rv", + "Y29sLmFjY291bnQudjEuR2FtZUFjY291bnRGaWVsZE9wdGlvbnMSOwoEdGFn", + "cxgLIAEoCzItLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2NvdW50", + "RmllbGRUYWdzIpQBChtHZXRHYW1lQWNjb3VudFN0YXRlUmVzcG9uc2USOAoF", + "c3RhdGUYASABKAsyKS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNj", + "b3VudFN0YXRlEjsKBHRhZ3MYAiABKAsyLS5iZ3MucHJvdG9jb2wuYWNjb3Vu", + "dC52MS5HYW1lQWNjb3VudEZpZWxkVGFncyLtAQoSR2V0TGljZW5zZXNSZXF1", + "ZXN0EjEKCXRhcmdldF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJ", + "ZEIGgvkrAhABEh4KFmZldGNoX2FjY291bnRfbGljZW5zZXMYAiABKAgSIwob", + "ZmV0Y2hfZ2FtZV9hY2NvdW50X2xpY2Vuc2VzGAMgASgIEiYKHmZldGNoX2R5", + "bmFtaWNfYWNjb3VudF9saWNlbnNlcxgEIAEoCBIPCgdwcm9ncmFtGAUgASgH", + "EiYKF2V4Y2x1ZGVfdW5rbm93bl9wcm9ncmFtGAYgASgIOgVmYWxzZSJQChNH", + "ZXRMaWNlbnNlc1Jlc3BvbnNlEjkKCGxpY2Vuc2VzGAEgAygLMicuYmdzLnBy", + "b3RvY29sLmFjY291bnQudjEuQWNjb3VudExpY2Vuc2UiRgoZR2V0R2FtZVNl", + "c3Npb25JbmZvUmVxdWVzdBIpCgllbnRpdHlfaWQYASABKAsyFi5iZ3MucHJv", + "dG9jb2wuRW50aXR5SWQiXAoaR2V0R2FtZVNlc3Npb25JbmZvUmVzcG9uc2US", + "PgoMc2Vzc2lvbl9pbmZvGAIgASgLMiguYmdzLnByb3RvY29sLmFjY291bnQu", + "djEuR2FtZVNlc3Npb25JbmZvIn4KH0dldEdhbWVUaW1lUmVtYWluaW5nSW5m", + "b1JlcXVlc3QSLwoPZ2FtZV9hY2NvdW50X2lkGAEgASgLMhYuYmdzLnByb3Rv", + "Y29sLkVudGl0eUlkEioKCmFjY291bnRfaWQYAiABKAsyFi5iZ3MucHJvdG9j", + "b2wuRW50aXR5SWQidAogR2V0R2FtZVRpbWVSZW1haW5pbmdJbmZvUmVzcG9u", + "c2USUAoYZ2FtZV90aW1lX3JlbWFpbmluZ19pbmZvGAEgASgLMi4uYmdzLnBy", + "b3RvY29sLmFjY291bnQudjEuR2FtZVRpbWVSZW1haW5pbmdJbmZvIj8KEkdl", + "dENBSVNJbmZvUmVxdWVzdBIpCgllbnRpdHlfaWQYASABKAsyFi5iZ3MucHJv", + "dG9jb2wuRW50aXR5SWQiRwoTR2V0Q0FJU0luZm9SZXNwb25zZRIwCgljYWlz", + "X2luZm8YASABKAsyHS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5DQUlTIm4K", + "GEdldEF1dGhvcml6ZWREYXRhUmVxdWVzdBIpCgllbnRpdHlfaWQYASABKAsy", + "Fi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSCwoDdGFnGAIgAygJEhoKEnByaXZp", + "bGVnZWRfbmV0d29yaxgDIAEoCCJSChlHZXRBdXRob3JpemVkRGF0YVJlc3Bv", + "bnNlEjUKBGRhdGEYASADKAsyJy5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5B", + "dXRob3JpemVkRGF0YSLUAQoYQWNjb3VudFN0YXRlTm90aWZpY2F0aW9uEjwK", + "DWFjY291bnRfc3RhdGUYASABKAsyJS5iZ3MucHJvdG9jb2wuYWNjb3VudC52", + "MS5BY2NvdW50U3RhdGUSGQoNc3Vic2NyaWJlcl9pZBgCIAEoBEICGAESPwoM", + "YWNjb3VudF90YWdzGAMgASgLMikuYmdzLnByb3RvY29sLmFjY291bnQudjEu", + "QWNjb3VudEZpZWxkVGFncxIeChZzdWJzY3JpcHRpb25fY29tcGxldGVkGAQg", + "ASgIIuoBChxHYW1lQWNjb3VudFN0YXRlTm90aWZpY2F0aW9uEkUKEmdhbWVf", + "YWNjb3VudF9zdGF0ZRgBIAEoCzIpLmJncy5wcm90b2NvbC5hY2NvdW50LnYx", + "LkdhbWVBY2NvdW50U3RhdGUSGQoNc3Vic2NyaWJlcl9pZBgCIAEoBEICGAES", + "SAoRZ2FtZV9hY2NvdW50X3RhZ3MYAyABKAsyLS5iZ3MucHJvdG9jb2wuYWNj", + "b3VudC52MS5HYW1lQWNjb3VudEZpZWxkVGFncxIeChZzdWJzY3JpcHRpb25f", + "Y29tcGxldGVkGAQgASgIIrIBChdHYW1lQWNjb3VudE5vdGlmaWNhdGlvbhI/", + "Cg1nYW1lX2FjY291bnRzGAEgAygLMiguYmdzLnByb3RvY29sLmFjY291bnQu", + "djEuR2FtZUFjY291bnRMaXN0EhUKDXN1YnNjcmliZXJfaWQYAiABKAQSPwoM", + "YWNjb3VudF90YWdzGAMgASgLMikuYmdzLnByb3RvY29sLmFjY291bnQudjEu", + "QWNjb3VudEZpZWxkVGFncyKoAQoeR2FtZUFjY291bnRTZXNzaW9uTm90aWZp", + "Y2F0aW9uEkAKDGdhbWVfYWNjb3VudBgBIAEoCzIqLmJncy5wcm90b2NvbC5h", + "Y2NvdW50LnYxLkdhbWVBY2NvdW50SGFuZGxlEkQKDHNlc3Npb25faW5mbxgC", + "IAEoCzIuLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVTZXNzaW9uVXBk", + "YXRlSW5mbzKtDAoOQWNjb3VudFNlcnZpY2USeQoOUmVzb2x2ZUFjY291bnQS", + "Li5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5SZXNvbHZlQWNjb3VudFJlcXVl", + "c3QaLy5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5SZXNvbHZlQWNjb3VudFJl", + "c3BvbnNlIgaC+SsCCA0SXQoMSXNJZ3JBZGRyZXNzEiwuYmdzLnByb3RvY29s", + "LmFjY291bnQudjEuSXNJZ3JBZGRyZXNzUmVxdWVzdBoULmJncy5wcm90b2Nv", + "bC5Ob0RhdGEiCYgCAYL5KwIIDxJ8CglTdWJzY3JpYmUSMi5iZ3MucHJvdG9j", + "b2wuYWNjb3VudC52MS5TdWJzY3JpcHRpb25VcGRhdGVSZXF1ZXN0GjMuYmdz", + "LnByb3RvY29sLmFjY291bnQudjEuU3Vic2NyaXB0aW9uVXBkYXRlUmVzcG9u", + "c2UiBoL5KwIIGRJfCgtVbnN1YnNjcmliZRIyLmJncy5wcm90b2NvbC5hY2Nv", + "dW50LnYxLlN1YnNjcmlwdGlvblVwZGF0ZVJlcXVlc3QaFC5iZ3MucHJvdG9j", + "b2wuTm9EYXRhIgaC+SsCCBoSfAoPR2V0QWNjb3VudFN0YXRlEi8uYmdzLnBy", + "b3RvY29sLmFjY291bnQudjEuR2V0QWNjb3VudFN0YXRlUmVxdWVzdBowLmJn", + "cy5wcm90b2NvbC5hY2NvdW50LnYxLkdldEFjY291bnRTdGF0ZVJlc3BvbnNl", + "IgaC+SsCCB4SiAEKE0dldEdhbWVBY2NvdW50U3RhdGUSMy5iZ3MucHJvdG9j", + "b2wuYWNjb3VudC52MS5HZXRHYW1lQWNjb3VudFN0YXRlUmVxdWVzdBo0LmJn", + "cy5wcm90b2NvbC5hY2NvdW50LnYxLkdldEdhbWVBY2NvdW50U3RhdGVSZXNw", + "b25zZSIGgvkrAggfEnAKC0dldExpY2Vuc2VzEisuYmdzLnByb3RvY29sLmFj", + "Y291bnQudjEuR2V0TGljZW5zZXNSZXF1ZXN0GiwuYmdzLnByb3RvY29sLmFj", + "Y291bnQudjEuR2V0TGljZW5zZXNSZXNwb25zZSIGgvkrAgggEpcBChhHZXRH", + "YW1lVGltZVJlbWFpbmluZ0luZm8SOC5iZ3MucHJvdG9jb2wuYWNjb3VudC52", + "MS5HZXRHYW1lVGltZVJlbWFpbmluZ0luZm9SZXF1ZXN0GjkuYmdzLnByb3Rv", + "Y29sLmFjY291bnQudjEuR2V0R2FtZVRpbWVSZW1haW5pbmdJbmZvUmVzcG9u", + "c2UiBoL5KwIIIRKFAQoSR2V0R2FtZVNlc3Npb25JbmZvEjIuYmdzLnByb3Rv", + "Y29sLmFjY291bnQudjEuR2V0R2FtZVNlc3Npb25JbmZvUmVxdWVzdBozLmJn", + "cy5wcm90b2NvbC5hY2NvdW50LnYxLkdldEdhbWVTZXNzaW9uSW5mb1Jlc3Bv", + "bnNlIgaC+SsCCCIScAoLR2V0Q0FJU0luZm8SKy5iZ3MucHJvdG9jb2wuYWNj", + "b3VudC52MS5HZXRDQUlTSW5mb1JlcXVlc3QaLC5iZ3MucHJvdG9jb2wuYWNj", + "b3VudC52MS5HZXRDQUlTSW5mb1Jlc3BvbnNlIgaC+SsCCCMSggEKEUdldEF1", + "dGhvcml6ZWREYXRhEjEuYmdzLnByb3RvY29sLmFjY291bnQudjEuR2V0QXV0", + "aG9yaXplZERhdGFSZXF1ZXN0GjIuYmdzLnByb3RvY29sLmFjY291bnQudjEu", + "R2V0QXV0aG9yaXplZERhdGFSZXNwb25zZSIGgvkrAgglEo4BChVHZXRTaWdu", + "ZWRBY2NvdW50U3RhdGUSNS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HZXRT", + "aWduZWRBY2NvdW50U3RhdGVSZXF1ZXN0GjYuYmdzLnByb3RvY29sLmFjY291", + "bnQudjEuR2V0U2lnbmVkQWNjb3VudFN0YXRlUmVzcG9uc2UiBoL5KwIILBo9", + "gvkrJgokYm5ldC5wcm90b2NvbC5hY2NvdW50LkFjY291bnRTZXJ2aWNlgvkr", + "CSoHYWNjb3VudIr5KwIQATKQBAoPQWNjb3VudExpc3RlbmVyEm0KFU9uQWNj", + "b3VudFN0YXRlVXBkYXRlZBIxLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFj", + "Y291bnRTdGF0ZU5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQ", + "T05TRSIGgvkrAggBEnUKGU9uR2FtZUFjY291bnRTdGF0ZVVwZGF0ZWQSNS5i", + "Z3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudFN0YXRlTm90aWZp", + "Y2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAISbwoV", + "T25HYW1lQWNjb3VudHNVcGRhdGVkEjAuYmdzLnByb3RvY29sLmFjY291bnQu", + "djEuR2FtZUFjY291bnROb3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9f", + "UkVTUE9OU0UiCYgCAYL5KwIIAxJ1ChRPbkdhbWVTZXNzaW9uVXBkYXRlZBI3", + "LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2NvdW50U2Vzc2lvbk5v", + "dGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIJiAIBgvkr", + "AggEGi+C+SslCiNibmV0LnByb3RvY29sLmFjY291bnQuQWNjb3VudE5vdGlm", + "eYr5KwIIAUIDgAEA")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.ResolveAccountRequest), global::Bgs.Protocol.Account.V1.ResolveAccountRequest.Parser, new[]{ "Ref", "FetchId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.ResolveAccountResponse), global::Bgs.Protocol.Account.V1.ResolveAccountResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountFlagUpdateRequest), global::Bgs.Protocol.Account.V1.GameAccountFlagUpdateRequest.Parser, new[]{ "GameAccount", "Flag", "Active" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.SubscriptionUpdateRequest), global::Bgs.Protocol.Account.V1.SubscriptionUpdateRequest.Parser, new[]{ "Ref" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.SubscriptionUpdateResponse), global::Bgs.Protocol.Account.V1.SubscriptionUpdateResponse.Parser, new[]{ "Ref" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.IsIgrAddressRequest), global::Bgs.Protocol.Account.V1.IsIgrAddressRequest.Parser, new[]{ "ClientAddress", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetAccountStateRequest), global::Bgs.Protocol.Account.V1.GetAccountStateRequest.Parser, new[]{ "EntityId", "Program", "Region", "Options", "Tags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetAccountStateResponse), global::Bgs.Protocol.Account.V1.GetAccountStateResponse.Parser, new[]{ "State", "Tags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetSignedAccountStateRequest), global::Bgs.Protocol.Account.V1.GetSignedAccountStateRequest.Parser, new[]{ "Account" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetSignedAccountStateResponse), global::Bgs.Protocol.Account.V1.GetSignedAccountStateResponse.Parser, new[]{ "Token" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetGameAccountStateRequest), global::Bgs.Protocol.Account.V1.GetGameAccountStateRequest.Parser, new[]{ "AccountId", "GameAccountId", "Options", "Tags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetGameAccountStateResponse), global::Bgs.Protocol.Account.V1.GetGameAccountStateResponse.Parser, new[]{ "State", "Tags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetLicensesRequest), global::Bgs.Protocol.Account.V1.GetLicensesRequest.Parser, new[]{ "TargetId", "FetchAccountLicenses", "FetchGameAccountLicenses", "FetchDynamicAccountLicenses", "Program", "ExcludeUnknownProgram" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetLicensesResponse), global::Bgs.Protocol.Account.V1.GetLicensesResponse.Parser, new[]{ "Licenses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetGameSessionInfoRequest), global::Bgs.Protocol.Account.V1.GetGameSessionInfoRequest.Parser, new[]{ "EntityId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetGameSessionInfoResponse), global::Bgs.Protocol.Account.V1.GetGameSessionInfoResponse.Parser, new[]{ "SessionInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetGameTimeRemainingInfoRequest), global::Bgs.Protocol.Account.V1.GetGameTimeRemainingInfoRequest.Parser, new[]{ "GameAccountId", "AccountId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetGameTimeRemainingInfoResponse), global::Bgs.Protocol.Account.V1.GetGameTimeRemainingInfoResponse.Parser, new[]{ "GameTimeRemainingInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetCAISInfoRequest), global::Bgs.Protocol.Account.V1.GetCAISInfoRequest.Parser, new[]{ "EntityId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetCAISInfoResponse), global::Bgs.Protocol.Account.V1.GetCAISInfoResponse.Parser, new[]{ "CaisInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetAuthorizedDataRequest), global::Bgs.Protocol.Account.V1.GetAuthorizedDataRequest.Parser, new[]{ "EntityId", "Tag", "PrivilegedNetwork" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GetAuthorizedDataResponse), global::Bgs.Protocol.Account.V1.GetAuthorizedDataResponse.Parser, new[]{ "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountStateNotification), global::Bgs.Protocol.Account.V1.AccountStateNotification.Parser, new[]{ "AccountState", "SubscriberId", "AccountTags", "SubscriptionCompleted" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountStateNotification), global::Bgs.Protocol.Account.V1.GameAccountStateNotification.Parser, new[]{ "GameAccountState", "SubscriberId", "GameAccountTags", "SubscriptionCompleted" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountNotification), global::Bgs.Protocol.Account.V1.GameAccountNotification.Parser, new[]{ "GameAccounts", "SubscriberId", "AccountTags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountSessionNotification), global::Bgs.Protocol.Account.V1.GameAccountSessionNotification.Parser, new[]{ "GameAccount", "SessionInfo" }, null, null, null, null) + })); } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAccountResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAccountResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAccountResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAccountResponse(GetAccountResponse other) : this() - { - Blob = other.blob_ != null ? other.Blob.Clone() : null; - Id = other.id_ != null ? other.Id.Clone() : null; - email_ = other.email_.Clone(); - battleTag_ = other.battleTag_; - fullName_ = other.fullName_; - links_ = other.links_.Clone(); - ParentalControlInfo = other.parentalControlInfo_ != null ? other.ParentalControlInfo.Clone() : null; - } - - public GetAccountResponse Clone() - { - return new GetAccountResponse(this); - } - - /// Field number for the "blob" field. - public const int BlobFieldNumber = 11; - private Bgs.Protocol.Account.V1.AccountBlob blob_; - public Bgs.Protocol.Account.V1.AccountBlob Blob - { - get { return blob_; } - set - { - blob_ = value; - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 12; - private Bgs.Protocol.Account.V1.AccountId id_; - public Bgs.Protocol.Account.V1.AccountId Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_email_codec - = pb::FieldCodec.ForString(106); - private readonly pbc::RepeatedField email_ = new pbc::RepeatedField(); - public pbc::RepeatedField Email - { - get { return email_; } - } - - /// Field number for the "battle_tag" field. - public const int BattleTagFieldNumber = 14; - private string battleTag_ = ""; - public string BattleTag - { - get { return battleTag_; } - set - { - battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "full_name" field. - public const int FullNameFieldNumber = 15; - private string fullName_ = ""; - public string FullName - { - get { return fullName_; } - set - { - fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "links" field. - public const int LinksFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_links_codec - = pb::FieldCodec.ForMessage(130, Bgs.Protocol.Account.V1.GameAccountLink.Parser); - private readonly pbc::RepeatedField links_ = new pbc::RepeatedField(); - public pbc::RepeatedField Links - { - get { return links_; } - } - - /// Field number for the "parental_control_info" field. - public const int ParentalControlInfoFieldNumber = 17; - private Bgs.Protocol.Account.V1.ParentalControlInfo parentalControlInfo_; - public Bgs.Protocol.Account.V1.ParentalControlInfo ParentalControlInfo - { - get { return parentalControlInfo_; } - set - { - parentalControlInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetAccountResponse); - } - - public bool Equals(GetAccountResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Blob, other.Blob)) return false; - if (!object.Equals(Id, other.Id)) return false; - if (!email_.Equals(other.email_)) return false; - if (BattleTag != other.BattleTag) return false; - if (FullName != other.FullName) return false; - if (!links_.Equals(other.links_)) return false; - if (!object.Equals(ParentalControlInfo, other.ParentalControlInfo)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (blob_ != null) hash ^= Blob.GetHashCode(); - if (id_ != null) hash ^= Id.GetHashCode(); - hash ^= email_.GetHashCode(); - if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode(); - if (FullName.Length != 0) hash ^= FullName.GetHashCode(); - hash ^= links_.GetHashCode(); - if (parentalControlInfo_ != null) hash ^= ParentalControlInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (blob_ != null) - { - output.WriteRawTag(90); - output.WriteMessage(Blob); - } - if (id_ != null) - { - output.WriteRawTag(98); - output.WriteMessage(Id); - } - email_.WriteTo(output, _repeated_email_codec); - if (BattleTag.Length != 0) - { - output.WriteRawTag(114); - output.WriteString(BattleTag); - } - if (FullName.Length != 0) - { - output.WriteRawTag(122); - output.WriteString(FullName); - } - links_.WriteTo(output, _repeated_links_codec); - if (parentalControlInfo_ != null) - { - output.WriteRawTag(138, 1); - output.WriteMessage(ParentalControlInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (blob_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Blob); - } - if (id_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); - } - size += email_.CalculateSize(_repeated_email_codec); - if (BattleTag.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); - } - if (FullName.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName); - } - size += links_.CalculateSize(_repeated_links_codec); - if (parentalControlInfo_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParentalControlInfo); - } - return size; - } - - public void MergeFrom(GetAccountResponse other) - { - if (other == null) - { - return; - } - if (other.blob_ != null) - { - if (blob_ == null) - { - blob_ = new Bgs.Protocol.Account.V1.AccountBlob(); - } - Blob.MergeFrom(other.Blob); - } - if (other.id_ != null) - { - if (id_ == null) - { - id_ = new Bgs.Protocol.Account.V1.AccountId(); - } - Id.MergeFrom(other.Id); - } - email_.Add(other.email_); - if (other.BattleTag.Length != 0) - { - BattleTag = other.BattleTag; - } - if (other.FullName.Length != 0) - { - FullName = other.FullName; - } - links_.Add(other.links_); - if (other.parentalControlInfo_ != null) - { - if (parentalControlInfo_ == null) - { - parentalControlInfo_ = new Bgs.Protocol.Account.V1.ParentalControlInfo(); - } - ParentalControlInfo.MergeFrom(other.ParentalControlInfo); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 90: - { - if (blob_ == null) - { - blob_ = new Bgs.Protocol.Account.V1.AccountBlob(); - } - input.ReadMessage(blob_); - break; - } - case 98: - { - if (id_ == null) - { - id_ = new Bgs.Protocol.Account.V1.AccountId(); - } - input.ReadMessage(id_); - break; - } - case 106: - { - email_.AddEntriesFrom(input, _repeated_email_codec); - break; - } - case 114: - { - BattleTag = input.ReadString(); - break; - } - case 122: - { - FullName = input.ReadString(); - break; - } - case 130: - { - links_.AddEntriesFrom(input, _repeated_links_codec); - break; - } - case 138: - { - if (parentalControlInfo_ == null) - { - parentalControlInfo_ = new Bgs.Protocol.Account.V1.ParentalControlInfo(); - } - input.ReadMessage(parentalControlInfo_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class CreateGameAccountRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGameAccountRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public CreateGameAccountRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public CreateGameAccountRequest(CreateGameAccountRequest other) : this() - { - Account = other.account_ != null ? other.Account.Clone() : null; - region_ = other.region_; - program_ = other.program_; - realmPermissions_ = other.realmPermissions_; - } - - public CreateGameAccountRequest Clone() - { - return new CreateGameAccountRequest(this); - } - - /// Field number for the "account" field. - public const int AccountFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountId account_; - public Bgs.Protocol.Account.V1.AccountId Account - { - get { return account_; } - set - { - account_ = value; - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 2; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 3; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "realm_permissions" field. - public const int RealmPermissionsFieldNumber = 4; - private uint realmPermissions_; - public uint RealmPermissions - { - get { return realmPermissions_; } - set - { - realmPermissions_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as CreateGameAccountRequest); - } - - public bool Equals(CreateGameAccountRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Account, other.Account)) return false; - if (Region != other.Region) return false; - if (Program != other.Program) return false; - if (RealmPermissions != other.RealmPermissions) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (account_ != null) hash ^= Account.GetHashCode(); - if (Region != 0) hash ^= Region.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (RealmPermissions != 0) hash ^= RealmPermissions.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (account_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Account); - } - if (Region != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Region); - } - if (Program != 0) - { - output.WriteRawTag(29); - output.WriteFixed32(Program); - } - if (RealmPermissions != 0) - { - output.WriteRawTag(32); - output.WriteUInt32(RealmPermissions); - } - } - - public int CalculateSize() - { - int size = 0; - if (account_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Account); - } - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - if (Program != 0) - { - size += 1 + 4; - } - if (RealmPermissions != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RealmPermissions); - } - return size; - } - - public void MergeFrom(CreateGameAccountRequest other) - { - if (other == null) - { - return; - } - if (other.account_ != null) - { - if (account_ == null) - { - account_ = new Bgs.Protocol.Account.V1.AccountId(); - } - Account.MergeFrom(other.Account); - } - if (other.Region != 0) - { - Region = other.Region; - } - if (other.Program != 0) - { - Program = other.Program; - } - if (other.RealmPermissions != 0) - { - RealmPermissions = other.RealmPermissions; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (account_ == null) - { - account_ = new Bgs.Protocol.Account.V1.AccountId(); - } - input.ReadMessage(account_); - break; - } - case 16: - { - Region = input.ReadUInt32(); - break; - } - case 29: - { - Program = input.ReadFixed32(); - break; - } - case 32: - { - RealmPermissions = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class CacheExpireRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CacheExpireRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[3]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public CacheExpireRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public CacheExpireRequest(CacheExpireRequest other) : this() - { - account_ = other.account_.Clone(); - gameAccount_ = other.gameAccount_.Clone(); - email_ = other.email_.Clone(); - } - - public CacheExpireRequest Clone() - { - return new CacheExpireRequest(this); - } - - /// Field number for the "account" field. - public const int AccountFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_account_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.AccountId.Parser); - private readonly pbc::RepeatedField account_ = new pbc::RepeatedField(); - public pbc::RepeatedField Account - { - get { return account_; } - } - - /// Field number for the "game_account" field. - public const int GameAccountFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_gameAccount_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Account.V1.GameAccountHandle.Parser); - private readonly pbc::RepeatedField gameAccount_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameAccount - { - get { return gameAccount_; } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_email_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField email_ = new pbc::RepeatedField(); - public pbc::RepeatedField Email - { - get { return email_; } - } - - public override bool Equals(object other) - { - return Equals(other as CacheExpireRequest); - } - - public bool Equals(CacheExpireRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!account_.Equals(other.account_)) return false; - if (!gameAccount_.Equals(other.gameAccount_)) return false; - if (!email_.Equals(other.email_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= account_.GetHashCode(); - hash ^= gameAccount_.GetHashCode(); - hash ^= email_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - account_.WriteTo(output, _repeated_account_codec); - gameAccount_.WriteTo(output, _repeated_gameAccount_codec); - email_.WriteTo(output, _repeated_email_codec); - } - - public int CalculateSize() - { - int size = 0; - size += account_.CalculateSize(_repeated_account_codec); - size += gameAccount_.CalculateSize(_repeated_gameAccount_codec); - size += email_.CalculateSize(_repeated_email_codec); - return size; - } - - public void MergeFrom(CacheExpireRequest other) - { - if (other == null) - { - return; - } - account_.Add(other.account_); - gameAccount_.Add(other.gameAccount_); - email_.Add(other.email_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - account_.AddEntriesFrom(input, _repeated_account_codec); - break; - } - case 18: - { - gameAccount_.AddEntriesFrom(input, _repeated_gameAccount_codec); - break; - } - case 26: - { - email_.AddEntriesFrom(input, _repeated_email_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class CredentialUpdateRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CredentialUpdateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public CredentialUpdateRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public CredentialUpdateRequest(CredentialUpdateRequest other) : this() - { - Account = other.account_ != null ? other.Account.Clone() : null; - oldCredentials_ = other.oldCredentials_.Clone(); - newCredentials_ = other.newCredentials_.Clone(); - region_ = other.region_; - } - - public CredentialUpdateRequest Clone() - { - return new CredentialUpdateRequest(this); - } - - /// Field number for the "account" field. - public const int AccountFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountId account_; - public Bgs.Protocol.Account.V1.AccountId Account - { - get { return account_; } - set - { - account_ = value; - } - } - - /// Field number for the "old_credentials" field. - public const int OldCredentialsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_oldCredentials_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Account.V1.AccountCredential.Parser); - private readonly pbc::RepeatedField oldCredentials_ = new pbc::RepeatedField(); - public pbc::RepeatedField OldCredentials - { - get { return oldCredentials_; } - } - - /// Field number for the "new_credentials" field. - public const int NewCredentialsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_newCredentials_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.Account.V1.AccountCredential.Parser); - private readonly pbc::RepeatedField newCredentials_ = new pbc::RepeatedField(); - public pbc::RepeatedField NewCredentials - { - get { return newCredentials_; } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 4; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as CredentialUpdateRequest); - } - - public bool Equals(CredentialUpdateRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Account, other.Account)) return false; - if (!oldCredentials_.Equals(other.oldCredentials_)) return false; - if (!newCredentials_.Equals(other.newCredentials_)) return false; - if (Region != other.Region) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (account_ != null) hash ^= Account.GetHashCode(); - hash ^= oldCredentials_.GetHashCode(); - hash ^= newCredentials_.GetHashCode(); - if (Region != 0) hash ^= Region.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (account_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Account); - } - oldCredentials_.WriteTo(output, _repeated_oldCredentials_codec); - newCredentials_.WriteTo(output, _repeated_newCredentials_codec); - if (Region != 0) - { - output.WriteRawTag(32); - output.WriteUInt32(Region); - } - } - - public int CalculateSize() - { - int size = 0; - if (account_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Account); - } - size += oldCredentials_.CalculateSize(_repeated_oldCredentials_codec); - size += newCredentials_.CalculateSize(_repeated_newCredentials_codec); - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - return size; - } - - public void MergeFrom(CredentialUpdateRequest other) - { - if (other == null) - { - return; - } - if (other.account_ != null) - { - if (account_ == null) - { - account_ = new Bgs.Protocol.Account.V1.AccountId(); - } - Account.MergeFrom(other.Account); - } - oldCredentials_.Add(other.oldCredentials_); - newCredentials_.Add(other.newCredentials_); - if (other.Region != 0) - { - Region = other.Region; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (account_ == null) - { - account_ = new Bgs.Protocol.Account.V1.AccountId(); - } - input.ReadMessage(account_); - break; - } - case 18: - { - oldCredentials_.AddEntriesFrom(input, _repeated_oldCredentials_codec); - break; - } - case 26: - { - newCredentials_.AddEntriesFrom(input, _repeated_newCredentials_codec); - break; - } - case 32: - { - Region = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class CredentialUpdateResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CredentialUpdateResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public CredentialUpdateResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public CredentialUpdateResponse(CredentialUpdateResponse other) : this() - { - } - - public CredentialUpdateResponse Clone() - { - return new CredentialUpdateResponse(this); - } - - public override bool Equals(object other) - { - return Equals(other as CredentialUpdateResponse); - } - - public bool Equals(CredentialUpdateResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - return true; - } - - public override int GetHashCode() - { - int hash = 1; - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - } - - public int CalculateSize() - { - int size = 0; - return size; - } - - public void MergeFrom(CredentialUpdateResponse other) - { - if (other == null) - { - return; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountFlagUpdateRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountFlagUpdateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountFlagUpdateRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountFlagUpdateRequest(AccountFlagUpdateRequest other) : this() - { - Account = other.account_ != null ? other.Account.Clone() : null; - region_ = other.region_; - flag_ = other.flag_; - active_ = other.active_; - } - - public AccountFlagUpdateRequest Clone() - { - return new AccountFlagUpdateRequest(this); - } - - /// Field number for the "account" field. - public const int AccountFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountId account_; - public Bgs.Protocol.Account.V1.AccountId Account - { - get { return account_; } - set - { - account_ = value; - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 2; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - /// Field number for the "flag" field. - public const int FlagFieldNumber = 3; - private ulong flag_; - public ulong Flag - { - get { return flag_; } - set - { - flag_ = value; - } - } - - /// Field number for the "active" field. - public const int ActiveFieldNumber = 4; - private bool active_; - public bool Active - { - get { return active_; } - set - { - active_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountFlagUpdateRequest); - } - - public bool Equals(AccountFlagUpdateRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Account, other.Account)) return false; - if (Region != other.Region) return false; - if (Flag != other.Flag) return false; - if (Active != other.Active) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (account_ != null) hash ^= Account.GetHashCode(); - if (Region != 0) hash ^= Region.GetHashCode(); - if (Flag != 0UL) hash ^= Flag.GetHashCode(); - if (Active != false) hash ^= Active.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (account_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Account); - } - if (Region != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Region); - } - if (Flag != 0UL) - { - output.WriteRawTag(24); - output.WriteUInt64(Flag); - } - if (Active != false) - { - output.WriteRawTag(32); - output.WriteBool(Active); - } - } - - public int CalculateSize() - { - int size = 0; - if (account_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Account); - } - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - if (Flag != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Flag); - } - if (Active != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(AccountFlagUpdateRequest other) - { - if (other == null) - { - return; - } - if (other.account_ != null) - { - if (account_ == null) - { - account_ = new Bgs.Protocol.Account.V1.AccountId(); - } - Account.MergeFrom(other.Account); - } - if (other.Region != 0) - { - Region = other.Region; - } - if (other.Flag != 0UL) - { - Flag = other.Flag; - } - if (other.Active != false) - { - Active = other.Active; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (account_ == null) - { - account_ = new Bgs.Protocol.Account.V1.AccountId(); - } - input.ReadMessage(account_); - break; - } - case 16: - { - Region = input.ReadUInt32(); - break; - } - case 24: - { - Flag = input.ReadUInt64(); - break; - } - case 32: - { - Active = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountFlagUpdateRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountFlagUpdateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[7]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountFlagUpdateRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountFlagUpdateRequest(GameAccountFlagUpdateRequest other) : this() - { - GameAccount = other.gameAccount_ != null ? other.GameAccount.Clone() : null; - flag_ = other.flag_; - active_ = other.active_; - } - - public GameAccountFlagUpdateRequest Clone() - { - return new GameAccountFlagUpdateRequest(this); - } - - /// Field number for the "game_account" field. - public const int GameAccountFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; - public Bgs.Protocol.Account.V1.GameAccountHandle GameAccount - { - get { return gameAccount_; } - set - { - gameAccount_ = value; - } - } - - /// Field number for the "flag" field. - public const int FlagFieldNumber = 2; - private ulong flag_; - public ulong Flag - { - get { return flag_; } - set - { - flag_ = value; - } - } - - /// Field number for the "active" field. - public const int ActiveFieldNumber = 3; - private bool active_; - public bool Active - { - get { return active_; } - set - { - active_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountFlagUpdateRequest); - } - - public bool Equals(GameAccountFlagUpdateRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccount, other.GameAccount)) return false; - if (Flag != other.Flag) return false; - if (Active != other.Active) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccount_ != null) hash ^= GameAccount.GetHashCode(); - if (Flag != 0UL) hash ^= Flag.GetHashCode(); - if (Active != false) hash ^= Active.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccount_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccount); - } - if (Flag != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(Flag); - } - if (Active != false) - { - output.WriteRawTag(24); - output.WriteBool(Active); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccount_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); - } - if (Flag != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Flag); - } - if (Active != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(GameAccountFlagUpdateRequest other) - { - if (other == null) - { - return; - } - if (other.gameAccount_ != null) - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - GameAccount.MergeFrom(other.GameAccount); - } - if (other.Flag != 0UL) - { - Flag = other.Flag; - } - if (other.Active != false) - { - Active = other.Active; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - input.ReadMessage(gameAccount_); - break; - } - case 16: - { - Flag = input.ReadUInt64(); - break; - } - case 24: - { - Active = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SubscriptionUpdateRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriptionUpdateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[8]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public SubscriptionUpdateRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public SubscriptionUpdateRequest(SubscriptionUpdateRequest other) : this() - { - ref_ = other.ref_.Clone(); - } - - public SubscriptionUpdateRequest Clone() - { - return new SubscriptionUpdateRequest(this); - } - - /// Field number for the "ref" field. - public const int RefFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_ref_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Account.V1.SubscriberReference.Parser); - private readonly pbc::RepeatedField ref_ = new pbc::RepeatedField(); - public pbc::RepeatedField Ref - { - get { return ref_; } - } - - public override bool Equals(object other) - { - return Equals(other as SubscriptionUpdateRequest); - } - - public bool Equals(SubscriptionUpdateRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!ref_.Equals(other.ref_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= ref_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - ref_.WriteTo(output, _repeated_ref_codec); - } - - public int CalculateSize() - { - int size = 0; - size += ref_.CalculateSize(_repeated_ref_codec); - return size; - } - - public void MergeFrom(SubscriptionUpdateRequest other) - { - if (other == null) - { - return; - } - ref_.Add(other.ref_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 18: - { - ref_.AddEntriesFrom(input, _repeated_ref_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SubscriptionUpdateResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriptionUpdateResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[9]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public SubscriptionUpdateResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public SubscriptionUpdateResponse(SubscriptionUpdateResponse other) : this() - { - ref_ = other.ref_.Clone(); - } - - public SubscriptionUpdateResponse Clone() - { - return new SubscriptionUpdateResponse(this); - } - - /// Field number for the "ref" field. - public const int RefFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_ref_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.SubscriberReference.Parser); - private readonly pbc::RepeatedField ref_ = new pbc::RepeatedField(); - public pbc::RepeatedField Ref - { - get { return ref_; } - } - - public override bool Equals(object other) - { - return Equals(other as SubscriptionUpdateResponse); - } - - public bool Equals(SubscriptionUpdateResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!ref_.Equals(other.ref_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= ref_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - ref_.WriteTo(output, _repeated_ref_codec); - } - - public int CalculateSize() - { - int size = 0; - size += ref_.CalculateSize(_repeated_ref_codec); - return size; - } - - public void MergeFrom(SubscriptionUpdateResponse other) - { - if (other == null) - { - return; - } - ref_.Add(other.ref_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - ref_.AddEntriesFrom(input, _repeated_ref_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class IsIgrAddressRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IsIgrAddressRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[10]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public IsIgrAddressRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public IsIgrAddressRequest(IsIgrAddressRequest other) : this() - { - clientAddress_ = other.clientAddress_; - region_ = other.region_; - } - - public IsIgrAddressRequest Clone() - { - return new IsIgrAddressRequest(this); - } - - /// Field number for the "client_address" field. - public const int ClientAddressFieldNumber = 1; - private string clientAddress_ = ""; - public string ClientAddress - { - get { return clientAddress_; } - set - { - clientAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 2; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as IsIgrAddressRequest); - } - - public bool Equals(IsIgrAddressRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ClientAddress != other.ClientAddress) return false; - if (Region != other.Region) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ClientAddress.Length != 0) hash ^= ClientAddress.GetHashCode(); - if (Region != 0) hash ^= Region.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (ClientAddress.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(ClientAddress); - } - if (Region != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Region); - } - } - - public int CalculateSize() - { - int size = 0; - if (ClientAddress.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientAddress); - } - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - return size; - } - - public void MergeFrom(IsIgrAddressRequest other) - { - if (other == null) - { - return; - } - if (other.ClientAddress.Length != 0) - { - ClientAddress = other.ClientAddress; - } - if (other.Region != 0) - { - Region = other.Region; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - ClientAddress = input.ReadString(); - break; - } - case 16: - { - Region = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountServiceRegion : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountServiceRegion()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[11]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountServiceRegion() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountServiceRegion(AccountServiceRegion other) : this() - { - id_ = other.id_; - shard_ = other.shard_; - } - - public AccountServiceRegion Clone() - { - return new AccountServiceRegion(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "shard" field. - public const int ShardFieldNumber = 2; - private string shard_ = ""; - public string Shard - { - get { return shard_; } - set - { - shard_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountServiceRegion); - } - - public bool Equals(AccountServiceRegion other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - if (Shard != other.Shard) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - if (Shard.Length != 0) hash ^= Shard.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - if (Shard.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(Shard); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (Shard.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Shard); - } - return size; - } - - public void MergeFrom(AccountServiceRegion other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.Shard.Length != 0) - { - Shard = other.Shard; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Id = input.ReadUInt32(); - break; - } - case 18: - { - Shard = input.ReadString(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountServiceConfig : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountServiceConfig()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[12]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountServiceConfig() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountServiceConfig(AccountServiceConfig other) : this() - { - region_ = other.region_.Clone(); - } - - public AccountServiceConfig Clone() - { - return new AccountServiceConfig(this); - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_region_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.AccountServiceRegion.Parser); - private readonly pbc::RepeatedField region_ = new pbc::RepeatedField(); - public pbc::RepeatedField Region - { - get { return region_; } - } - - public override bool Equals(object other) - { - return Equals(other as AccountServiceConfig); - } - - public bool Equals(AccountServiceConfig other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!region_.Equals(other.region_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= region_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - region_.WriteTo(output, _repeated_region_codec); - } - - public int CalculateSize() - { - int size = 0; - size += region_.CalculateSize(_repeated_region_codec); - return size; - } - - public void MergeFrom(AccountServiceConfig other) - { - if (other == null) - { - return; - } - region_.Add(other.region_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - region_.AddEntriesFrom(input, _repeated_region_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAccountStateRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAccountStateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[13]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAccountStateRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAccountStateRequest(GetAccountStateRequest other) : this() - { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; - program_ = other.program_; - region_ = other.region_; - Options = other.options_ != null ? other.Options.Clone() : null; - Tags = other.tags_ != null ? other.Tags.Clone() : null; - } - - public GetAccountStateRequest Clone() - { - return new GetAccountStateRequest(this); - } - - /// Field number for the "entity_id" field. - public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId - { - get { return entityId_; } - set - { - entityId_ = value; - } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 2; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 3; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - /// Field number for the "options" field. - public const int OptionsFieldNumber = 10; - private Bgs.Protocol.Account.V1.AccountFieldOptions options_; - public Bgs.Protocol.Account.V1.AccountFieldOptions Options - { - get { return options_; } - set - { - options_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 11; - private Bgs.Protocol.Account.V1.AccountFieldTags tags_; - public Bgs.Protocol.Account.V1.AccountFieldTags Tags - { - get { return tags_; } - set - { - tags_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetAccountStateRequest); - } - - public bool Equals(GetAccountStateRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(EntityId, other.EntityId)) return false; - if (Program != other.Program) return false; - if (Region != other.Region) return false; - if (!object.Equals(Options, other.Options)) return false; - if (!object.Equals(Tags, other.Tags)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (Region != 0) hash ^= Region.GetHashCode(); - if (options_ != null) hash ^= Options.GetHashCode(); - if (tags_ != null) hash ^= Tags.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (entityId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(EntityId); - } - if (Program != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Program); - } - if (Region != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(Region); - } - if (options_ != null) - { - output.WriteRawTag(82); - output.WriteMessage(Options); - } - if (tags_ != null) - { - output.WriteRawTag(90); - output.WriteMessage(Tags); - } - } - - public int CalculateSize() - { - int size = 0; - if (entityId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); - } - if (Program != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program); - } - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - if (options_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); - } - if (tags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); - } - return size; - } - - public void MergeFrom(GetAccountStateRequest other) - { - if (other == null) - { - return; - } - if (other.entityId_ != null) - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - EntityId.MergeFrom(other.EntityId); - } - if (other.Program != 0) - { - Program = other.Program; - } - if (other.Region != 0) - { - Region = other.Region; - } - if (other.options_ != null) - { - if (options_ == null) - { - options_ = new Bgs.Protocol.Account.V1.AccountFieldOptions(); - } - Options.MergeFrom(other.Options); - } - if (other.tags_ != null) - { - if (tags_ == null) - { - tags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - Tags.MergeFrom(other.Tags); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(entityId_); - break; - } - case 16: - { - Program = input.ReadUInt32(); - break; - } - case 24: - { - Region = input.ReadUInt32(); - break; - } - case 82: - { - if (options_ == null) - { - options_ = new Bgs.Protocol.Account.V1.AccountFieldOptions(); - } - input.ReadMessage(options_); - break; - } - case 90: - { - if (tags_ == null) - { - tags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - input.ReadMessage(tags_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAccountStateResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAccountStateResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[14]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAccountStateResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAccountStateResponse(GetAccountStateResponse other) : this() - { - State = other.state_ != null ? other.State.Clone() : null; - Tags = other.tags_ != null ? other.Tags.Clone() : null; - } - - public GetAccountStateResponse Clone() - { - return new GetAccountStateResponse(this); - } - - /// Field number for the "state" field. - public const int StateFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountState state_; - public Bgs.Protocol.Account.V1.AccountState State - { - get { return state_; } - set - { - state_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 2; - private Bgs.Protocol.Account.V1.AccountFieldTags tags_; - public Bgs.Protocol.Account.V1.AccountFieldTags Tags - { - get { return tags_; } - set - { - tags_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetAccountStateResponse); - } - - public bool Equals(GetAccountStateResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(State, other.State)) return false; - if (!object.Equals(Tags, other.Tags)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (state_ != null) hash ^= State.GetHashCode(); - if (tags_ != null) hash ^= Tags.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (state_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(State); - } - if (tags_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(Tags); - } - } - - public int CalculateSize() - { - int size = 0; - if (state_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); - } - if (tags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); - } - return size; - } - - public void MergeFrom(GetAccountStateResponse other) - { - if (other == null) - { - return; - } - if (other.state_ != null) - { - if (state_ == null) - { - state_ = new Bgs.Protocol.Account.V1.AccountState(); - } - State.MergeFrom(other.State); - } - if (other.tags_ != null) - { - if (tags_ == null) - { - tags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - Tags.MergeFrom(other.Tags); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (state_ == null) - { - state_ = new Bgs.Protocol.Account.V1.AccountState(); - } - input.ReadMessage(state_); - break; - } - case 18: - { - if (tags_ == null) - { - tags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - input.ReadMessage(tags_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetGameAccountStateRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameAccountStateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[15]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetGameAccountStateRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetGameAccountStateRequest(GetGameAccountStateRequest other) : this() - { - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - Options = other.options_ != null ? other.Options.Clone() : null; - Tags = other.tags_ != null ? other.Tags.Clone() : null; - } - - public GetGameAccountStateRequest Clone() - { - return new GetGameAccountStateRequest(this); - } - - /// Field number for the "account_id" field. - public const int AccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId accountId_; - [System.ObsoleteAttribute()] - public Bgs.Protocol.EntityId AccountId - { - get { return accountId_; } - set - { - accountId_ = value; - } - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - /// Field number for the "options" field. - public const int OptionsFieldNumber = 10; - private Bgs.Protocol.Account.V1.GameAccountFieldOptions options_; - public Bgs.Protocol.Account.V1.GameAccountFieldOptions Options - { - get { return options_; } - set - { - options_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 11; - private Bgs.Protocol.Account.V1.GameAccountFieldTags tags_; - public Bgs.Protocol.Account.V1.GameAccountFieldTags Tags - { - get { return tags_; } - set - { - tags_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetGameAccountStateRequest); - } - - public bool Equals(GetGameAccountStateRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(AccountId, other.AccountId)) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (!object.Equals(Options, other.Options)) return false; - if (!object.Equals(Tags, other.Tags)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (accountId_ != null) hash ^= AccountId.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (options_ != null) hash ^= Options.GetHashCode(); - if (tags_ != null) hash ^= Tags.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (accountId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(AccountId); - } - if (gameAccountId_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(GameAccountId); - } - if (options_ != null) - { - output.WriteRawTag(82); - output.WriteMessage(Options); - } - if (tags_ != null) - { - output.WriteRawTag(90); - output.WriteMessage(Tags); - } - } - - public int CalculateSize() - { - int size = 0; - if (accountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); - } - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (options_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); - } - if (tags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); - } - return size; - } - - public void MergeFrom(GetGameAccountStateRequest other) - { - if (other == null) - { - return; - } - if (other.accountId_ != null) - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - AccountId.MergeFrom(other.AccountId); - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.options_ != null) - { - if (options_ == null) - { - options_ = new Bgs.Protocol.Account.V1.GameAccountFieldOptions(); - } - Options.MergeFrom(other.Options); - } - if (other.tags_ != null) - { - if (tags_ == null) - { - tags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - Tags.MergeFrom(other.Tags); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(accountId_); - break; - } - case 18: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 82: - { - if (options_ == null) - { - options_ = new Bgs.Protocol.Account.V1.GameAccountFieldOptions(); - } - input.ReadMessage(options_); - break; - } - case 90: - { - if (tags_ == null) - { - tags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - input.ReadMessage(tags_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetGameAccountStateResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameAccountStateResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[16]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetGameAccountStateResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetGameAccountStateResponse(GetGameAccountStateResponse other) : this() - { - State = other.state_ != null ? other.State.Clone() : null; - Tags = other.tags_ != null ? other.Tags.Clone() : null; - } - - public GetGameAccountStateResponse Clone() - { - return new GetGameAccountStateResponse(this); - } - - /// Field number for the "state" field. - public const int StateFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameAccountState state_; - public Bgs.Protocol.Account.V1.GameAccountState State - { - get { return state_; } - set - { - state_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 2; - private Bgs.Protocol.Account.V1.GameAccountFieldTags tags_; - public Bgs.Protocol.Account.V1.GameAccountFieldTags Tags - { - get { return tags_; } - set - { - tags_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetGameAccountStateResponse); - } - - public bool Equals(GetGameAccountStateResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(State, other.State)) return false; - if (!object.Equals(Tags, other.Tags)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (state_ != null) hash ^= State.GetHashCode(); - if (tags_ != null) hash ^= Tags.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (state_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(State); - } - if (tags_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(Tags); - } - } - - public int CalculateSize() - { - int size = 0; - if (state_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); - } - if (tags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); - } - return size; - } - - public void MergeFrom(GetGameAccountStateResponse other) - { - if (other == null) - { - return; - } - if (other.state_ != null) - { - if (state_ == null) - { - state_ = new Bgs.Protocol.Account.V1.GameAccountState(); - } - State.MergeFrom(other.State); - } - if (other.tags_ != null) - { - if (tags_ == null) - { - tags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - Tags.MergeFrom(other.Tags); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (state_ == null) - { - state_ = new Bgs.Protocol.Account.V1.GameAccountState(); - } - input.ReadMessage(state_); - break; - } - case 18: - { - if (tags_ == null) - { - tags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - input.ReadMessage(tags_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetLicensesRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLicensesRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[17]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetLicensesRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetLicensesRequest(GetLicensesRequest other) : this() - { - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; - fetchAccountLicenses_ = other.fetchAccountLicenses_; - fetchGameAccountLicenses_ = other.fetchGameAccountLicenses_; - fetchDynamicAccountLicenses_ = other.fetchDynamicAccountLicenses_; - program_ = other.program_; - excludeUnknownProgram_ = other.excludeUnknownProgram_; - } - - public GetLicensesRequest Clone() - { - return new GetLicensesRequest(this); - } - - /// Field number for the "target_id" field. - public const int TargetIdFieldNumber = 1; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId - { - get { return targetId_; } - set - { - targetId_ = value; - } - } - - /// Field number for the "fetch_account_licenses" field. - public const int FetchAccountLicensesFieldNumber = 2; - private bool fetchAccountLicenses_; - public bool FetchAccountLicenses - { - get { return fetchAccountLicenses_; } - set - { - fetchAccountLicenses_ = value; - } - } - - /// Field number for the "fetch_game_account_licenses" field. - public const int FetchGameAccountLicensesFieldNumber = 3; - private bool fetchGameAccountLicenses_; - public bool FetchGameAccountLicenses - { - get { return fetchGameAccountLicenses_; } - set - { - fetchGameAccountLicenses_ = value; - } - } - - /// Field number for the "fetch_dynamic_account_licenses" field. - public const int FetchDynamicAccountLicensesFieldNumber = 4; - private bool fetchDynamicAccountLicenses_; - public bool FetchDynamicAccountLicenses - { - get { return fetchDynamicAccountLicenses_; } - set - { - fetchDynamicAccountLicenses_ = value; - } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 5; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "exclude_unknown_program" field. - public const int ExcludeUnknownProgramFieldNumber = 6; - private bool excludeUnknownProgram_; - public bool ExcludeUnknownProgram - { - get { return excludeUnknownProgram_; } - set - { - excludeUnknownProgram_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetLicensesRequest); - } - - public bool Equals(GetLicensesRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(TargetId, other.TargetId)) return false; - if (FetchAccountLicenses != other.FetchAccountLicenses) return false; - if (FetchGameAccountLicenses != other.FetchGameAccountLicenses) return false; - if (FetchDynamicAccountLicenses != other.FetchDynamicAccountLicenses) return false; - if (Program != other.Program) return false; - if (ExcludeUnknownProgram != other.ExcludeUnknownProgram) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (targetId_ != null) hash ^= TargetId.GetHashCode(); - if (FetchAccountLicenses != false) hash ^= FetchAccountLicenses.GetHashCode(); - if (FetchGameAccountLicenses != false) hash ^= FetchGameAccountLicenses.GetHashCode(); - if (FetchDynamicAccountLicenses != false) hash ^= FetchDynamicAccountLicenses.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (ExcludeUnknownProgram != false) hash ^= ExcludeUnknownProgram.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (targetId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(TargetId); - } - if (FetchAccountLicenses != false) - { - output.WriteRawTag(16); - output.WriteBool(FetchAccountLicenses); - } - if (FetchGameAccountLicenses != false) - { - output.WriteRawTag(24); - output.WriteBool(FetchGameAccountLicenses); - } - if (FetchDynamicAccountLicenses != false) - { - output.WriteRawTag(32); - output.WriteBool(FetchDynamicAccountLicenses); - } - if (Program != 0) - { - output.WriteRawTag(45); - output.WriteFixed32(Program); - } - if (ExcludeUnknownProgram != false) - { - output.WriteRawTag(48); - output.WriteBool(ExcludeUnknownProgram); - } - } - - public int CalculateSize() - { - int size = 0; - if (targetId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); - } - if (FetchAccountLicenses != false) - { - size += 1 + 1; - } - if (FetchGameAccountLicenses != false) - { - size += 1 + 1; - } - if (FetchDynamicAccountLicenses != false) - { - size += 1 + 1; - } - if (Program != 0) - { - size += 1 + 4; - } - if (ExcludeUnknownProgram != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(GetLicensesRequest other) - { - if (other == null) - { - return; - } - if (other.targetId_ != null) - { - if (targetId_ == null) - { - targetId_ = new Bgs.Protocol.EntityId(); - } - TargetId.MergeFrom(other.TargetId); - } - if (other.FetchAccountLicenses != false) - { - FetchAccountLicenses = other.FetchAccountLicenses; - } - if (other.FetchGameAccountLicenses != false) - { - FetchGameAccountLicenses = other.FetchGameAccountLicenses; - } - if (other.FetchDynamicAccountLicenses != false) - { - FetchDynamicAccountLicenses = other.FetchDynamicAccountLicenses; - } - if (other.Program != 0) - { - Program = other.Program; - } - if (other.ExcludeUnknownProgram != false) - { - ExcludeUnknownProgram = other.ExcludeUnknownProgram; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (targetId_ == null) - { - targetId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(targetId_); - break; - } - case 16: - { - FetchAccountLicenses = input.ReadBool(); - break; - } - case 24: - { - FetchGameAccountLicenses = input.ReadBool(); - break; - } - case 32: - { - FetchDynamicAccountLicenses = input.ReadBool(); - break; - } - case 45: - { - Program = input.ReadFixed32(); - break; - } - case 48: - { - ExcludeUnknownProgram = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetLicensesResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLicensesResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[18]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetLicensesResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetLicensesResponse(GetLicensesResponse other) : this() - { - licenses_ = other.licenses_.Clone(); - } - - public GetLicensesResponse Clone() - { - return new GetLicensesResponse(this); - } - - /// Field number for the "licenses" field. - public const int LicensesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_licenses_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.AccountLicense.Parser); - private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); - public pbc::RepeatedField Licenses - { - get { return licenses_; } - } - - public override bool Equals(object other) - { - return Equals(other as GetLicensesResponse); - } - - public bool Equals(GetLicensesResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!licenses_.Equals(other.licenses_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= licenses_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - licenses_.WriteTo(output, _repeated_licenses_codec); - } - - public int CalculateSize() - { - int size = 0; - size += licenses_.CalculateSize(_repeated_licenses_codec); - return size; - } - - public void MergeFrom(GetLicensesResponse other) - { - if (other == null) - { - return; - } - licenses_.Add(other.licenses_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - licenses_.AddEntriesFrom(input, _repeated_licenses_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetGameSessionInfoRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameSessionInfoRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[19]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetGameSessionInfoRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetGameSessionInfoRequest(GetGameSessionInfoRequest other) : this() - { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; - } - - public GetGameSessionInfoRequest Clone() - { - return new GetGameSessionInfoRequest(this); - } - - /// Field number for the "entity_id" field. - public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId - { - get { return entityId_; } - set - { - entityId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetGameSessionInfoRequest); - } - - public bool Equals(GetGameSessionInfoRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(EntityId, other.EntityId)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (entityId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(EntityId); - } - } - - public int CalculateSize() - { - int size = 0; - if (entityId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); - } - return size; - } - - public void MergeFrom(GetGameSessionInfoRequest other) - { - if (other == null) - { - return; - } - if (other.entityId_ != null) - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - EntityId.MergeFrom(other.EntityId); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(entityId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetGameSessionInfoResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameSessionInfoResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[20]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetGameSessionInfoResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetGameSessionInfoResponse(GetGameSessionInfoResponse other) : this() - { - SessionInfo = other.sessionInfo_ != null ? other.SessionInfo.Clone() : null; - } - - public GetGameSessionInfoResponse Clone() - { - return new GetGameSessionInfoResponse(this); - } - - /// Field number for the "session_info" field. - public const int SessionInfoFieldNumber = 2; - private Bgs.Protocol.Account.V1.GameSessionInfo sessionInfo_; - public Bgs.Protocol.Account.V1.GameSessionInfo SessionInfo - { - get { return sessionInfo_; } - set - { - sessionInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetGameSessionInfoResponse); - } - - public bool Equals(GetGameSessionInfoResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(SessionInfo, other.SessionInfo)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (sessionInfo_ != null) hash ^= SessionInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (sessionInfo_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(SessionInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (sessionInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SessionInfo); - } - return size; - } - - public void MergeFrom(GetGameSessionInfoResponse other) - { - if (other == null) - { - return; - } - if (other.sessionInfo_ != null) - { - if (sessionInfo_ == null) - { - sessionInfo_ = new Bgs.Protocol.Account.V1.GameSessionInfo(); - } - SessionInfo.MergeFrom(other.SessionInfo); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 18: - { - if (sessionInfo_ == null) - { - sessionInfo_ = new Bgs.Protocol.Account.V1.GameSessionInfo(); - } - input.ReadMessage(sessionInfo_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetGameTimeRemainingInfoRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameTimeRemainingInfoRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[21]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetGameTimeRemainingInfoRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetGameTimeRemainingInfoRequest(GetGameTimeRemainingInfoRequest other) : this() - { - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; - } - - public GetGameTimeRemainingInfoRequest Clone() - { - return new GetGameTimeRemainingInfoRequest(this); - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - /// Field number for the "account_id" field. - public const int AccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId - { - get { return accountId_; } - set - { - accountId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetGameTimeRemainingInfoRequest); - } - - public bool Equals(GetGameTimeRemainingInfoRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (!object.Equals(AccountId, other.AccountId)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccountId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccountId); - } - if (accountId_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(AccountId); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (accountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); - } - return size; - } - - public void MergeFrom(GetGameTimeRemainingInfoRequest other) - { - if (other == null) - { - return; - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.accountId_ != null) - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - AccountId.MergeFrom(other.AccountId); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 18: - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(accountId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetGameTimeRemainingInfoResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameTimeRemainingInfoResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[22]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetGameTimeRemainingInfoResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetGameTimeRemainingInfoResponse(GetGameTimeRemainingInfoResponse other) : this() - { - GameTimeRemainingInfo = other.gameTimeRemainingInfo_ != null ? other.GameTimeRemainingInfo.Clone() : null; - } - - public GetGameTimeRemainingInfoResponse Clone() - { - return new GetGameTimeRemainingInfoResponse(this); - } - - /// Field number for the "game_time_remaining_info" field. - public const int GameTimeRemainingInfoFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameTimeRemainingInfo gameTimeRemainingInfo_; - public Bgs.Protocol.Account.V1.GameTimeRemainingInfo GameTimeRemainingInfo - { - get { return gameTimeRemainingInfo_; } - set - { - gameTimeRemainingInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetGameTimeRemainingInfoResponse); - } - - public bool Equals(GetGameTimeRemainingInfoResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameTimeRemainingInfo, other.GameTimeRemainingInfo)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameTimeRemainingInfo_ != null) hash ^= GameTimeRemainingInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameTimeRemainingInfo_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameTimeRemainingInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameTimeRemainingInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameTimeRemainingInfo); - } - return size; - } - - public void MergeFrom(GetGameTimeRemainingInfoResponse other) - { - if (other == null) - { - return; - } - if (other.gameTimeRemainingInfo_ != null) - { - if (gameTimeRemainingInfo_ == null) - { - gameTimeRemainingInfo_ = new Bgs.Protocol.Account.V1.GameTimeRemainingInfo(); - } - GameTimeRemainingInfo.MergeFrom(other.GameTimeRemainingInfo); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameTimeRemainingInfo_ == null) - { - gameTimeRemainingInfo_ = new Bgs.Protocol.Account.V1.GameTimeRemainingInfo(); - } - input.ReadMessage(gameTimeRemainingInfo_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetCAISInfoRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCAISInfoRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[23]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetCAISInfoRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetCAISInfoRequest(GetCAISInfoRequest other) : this() - { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; - } - - public GetCAISInfoRequest Clone() - { - return new GetCAISInfoRequest(this); - } - - /// Field number for the "entity_id" field. - public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId - { - get { return entityId_; } - set - { - entityId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetCAISInfoRequest); - } - - public bool Equals(GetCAISInfoRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(EntityId, other.EntityId)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (entityId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(EntityId); - } - } - - public int CalculateSize() - { - int size = 0; - if (entityId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); - } - return size; - } - - public void MergeFrom(GetCAISInfoRequest other) - { - if (other == null) - { - return; - } - if (other.entityId_ != null) - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - EntityId.MergeFrom(other.EntityId); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(entityId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetCAISInfoResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCAISInfoResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[24]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetCAISInfoResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetCAISInfoResponse(GetCAISInfoResponse other) : this() - { - CaisInfo = other.caisInfo_ != null ? other.CaisInfo.Clone() : null; - } - - public GetCAISInfoResponse Clone() - { - return new GetCAISInfoResponse(this); - } - - /// Field number for the "cais_info" field. - public const int CaisInfoFieldNumber = 1; - private Bgs.Protocol.Account.V1.CAIS caisInfo_; - public Bgs.Protocol.Account.V1.CAIS CaisInfo - { - get { return caisInfo_; } - set - { - caisInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetCAISInfoResponse); - } - - public bool Equals(GetCAISInfoResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(CaisInfo, other.CaisInfo)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (caisInfo_ != null) hash ^= CaisInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (caisInfo_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(CaisInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (caisInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaisInfo); - } - return size; - } - - public void MergeFrom(GetCAISInfoResponse other) - { - if (other == null) - { - return; - } - if (other.caisInfo_ != null) - { - if (caisInfo_ == null) - { - caisInfo_ = new Bgs.Protocol.Account.V1.CAIS(); - } - CaisInfo.MergeFrom(other.CaisInfo); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (caisInfo_ == null) - { - caisInfo_ = new Bgs.Protocol.Account.V1.CAIS(); - } - input.ReadMessage(caisInfo_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ForwardCacheExpireRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForwardCacheExpireRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[25]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ForwardCacheExpireRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ForwardCacheExpireRequest(ForwardCacheExpireRequest other) : this() - { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; - } - - public ForwardCacheExpireRequest Clone() - { - return new ForwardCacheExpireRequest(this); - } - - /// Field number for the "entity_id" field. - public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId - { - get { return entityId_; } - set - { - entityId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ForwardCacheExpireRequest); - } - - public bool Equals(ForwardCacheExpireRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(EntityId, other.EntityId)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (entityId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(EntityId); - } - } - - public int CalculateSize() - { - int size = 0; - if (entityId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); - } - return size; - } - - public void MergeFrom(ForwardCacheExpireRequest other) - { - if (other == null) - { - return; - } - if (other.entityId_ != null) - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - EntityId.MergeFrom(other.EntityId); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(entityId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAuthorizedDataRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAuthorizedDataRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[26]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAuthorizedDataRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAuthorizedDataRequest(GetAuthorizedDataRequest other) : this() - { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; - tag_ = other.tag_.Clone(); - privilegedNetwork_ = other.privilegedNetwork_; - } - - public GetAuthorizedDataRequest Clone() - { - return new GetAuthorizedDataRequest(this); - } - - /// Field number for the "entity_id" field. - public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId - { - get { return entityId_; } - set - { - entityId_ = value; - } - } - - /// Field number for the "tag" field. - public const int TagFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_tag_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField tag_ = new pbc::RepeatedField(); - public pbc::RepeatedField Tag - { - get { return tag_; } - } - - /// Field number for the "privileged_network" field. - public const int PrivilegedNetworkFieldNumber = 3; - private bool privilegedNetwork_; - public bool PrivilegedNetwork - { - get { return privilegedNetwork_; } - set - { - privilegedNetwork_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetAuthorizedDataRequest); - } - - public bool Equals(GetAuthorizedDataRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(EntityId, other.EntityId)) return false; - if (!tag_.Equals(other.tag_)) return false; - if (PrivilegedNetwork != other.PrivilegedNetwork) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - hash ^= tag_.GetHashCode(); - if (PrivilegedNetwork != false) hash ^= PrivilegedNetwork.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (entityId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(EntityId); - } - tag_.WriteTo(output, _repeated_tag_codec); - if (PrivilegedNetwork != false) - { - output.WriteRawTag(24); - output.WriteBool(PrivilegedNetwork); - } - } - - public int CalculateSize() - { - int size = 0; - if (entityId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); - } - size += tag_.CalculateSize(_repeated_tag_codec); - if (PrivilegedNetwork != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(GetAuthorizedDataRequest other) - { - if (other == null) - { - return; - } - if (other.entityId_ != null) - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - EntityId.MergeFrom(other.EntityId); - } - tag_.Add(other.tag_); - if (other.PrivilegedNetwork != false) - { - PrivilegedNetwork = other.PrivilegedNetwork; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(entityId_); - break; - } - case 18: - { - tag_.AddEntriesFrom(input, _repeated_tag_codec); - break; - } - case 24: - { - PrivilegedNetwork = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAuthorizedDataResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAuthorizedDataResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[27]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAuthorizedDataResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAuthorizedDataResponse(GetAuthorizedDataResponse other) : this() - { - data_ = other.data_.Clone(); - } - - public GetAuthorizedDataResponse Clone() - { - return new GetAuthorizedDataResponse(this); - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_data_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.AuthorizedData.Parser); - private readonly pbc::RepeatedField data_ = new pbc::RepeatedField(); - public pbc::RepeatedField Data - { - get { return data_; } - } - - public override bool Equals(object other) - { - return Equals(other as GetAuthorizedDataResponse); - } - - public bool Equals(GetAuthorizedDataResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!data_.Equals(other.data_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= data_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - data_.WriteTo(output, _repeated_data_codec); - } - - public int CalculateSize() - { - int size = 0; - size += data_.CalculateSize(_repeated_data_codec); - return size; - } - - public void MergeFrom(GetAuthorizedDataResponse other) - { - if (other == null) - { - return; - } - data_.Add(other.data_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - data_.AddEntriesFrom(input, _repeated_data_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountStateNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountStateNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[28]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountStateNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountStateNotification(AccountStateNotification other) : this() - { - AccountState = other.accountState_ != null ? other.AccountState.Clone() : null; - subscriberId_ = other.subscriberId_; - AccountTags = other.accountTags_ != null ? other.AccountTags.Clone() : null; - subscriptionCompleted_ = other.subscriptionCompleted_; - } - - public AccountStateNotification Clone() - { - return new AccountStateNotification(this); - } - - /// Field number for the "account_state" field. - public const int AccountStateFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountState accountState_; - public Bgs.Protocol.Account.V1.AccountState AccountState - { - get { return accountState_; } - set - { - accountState_ = value; - } - } - - /// Field number for the "subscriber_id" field. - public const int SubscriberIdFieldNumber = 2; - private ulong subscriberId_; - public ulong SubscriberId - { - get { return subscriberId_; } - set - { - subscriberId_ = value; - } - } - - /// Field number for the "account_tags" field. - public const int AccountTagsFieldNumber = 3; - private Bgs.Protocol.Account.V1.AccountFieldTags accountTags_; - public Bgs.Protocol.Account.V1.AccountFieldTags AccountTags - { - get { return accountTags_; } - set - { - accountTags_ = value; - } - } - - /// Field number for the "subscription_completed" field. - public const int SubscriptionCompletedFieldNumber = 4; - private bool subscriptionCompleted_; - public bool SubscriptionCompleted - { - get { return subscriptionCompleted_; } - set - { - subscriptionCompleted_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountStateNotification); - } - - public bool Equals(AccountStateNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(AccountState, other.AccountState)) return false; - if (SubscriberId != other.SubscriberId) return false; - if (!object.Equals(AccountTags, other.AccountTags)) return false; - if (SubscriptionCompleted != other.SubscriptionCompleted) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (accountState_ != null) hash ^= AccountState.GetHashCode(); - if (SubscriberId != 0UL) hash ^= SubscriberId.GetHashCode(); - if (accountTags_ != null) hash ^= AccountTags.GetHashCode(); - if (SubscriptionCompleted != false) hash ^= SubscriptionCompleted.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (accountState_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(AccountState); - } - if (SubscriberId != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(SubscriberId); - } - if (accountTags_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(AccountTags); - } - if (SubscriptionCompleted != false) - { - output.WriteRawTag(32); - output.WriteBool(SubscriptionCompleted); - } - } - - public int CalculateSize() - { - int size = 0; - if (accountState_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountState); - } - if (SubscriberId != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriberId); - } - if (accountTags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountTags); - } - if (SubscriptionCompleted != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(AccountStateNotification other) - { - if (other == null) - { - return; - } - if (other.accountState_ != null) - { - if (accountState_ == null) - { - accountState_ = new Bgs.Protocol.Account.V1.AccountState(); - } - AccountState.MergeFrom(other.AccountState); - } - if (other.SubscriberId != 0UL) - { - SubscriberId = other.SubscriberId; - } - if (other.accountTags_ != null) - { - if (accountTags_ == null) - { - accountTags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - AccountTags.MergeFrom(other.AccountTags); - } - if (other.SubscriptionCompleted != false) - { - SubscriptionCompleted = other.SubscriptionCompleted; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (accountState_ == null) - { - accountState_ = new Bgs.Protocol.Account.V1.AccountState(); - } - input.ReadMessage(accountState_); - break; - } - case 16: - { - SubscriberId = input.ReadUInt64(); - break; - } - case 26: - { - if (accountTags_ == null) - { - accountTags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - input.ReadMessage(accountTags_); - break; - } - case 32: - { - SubscriptionCompleted = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountStateNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountStateNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[29]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountStateNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountStateNotification(GameAccountStateNotification other) : this() - { - GameAccountState = other.gameAccountState_ != null ? other.GameAccountState.Clone() : null; - subscriberId_ = other.subscriberId_; - GameAccountTags = other.gameAccountTags_ != null ? other.GameAccountTags.Clone() : null; - subscriptionCompleted_ = other.subscriptionCompleted_; - } - - public GameAccountStateNotification Clone() - { - return new GameAccountStateNotification(this); - } - - /// Field number for the "game_account_state" field. - public const int GameAccountStateFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameAccountState gameAccountState_; - public Bgs.Protocol.Account.V1.GameAccountState GameAccountState - { - get { return gameAccountState_; } - set - { - gameAccountState_ = value; - } - } - - /// Field number for the "subscriber_id" field. - public const int SubscriberIdFieldNumber = 2; - private ulong subscriberId_; - public ulong SubscriberId - { - get { return subscriberId_; } - set - { - subscriberId_ = value; - } - } - - /// Field number for the "game_account_tags" field. - public const int GameAccountTagsFieldNumber = 3; - private Bgs.Protocol.Account.V1.GameAccountFieldTags gameAccountTags_; - public Bgs.Protocol.Account.V1.GameAccountFieldTags GameAccountTags - { - get { return gameAccountTags_; } - set - { - gameAccountTags_ = value; - } - } - - /// Field number for the "subscription_completed" field. - public const int SubscriptionCompletedFieldNumber = 4; - private bool subscriptionCompleted_; - public bool SubscriptionCompleted - { - get { return subscriptionCompleted_; } - set - { - subscriptionCompleted_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountStateNotification); - } - - public bool Equals(GameAccountStateNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccountState, other.GameAccountState)) return false; - if (SubscriberId != other.SubscriberId) return false; - if (!object.Equals(GameAccountTags, other.GameAccountTags)) return false; - if (SubscriptionCompleted != other.SubscriptionCompleted) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccountState_ != null) hash ^= GameAccountState.GetHashCode(); - if (SubscriberId != 0UL) hash ^= SubscriberId.GetHashCode(); - if (gameAccountTags_ != null) hash ^= GameAccountTags.GetHashCode(); - if (SubscriptionCompleted != false) hash ^= SubscriptionCompleted.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccountState_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccountState); - } - if (SubscriberId != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(SubscriberId); - } - if (gameAccountTags_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(GameAccountTags); - } - if (SubscriptionCompleted != false) - { - output.WriteRawTag(32); - output.WriteBool(SubscriptionCompleted); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccountState_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountState); - } - if (SubscriberId != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriberId); - } - if (gameAccountTags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountTags); - } - if (SubscriptionCompleted != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(GameAccountStateNotification other) - { - if (other == null) - { - return; - } - if (other.gameAccountState_ != null) - { - if (gameAccountState_ == null) - { - gameAccountState_ = new Bgs.Protocol.Account.V1.GameAccountState(); - } - GameAccountState.MergeFrom(other.GameAccountState); - } - if (other.SubscriberId != 0UL) - { - SubscriberId = other.SubscriberId; - } - if (other.gameAccountTags_ != null) - { - if (gameAccountTags_ == null) - { - gameAccountTags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - GameAccountTags.MergeFrom(other.GameAccountTags); - } - if (other.SubscriptionCompleted != false) - { - SubscriptionCompleted = other.SubscriptionCompleted; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccountState_ == null) - { - gameAccountState_ = new Bgs.Protocol.Account.V1.GameAccountState(); - } - input.ReadMessage(gameAccountState_); - break; - } - case 16: - { - SubscriberId = input.ReadUInt64(); - break; - } - case 26: - { - if (gameAccountTags_ == null) - { - gameAccountTags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - input.ReadMessage(gameAccountTags_); - break; - } - case 32: - { - SubscriptionCompleted = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[30]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountNotification(GameAccountNotification other) : this() - { - gameAccounts_ = other.gameAccounts_.Clone(); - subscriberId_ = other.subscriberId_; - AccountTags = other.accountTags_ != null ? other.AccountTags.Clone() : null; - } - - public GameAccountNotification Clone() - { - return new GameAccountNotification(this); - } - - /// Field number for the "game_accounts" field. - public const int GameAccountsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_gameAccounts_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.GameAccountList.Parser); - private readonly pbc::RepeatedField gameAccounts_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameAccounts - { - get { return gameAccounts_; } - } - - /// Field number for the "subscriber_id" field. - public const int SubscriberIdFieldNumber = 2; - private ulong subscriberId_; - public ulong SubscriberId - { - get { return subscriberId_; } - set - { - subscriberId_ = value; - } - } - - /// Field number for the "account_tags" field. - public const int AccountTagsFieldNumber = 3; - private Bgs.Protocol.Account.V1.AccountFieldTags accountTags_; - public Bgs.Protocol.Account.V1.AccountFieldTags AccountTags - { - get { return accountTags_; } - set - { - accountTags_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountNotification); - } - - public bool Equals(GameAccountNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!gameAccounts_.Equals(other.gameAccounts_)) return false; - if (SubscriberId != other.SubscriberId) return false; - if (!object.Equals(AccountTags, other.AccountTags)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= gameAccounts_.GetHashCode(); - if (SubscriberId != 0UL) hash ^= SubscriberId.GetHashCode(); - if (accountTags_ != null) hash ^= AccountTags.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - gameAccounts_.WriteTo(output, _repeated_gameAccounts_codec); - if (SubscriberId != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(SubscriberId); - } - if (accountTags_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(AccountTags); - } - } - - public int CalculateSize() - { - int size = 0; - size += gameAccounts_.CalculateSize(_repeated_gameAccounts_codec); - if (SubscriberId != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriberId); - } - if (accountTags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountTags); - } - return size; - } - - public void MergeFrom(GameAccountNotification other) - { - if (other == null) - { - return; - } - gameAccounts_.Add(other.gameAccounts_); - if (other.SubscriberId != 0UL) - { - SubscriberId = other.SubscriberId; - } - if (other.accountTags_ != null) - { - if (accountTags_ == null) - { - accountTags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - AccountTags.MergeFrom(other.AccountTags); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - gameAccounts_.AddEntriesFrom(input, _repeated_gameAccounts_codec); - break; - } - case 16: - { - SubscriberId = input.ReadUInt64(); - break; - } - case 26: - { - if (accountTags_ == null) - { - accountTags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - input.ReadMessage(accountTags_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountSessionNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountSessionNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[31]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountSessionNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountSessionNotification(GameAccountSessionNotification other) : this() - { - GameAccount = other.gameAccount_ != null ? other.GameAccount.Clone() : null; - SessionInfo = other.sessionInfo_ != null ? other.SessionInfo.Clone() : null; - } - - public GameAccountSessionNotification Clone() - { - return new GameAccountSessionNotification(this); - } - - /// Field number for the "game_account" field. - public const int GameAccountFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; - public Bgs.Protocol.Account.V1.GameAccountHandle GameAccount - { - get { return gameAccount_; } - set - { - gameAccount_ = value; - } - } - - /// Field number for the "session_info" field. - public const int SessionInfoFieldNumber = 2; - private Bgs.Protocol.Account.V1.GameSessionUpdateInfo sessionInfo_; - public Bgs.Protocol.Account.V1.GameSessionUpdateInfo SessionInfo - { - get { return sessionInfo_; } - set - { - sessionInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountSessionNotification); - } - - public bool Equals(GameAccountSessionNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccount, other.GameAccount)) return false; - if (!object.Equals(SessionInfo, other.SessionInfo)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccount_ != null) hash ^= GameAccount.GetHashCode(); - if (sessionInfo_ != null) hash ^= SessionInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccount_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccount); - } - if (sessionInfo_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(SessionInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccount_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); - } - if (sessionInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SessionInfo); - } - return size; - } - - public void MergeFrom(GameAccountSessionNotification other) - { - if (other == null) - { - return; - } - if (other.gameAccount_ != null) - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - GameAccount.MergeFrom(other.GameAccount); - } - if (other.sessionInfo_ != null) - { - if (sessionInfo_ == null) - { - sessionInfo_ = new Bgs.Protocol.Account.V1.GameSessionUpdateInfo(); - } - SessionInfo.MergeFrom(other.SessionInfo); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - input.ReadMessage(gameAccount_); - break; - } - case 18: - { - if (sessionInfo_ == null) - { - sessionInfo_ = new Bgs.Protocol.Account.V1.GameSessionUpdateInfo(); - } - input.ReadMessage(sessionInfo_); - break; - } - } - } - } - - } - #endregion + + } + #region Messages + public sealed partial class ResolveAccountRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveAccountRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResolveAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResolveAccountRequest(ResolveAccountRequest other) : this() { + _hasBits0 = other._hasBits0; + ref_ = other.HasRef ? other.ref_.Clone() : null; + fetchId_ = other.fetchId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResolveAccountRequest Clone() { + return new ResolveAccountRequest(this); + } + + /// Field number for the "ref" field. + public const int RefFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountReference ref_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountReference Ref { + get { return ref_; } + set { + ref_ = value; + } + } + /// Gets whether the ref field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRef { + get { return ref_ != null; } + } + /// Clears the value of the ref field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRef() { + ref_ = null; + } + + /// Field number for the "fetch_id" field. + public const int FetchIdFieldNumber = 12; + private readonly static bool FetchIdDefaultValue = false; + + private bool fetchId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FetchId { + get { if ((_hasBits0 & 1) != 0) { return fetchId_; } else { return FetchIdDefaultValue; } } + set { + _hasBits0 |= 1; + fetchId_ = value; + } + } + /// Gets whether the "fetch_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFetchId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "fetch_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFetchId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ResolveAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ResolveAccountRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Ref, other.Ref)) return false; + if (FetchId != other.FetchId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasRef) hash ^= Ref.GetHashCode(); + if (HasFetchId) hash ^= FetchId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasRef) { + output.WriteRawTag(10); + output.WriteMessage(Ref); + } + if (HasFetchId) { + output.WriteRawTag(96); + output.WriteBool(FetchId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasRef) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ref); + } + if (HasFetchId) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ResolveAccountRequest other) { + if (other == null) { + return; + } + if (other.HasRef) { + if (!HasRef) { + Ref = new global::Bgs.Protocol.Account.V1.AccountReference(); + } + Ref.MergeFrom(other.Ref); + } + if (other.HasFetchId) { + FetchId = other.FetchId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasRef) { + Ref = new global::Bgs.Protocol.Account.V1.AccountReference(); + } + input.ReadMessage(Ref); + break; + } + case 96: { + FetchId = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class ResolveAccountResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveAccountResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResolveAccountResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResolveAccountResponse(ResolveAccountResponse other) : this() { + id_ = other.HasId ? other.id_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ResolveAccountResponse Clone() { + return new ResolveAccountResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 12; + private global::Bgs.Protocol.Account.V1.AccountId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ResolveAccountResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ResolveAccountResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(98); + output.WriteMessage(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ResolveAccountResponse other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.Account.V1.AccountId(); + } + Id.MergeFrom(other.Id); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: { + if (!HasId) { + Id = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(Id); + break; + } + } + } + } + + } + + public sealed partial class GameAccountFlagUpdateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountFlagUpdateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFlagUpdateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFlagUpdateRequest(GameAccountFlagUpdateRequest other) : this() { + _hasBits0 = other._hasBits0; + gameAccount_ = other.HasGameAccount ? other.gameAccount_.Clone() : null; + flag_ = other.flag_; + active_ = other.active_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFlagUpdateRequest Clone() { + return new GameAccountFlagUpdateRequest(this); + } + + /// Field number for the "game_account" field. + public const int GameAccountFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle GameAccount { + get { return gameAccount_; } + set { + gameAccount_ = value; + } + } + /// Gets whether the game_account field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccount { + get { return gameAccount_ != null; } + } + /// Clears the value of the game_account field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccount() { + gameAccount_ = null; + } + + /// Field number for the "flag" field. + public const int FlagFieldNumber = 2; + private readonly static ulong FlagDefaultValue = 0UL; + + private ulong flag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Flag { + get { if ((_hasBits0 & 1) != 0) { return flag_; } else { return FlagDefaultValue; } } + set { + _hasBits0 |= 1; + flag_ = value; + } + } + /// Gets whether the "flag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFlag { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "flag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFlag() { + _hasBits0 &= ~1; + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 3; + private readonly static bool ActiveDefaultValue = false; + + private bool active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Active { + get { if ((_hasBits0 & 2) != 0) { return active_; } else { return ActiveDefaultValue; } } + set { + _hasBits0 |= 2; + active_ = value; + } + } + /// Gets whether the "active" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasActive { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "active" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearActive() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountFlagUpdateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountFlagUpdateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccount, other.GameAccount)) return false; + if (Flag != other.Flag) return false; + if (Active != other.Active) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccount) hash ^= GameAccount.GetHashCode(); + if (HasFlag) hash ^= Flag.GetHashCode(); + if (HasActive) hash ^= Active.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccount) { + output.WriteRawTag(10); + output.WriteMessage(GameAccount); + } + if (HasFlag) { + output.WriteRawTag(16); + output.WriteUInt64(Flag); + } + if (HasActive) { + output.WriteRawTag(24); + output.WriteBool(Active); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); + } + if (HasFlag) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Flag); + } + if (HasActive) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountFlagUpdateRequest other) { + if (other == null) { + return; + } + if (other.HasGameAccount) { + if (!HasGameAccount) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + GameAccount.MergeFrom(other.GameAccount); + } + if (other.HasFlag) { + Flag = other.Flag; + } + if (other.HasActive) { + Active = other.Active; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameAccount) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(GameAccount); + break; + } + case 16: { + Flag = input.ReadUInt64(); + break; + } + case 24: { + Active = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class SubscriptionUpdateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriptionUpdateRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriptionUpdateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriptionUpdateRequest(SubscriptionUpdateRequest other) : this() { + ref_ = other.ref_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriptionUpdateRequest Clone() { + return new SubscriptionUpdateRequest(this); + } + + /// Field number for the "ref" field. + public const int RefFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_ref_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Account.V1.SubscriberReference.Parser); + private readonly pbc::RepeatedField ref_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Ref { + get { return ref_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscriptionUpdateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscriptionUpdateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!ref_.Equals(other.ref_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ref_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + ref_.WriteTo(output, _repeated_ref_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += ref_.CalculateSize(_repeated_ref_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscriptionUpdateRequest other) { + if (other == null) { + return; + } + ref_.Add(other.ref_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + ref_.AddEntriesFrom(input, _repeated_ref_codec); + break; + } + } + } + } + + } + + public sealed partial class SubscriptionUpdateResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriptionUpdateResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriptionUpdateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriptionUpdateResponse(SubscriptionUpdateResponse other) : this() { + ref_ = other.ref_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriptionUpdateResponse Clone() { + return new SubscriptionUpdateResponse(this); + } + + /// Field number for the "ref" field. + public const int RefFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_ref_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Account.V1.SubscriberReference.Parser); + private readonly pbc::RepeatedField ref_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Ref { + get { return ref_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscriptionUpdateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscriptionUpdateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!ref_.Equals(other.ref_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ref_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + ref_.WriteTo(output, _repeated_ref_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += ref_.CalculateSize(_repeated_ref_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscriptionUpdateResponse other) { + if (other == null) { + return; + } + ref_.Add(other.ref_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ref_.AddEntriesFrom(input, _repeated_ref_codec); + break; + } + } + } + } + + } + + public sealed partial class IsIgrAddressRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IsIgrAddressRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IsIgrAddressRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IsIgrAddressRequest(IsIgrAddressRequest other) : this() { + _hasBits0 = other._hasBits0; + clientAddress_ = other.clientAddress_; + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IsIgrAddressRequest Clone() { + return new IsIgrAddressRequest(this); + } + + /// Field number for the "client_address" field. + public const int ClientAddressFieldNumber = 1; + private readonly static string ClientAddressDefaultValue = ""; + + private string clientAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ClientAddress { + get { return clientAddress_ ?? ClientAddressDefaultValue; } + set { + clientAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "client_address" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientAddress { + get { return clientAddress_ != null; } + } + /// Clears the value of the "client_address" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientAddress() { + clientAddress_ = null; + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 2; + private readonly static uint RegionDefaultValue = 0; + + private uint region_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Region { + get { if ((_hasBits0 & 1) != 0) { return region_; } else { return RegionDefaultValue; } } + set { + _hasBits0 |= 1; + region_ = value; + } + } + /// Gets whether the "region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegion { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegion() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IsIgrAddressRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(IsIgrAddressRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientAddress != other.ClientAddress) return false; + if (Region != other.Region) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClientAddress) hash ^= ClientAddress.GetHashCode(); + if (HasRegion) hash ^= Region.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClientAddress) { + output.WriteRawTag(10); + output.WriteString(ClientAddress); + } + if (HasRegion) { + output.WriteRawTag(16); + output.WriteUInt32(Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClientAddress) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientAddress); + } + if (HasRegion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(IsIgrAddressRequest other) { + if (other == null) { + return; + } + if (other.HasClientAddress) { + ClientAddress = other.ClientAddress; + } + if (other.HasRegion) { + Region = other.Region; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ClientAddress = input.ReadString(); + break; + } + case 16: { + Region = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class GetAccountStateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAccountStateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAccountStateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAccountStateRequest(GetAccountStateRequest other) : this() { + _hasBits0 = other._hasBits0; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; + program_ = other.program_; + region_ = other.region_; + options_ = other.HasOptions ? other.options_.Clone() : null; + tags_ = other.HasTags ? other.tags_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAccountStateRequest Clone() { + return new GetAccountStateRequest(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 2; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 3; + private readonly static uint RegionDefaultValue = 0; + + private uint region_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Region { + get { if ((_hasBits0 & 2) != 0) { return region_; } else { return RegionDefaultValue; } } + set { + _hasBits0 |= 2; + region_ = value; + } + } + /// Gets whether the "region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegion { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegion() { + _hasBits0 &= ~2; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 10; + private global::Bgs.Protocol.Account.V1.AccountFieldOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountFieldOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 11; + private global::Bgs.Protocol.Account.V1.AccountFieldTags tags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountFieldTags Tags { + get { return tags_; } + set { + tags_ = value; + } + } + /// Gets whether the tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTags { + get { return tags_ != null; } + } + /// Clears the value of the tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTags() { + tags_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAccountStateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetAccountStateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EntityId, other.EntityId)) return false; + if (Program != other.Program) return false; + if (Region != other.Region) return false; + if (!object.Equals(Options, other.Options)) return false; + if (!object.Equals(Tags, other.Tags)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasRegion) hash ^= Region.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (HasTags) hash ^= Tags.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasEntityId) { + output.WriteRawTag(10); + output.WriteMessage(EntityId); + } + if (HasProgram) { + output.WriteRawTag(16); + output.WriteUInt32(Program); + } + if (HasRegion) { + output.WriteRawTag(24); + output.WriteUInt32(Region); + } + if (HasOptions) { + output.WriteRawTag(82); + output.WriteMessage(Options); + } + if (HasTags) { + output.WriteRawTag(90); + output.WriteMessage(Tags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + if (HasProgram) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program); + } + if (HasRegion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (HasTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetAccountStateRequest other) { + if (other == null) { + return; + } + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + EntityId.MergeFrom(other.EntityId); + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasRegion) { + Region = other.Region; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Account.V1.AccountFieldOptions(); + } + Options.MergeFrom(other.Options); + } + if (other.HasTags) { + if (!HasTags) { + Tags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + Tags.MergeFrom(other.Tags); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(EntityId); + break; + } + case 16: { + Program = input.ReadUInt32(); + break; + } + case 24: { + Region = input.ReadUInt32(); + break; + } + case 82: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Account.V1.AccountFieldOptions(); + } + input.ReadMessage(Options); + break; + } + case 90: { + if (!HasTags) { + Tags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + input.ReadMessage(Tags); + break; + } + } + } + } + + } + + public sealed partial class GetAccountStateResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAccountStateResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAccountStateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAccountStateResponse(GetAccountStateResponse other) : this() { + state_ = other.HasState ? other.state_.Clone() : null; + tags_ = other.HasTags ? other.tags_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAccountStateResponse Clone() { + return new GetAccountStateResponse(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountState State { + get { return state_; } + set { + state_ = value; + } + } + /// Gets whether the state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasState { + get { return state_ != null; } + } + /// Clears the value of the state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearState() { + state_ = null; + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.AccountFieldTags tags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountFieldTags Tags { + get { return tags_; } + set { + tags_ = value; + } + } + /// Gets whether the tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTags { + get { return tags_ != null; } + } + /// Clears the value of the tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTags() { + tags_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAccountStateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetAccountStateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(State, other.State)) return false; + if (!object.Equals(Tags, other.Tags)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasState) hash ^= State.GetHashCode(); + if (HasTags) hash ^= Tags.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasState) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + if (HasTags) { + output.WriteRawTag(18); + output.WriteMessage(Tags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (HasTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetAccountStateResponse other) { + if (other == null) { + return; + } + if (other.HasState) { + if (!HasState) { + State = new global::Bgs.Protocol.Account.V1.AccountState(); + } + State.MergeFrom(other.State); + } + if (other.HasTags) { + if (!HasTags) { + Tags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + Tags.MergeFrom(other.Tags); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasState) { + State = new global::Bgs.Protocol.Account.V1.AccountState(); + } + input.ReadMessage(State); + break; + } + case 18: { + if (!HasTags) { + Tags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + input.ReadMessage(Tags); + break; + } + } + } + } + + } + + public sealed partial class GetSignedAccountStateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSignedAccountStateRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSignedAccountStateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSignedAccountStateRequest(GetSignedAccountStateRequest other) : this() { + account_ = other.HasAccount ? other.account_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSignedAccountStateRequest Clone() { + return new GetSignedAccountStateRequest(this); + } + + /// Field number for the "account" field. + public const int AccountFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId account_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId Account { + get { return account_; } + set { + account_ = value; + } + } + /// Gets whether the account field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccount { + get { return account_ != null; } + } + /// Clears the value of the account field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccount() { + account_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetSignedAccountStateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetSignedAccountStateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Account, other.Account)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccount) hash ^= Account.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccount) { + output.WriteRawTag(10); + output.WriteMessage(Account); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Account); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetSignedAccountStateRequest other) { + if (other == null) { + return; + } + if (other.HasAccount) { + if (!HasAccount) { + Account = new global::Bgs.Protocol.Account.V1.AccountId(); + } + Account.MergeFrom(other.Account); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccount) { + Account = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(Account); + break; + } + } + } + } + + } + + public sealed partial class GetSignedAccountStateResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSignedAccountStateResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSignedAccountStateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSignedAccountStateResponse(GetSignedAccountStateResponse other) : this() { + token_ = other.token_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSignedAccountStateResponse Clone() { + return new GetSignedAccountStateResponse(this); + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 1; + private readonly static string TokenDefaultValue = ""; + + private string token_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Token { + get { return token_ ?? TokenDefaultValue; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasToken { + get { return token_ != null; } + } + /// Clears the value of the "token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearToken() { + token_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetSignedAccountStateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetSignedAccountStateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Token != other.Token) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasToken) hash ^= Token.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasToken) { + output.WriteRawTag(10); + output.WriteString(Token); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasToken) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetSignedAccountStateResponse other) { + if (other == null) { + return; + } + if (other.HasToken) { + Token = other.Token; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Token = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class GetGameAccountStateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameAccountStateRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameAccountStateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameAccountStateRequest(GetGameAccountStateRequest other) : this() { + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + options_ = other.HasOptions ? other.options_.Clone() : null; + tags_ = other.HasTags ? other.tags_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameAccountStateRequest Clone() { + return new GetGameAccountStateRequest(this); + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId accountId_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { + get { return gameAccountId_; } + set { + gameAccountId_ = value; + } + } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 10; + private global::Bgs.Protocol.Account.V1.GameAccountFieldOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountFieldOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 11; + private global::Bgs.Protocol.Account.V1.GameAccountFieldTags tags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountFieldTags Tags { + get { return tags_; } + set { + tags_ = value; + } + } + /// Gets whether the tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTags { + get { return tags_ != null; } + } + /// Clears the value of the tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTags() { + tags_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetGameAccountStateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetGameAccountStateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountId, other.AccountId)) return false; + if (!object.Equals(GameAccountId, other.GameAccountId)) return false; + if (!object.Equals(Options, other.Options)) return false; + if (!object.Equals(Tags, other.Tags)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (HasTags) hash ^= Tags.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountId) { + output.WriteRawTag(10); + output.WriteMessage(AccountId); + } + if (HasGameAccountId) { + output.WriteRawTag(18); + output.WriteMessage(GameAccountId); + } + if (HasOptions) { + output.WriteRawTag(82); + output.WriteMessage(Options); + } + if (HasTags) { + output.WriteRawTag(90); + output.WriteMessage(Tags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + if (HasGameAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (HasTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetGameAccountStateRequest other) { + if (other == null) { + return; + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + AccountId.MergeFrom(other.AccountId); + } + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + GameAccountId.MergeFrom(other.GameAccountId); + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Account.V1.GameAccountFieldOptions(); + } + Options.MergeFrom(other.Options); + } + if (other.HasTags) { + if (!HasTags) { + Tags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + Tags.MergeFrom(other.Tags); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); + break; + } + case 18: { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(GameAccountId); + break; + } + case 82: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Account.V1.GameAccountFieldOptions(); + } + input.ReadMessage(Options); + break; + } + case 90: { + if (!HasTags) { + Tags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + input.ReadMessage(Tags); + break; + } + } + } + } + + } + + public sealed partial class GetGameAccountStateResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameAccountStateResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameAccountStateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameAccountStateResponse(GetGameAccountStateResponse other) : this() { + state_ = other.HasState ? other.state_.Clone() : null; + tags_ = other.HasTags ? other.tags_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameAccountStateResponse Clone() { + return new GetGameAccountStateResponse(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountState State { + get { return state_; } + set { + state_ = value; + } + } + /// Gets whether the state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasState { + get { return state_ != null; } + } + /// Clears the value of the state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearState() { + state_ = null; + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.GameAccountFieldTags tags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountFieldTags Tags { + get { return tags_; } + set { + tags_ = value; + } + } + /// Gets whether the tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTags { + get { return tags_ != null; } + } + /// Clears the value of the tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTags() { + tags_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetGameAccountStateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetGameAccountStateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(State, other.State)) return false; + if (!object.Equals(Tags, other.Tags)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasState) hash ^= State.GetHashCode(); + if (HasTags) hash ^= Tags.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasState) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + if (HasTags) { + output.WriteRawTag(18); + output.WriteMessage(Tags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (HasTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetGameAccountStateResponse other) { + if (other == null) { + return; + } + if (other.HasState) { + if (!HasState) { + State = new global::Bgs.Protocol.Account.V1.GameAccountState(); + } + State.MergeFrom(other.State); + } + if (other.HasTags) { + if (!HasTags) { + Tags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + Tags.MergeFrom(other.Tags); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasState) { + State = new global::Bgs.Protocol.Account.V1.GameAccountState(); + } + input.ReadMessage(State); + break; + } + case 18: { + if (!HasTags) { + Tags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + input.ReadMessage(Tags); + break; + } + } + } + } + + } + + public sealed partial class GetLicensesRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLicensesRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetLicensesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetLicensesRequest(GetLicensesRequest other) : this() { + _hasBits0 = other._hasBits0; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + fetchAccountLicenses_ = other.fetchAccountLicenses_; + fetchGameAccountLicenses_ = other.fetchGameAccountLicenses_; + fetchDynamicAccountLicenses_ = other.fetchDynamicAccountLicenses_; + program_ = other.program_; + excludeUnknownProgram_ = other.excludeUnknownProgram_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetLicensesRequest Clone() { + return new GetLicensesRequest(this); + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + /// Field number for the "fetch_account_licenses" field. + public const int FetchAccountLicensesFieldNumber = 2; + private readonly static bool FetchAccountLicensesDefaultValue = false; + + private bool fetchAccountLicenses_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FetchAccountLicenses { + get { if ((_hasBits0 & 1) != 0) { return fetchAccountLicenses_; } else { return FetchAccountLicensesDefaultValue; } } + set { + _hasBits0 |= 1; + fetchAccountLicenses_ = value; + } + } + /// Gets whether the "fetch_account_licenses" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFetchAccountLicenses { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "fetch_account_licenses" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFetchAccountLicenses() { + _hasBits0 &= ~1; + } + + /// Field number for the "fetch_game_account_licenses" field. + public const int FetchGameAccountLicensesFieldNumber = 3; + private readonly static bool FetchGameAccountLicensesDefaultValue = false; + + private bool fetchGameAccountLicenses_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FetchGameAccountLicenses { + get { if ((_hasBits0 & 2) != 0) { return fetchGameAccountLicenses_; } else { return FetchGameAccountLicensesDefaultValue; } } + set { + _hasBits0 |= 2; + fetchGameAccountLicenses_ = value; + } + } + /// Gets whether the "fetch_game_account_licenses" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFetchGameAccountLicenses { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "fetch_game_account_licenses" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFetchGameAccountLicenses() { + _hasBits0 &= ~2; + } + + /// Field number for the "fetch_dynamic_account_licenses" field. + public const int FetchDynamicAccountLicensesFieldNumber = 4; + private readonly static bool FetchDynamicAccountLicensesDefaultValue = false; + + private bool fetchDynamicAccountLicenses_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FetchDynamicAccountLicenses { + get { if ((_hasBits0 & 4) != 0) { return fetchDynamicAccountLicenses_; } else { return FetchDynamicAccountLicensesDefaultValue; } } + set { + _hasBits0 |= 4; + fetchDynamicAccountLicenses_ = value; + } + } + /// Gets whether the "fetch_dynamic_account_licenses" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFetchDynamicAccountLicenses { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "fetch_dynamic_account_licenses" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFetchDynamicAccountLicenses() { + _hasBits0 &= ~4; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 5; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 8) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 8; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~8; + } + + /// Field number for the "exclude_unknown_program" field. + public const int ExcludeUnknownProgramFieldNumber = 6; + private readonly static bool ExcludeUnknownProgramDefaultValue = false; + + private bool excludeUnknownProgram_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ExcludeUnknownProgram { + get { if ((_hasBits0 & 16) != 0) { return excludeUnknownProgram_; } else { return ExcludeUnknownProgramDefaultValue; } } + set { + _hasBits0 |= 16; + excludeUnknownProgram_ = value; + } + } + /// Gets whether the "exclude_unknown_program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExcludeUnknownProgram { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "exclude_unknown_program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExcludeUnknownProgram() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetLicensesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetLicensesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TargetId, other.TargetId)) return false; + if (FetchAccountLicenses != other.FetchAccountLicenses) return false; + if (FetchGameAccountLicenses != other.FetchGameAccountLicenses) return false; + if (FetchDynamicAccountLicenses != other.FetchDynamicAccountLicenses) return false; + if (Program != other.Program) return false; + if (ExcludeUnknownProgram != other.ExcludeUnknownProgram) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (HasFetchAccountLicenses) hash ^= FetchAccountLicenses.GetHashCode(); + if (HasFetchGameAccountLicenses) hash ^= FetchGameAccountLicenses.GetHashCode(); + if (HasFetchDynamicAccountLicenses) hash ^= FetchDynamicAccountLicenses.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasExcludeUnknownProgram) hash ^= ExcludeUnknownProgram.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTargetId) { + output.WriteRawTag(10); + output.WriteMessage(TargetId); + } + if (HasFetchAccountLicenses) { + output.WriteRawTag(16); + output.WriteBool(FetchAccountLicenses); + } + if (HasFetchGameAccountLicenses) { + output.WriteRawTag(24); + output.WriteBool(FetchGameAccountLicenses); + } + if (HasFetchDynamicAccountLicenses) { + output.WriteRawTag(32); + output.WriteBool(FetchDynamicAccountLicenses); + } + if (HasProgram) { + output.WriteRawTag(45); + output.WriteFixed32(Program); + } + if (HasExcludeUnknownProgram) { + output.WriteRawTag(48); + output.WriteBool(ExcludeUnknownProgram); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (HasFetchAccountLicenses) { + size += 1 + 1; + } + if (HasFetchGameAccountLicenses) { + size += 1 + 1; + } + if (HasFetchDynamicAccountLicenses) { + size += 1 + 1; + } + if (HasProgram) { + size += 1 + 4; + } + if (HasExcludeUnknownProgram) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetLicensesRequest other) { + if (other == null) { + return; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); + } + TargetId.MergeFrom(other.TargetId); + } + if (other.HasFetchAccountLicenses) { + FetchAccountLicenses = other.FetchAccountLicenses; + } + if (other.HasFetchGameAccountLicenses) { + FetchGameAccountLicenses = other.FetchGameAccountLicenses; + } + if (other.HasFetchDynamicAccountLicenses) { + FetchDynamicAccountLicenses = other.FetchDynamicAccountLicenses; + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasExcludeUnknownProgram) { + ExcludeUnknownProgram = other.ExcludeUnknownProgram; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(TargetId); + break; + } + case 16: { + FetchAccountLicenses = input.ReadBool(); + break; + } + case 24: { + FetchGameAccountLicenses = input.ReadBool(); + break; + } + case 32: { + FetchDynamicAccountLicenses = input.ReadBool(); + break; + } + case 45: { + Program = input.ReadFixed32(); + break; + } + case 48: { + ExcludeUnknownProgram = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class GetLicensesResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLicensesResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetLicensesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetLicensesResponse(GetLicensesResponse other) : this() { + licenses_ = other.licenses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetLicensesResponse Clone() { + return new GetLicensesResponse(this); + } + + /// Field number for the "licenses" field. + public const int LicensesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_licenses_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Account.V1.AccountLicense.Parser); + private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Licenses { + get { return licenses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetLicensesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetLicensesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!licenses_.Equals(other.licenses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= licenses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + licenses_.WriteTo(output, _repeated_licenses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += licenses_.CalculateSize(_repeated_licenses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetLicensesResponse other) { + if (other == null) { + return; + } + licenses_.Add(other.licenses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + licenses_.AddEntriesFrom(input, _repeated_licenses_codec); + break; + } + } + } + } + + } + + public sealed partial class GetGameSessionInfoRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameSessionInfoRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameSessionInfoRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameSessionInfoRequest(GetGameSessionInfoRequest other) : this() { + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameSessionInfoRequest Clone() { + return new GetGameSessionInfoRequest(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetGameSessionInfoRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetGameSessionInfoRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EntityId, other.EntityId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasEntityId) { + output.WriteRawTag(10); + output.WriteMessage(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetGameSessionInfoRequest other) { + if (other == null) { + return; + } + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + EntityId.MergeFrom(other.EntityId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(EntityId); + break; + } + } + } + } + + } + + public sealed partial class GetGameSessionInfoResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameSessionInfoResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameSessionInfoResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameSessionInfoResponse(GetGameSessionInfoResponse other) : this() { + sessionInfo_ = other.HasSessionInfo ? other.sessionInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameSessionInfoResponse Clone() { + return new GetGameSessionInfoResponse(this); + } + + /// Field number for the "session_info" field. + public const int SessionInfoFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.GameSessionInfo sessionInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameSessionInfo SessionInfo { + get { return sessionInfo_; } + set { + sessionInfo_ = value; + } + } + /// Gets whether the session_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSessionInfo { + get { return sessionInfo_ != null; } + } + /// Clears the value of the session_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSessionInfo() { + sessionInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetGameSessionInfoResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetGameSessionInfoResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SessionInfo, other.SessionInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSessionInfo) hash ^= SessionInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSessionInfo) { + output.WriteRawTag(18); + output.WriteMessage(SessionInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSessionInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SessionInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetGameSessionInfoResponse other) { + if (other == null) { + return; + } + if (other.HasSessionInfo) { + if (!HasSessionInfo) { + SessionInfo = new global::Bgs.Protocol.Account.V1.GameSessionInfo(); + } + SessionInfo.MergeFrom(other.SessionInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (!HasSessionInfo) { + SessionInfo = new global::Bgs.Protocol.Account.V1.GameSessionInfo(); + } + input.ReadMessage(SessionInfo); + break; + } + } + } + } + + } + + public sealed partial class GetGameTimeRemainingInfoRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameTimeRemainingInfoRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameTimeRemainingInfoRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameTimeRemainingInfoRequest(GetGameTimeRemainingInfoRequest other) : this() { + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameTimeRemainingInfoRequest Clone() { + return new GetGameTimeRemainingInfoRequest(this); + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { + get { return gameAccountId_; } + set { + gameAccountId_ = value; + } + } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetGameTimeRemainingInfoRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetGameTimeRemainingInfoRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccountId, other.GameAccountId)) return false; + if (!object.Equals(AccountId, other.AccountId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccountId) { + output.WriteRawTag(10); + output.WriteMessage(GameAccountId); + } + if (HasAccountId) { + output.WriteRawTag(18); + output.WriteMessage(AccountId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); + } + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetGameTimeRemainingInfoRequest other) { + if (other == null) { + return; + } + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + GameAccountId.MergeFrom(other.GameAccountId); + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + AccountId.MergeFrom(other.AccountId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(GameAccountId); + break; + } + case 18: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); + break; + } + } + } + } + + } + + public sealed partial class GetGameTimeRemainingInfoResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGameTimeRemainingInfoResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameTimeRemainingInfoResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameTimeRemainingInfoResponse(GetGameTimeRemainingInfoResponse other) : this() { + gameTimeRemainingInfo_ = other.HasGameTimeRemainingInfo ? other.gameTimeRemainingInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetGameTimeRemainingInfoResponse Clone() { + return new GetGameTimeRemainingInfoResponse(this); + } + + /// Field number for the "game_time_remaining_info" field. + public const int GameTimeRemainingInfoFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameTimeRemainingInfo gameTimeRemainingInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameTimeRemainingInfo GameTimeRemainingInfo { + get { return gameTimeRemainingInfo_; } + set { + gameTimeRemainingInfo_ = value; + } + } + /// Gets whether the game_time_remaining_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameTimeRemainingInfo { + get { return gameTimeRemainingInfo_ != null; } + } + /// Clears the value of the game_time_remaining_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameTimeRemainingInfo() { + gameTimeRemainingInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetGameTimeRemainingInfoResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetGameTimeRemainingInfoResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameTimeRemainingInfo, other.GameTimeRemainingInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameTimeRemainingInfo) hash ^= GameTimeRemainingInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameTimeRemainingInfo) { + output.WriteRawTag(10); + output.WriteMessage(GameTimeRemainingInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameTimeRemainingInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameTimeRemainingInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetGameTimeRemainingInfoResponse other) { + if (other == null) { + return; + } + if (other.HasGameTimeRemainingInfo) { + if (!HasGameTimeRemainingInfo) { + GameTimeRemainingInfo = new global::Bgs.Protocol.Account.V1.GameTimeRemainingInfo(); + } + GameTimeRemainingInfo.MergeFrom(other.GameTimeRemainingInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameTimeRemainingInfo) { + GameTimeRemainingInfo = new global::Bgs.Protocol.Account.V1.GameTimeRemainingInfo(); + } + input.ReadMessage(GameTimeRemainingInfo); + break; + } + } + } + } + + } + + public sealed partial class GetCAISInfoRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCAISInfoRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetCAISInfoRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetCAISInfoRequest(GetCAISInfoRequest other) : this() { + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetCAISInfoRequest Clone() { + return new GetCAISInfoRequest(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetCAISInfoRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetCAISInfoRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EntityId, other.EntityId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasEntityId) { + output.WriteRawTag(10); + output.WriteMessage(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetCAISInfoRequest other) { + if (other == null) { + return; + } + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + EntityId.MergeFrom(other.EntityId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(EntityId); + break; + } + } + } + } + + } + + public sealed partial class GetCAISInfoResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCAISInfoResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetCAISInfoResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetCAISInfoResponse(GetCAISInfoResponse other) : this() { + caisInfo_ = other.HasCaisInfo ? other.caisInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetCAISInfoResponse Clone() { + return new GetCAISInfoResponse(this); + } + + /// Field number for the "cais_info" field. + public const int CaisInfoFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.CAIS caisInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.CAIS CaisInfo { + get { return caisInfo_; } + set { + caisInfo_ = value; + } + } + /// Gets whether the cais_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCaisInfo { + get { return caisInfo_ != null; } + } + /// Clears the value of the cais_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCaisInfo() { + caisInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetCAISInfoResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetCAISInfoResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CaisInfo, other.CaisInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCaisInfo) hash ^= CaisInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCaisInfo) { + output.WriteRawTag(10); + output.WriteMessage(CaisInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCaisInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaisInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetCAISInfoResponse other) { + if (other == null) { + return; + } + if (other.HasCaisInfo) { + if (!HasCaisInfo) { + CaisInfo = new global::Bgs.Protocol.Account.V1.CAIS(); + } + CaisInfo.MergeFrom(other.CaisInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasCaisInfo) { + CaisInfo = new global::Bgs.Protocol.Account.V1.CAIS(); + } + input.ReadMessage(CaisInfo); + break; + } + } + } + } + + } + + public sealed partial class GetAuthorizedDataRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAuthorizedDataRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAuthorizedDataRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAuthorizedDataRequest(GetAuthorizedDataRequest other) : this() { + _hasBits0 = other._hasBits0; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; + tag_ = other.tag_.Clone(); + privilegedNetwork_ = other.privilegedNetwork_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAuthorizedDataRequest Clone() { + return new GetAuthorizedDataRequest(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_tag_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField tag_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Tag { + get { return tag_; } + } + + /// Field number for the "privileged_network" field. + public const int PrivilegedNetworkFieldNumber = 3; + private readonly static bool PrivilegedNetworkDefaultValue = false; + + private bool privilegedNetwork_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool PrivilegedNetwork { + get { if ((_hasBits0 & 1) != 0) { return privilegedNetwork_; } else { return PrivilegedNetworkDefaultValue; } } + set { + _hasBits0 |= 1; + privilegedNetwork_ = value; + } + } + /// Gets whether the "privileged_network" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivilegedNetwork { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "privileged_network" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivilegedNetwork() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAuthorizedDataRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetAuthorizedDataRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EntityId, other.EntityId)) return false; + if(!tag_.Equals(other.tag_)) return false; + if (PrivilegedNetwork != other.PrivilegedNetwork) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasEntityId) hash ^= EntityId.GetHashCode(); + hash ^= tag_.GetHashCode(); + if (HasPrivilegedNetwork) hash ^= PrivilegedNetwork.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasEntityId) { + output.WriteRawTag(10); + output.WriteMessage(EntityId); + } + tag_.WriteTo(output, _repeated_tag_codec); + if (HasPrivilegedNetwork) { + output.WriteRawTag(24); + output.WriteBool(PrivilegedNetwork); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + size += tag_.CalculateSize(_repeated_tag_codec); + if (HasPrivilegedNetwork) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetAuthorizedDataRequest other) { + if (other == null) { + return; + } + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + EntityId.MergeFrom(other.EntityId); + } + tag_.Add(other.tag_); + if (other.HasPrivilegedNetwork) { + PrivilegedNetwork = other.PrivilegedNetwork; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(EntityId); + break; + } + case 18: { + tag_.AddEntriesFrom(input, _repeated_tag_codec); + break; + } + case 24: { + PrivilegedNetwork = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class GetAuthorizedDataResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAuthorizedDataResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAuthorizedDataResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAuthorizedDataResponse(GetAuthorizedDataResponse other) : this() { + data_ = other.data_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAuthorizedDataResponse Clone() { + return new GetAuthorizedDataResponse(this); + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_data_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Account.V1.AuthorizedData.Parser); + private readonly pbc::RepeatedField data_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Data { + get { return data_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAuthorizedDataResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetAuthorizedDataResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!data_.Equals(other.data_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= data_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + data_.WriteTo(output, _repeated_data_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += data_.CalculateSize(_repeated_data_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetAuthorizedDataResponse other) { + if (other == null) { + return; + } + data_.Add(other.data_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + data_.AddEntriesFrom(input, _repeated_data_codec); + break; + } + } + } + } + + } + + public sealed partial class AccountStateNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountStateNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountStateNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountStateNotification(AccountStateNotification other) : this() { + _hasBits0 = other._hasBits0; + accountState_ = other.HasAccountState ? other.accountState_.Clone() : null; + subscriberId_ = other.subscriberId_; + accountTags_ = other.HasAccountTags ? other.accountTags_.Clone() : null; + subscriptionCompleted_ = other.subscriptionCompleted_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountStateNotification Clone() { + return new AccountStateNotification(this); + } + + /// Field number for the "account_state" field. + public const int AccountStateFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountState accountState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountState AccountState { + get { return accountState_; } + set { + accountState_ = value; + } + } + /// Gets whether the account_state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountState { + get { return accountState_ != null; } + } + /// Clears the value of the account_state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountState() { + accountState_ = null; + } + + /// Field number for the "subscriber_id" field. + public const int SubscriberIdFieldNumber = 2; + private readonly static ulong SubscriberIdDefaultValue = 0UL; + + private ulong subscriberId_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SubscriberId { + get { if ((_hasBits0 & 1) != 0) { return subscriberId_; } else { return SubscriberIdDefaultValue; } } + set { + _hasBits0 |= 1; + subscriberId_ = value; + } + } + /// Gets whether the "subscriber_id" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriberId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "subscriber_id" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriberId() { + _hasBits0 &= ~1; + } + + /// Field number for the "account_tags" field. + public const int AccountTagsFieldNumber = 3; + private global::Bgs.Protocol.Account.V1.AccountFieldTags accountTags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountFieldTags AccountTags { + get { return accountTags_; } + set { + accountTags_ = value; + } + } + /// Gets whether the account_tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountTags { + get { return accountTags_ != null; } + } + /// Clears the value of the account_tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountTags() { + accountTags_ = null; + } + + /// Field number for the "subscription_completed" field. + public const int SubscriptionCompletedFieldNumber = 4; + private readonly static bool SubscriptionCompletedDefaultValue = false; + + private bool subscriptionCompleted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool SubscriptionCompleted { + get { if ((_hasBits0 & 2) != 0) { return subscriptionCompleted_; } else { return SubscriptionCompletedDefaultValue; } } + set { + _hasBits0 |= 2; + subscriptionCompleted_ = value; + } + } + /// Gets whether the "subscription_completed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriptionCompleted { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "subscription_completed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriptionCompleted() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountStateNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountStateNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountState, other.AccountState)) return false; + if (SubscriberId != other.SubscriberId) return false; + if (!object.Equals(AccountTags, other.AccountTags)) return false; + if (SubscriptionCompleted != other.SubscriptionCompleted) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountState) hash ^= AccountState.GetHashCode(); + if (HasSubscriberId) hash ^= SubscriberId.GetHashCode(); + if (HasAccountTags) hash ^= AccountTags.GetHashCode(); + if (HasSubscriptionCompleted) hash ^= SubscriptionCompleted.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountState) { + output.WriteRawTag(10); + output.WriteMessage(AccountState); + } + if (HasSubscriberId) { + output.WriteRawTag(16); + output.WriteUInt64(SubscriberId); + } + if (HasAccountTags) { + output.WriteRawTag(26); + output.WriteMessage(AccountTags); + } + if (HasSubscriptionCompleted) { + output.WriteRawTag(32); + output.WriteBool(SubscriptionCompleted); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountState); + } + if (HasSubscriberId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriberId); + } + if (HasAccountTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountTags); + } + if (HasSubscriptionCompleted) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountStateNotification other) { + if (other == null) { + return; + } + if (other.HasAccountState) { + if (!HasAccountState) { + AccountState = new global::Bgs.Protocol.Account.V1.AccountState(); + } + AccountState.MergeFrom(other.AccountState); + } + if (other.HasSubscriberId) { + SubscriberId = other.SubscriberId; + } + if (other.HasAccountTags) { + if (!HasAccountTags) { + AccountTags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + AccountTags.MergeFrom(other.AccountTags); + } + if (other.HasSubscriptionCompleted) { + SubscriptionCompleted = other.SubscriptionCompleted; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccountState) { + AccountState = new global::Bgs.Protocol.Account.V1.AccountState(); + } + input.ReadMessage(AccountState); + break; + } + case 16: { + SubscriberId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasAccountTags) { + AccountTags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + input.ReadMessage(AccountTags); + break; + } + case 32: { + SubscriptionCompleted = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class GameAccountStateNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountStateNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountStateNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountStateNotification(GameAccountStateNotification other) : this() { + _hasBits0 = other._hasBits0; + gameAccountState_ = other.HasGameAccountState ? other.gameAccountState_.Clone() : null; + subscriberId_ = other.subscriberId_; + gameAccountTags_ = other.HasGameAccountTags ? other.gameAccountTags_.Clone() : null; + subscriptionCompleted_ = other.subscriptionCompleted_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountStateNotification Clone() { + return new GameAccountStateNotification(this); + } + + /// Field number for the "game_account_state" field. + public const int GameAccountStateFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountState gameAccountState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountState GameAccountState { + get { return gameAccountState_; } + set { + gameAccountState_ = value; + } + } + /// Gets whether the game_account_state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountState { + get { return gameAccountState_ != null; } + } + /// Clears the value of the game_account_state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountState() { + gameAccountState_ = null; + } + + /// Field number for the "subscriber_id" field. + public const int SubscriberIdFieldNumber = 2; + private readonly static ulong SubscriberIdDefaultValue = 0UL; + + private ulong subscriberId_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SubscriberId { + get { if ((_hasBits0 & 1) != 0) { return subscriberId_; } else { return SubscriberIdDefaultValue; } } + set { + _hasBits0 |= 1; + subscriberId_ = value; + } + } + /// Gets whether the "subscriber_id" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriberId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "subscriber_id" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriberId() { + _hasBits0 &= ~1; + } + + /// Field number for the "game_account_tags" field. + public const int GameAccountTagsFieldNumber = 3; + private global::Bgs.Protocol.Account.V1.GameAccountFieldTags gameAccountTags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountFieldTags GameAccountTags { + get { return gameAccountTags_; } + set { + gameAccountTags_ = value; + } + } + /// Gets whether the game_account_tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountTags { + get { return gameAccountTags_ != null; } + } + /// Clears the value of the game_account_tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountTags() { + gameAccountTags_ = null; + } + + /// Field number for the "subscription_completed" field. + public const int SubscriptionCompletedFieldNumber = 4; + private readonly static bool SubscriptionCompletedDefaultValue = false; + + private bool subscriptionCompleted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool SubscriptionCompleted { + get { if ((_hasBits0 & 2) != 0) { return subscriptionCompleted_; } else { return SubscriptionCompletedDefaultValue; } } + set { + _hasBits0 |= 2; + subscriptionCompleted_ = value; + } + } + /// Gets whether the "subscription_completed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriptionCompleted { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "subscription_completed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriptionCompleted() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountStateNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountStateNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccountState, other.GameAccountState)) return false; + if (SubscriberId != other.SubscriberId) return false; + if (!object.Equals(GameAccountTags, other.GameAccountTags)) return false; + if (SubscriptionCompleted != other.SubscriptionCompleted) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccountState) hash ^= GameAccountState.GetHashCode(); + if (HasSubscriberId) hash ^= SubscriberId.GetHashCode(); + if (HasGameAccountTags) hash ^= GameAccountTags.GetHashCode(); + if (HasSubscriptionCompleted) hash ^= SubscriptionCompleted.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccountState) { + output.WriteRawTag(10); + output.WriteMessage(GameAccountState); + } + if (HasSubscriberId) { + output.WriteRawTag(16); + output.WriteUInt64(SubscriberId); + } + if (HasGameAccountTags) { + output.WriteRawTag(26); + output.WriteMessage(GameAccountTags); + } + if (HasSubscriptionCompleted) { + output.WriteRawTag(32); + output.WriteBool(SubscriptionCompleted); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccountState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountState); + } + if (HasSubscriberId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriberId); + } + if (HasGameAccountTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountTags); + } + if (HasSubscriptionCompleted) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountStateNotification other) { + if (other == null) { + return; + } + if (other.HasGameAccountState) { + if (!HasGameAccountState) { + GameAccountState = new global::Bgs.Protocol.Account.V1.GameAccountState(); + } + GameAccountState.MergeFrom(other.GameAccountState); + } + if (other.HasSubscriberId) { + SubscriberId = other.SubscriberId; + } + if (other.HasGameAccountTags) { + if (!HasGameAccountTags) { + GameAccountTags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + GameAccountTags.MergeFrom(other.GameAccountTags); + } + if (other.HasSubscriptionCompleted) { + SubscriptionCompleted = other.SubscriptionCompleted; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameAccountState) { + GameAccountState = new global::Bgs.Protocol.Account.V1.GameAccountState(); + } + input.ReadMessage(GameAccountState); + break; + } + case 16: { + SubscriberId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasGameAccountTags) { + GameAccountTags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + input.ReadMessage(GameAccountTags); + break; + } + case 32: { + SubscriptionCompleted = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class GameAccountNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountNotification(GameAccountNotification other) : this() { + _hasBits0 = other._hasBits0; + gameAccounts_ = other.gameAccounts_.Clone(); + subscriberId_ = other.subscriberId_; + accountTags_ = other.HasAccountTags ? other.accountTags_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountNotification Clone() { + return new GameAccountNotification(this); + } + + /// Field number for the "game_accounts" field. + public const int GameAccountsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_gameAccounts_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Account.V1.GameAccountList.Parser); + private readonly pbc::RepeatedField gameAccounts_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField GameAccounts { + get { return gameAccounts_; } + } + + /// Field number for the "subscriber_id" field. + public const int SubscriberIdFieldNumber = 2; + private readonly static ulong SubscriberIdDefaultValue = 0UL; + + private ulong subscriberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SubscriberId { + get { if ((_hasBits0 & 1) != 0) { return subscriberId_; } else { return SubscriberIdDefaultValue; } } + set { + _hasBits0 |= 1; + subscriberId_ = value; + } + } + /// Gets whether the "subscriber_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriberId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "subscriber_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriberId() { + _hasBits0 &= ~1; + } + + /// Field number for the "account_tags" field. + public const int AccountTagsFieldNumber = 3; + private global::Bgs.Protocol.Account.V1.AccountFieldTags accountTags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountFieldTags AccountTags { + get { return accountTags_; } + set { + accountTags_ = value; + } + } + /// Gets whether the account_tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountTags { + get { return accountTags_ != null; } + } + /// Clears the value of the account_tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountTags() { + accountTags_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!gameAccounts_.Equals(other.gameAccounts_)) return false; + if (SubscriberId != other.SubscriberId) return false; + if (!object.Equals(AccountTags, other.AccountTags)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= gameAccounts_.GetHashCode(); + if (HasSubscriberId) hash ^= SubscriberId.GetHashCode(); + if (HasAccountTags) hash ^= AccountTags.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + gameAccounts_.WriteTo(output, _repeated_gameAccounts_codec); + if (HasSubscriberId) { + output.WriteRawTag(16); + output.WriteUInt64(SubscriberId); + } + if (HasAccountTags) { + output.WriteRawTag(26); + output.WriteMessage(AccountTags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += gameAccounts_.CalculateSize(_repeated_gameAccounts_codec); + if (HasSubscriberId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriberId); + } + if (HasAccountTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountTags); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountNotification other) { + if (other == null) { + return; + } + gameAccounts_.Add(other.gameAccounts_); + if (other.HasSubscriberId) { + SubscriberId = other.SubscriberId; + } + if (other.HasAccountTags) { + if (!HasAccountTags) { + AccountTags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + AccountTags.MergeFrom(other.AccountTags); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + gameAccounts_.AddEntriesFrom(input, _repeated_gameAccounts_codec); + break; + } + case 16: { + SubscriberId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasAccountTags) { + AccountTags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + input.ReadMessage(AccountTags); + break; + } + } + } + } + + } + + public sealed partial class GameAccountSessionNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountSessionNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountServiceReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountSessionNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountSessionNotification(GameAccountSessionNotification other) : this() { + gameAccount_ = other.HasGameAccount ? other.gameAccount_.Clone() : null; + sessionInfo_ = other.HasSessionInfo ? other.sessionInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountSessionNotification Clone() { + return new GameAccountSessionNotification(this); + } + + /// Field number for the "game_account" field. + public const int GameAccountFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle GameAccount { + get { return gameAccount_; } + set { + gameAccount_ = value; + } + } + /// Gets whether the game_account field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccount { + get { return gameAccount_ != null; } + } + /// Clears the value of the game_account field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccount() { + gameAccount_ = null; + } + + /// Field number for the "session_info" field. + public const int SessionInfoFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.GameSessionUpdateInfo sessionInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameSessionUpdateInfo SessionInfo { + get { return sessionInfo_; } + set { + sessionInfo_ = value; + } + } + /// Gets whether the session_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSessionInfo { + get { return sessionInfo_ != null; } + } + /// Clears the value of the session_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSessionInfo() { + sessionInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountSessionNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountSessionNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccount, other.GameAccount)) return false; + if (!object.Equals(SessionInfo, other.SessionInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccount) hash ^= GameAccount.GetHashCode(); + if (HasSessionInfo) hash ^= SessionInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccount) { + output.WriteRawTag(10); + output.WriteMessage(GameAccount); + } + if (HasSessionInfo) { + output.WriteRawTag(18); + output.WriteMessage(SessionInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); + } + if (HasSessionInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SessionInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountSessionNotification other) { + if (other == null) { + return; + } + if (other.HasGameAccount) { + if (!HasGameAccount) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + GameAccount.MergeFrom(other.GameAccount); + } + if (other.HasSessionInfo) { + if (!HasSessionInfo) { + SessionInfo = new global::Bgs.Protocol.Account.V1.GameSessionUpdateInfo(); + } + SessionInfo.MergeFrom(other.SessionInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameAccount) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(GameAccount); + break; + } + case 18: { + if (!HasSessionInfo) { + SessionInfo = new global::Bgs.Protocol.Account.V1.GameSessionUpdateInfo(); + } + input.ReadMessage(SessionInfo); + break; + } + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/AccountTypes.cs b/Source/Framework/Proto/AccountTypes.cs index 5109ff5a6..dd6ec2ca8 100644 --- a/Source/Framework/Proto/AccountTypes.cs +++ b/Source/Framework/Proto/AccountTypes.cs @@ -1,9082 +1,8830 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/account_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/account_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Account.V1 { -namespace Bgs.Protocol.Account.V1 -{ - /// Holder for reflection information generated from bgs/low/pb/client/account_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class AccountTypesReflection - { - - #region Descriptor - /// File descriptor for bgs/low/pb/client/account_types.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountTypesReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "CiViZ3MvbG93L3BiL2NsaWVudC9hY2NvdW50X3R5cGVzLnByb3RvEhdiZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MRokYmdzL2xvdy9wYi9jbGllbnQvZW50aXR5", - "X3R5cGVzLnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJv", - "dG8iFwoJQWNjb3VudElkEgoKAmlkGAEgASgHIi0KDkFjY291bnRMaWNlbnNl", - "EgoKAmlkGAEgASgNEg8KB2V4cGlyZXMYAiABKAQiLQoRQWNjb3VudENyZWRl", - "bnRpYWwSCgoCaWQYASABKA0SDAoEZGF0YRgCIAEoDCKfBQoLQWNjb3VudEJs", - "b2ISCgoCaWQYAiABKAcSDgoGcmVnaW9uGAMgASgNEg0KBWVtYWlsGAQgAygJ", - "Eg0KBWZsYWdzGAUgASgEEhYKDnNlY3VyZV9yZWxlYXNlGAYgASgEEhcKD3do", - "aXRlbGlzdF9zdGFydBgHIAEoBBIVCg13aGl0ZWxpc3RfZW5kGAggASgEEhEK", - "CWZ1bGxfbmFtZRgKIAEoCRI5CghsaWNlbnNlcxgUIAMoCzInLmJncy5wcm90", - "b2NvbC5hY2NvdW50LnYxLkFjY291bnRMaWNlbnNlEj8KC2NyZWRlbnRpYWxz", - "GBUgAygLMiouYmdzLnByb3RvY29sLmFjY291bnQudjEuQWNjb3VudENyZWRl", - "bnRpYWwSPwoNYWNjb3VudF9saW5rcxgWIAMoCzIoLmJncy5wcm90b2NvbC5h", - "Y2NvdW50LnYxLkdhbWVBY2NvdW50TGluaxISCgpiYXR0bGVfdGFnGBcgASgJ", - "EhgKEGRlZmF1bHRfY3VycmVuY3kYGSABKAcSFAoMbGVnYWxfcmVnaW9uGBog", - "ASgNEhQKDGxlZ2FsX2xvY2FsZRgbIAEoBxIYChBjYWNoZV9leHBpcmF0aW9u", - "GB4gASgEEksKFXBhcmVudGFsX2NvbnRyb2xfaW5mbxgfIAEoCzIsLmJncy5w", - "cm90b2NvbC5hY2NvdW50LnYxLlBhcmVudGFsQ29udHJvbEluZm8SDwoHY291", - "bnRyeRggIAEoCRIYChBwcmVmZXJyZWRfcmVnaW9uGCEgASgNElIKFWlkZW50", - "aXR5X2NoZWNrX3N0YXR1cxgiIAEoDjIzLmJncy5wcm90b2NvbC5hY2NvdW50", - "LnYxLklkZW50aXR5VmVyaWZpY2F0aW9uU3RhdHVzIkUKD0FjY291bnRCbG9i", - "TGlzdBIyCgRibG9iGAEgAygLMiQuYmdzLnByb3RvY29sLmFjY291bnQudjEu", - "QWNjb3VudEJsb2IiQAoRR2FtZUFjY291bnRIYW5kbGUSCgoCaWQYASABKAcS", - "DwoHcHJvZ3JhbRgCIAEoBxIOCgZyZWdpb24YAyABKA0iYQoPR2FtZUFjY291", - "bnRMaW5rEkAKDGdhbWVfYWNjb3VudBgBIAEoCzIqLmJncy5wcm90b2NvbC5h", - "Y2NvdW50LnYxLkdhbWVBY2NvdW50SGFuZGxlEgwKBG5hbWUYAiABKAkizAMK", - "D0dhbWVBY2NvdW50QmxvYhJACgxnYW1lX2FjY291bnQYASABKAsyKi5iZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEhhbmRsZRIMCgRuYW1l", - "GAIgASgJEhkKEXJlYWxtX3Blcm1pc3Npb25zGAMgASgNEg4KBnN0YXR1cxgE", - "IAEoDRINCgVmbGFncxgFIAEoBBIVCg1iaWxsaW5nX2ZsYWdzGAYgASgNEhgK", - "EGNhY2hlX2V4cGlyYXRpb24YByABKAQSHwoXc3Vic2NyaXB0aW9uX2V4cGly", - "YXRpb24YCiABKAQSFwoPdW5pdHNfcmVtYWluaW5nGAsgASgNEhkKEXN0YXR1", - "c19leHBpcmF0aW9uGAwgASgEEhEKCWJveF9sZXZlbBgNIAEoDRIcChRib3hf", - "bGV2ZWxfZXhwaXJhdGlvbhgOIAEoBBI5CghsaWNlbnNlcxgUIAMoCzInLmJn", - "cy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRMaWNlbnNlEhMKC3JhZl9h", - "Y2NvdW50GBUgASgHEhAKCHJhZl9pbmZvGBYgASgMEhYKDnJhZl9leHBpcmF0", - "aW9uGBcgASgEIk0KE0dhbWVBY2NvdW50QmxvYkxpc3QSNgoEYmxvYhgBIAMo", - "CzIoLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2NvdW50QmxvYiKN", - "AQoQQWNjb3VudFJlZmVyZW5jZRIKCgJpZBgBIAEoBxINCgVlbWFpbBgCIAEo", - "CRI6CgZoYW5kbGUYAyABKAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5H", - "YW1lQWNjb3VudEhhbmRsZRISCgpiYXR0bGVfdGFnGAQgASgJEg4KBnJlZ2lv", - "bhgKIAEoDSKrAQoISWRlbnRpdHkSMwoHYWNjb3VudBgBIAEoCzIiLmJncy5w", - "cm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRJZBJACgxnYW1lX2FjY291bnQY", - "AiABKAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEhh", - "bmRsZRIoCgdwcm9jZXNzGAMgASgLMhcuYmdzLnByb3RvY29sLlByb2Nlc3NJ", - "ZCIqCgpQcm9ncmFtVGFnEg8KB3Byb2dyYW0YASABKAcSCwoDdGFnGAIgASgH", - "IigKCVJlZ2lvblRhZxIOCgZyZWdpb24YASABKAcSCwoDdGFnGAIgASgHIrAC", - "ChBBY2NvdW50RmllbGRUYWdzEh4KFmFjY291bnRfbGV2ZWxfaW5mb190YWcY", - "AiABKAcSGAoQcHJpdmFjeV9pbmZvX3RhZxgDIAEoBxIhChlwYXJlbnRhbF9j", - "b250cm9sX2luZm9fdGFnGAQgASgHEkEKFGdhbWVfbGV2ZWxfaW5mb190YWdz", - "GAcgAygLMiMuYmdzLnByb3RvY29sLmFjY291bnQudjEuUHJvZ3JhbVRhZxI9", - "ChBnYW1lX3N0YXR1c190YWdzGAkgAygLMiMuYmdzLnByb3RvY29sLmFjY291", - "bnQudjEuUHJvZ3JhbVRhZxI9ChFnYW1lX2FjY291bnRfdGFncxgLIAMoCzIi", - "LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLlJlZ2lvblRhZyJ+ChRHYW1lQWNj", - "b3VudEZpZWxkVGFncxIbChNnYW1lX2xldmVsX2luZm9fdGFnGAIgASgHEhoK", - "EmdhbWVfdGltZV9pbmZvX3RhZxgDIAEoBxIXCg9nYW1lX3N0YXR1c190YWcY", - "BCABKAcSFAoMcmFmX2luZm9fdGFnGAUgASgHIuMBChNBY2NvdW50RmllbGRP", - "cHRpb25zEhIKCmFsbF9maWVsZHMYASABKAgSIAoYZmllbGRfYWNjb3VudF9s", - "ZXZlbF9pbmZvGAIgASgIEhoKEmZpZWxkX3ByaXZhY3lfaW5mbxgDIAEoCBIj", - "ChtmaWVsZF9wYXJlbnRhbF9jb250cm9sX2luZm8YBCABKAgSHQoVZmllbGRf", - "Z2FtZV9sZXZlbF9pbmZvGAYgASgIEhkKEWZpZWxkX2dhbWVfc3RhdHVzGAcg", - "ASgIEhsKE2ZpZWxkX2dhbWVfYWNjb3VudHMYCCABKAginQEKF0dhbWVBY2Nv", - "dW50RmllbGRPcHRpb25zEhIKCmFsbF9maWVsZHMYASABKAgSHQoVZmllbGRf", - "Z2FtZV9sZXZlbF9pbmZvGAIgASgIEhwKFGZpZWxkX2dhbWVfdGltZV9pbmZv", - "GAMgASgIEhkKEWZpZWxkX2dhbWVfc3RhdHVzGAQgASgIEhYKDmZpZWxkX3Jh", - "Zl9pbmZvGAUgASgIIowDChNTdWJzY3JpYmVyUmVmZXJlbmNlEhEKCW9iamVj", - "dF9pZBgBIAEoBBIpCgllbnRpdHlfaWQYAiABKAsyFi5iZ3MucHJvdG9jb2wu", - "RW50aXR5SWQSRQoPYWNjb3VudF9vcHRpb25zGAMgASgLMiwuYmdzLnByb3Rv", - "Y29sLmFjY291bnQudjEuQWNjb3VudEZpZWxkT3B0aW9ucxI/CgxhY2NvdW50", - "X3RhZ3MYBCABKAsyKS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2NvdW50", - "RmllbGRUYWdzEk4KFGdhbWVfYWNjb3VudF9vcHRpb25zGAUgASgLMjAuYmdz", - "LnByb3RvY29sLmFjY291bnQudjEuR2FtZUFjY291bnRGaWVsZE9wdGlvbnMS", - "SAoRZ2FtZV9hY2NvdW50X3RhZ3MYBiABKAsyLS5iZ3MucHJvdG9jb2wuYWNj", - "b3VudC52MS5HYW1lQWNjb3VudEZpZWxkVGFncxIVCg1zdWJzY3JpYmVyX2lk", - "GAcgASgEItwCChBBY2NvdW50TGV2ZWxJbmZvEjkKCGxpY2Vuc2VzGAMgAygL", - "MicuYmdzLnByb3RvY29sLmFjY291bnQudjEuQWNjb3VudExpY2Vuc2USGAoQ", - "ZGVmYXVsdF9jdXJyZW5jeRgEIAEoBxIPCgdjb3VudHJ5GAUgASgJEhgKEHBy", - "ZWZlcnJlZF9yZWdpb24YBiABKA0SEQoJZnVsbF9uYW1lGAcgASgJEhIKCmJh", - "dHRsZV90YWcYCCABKAkSDQoFbXV0ZWQYCSABKAgSFQoNbWFudWFsX3Jldmll", - "dxgKIAEoCBIYChBhY2NvdW50X3BhaWRfYW55GAsgASgIElIKFWlkZW50aXR5", - "X2NoZWNrX3N0YXR1cxgMIAEoDjIzLmJncy5wcm90b2NvbC5hY2NvdW50LnYx", - "LklkZW50aXR5VmVyaWZpY2F0aW9uU3RhdHVzEg0KBWVtYWlsGA0gASgJIpUC", - "CgtQcml2YWN5SW5mbxIUCgxpc191c2luZ19yaWQYAyABKAgSKwojaXNfcmVh", - "bF9pZF92aXNpYmxlX2Zvcl92aWV3X2ZyaWVuZHMYBCABKAgSJAocaXNfaGlk", - "ZGVuX2Zyb21fZnJpZW5kX2ZpbmRlchgFIAEoCBJPChFnYW1lX2luZm9fcHJp", - "dmFjeRgGIAEoDjI0LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLlByaXZhY3lJ", - "bmZvLkdhbWVJbmZvUHJpdmFjeSJMCg9HYW1lSW5mb1ByaXZhY3kSDgoKUFJJ", - "VkFDWV9NRRAAEhMKD1BSSVZBQ1lfRlJJRU5EUxABEhQKEFBSSVZBQ1lfRVZF", - "UllPTkUQAiKkAQoTUGFyZW50YWxDb250cm9sSW5mbxIQCgh0aW1lem9uZRgD", - "IAEoCRIXCg9taW51dGVzX3Blcl9kYXkYBCABKA0SGAoQbWludXRlc19wZXJf", - "d2VlaxgFIAEoDRIZChFjYW5fcmVjZWl2ZV92b2ljZRgGIAEoCBIWCg5jYW5f", - "c2VuZF92b2ljZRgHIAEoCBIVCg1wbGF5X3NjaGVkdWxlGAggAygIItMBCg1H", - "YW1lTGV2ZWxJbmZvEhAKCGlzX3RyaWFsGAQgASgIEhMKC2lzX2xpZmV0aW1l", - "GAUgASgIEhUKDWlzX3Jlc3RyaWN0ZWQYBiABKAgSDwoHaXNfYmV0YRgHIAEo", - "CBIMCgRuYW1lGAggASgJEg8KB3Byb2dyYW0YCSABKAcSOQoIbGljZW5zZXMY", - "CiADKAsyJy5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2NvdW50TGljZW5z", - "ZRIZChFyZWFsbV9wZXJtaXNzaW9ucxgLIAEoDSKFAQoMR2FtZVRpbWVJbmZv", - "Eh4KFmlzX3VubGltaXRlZF9wbGF5X3RpbWUYAyABKAgSGQoRcGxheV90aW1l", - "X2V4cGlyZXMYBSABKAQSFwoPaXNfc3Vic2NyaXB0aW9uGAYgASgIEiEKGWlz", - "X3JlY3VycmluZ19zdWJzY3JpcHRpb24YByABKAgirQEKFUdhbWVUaW1lUmVt", - "YWluaW5nSW5mbxIZChFtaW51dGVzX3JlbWFpbmluZxgBIAEoDRIoCiBwYXJl", - "bnRhbF9kYWlseV9taW51dGVzX3JlbWFpbmluZxgCIAEoDRIpCiFwYXJlbnRh", - "bF93ZWVrbHlfbWludXRlc19yZW1haW5pbmcYAyABKA0SJAocc2Vjb25kc19y", - "ZW1haW5pbmdfdW50aWxfa2ljaxgEIAEoDSKQAQoKR2FtZVN0YXR1cxIUCgxp", - "c19zdXNwZW5kZWQYBCABKAgSEQoJaXNfYmFubmVkGAUgASgIEhoKEnN1c3Bl", - "bnNpb25fZXhwaXJlcxgGIAEoBBIPCgdwcm9ncmFtGAcgASgHEhEKCWlzX2xv", - "Y2tlZBgIIAEoCBIZChFpc19iYW1fdW5sb2NrYWJsZRgJIAEoCCIbCgdSQUZJ", - "bmZvEhAKCHJhZl9pbmZvGAEgASgMItEBCg9HYW1lU2Vzc2lvbkluZm8SFgoK", - "c3RhcnRfdGltZRgDIAEoDUICGAESPgoIbG9jYXRpb24YBCABKAsyLC5iZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MS5HYW1lU2Vzc2lvbkxvY2F0aW9uEhYKDmhh", - "c19iZW5lZmFjdG9yGAUgASgIEhQKDGlzX3VzaW5nX2lnchgGIAEoCBIgChhw", - "YXJlbnRhbF9jb250cm9sc19hY3RpdmUYByABKAgSFgoOc3RhcnRfdGltZV9z", - "ZWMYCCABKAQiRAoVR2FtZVNlc3Npb25VcGRhdGVJbmZvEisKBGNhaXMYCCAB", - "KAsyHS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5DQUlTIkgKE0dhbWVTZXNz", - "aW9uTG9jYXRpb24SEgoKaXBfYWRkcmVzcxgBIAEoCRIPCgdjb3VudHJ5GAIg", - "ASgNEgwKBGNpdHkYAyABKAkiTwoEQ0FJUxIWCg5wbGF5ZWRfbWludXRlcxgB", - "IAEoDRIWCg5yZXN0ZWRfbWludXRlcxgCIAEoDRIXCg9sYXN0X2hlYXJkX3Rp", - "bWUYAyABKAQiXQoPR2FtZUFjY291bnRMaXN0Eg4KBnJlZ2lvbhgDIAEoDRI6", - "CgZoYW5kbGUYBCADKAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1l", - "QWNjb3VudEhhbmRsZSKaAwoMQWNjb3VudFN0YXRlEkUKEmFjY291bnRfbGV2", - "ZWxfaW5mbxgBIAEoCzIpLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291", - "bnRMZXZlbEluZm8SOgoMcHJpdmFjeV9pbmZvGAIgASgLMiQuYmdzLnByb3Rv", - "Y29sLmFjY291bnQudjEuUHJpdmFjeUluZm8SSwoVcGFyZW50YWxfY29udHJv", - "bF9pbmZvGAMgASgLMiwuYmdzLnByb3RvY29sLmFjY291bnQudjEuUGFyZW50", - "YWxDb250cm9sSW5mbxI/Cg9nYW1lX2xldmVsX2luZm8YBSADKAsyJi5iZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MS5HYW1lTGV2ZWxJbmZvEjgKC2dhbWVfc3Rh", - "dHVzGAYgAygLMiMuYmdzLnByb3RvY29sLmFjY291bnQudjEuR2FtZVN0YXR1", - "cxI/Cg1nYW1lX2FjY291bnRzGAcgAygLMiguYmdzLnByb3RvY29sLmFjY291", - "bnQudjEuR2FtZUFjY291bnRMaXN0IpMBChJBY2NvdW50U3RhdGVUYWdnZWQS", - "PAoNYWNjb3VudF9zdGF0ZRgBIAEoCzIlLmJncy5wcm90b2NvbC5hY2NvdW50", - "LnYxLkFjY291bnRTdGF0ZRI/CgxhY2NvdW50X3RhZ3MYAiABKAsyKS5iZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MS5BY2NvdW50RmllbGRUYWdzIoACChBHYW1l", - "QWNjb3VudFN0YXRlEj8KD2dhbWVfbGV2ZWxfaW5mbxgBIAEoCzImLmJncy5w", - "cm90b2NvbC5hY2NvdW50LnYxLkdhbWVMZXZlbEluZm8SPQoOZ2FtZV90aW1l", - "X2luZm8YAiABKAsyJS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lVGlt", - "ZUluZm8SOAoLZ2FtZV9zdGF0dXMYAyABKAsyIy5iZ3MucHJvdG9jb2wuYWNj", - "b3VudC52MS5HYW1lU3RhdHVzEjIKCHJhZl9pbmZvGAQgASgLMiAuYmdzLnBy", - "b3RvY29sLmFjY291bnQudjEuUkFGSW5mbyKpAQoWR2FtZUFjY291bnRTdGF0", - "ZVRhZ2dlZBJFChJnYW1lX2FjY291bnRfc3RhdGUYASABKAsyKS5iZ3MucHJv", - "dG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudFN0YXRlEkgKEWdhbWVfYWNj", - "b3VudF90YWdzGAIgASgLMi0uYmdzLnByb3RvY29sLmFjY291bnQudjEuR2Ft", - "ZUFjY291bnRGaWVsZFRhZ3MiLwoOQXV0aG9yaXplZERhdGESDAoEZGF0YRgB", - "IAEoCRIPCgdsaWNlbnNlGAIgAygNKo4BChpJZGVudGl0eVZlcmlmaWNhdGlv", - "blN0YXR1cxIRCg1JREVOVF9OT19EQVRBEAASEQoNSURFTlRfUEVORElORxAB", - "EhAKDElERU5UX0ZBSUxFRBAEEhEKDUlERU5UX1NVQ0NFU1MQBRISCg5JREVO", - "VF9TVUNDX01OTBAGEhEKDUlERU5UX1VOS05PV04QB0ICSAJiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] { typeof(Bgs.Protocol.Account.V1.IdentityVerificationStatus), }, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountId), Bgs.Protocol.Account.V1.AccountId.Parser, new[]{ "Id" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountLicense), Bgs.Protocol.Account.V1.AccountLicense.Parser, new[]{ "Id", "Expires" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountCredential), Bgs.Protocol.Account.V1.AccountCredential.Parser, new[]{ "Id", "Data" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountBlob), Bgs.Protocol.Account.V1.AccountBlob.Parser, new[]{ "Id", "Region", "Email", "Flags", "SecureRelease", "WhitelistStart", "WhitelistEnd", "FullName", "Licenses", "Credentials", "AccountLinks", "BattleTag", "DefaultCurrency", "LegalRegion", "LegalLocale", "CacheExpiration", "ParentalControlInfo", "Country", "PreferredRegion", "IdentityCheckStatus" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountBlobList), Bgs.Protocol.Account.V1.AccountBlobList.Parser, new[]{ "Blob" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountHandle), Bgs.Protocol.Account.V1.GameAccountHandle.Parser, new[]{ "Id", "Program", "Region" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountLink), Bgs.Protocol.Account.V1.GameAccountLink.Parser, new[]{ "GameAccount", "Name" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountBlob), Bgs.Protocol.Account.V1.GameAccountBlob.Parser, new[]{ "GameAccount", "Name", "RealmPermissions", "Status", "Flags", "BillingFlags", "CacheExpiration", "SubscriptionExpiration", "UnitsRemaining", "StatusExpiration", "BoxLevel", "BoxLevelExpiration", "Licenses", "RafAccount", "RafInfo", "RafExpiration" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountBlobList), Bgs.Protocol.Account.V1.GameAccountBlobList.Parser, new[]{ "Blob" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountReference), Bgs.Protocol.Account.V1.AccountReference.Parser, new[]{ "Id", "Email", "Handle", "BattleTag", "Region" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.Identity), Bgs.Protocol.Account.V1.Identity.Parser, new[]{ "Account", "GameAccount", "Process" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.ProgramTag), Bgs.Protocol.Account.V1.ProgramTag.Parser, new[]{ "Program", "Tag" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.RegionTag), Bgs.Protocol.Account.V1.RegionTag.Parser, new[]{ "Region", "Tag" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountFieldTags), Bgs.Protocol.Account.V1.AccountFieldTags.Parser, new[]{ "AccountLevelInfoTag", "PrivacyInfoTag", "ParentalControlInfoTag", "GameLevelInfoTags", "GameStatusTags", "GameAccountTags" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountFieldTags), Bgs.Protocol.Account.V1.GameAccountFieldTags.Parser, new[]{ "GameLevelInfoTag", "GameTimeInfoTag", "GameStatusTag", "RafInfoTag" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountFieldOptions), Bgs.Protocol.Account.V1.AccountFieldOptions.Parser, new[]{ "AllFields", "FieldAccountLevelInfo", "FieldPrivacyInfo", "FieldParentalControlInfo", "FieldGameLevelInfo", "FieldGameStatus", "FieldGameAccounts" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountFieldOptions), Bgs.Protocol.Account.V1.GameAccountFieldOptions.Parser, new[]{ "AllFields", "FieldGameLevelInfo", "FieldGameTimeInfo", "FieldGameStatus", "FieldRafInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.SubscriberReference), Bgs.Protocol.Account.V1.SubscriberReference.Parser, new[]{ "ObjectId", "EntityId", "AccountOptions", "AccountTags", "GameAccountOptions", "GameAccountTags", "SubscriberId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountLevelInfo), Bgs.Protocol.Account.V1.AccountLevelInfo.Parser, new[]{ "Licenses", "DefaultCurrency", "Country", "PreferredRegion", "FullName", "BattleTag", "Muted", "ManualReview", "AccountPaidAny", "IdentityCheckStatus", "Email" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.PrivacyInfo), Bgs.Protocol.Account.V1.PrivacyInfo.Parser, new[]{ "IsUsingRid", "IsRealIdVisibleForViewFriends", "IsHiddenFromFriendFinder", "GameInfoPrivacy" }, null, new[]{ typeof(Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy) }, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.ParentalControlInfo), Bgs.Protocol.Account.V1.ParentalControlInfo.Parser, new[]{ "Timezone", "MinutesPerDay", "MinutesPerWeek", "CanReceiveVoice", "CanSendVoice", "PlaySchedule" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameLevelInfo), Bgs.Protocol.Account.V1.GameLevelInfo.Parser, new[]{ "IsTrial", "IsLifetime", "IsRestricted", "IsBeta", "Name", "Program", "Licenses", "RealmPermissions" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameTimeInfo), Bgs.Protocol.Account.V1.GameTimeInfo.Parser, new[]{ "IsUnlimitedPlayTime", "PlayTimeExpires", "IsSubscription", "IsRecurringSubscription" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameTimeRemainingInfo), Bgs.Protocol.Account.V1.GameTimeRemainingInfo.Parser, new[]{ "MinutesRemaining", "ParentalDailyMinutesRemaining", "ParentalWeeklyMinutesRemaining", "SecondsRemainingUntilKick" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameStatus), Bgs.Protocol.Account.V1.GameStatus.Parser, new[]{ "IsSuspended", "IsBanned", "SuspensionExpires", "Program", "IsLocked", "IsBamUnlockable" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.RAFInfo), Bgs.Protocol.Account.V1.RAFInfo.Parser, new[]{ "RafInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameSessionInfo), Bgs.Protocol.Account.V1.GameSessionInfo.Parser, new[]{ "StartTime", "Location", "HasBenefactor", "IsUsingIgr", "ParentalControlsActive", "StartTimeSec" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameSessionUpdateInfo), Bgs.Protocol.Account.V1.GameSessionUpdateInfo.Parser, new[]{ "Cais" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameSessionLocation), Bgs.Protocol.Account.V1.GameSessionLocation.Parser, new[]{ "IpAddress", "Country", "City" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.CAIS), Bgs.Protocol.Account.V1.CAIS.Parser, new[]{ "PlayedMinutes", "RestedMinutes", "LastHeardTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountList), Bgs.Protocol.Account.V1.GameAccountList.Parser, new[]{ "Region", "Handle" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountState), Bgs.Protocol.Account.V1.AccountState.Parser, new[]{ "AccountLevelInfo", "PrivacyInfo", "ParentalControlInfo", "GameLevelInfo", "GameStatus", "GameAccounts" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AccountStateTagged), Bgs.Protocol.Account.V1.AccountStateTagged.Parser, new[]{ "AccountState", "AccountTags" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountState), Bgs.Protocol.Account.V1.GameAccountState.Parser, new[]{ "GameLevelInfo", "GameTimeInfo", "GameStatus", "RafInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.GameAccountStateTagged), Bgs.Protocol.Account.V1.GameAccountStateTagged.Parser, new[]{ "GameAccountState", "GameAccountTags" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Account.V1.AuthorizedData), Bgs.Protocol.Account.V1.AuthorizedData.Parser, new[]{ "Data", "License" }, null, null, null) - })); - } - #endregion + /// Holder for reflection information generated from bgs/low/pb/client/account_types.proto + public static partial class AccountTypesReflection { + #region Descriptor + /// File descriptor for bgs/low/pb/client/account_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } - #region Enums - public enum IdentityVerificationStatus - { - IDENT_NO_DATA = 0, - IDENT_PENDING = 1, - IDENT_FAILED = 4, - IDENT_SUCCESS = 5, - IDENT_SUCC_MNL = 6, - IDENT_UNKNOWN = 7, - } + private static pbr::FileDescriptor descriptor; + static AccountTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiViZ3MvbG93L3BiL2NsaWVudC9hY2NvdW50X3R5cGVzLnByb3RvEhdiZ3Mu", + "cHJvdG9jb2wuYWNjb3VudC52MRokYmdzL2xvdy9wYi9jbGllbnQvZW50aXR5", + "X3R5cGVzLnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJv", + "dG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3Nh", + "Z2Vfb3B0aW9ucy5wcm90bxo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4", + "dGVuc2lvbnMvZmllbGRfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGll", + "bnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJn", + "cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0", + "aW9ucy5wcm90byIpCglBY2NvdW50SWQSFAoCaWQYASACKAdCCIr5KwQSAhAA", + "OgaC+SsCCAEiLQoOQWNjb3VudExpY2Vuc2USCgoCaWQYASACKA0SDwoHZXhw", + "aXJlcxgCIAEoBCJzChFHYW1lQWNjb3VudEhhbmRsZRIUCgJpZBgBIAIoB0II", + "ivkrBBICEAASGQoHcHJvZ3JhbRgCIAIoB0IIivkrBBICEAASJQoGcmVnaW9u", + "GAMgAigNQhWK+SsGEgQKAggBivkrBxIFCgMQ/wE6BoL5KwIIASKQAQoQQWNj", + "b3VudFJlZmVyZW5jZRIKCgJpZBgBIAEoBxINCgVlbWFpbBgCIAEoCRI6CgZo", + "YW5kbGUYAyABKAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNj", + "b3VudEhhbmRsZRISCgpiYXR0bGVfdGFnGAQgASgJEhEKBnJlZ2lvbhgKIAEo", + "DToBMCKJAQoISWRlbnRpdHkSMwoHYWNjb3VudBgBIAEoCzIiLmJncy5wcm90", + "b2NvbC5hY2NvdW50LnYxLkFjY291bnRJZBJACgxnYW1lX2FjY291bnQYAiAB", + "KAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEhhbmRs", + "ZToGgvkrAhABIioKClByb2dyYW1UYWcSDwoHcHJvZ3JhbRgBIAEoBxILCgN0", + "YWcYAiABKAciKAoJUmVnaW9uVGFnEg4KBnJlZ2lvbhgBIAEoBxILCgN0YWcY", + "AiABKAcisAIKEEFjY291bnRGaWVsZFRhZ3MSHgoWYWNjb3VudF9sZXZlbF9p", + "bmZvX3RhZxgCIAEoBxIYChBwcml2YWN5X2luZm9fdGFnGAMgASgHEiEKGXBh", + "cmVudGFsX2NvbnRyb2xfaW5mb190YWcYBCABKAcSQQoUZ2FtZV9sZXZlbF9p", + "bmZvX3RhZ3MYByADKAsyIy5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5Qcm9n", + "cmFtVGFnEj0KEGdhbWVfc3RhdHVzX3RhZ3MYCSADKAsyIy5iZ3MucHJvdG9j", + "b2wuYWNjb3VudC52MS5Qcm9ncmFtVGFnEj0KEWdhbWVfYWNjb3VudF90YWdz", + "GAsgAygLMiIuYmdzLnByb3RvY29sLmFjY291bnQudjEuUmVnaW9uVGFnIn4K", + "FEdhbWVBY2NvdW50RmllbGRUYWdzEhsKE2dhbWVfbGV2ZWxfaW5mb190YWcY", + "AiABKAcSGgoSZ2FtZV90aW1lX2luZm9fdGFnGAMgASgHEhcKD2dhbWVfc3Rh", + "dHVzX3RhZxgEIAEoBxIUCgxyYWZfaW5mb190YWcYBSABKAci4wEKE0FjY291", + "bnRGaWVsZE9wdGlvbnMSEgoKYWxsX2ZpZWxkcxgBIAEoCBIgChhmaWVsZF9h", + "Y2NvdW50X2xldmVsX2luZm8YAiABKAgSGgoSZmllbGRfcHJpdmFjeV9pbmZv", + "GAMgASgIEiMKG2ZpZWxkX3BhcmVudGFsX2NvbnRyb2xfaW5mbxgEIAEoCBId", + "ChVmaWVsZF9nYW1lX2xldmVsX2luZm8YBiABKAgSGQoRZmllbGRfZ2FtZV9z", + "dGF0dXMYByABKAgSGwoTZmllbGRfZ2FtZV9hY2NvdW50cxgIIAEoCCKdAQoX", + "R2FtZUFjY291bnRGaWVsZE9wdGlvbnMSEgoKYWxsX2ZpZWxkcxgBIAEoCBId", + "ChVmaWVsZF9nYW1lX2xldmVsX2luZm8YAiABKAgSHAoUZmllbGRfZ2FtZV90", + "aW1lX2luZm8YAyABKAgSGQoRZmllbGRfZ2FtZV9zdGF0dXMYBCABKAgSFgoO", + "ZmllbGRfcmFmX2luZm8YBSABKAgikgMKE1N1YnNjcmliZXJSZWZlcmVuY2US", + "FAoJb2JqZWN0X2lkGAEgASgEOgEwEikKCWVudGl0eV9pZBgCIAEoCzIWLmJn", + "cy5wcm90b2NvbC5FbnRpdHlJZBJFCg9hY2NvdW50X29wdGlvbnMYAyABKAsy", + "LC5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2NvdW50RmllbGRPcHRpb25z", + "Ej8KDGFjY291bnRfdGFncxgEIAEoCzIpLmJncy5wcm90b2NvbC5hY2NvdW50", + "LnYxLkFjY291bnRGaWVsZFRhZ3MSTgoUZ2FtZV9hY2NvdW50X29wdGlvbnMY", + "BSABKAsyMC5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEZp", + "ZWxkT3B0aW9ucxJIChFnYW1lX2FjY291bnRfdGFncxgGIAEoCzItLmJncy5w", + "cm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2NvdW50RmllbGRUYWdzEhgKDXN1", + "YnNjcmliZXJfaWQYByABKAQ6ATAi2AMKEEFjY291bnRMZXZlbEluZm8SOQoI", + "bGljZW5zZXMYAyADKAsyJy5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5BY2Nv", + "dW50TGljZW5zZRIYChBkZWZhdWx0X2N1cnJlbmN5GAQgASgHEg8KB2NvdW50", + "cnkYBSABKAkSGAoQcHJlZmVycmVkX3JlZ2lvbhgGIAEoDRIRCglmdWxsX25h", + "bWUYByABKAkSEgoKYmF0dGxlX3RhZxgIIAEoCRINCgVtdXRlZBgJIAEoCBIV", + "Cg1tYW51YWxfcmV2aWV3GAogASgIEhgKEGFjY291bnRfcGFpZF9hbnkYCyAB", + "KAgSYQoVaWRlbnRpdHlfY2hlY2tfc3RhdHVzGAwgASgOMjMuYmdzLnByb3Rv", + "Y29sLmFjY291bnQudjEuSWRlbnRpdHlWZXJpZmljYXRpb25TdGF0dXM6DUlE", + "RU5UX05PX0RBVEESDQoFZW1haWwYDSABKAkSGAoQaGVhZGxlc3NfYWNjb3Vu", + "dBgOIAEoCBIUCgx0ZXN0X2FjY291bnQYDyABKAgSGAoQaXNfc21zX3Byb3Rl", + "Y3RlZBgRIAEoCBIhChlyYXRpbmdzX2JvYXJkX21pbmltdW1fYWdlGBIgASgN", + "IsICCgtQcml2YWN5SW5mbxIUCgxpc191c2luZ19yaWQYAyABKAgSIwobaXNf", + "dmlzaWJsZV9mb3Jfdmlld19mcmllbmRzGAQgASgIEiQKHGlzX2hpZGRlbl9m", + "cm9tX2ZyaWVuZF9maW5kZXIYBSABKAgSYAoRZ2FtZV9pbmZvX3ByaXZhY3kY", + "BiABKA4yNC5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5Qcml2YWN5SW5mby5H", + "YW1lSW5mb1ByaXZhY3k6D1BSSVZBQ1lfRlJJRU5EUxIiChpvbmx5X2FsbG93", + "X2ZyaWVuZF93aGlzcGVycxgHIAEoCCJMCg9HYW1lSW5mb1ByaXZhY3kSDgoK", + "UFJJVkFDWV9NRRAAEhMKD1BSSVZBQ1lfRlJJRU5EUxABEhQKEFBSSVZBQ1lf", + "RVZFUllPTkUQAiLVAQoTUGFyZW50YWxDb250cm9sSW5mbxIQCgh0aW1lem9u", + "ZRgDIAEoCRIXCg9taW51dGVzX3Blcl9kYXkYBCABKA0SGAoQbWludXRlc19w", + "ZXJfd2VlaxgFIAEoDRIZChFjYW5fcmVjZWl2ZV92b2ljZRgGIAEoCBIWCg5j", + "YW5fc2VuZF92b2ljZRgHIAEoCBIVCg1wbGF5X3NjaGVkdWxlGAggAygIEhYK", + "DmNhbl9qb2luX2dyb3VwGAkgASgIEhcKD2Nhbl91c2VfcHJvZmlsZRgKIAEo", + "CCLTAQoNR2FtZUxldmVsSW5mbxIQCghpc190cmlhbBgEIAEoCBITCgtpc19s", + "aWZldGltZRgFIAEoCBIVCg1pc19yZXN0cmljdGVkGAYgASgIEg8KB2lzX2Jl", + "dGEYByABKAgSDAoEbmFtZRgIIAEoCRIPCgdwcm9ncmFtGAkgASgHEjkKCGxp", + "Y2Vuc2VzGAogAygLMicuYmdzLnByb3RvY29sLmFjY291bnQudjEuQWNjb3Vu", + "dExpY2Vuc2USGQoRcmVhbG1fcGVybWlzc2lvbnMYCyABKA0ihQEKDEdhbWVU", + "aW1lSW5mbxIeChZpc191bmxpbWl0ZWRfcGxheV90aW1lGAMgASgIEhkKEXBs", + "YXlfdGltZV9leHBpcmVzGAUgASgEEhcKD2lzX3N1YnNjcmlwdGlvbhgGIAEo", + "CBIhChlpc19yZWN1cnJpbmdfc3Vic2NyaXB0aW9uGAcgASgIIrEBChVHYW1l", + "VGltZVJlbWFpbmluZ0luZm8SGQoRbWludXRlc19yZW1haW5pbmcYASABKA0S", + "KAogcGFyZW50YWxfZGFpbHlfbWludXRlc19yZW1haW5pbmcYAiABKA0SKQoh", + "cGFyZW50YWxfd2Vla2x5X21pbnV0ZXNfcmVtYWluaW5nGAMgASgNEigKHHNl", + "Y29uZHNfcmVtYWluaW5nX3VudGlsX2tpY2sYBCABKA1CAhgBIpABCgpHYW1l", + "U3RhdHVzEhQKDGlzX3N1c3BlbmRlZBgEIAEoCBIRCglpc19iYW5uZWQYBSAB", + "KAgSGgoSc3VzcGVuc2lvbl9leHBpcmVzGAYgASgEEg8KB3Byb2dyYW0YByAB", + "KAcSEQoJaXNfbG9ja2VkGAggASgIEhkKEWlzX2JhbV91bmxvY2thYmxlGAkg", + "ASgIIhsKB1JBRkluZm8SEAoIcmFmX2luZm8YASABKAwigQIKD0dhbWVTZXNz", + "aW9uSW5mbxIWCgpzdGFydF90aW1lGAMgASgNQgIYARI+Cghsb2NhdGlvbhgE", + "IAEoCzIsLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVTZXNzaW9uTG9j", + "YXRpb24SFgoOaGFzX2JlbmVmYWN0b3IYBSABKAgSFAoMaXNfdXNpbmdfaWdy", + "GAYgASgIEiAKGHBhcmVudGFsX2NvbnRyb2xzX2FjdGl2ZRgHIAEoCBIWCg5z", + "dGFydF90aW1lX3NlYxgIIAEoBBIuCgZpZ3JfaWQYCSABKAsyHi5iZ3MucHJv", + "dG9jb2wuYWNjb3VudC52MS5JZ3JJZCJEChVHYW1lU2Vzc2lvblVwZGF0ZUlu", + "Zm8SKwoEY2FpcxgIIAEoCzIdLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkNB", + "SVMiSAoTR2FtZVNlc3Npb25Mb2NhdGlvbhISCgppcF9hZGRyZXNzGAEgASgJ", + "Eg8KB2NvdW50cnkYAiABKA0SDAoEY2l0eRgDIAEoCSJPCgRDQUlTEhYKDnBs", + "YXllZF9taW51dGVzGAEgASgNEhYKDnJlc3RlZF9taW51dGVzGAIgASgNEhcK", + "D2xhc3RfaGVhcmRfdGltZRgDIAEoBCJdCg9HYW1lQWNjb3VudExpc3QSDgoG", + "cmVnaW9uGAMgASgNEjoKBmhhbmRsZRgEIAMoCzIqLmJncy5wcm90b2NvbC5h", + "Y2NvdW50LnYxLkdhbWVBY2NvdW50SGFuZGxlIpoDCgxBY2NvdW50U3RhdGUS", + "RQoSYWNjb3VudF9sZXZlbF9pbmZvGAEgASgLMikuYmdzLnByb3RvY29sLmFj", + "Y291bnQudjEuQWNjb3VudExldmVsSW5mbxI6Cgxwcml2YWN5X2luZm8YAiAB", + "KAsyJC5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5Qcml2YWN5SW5mbxJLChVw", + "YXJlbnRhbF9jb250cm9sX2luZm8YAyABKAsyLC5iZ3MucHJvdG9jb2wuYWNj", + "b3VudC52MS5QYXJlbnRhbENvbnRyb2xJbmZvEj8KD2dhbWVfbGV2ZWxfaW5m", + "bxgFIAMoCzImLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVMZXZlbElu", + "Zm8SOAoLZ2FtZV9zdGF0dXMYBiADKAsyIy5iZ3MucHJvdG9jb2wuYWNjb3Vu", + "dC52MS5HYW1lU3RhdHVzEj8KDWdhbWVfYWNjb3VudHMYByADKAsyKC5iZ3Mu", + "cHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudExpc3QikwEKEkFjY291", + "bnRTdGF0ZVRhZ2dlZBI8Cg1hY2NvdW50X3N0YXRlGAEgASgLMiUuYmdzLnBy", + "b3RvY29sLmFjY291bnQudjEuQWNjb3VudFN0YXRlEj8KDGFjY291bnRfdGFn", + "cxgCIAEoCzIpLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRGaWVs", + "ZFRhZ3MigAIKEEdhbWVBY2NvdW50U3RhdGUSPwoPZ2FtZV9sZXZlbF9pbmZv", + "GAEgASgLMiYuYmdzLnByb3RvY29sLmFjY291bnQudjEuR2FtZUxldmVsSW5m", + "bxI9Cg5nYW1lX3RpbWVfaW5mbxgCIAEoCzIlLmJncy5wcm90b2NvbC5hY2Nv", + "dW50LnYxLkdhbWVUaW1lSW5mbxI4CgtnYW1lX3N0YXR1cxgDIAEoCzIjLmJn", + "cy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVTdGF0dXMSMgoIcmFmX2luZm8Y", + "BCABKAsyIC5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5SQUZJbmZvIqkBChZH", + "YW1lQWNjb3VudFN0YXRlVGFnZ2VkEkUKEmdhbWVfYWNjb3VudF9zdGF0ZRgB", + "IAEoCzIpLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2NvdW50U3Rh", + "dGUSSAoRZ2FtZV9hY2NvdW50X3RhZ3MYAiABKAsyLS5iZ3MucHJvdG9jb2wu", + "YWNjb3VudC52MS5HYW1lQWNjb3VudEZpZWxkVGFncyIvCg5BdXRob3JpemVk", + "RGF0YRIMCgRkYXRhGAEgASgJEg8KB2xpY2Vuc2UYAiADKA0iagoFSWdySWQS", + "QgoMZ2FtZV9hY2NvdW50GAEgASgLMiouYmdzLnByb3RvY29sLmFjY291bnQu", + "djEuR2FtZUFjY291bnRIYW5kbGVIABIVCgtleHRlcm5hbF9pZBgCIAEoB0gA", + "QgYKBHR5cGUiNAoKSWdyQWRkcmVzcxIWCg5jbGllbnRfYWRkcmVzcxgBIAEo", + "CRIOCgZyZWdpb24YAiABKA0qtQEKGklkZW50aXR5VmVyaWZpY2F0aW9uU3Rh", + "dHVzEhEKDUlERU5UX05PX0RBVEEQABIRCg1JREVOVF9QRU5ESU5HEAESEQoN", + "SURFTlRfT1ZFUl8xOBACEhIKDklERU5UX1VOREVSXzE4EAMSEAoMSURFTlRf", + "RkFJTEVEEAQSEQoNSURFTlRfU1VDQ0VTUxAFEhIKDklERU5UX1NVQ0NfTU5M", + "EAYSEQoNSURFTlRfVU5LTk9XThAH")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.Account.V1.IdentityVerificationStatus), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountId), global::Bgs.Protocol.Account.V1.AccountId.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountLicense), global::Bgs.Protocol.Account.V1.AccountLicense.Parser, new[]{ "Id", "Expires" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountHandle), global::Bgs.Protocol.Account.V1.GameAccountHandle.Parser, new[]{ "Id", "Program", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountReference), global::Bgs.Protocol.Account.V1.AccountReference.Parser, new[]{ "Id", "Email", "Handle", "BattleTag", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.Identity), global::Bgs.Protocol.Account.V1.Identity.Parser, new[]{ "Account", "GameAccount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.ProgramTag), global::Bgs.Protocol.Account.V1.ProgramTag.Parser, new[]{ "Program", "Tag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.RegionTag), global::Bgs.Protocol.Account.V1.RegionTag.Parser, new[]{ "Region", "Tag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountFieldTags), global::Bgs.Protocol.Account.V1.AccountFieldTags.Parser, new[]{ "AccountLevelInfoTag", "PrivacyInfoTag", "ParentalControlInfoTag", "GameLevelInfoTags", "GameStatusTags", "GameAccountTags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountFieldTags), global::Bgs.Protocol.Account.V1.GameAccountFieldTags.Parser, new[]{ "GameLevelInfoTag", "GameTimeInfoTag", "GameStatusTag", "RafInfoTag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountFieldOptions), global::Bgs.Protocol.Account.V1.AccountFieldOptions.Parser, new[]{ "AllFields", "FieldAccountLevelInfo", "FieldPrivacyInfo", "FieldParentalControlInfo", "FieldGameLevelInfo", "FieldGameStatus", "FieldGameAccounts" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountFieldOptions), global::Bgs.Protocol.Account.V1.GameAccountFieldOptions.Parser, new[]{ "AllFields", "FieldGameLevelInfo", "FieldGameTimeInfo", "FieldGameStatus", "FieldRafInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.SubscriberReference), global::Bgs.Protocol.Account.V1.SubscriberReference.Parser, new[]{ "ObjectId", "EntityId", "AccountOptions", "AccountTags", "GameAccountOptions", "GameAccountTags", "SubscriberId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountLevelInfo), global::Bgs.Protocol.Account.V1.AccountLevelInfo.Parser, new[]{ "Licenses", "DefaultCurrency", "Country", "PreferredRegion", "FullName", "BattleTag", "Muted", "ManualReview", "AccountPaidAny", "IdentityCheckStatus", "Email", "HeadlessAccount", "TestAccount", "IsSmsProtected", "RatingsBoardMinimumAge" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.PrivacyInfo), global::Bgs.Protocol.Account.V1.PrivacyInfo.Parser, new[]{ "IsUsingRid", "IsVisibleForViewFriends", "IsHiddenFromFriendFinder", "GameInfoPrivacy", "OnlyAllowFriendWhispers" }, null, new[]{ typeof(global::Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.ParentalControlInfo), global::Bgs.Protocol.Account.V1.ParentalControlInfo.Parser, new[]{ "Timezone", "MinutesPerDay", "MinutesPerWeek", "CanReceiveVoice", "CanSendVoice", "PlaySchedule", "CanJoinGroup", "CanUseProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameLevelInfo), global::Bgs.Protocol.Account.V1.GameLevelInfo.Parser, new[]{ "IsTrial", "IsLifetime", "IsRestricted", "IsBeta", "Name", "Program", "Licenses", "RealmPermissions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameTimeInfo), global::Bgs.Protocol.Account.V1.GameTimeInfo.Parser, new[]{ "IsUnlimitedPlayTime", "PlayTimeExpires", "IsSubscription", "IsRecurringSubscription" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameTimeRemainingInfo), global::Bgs.Protocol.Account.V1.GameTimeRemainingInfo.Parser, new[]{ "MinutesRemaining", "ParentalDailyMinutesRemaining", "ParentalWeeklyMinutesRemaining", "SecondsRemainingUntilKick" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameStatus), global::Bgs.Protocol.Account.V1.GameStatus.Parser, new[]{ "IsSuspended", "IsBanned", "SuspensionExpires", "Program", "IsLocked", "IsBamUnlockable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.RAFInfo), global::Bgs.Protocol.Account.V1.RAFInfo.Parser, new[]{ "RafInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameSessionInfo), global::Bgs.Protocol.Account.V1.GameSessionInfo.Parser, new[]{ "StartTime", "Location", "HasBenefactor", "IsUsingIgr", "ParentalControlsActive", "StartTimeSec", "IgrId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameSessionUpdateInfo), global::Bgs.Protocol.Account.V1.GameSessionUpdateInfo.Parser, new[]{ "Cais" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameSessionLocation), global::Bgs.Protocol.Account.V1.GameSessionLocation.Parser, new[]{ "IpAddress", "Country", "City" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.CAIS), global::Bgs.Protocol.Account.V1.CAIS.Parser, new[]{ "PlayedMinutes", "RestedMinutes", "LastHeardTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountList), global::Bgs.Protocol.Account.V1.GameAccountList.Parser, new[]{ "Region", "Handle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountState), global::Bgs.Protocol.Account.V1.AccountState.Parser, new[]{ "AccountLevelInfo", "PrivacyInfo", "ParentalControlInfo", "GameLevelInfo", "GameStatus", "GameAccounts" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AccountStateTagged), global::Bgs.Protocol.Account.V1.AccountStateTagged.Parser, new[]{ "AccountState", "AccountTags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountState), global::Bgs.Protocol.Account.V1.GameAccountState.Parser, new[]{ "GameLevelInfo", "GameTimeInfo", "GameStatus", "RafInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.GameAccountStateTagged), global::Bgs.Protocol.Account.V1.GameAccountStateTagged.Parser, new[]{ "GameAccountState", "GameAccountTags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.AuthorizedData), global::Bgs.Protocol.Account.V1.AuthorizedData.Parser, new[]{ "Data", "License" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.IgrId), global::Bgs.Protocol.Account.V1.IgrId.Parser, new[]{ "GameAccount", "ExternalId" }, new[]{ "Type" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V1.IgrAddress), global::Bgs.Protocol.Account.V1.IgrAddress.Parser, new[]{ "ClientAddress", "Region" }, null, null, null, null) + })); + } #endregion - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountId : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountId()); - public static pb::MessageParser Parser { get { return _parser; } } + } + #region Enums + public enum IdentityVerificationStatus { + [pbr::OriginalName("IDENT_NO_DATA")] IdentNoData = 0, + [pbr::OriginalName("IDENT_PENDING")] IdentPending = 1, + [pbr::OriginalName("IDENT_OVER_18")] IdentOver18 = 2, + [pbr::OriginalName("IDENT_UNDER_18")] IdentUnder18 = 3, + [pbr::OriginalName("IDENT_FAILED")] IdentFailed = 4, + [pbr::OriginalName("IDENT_SUCCESS")] IdentSuccess = 5, + [pbr::OriginalName("IDENT_SUCC_MNL")] IdentSuccMnl = 6, + [pbr::OriginalName("IDENT_UNKNOWN")] IdentUnknown = 7, + } - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[0]; } - } + #endregion - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountId() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountId(AccountId other) : this() - { - id_ = other.id_; - } - - public AccountId Clone() - { - return new AccountId(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountId); - } - - public bool Equals(AccountId other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Id); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(AccountId other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Id = input.ReadFixed32(); - break; - } - } - } - } + #region Messages + public sealed partial class AccountId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[0]; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountLicense : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountLicense()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountLicense() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountLicense(AccountLicense other) : this() - { - id_ = other.id_; - expires_ = other.expires_; - } - - public AccountLicense Clone() - { - return new AccountLicense(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "expires" field. - public const int ExpiresFieldNumber = 2; - private ulong expires_; - public ulong Expires - { - get { return expires_; } - set - { - expires_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountLicense); - } - - public bool Equals(AccountLicense other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - if (Expires != other.Expires) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - if (Expires != 0UL) hash ^= Expires.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - if (Expires != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(Expires); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (Expires != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Expires); - } - return size; - } - - public void MergeFrom(AccountLicense other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.Expires != 0UL) - { - Expires = other.Expires; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Id = input.ReadUInt32(); - break; - } - case 16: - { - Expires = input.ReadUInt64(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountCredential : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountCredential()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountCredential() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountCredential(AccountCredential other) : this() - { - id_ = other.id_; - data_ = other.data_; - } - - public AccountCredential Clone() - { - return new AccountCredential(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 2; - private pb::ByteString data_ = pb::ByteString.Empty; - public pb::ByteString Data - { - get { return data_; } - set - { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountCredential); - } - - public bool Equals(AccountCredential other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - if (Data != other.Data) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - if (Data.Length != 0) hash ^= Data.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - if (Data.Length != 0) - { - output.WriteRawTag(18); - output.WriteBytes(Data); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (Data.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - return size; - } - - public void MergeFrom(AccountCredential other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.Data.Length != 0) - { - Data = other.Data; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Id = input.ReadUInt32(); - break; - } - case 18: - { - Data = input.ReadBytes(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountId() { + OnConstruction(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountBlob : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBlob()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[3]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountBlob() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountBlob(AccountBlob other) : this() - { - id_ = other.id_; - region_ = other.region_; - email_ = other.email_.Clone(); - flags_ = other.flags_; - secureRelease_ = other.secureRelease_; - whitelistStart_ = other.whitelistStart_; - whitelistEnd_ = other.whitelistEnd_; - fullName_ = other.fullName_; - licenses_ = other.licenses_.Clone(); - credentials_ = other.credentials_.Clone(); - accountLinks_ = other.accountLinks_.Clone(); - battleTag_ = other.battleTag_; - defaultCurrency_ = other.defaultCurrency_; - legalRegion_ = other.legalRegion_; - legalLocale_ = other.legalLocale_; - cacheExpiration_ = other.cacheExpiration_; - ParentalControlInfo = other.parentalControlInfo_ != null ? other.ParentalControlInfo.Clone() : null; - country_ = other.country_; - preferredRegion_ = other.preferredRegion_; - identityCheckStatus_ = other.identityCheckStatus_; - } - - public AccountBlob Clone() - { - return new AccountBlob(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 3; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_email_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField email_ = new pbc::RepeatedField(); - public pbc::RepeatedField Email - { - get { return email_; } - } - - /// Field number for the "flags" field. - public const int FlagsFieldNumber = 5; - private ulong flags_; - public ulong Flags - { - get { return flags_; } - set - { - flags_ = value; - } - } - - /// Field number for the "secure_release" field. - public const int SecureReleaseFieldNumber = 6; - private ulong secureRelease_; - public ulong SecureRelease - { - get { return secureRelease_; } - set - { - secureRelease_ = value; - } - } - - /// Field number for the "whitelist_start" field. - public const int WhitelistStartFieldNumber = 7; - private ulong whitelistStart_; - public ulong WhitelistStart - { - get { return whitelistStart_; } - set - { - whitelistStart_ = value; - } - } - - /// Field number for the "whitelist_end" field. - public const int WhitelistEndFieldNumber = 8; - private ulong whitelistEnd_; - public ulong WhitelistEnd - { - get { return whitelistEnd_; } - set - { - whitelistEnd_ = value; - } - } - - /// Field number for the "full_name" field. - public const int FullNameFieldNumber = 10; - private string fullName_ = ""; - public string FullName - { - get { return fullName_; } - set - { - fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "licenses" field. - public const int LicensesFieldNumber = 20; - private static readonly pb::FieldCodec _repeated_licenses_codec - = pb::FieldCodec.ForMessage(162, Bgs.Protocol.Account.V1.AccountLicense.Parser); - private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); - public pbc::RepeatedField Licenses - { - get { return licenses_; } - } - - /// Field number for the "credentials" field. - public const int CredentialsFieldNumber = 21; - private static readonly pb::FieldCodec _repeated_credentials_codec - = pb::FieldCodec.ForMessage(170, Bgs.Protocol.Account.V1.AccountCredential.Parser); - private readonly pbc::RepeatedField credentials_ = new pbc::RepeatedField(); - public pbc::RepeatedField Credentials - { - get { return credentials_; } - } - - /// Field number for the "account_links" field. - public const int AccountLinksFieldNumber = 22; - private static readonly pb::FieldCodec _repeated_accountLinks_codec - = pb::FieldCodec.ForMessage(178, Bgs.Protocol.Account.V1.GameAccountLink.Parser); - private readonly pbc::RepeatedField accountLinks_ = new pbc::RepeatedField(); - public pbc::RepeatedField AccountLinks - { - get { return accountLinks_; } - } - - /// Field number for the "battle_tag" field. - public const int BattleTagFieldNumber = 23; - private string battleTag_ = ""; - public string BattleTag - { - get { return battleTag_; } - set - { - battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "default_currency" field. - public const int DefaultCurrencyFieldNumber = 25; - private uint defaultCurrency_; - public uint DefaultCurrency - { - get { return defaultCurrency_; } - set - { - defaultCurrency_ = value; - } - } - - /// Field number for the "legal_region" field. - public const int LegalRegionFieldNumber = 26; - private uint legalRegion_; - public uint LegalRegion - { - get { return legalRegion_; } - set - { - legalRegion_ = value; - } - } - - /// Field number for the "legal_locale" field. - public const int LegalLocaleFieldNumber = 27; - private uint legalLocale_; - public uint LegalLocale - { - get { return legalLocale_; } - set - { - legalLocale_ = value; - } - } - - /// Field number for the "cache_expiration" field. - public const int CacheExpirationFieldNumber = 30; - private ulong cacheExpiration_; - public ulong CacheExpiration - { - get { return cacheExpiration_; } - set - { - cacheExpiration_ = value; - } - } - - /// Field number for the "parental_control_info" field. - public const int ParentalControlInfoFieldNumber = 31; - private Bgs.Protocol.Account.V1.ParentalControlInfo parentalControlInfo_; - public Bgs.Protocol.Account.V1.ParentalControlInfo ParentalControlInfo - { - get { return parentalControlInfo_; } - set - { - parentalControlInfo_ = value; - } - } - - /// Field number for the "country" field. - public const int CountryFieldNumber = 32; - private string country_ = ""; - public string Country - { - get { return country_; } - set - { - country_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "preferred_region" field. - public const int PreferredRegionFieldNumber = 33; - private uint preferredRegion_; - public uint PreferredRegion - { - get { return preferredRegion_; } - set - { - preferredRegion_ = value; - } - } - - /// Field number for the "identity_check_status" field. - public const int IdentityCheckStatusFieldNumber = 34; - private Bgs.Protocol.Account.V1.IdentityVerificationStatus identityCheckStatus_ = Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA; - public Bgs.Protocol.Account.V1.IdentityVerificationStatus IdentityCheckStatus - { - get { return identityCheckStatus_; } - set - { - identityCheckStatus_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountBlob); - } - - public bool Equals(AccountBlob other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - if (Region != other.Region) return false; - if (!email_.Equals(other.email_)) return false; - if (Flags != other.Flags) return false; - if (SecureRelease != other.SecureRelease) return false; - if (WhitelistStart != other.WhitelistStart) return false; - if (WhitelistEnd != other.WhitelistEnd) return false; - if (FullName != other.FullName) return false; - if (!licenses_.Equals(other.licenses_)) return false; - if (!credentials_.Equals(other.credentials_)) return false; - if (!accountLinks_.Equals(other.accountLinks_)) return false; - if (BattleTag != other.BattleTag) return false; - if (DefaultCurrency != other.DefaultCurrency) return false; - if (LegalRegion != other.LegalRegion) return false; - if (LegalLocale != other.LegalLocale) return false; - if (CacheExpiration != other.CacheExpiration) return false; - if (!object.Equals(ParentalControlInfo, other.ParentalControlInfo)) return false; - if (Country != other.Country) return false; - if (PreferredRegion != other.PreferredRegion) return false; - if (IdentityCheckStatus != other.IdentityCheckStatus) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - if (Region != 0) hash ^= Region.GetHashCode(); - hash ^= email_.GetHashCode(); - if (Flags != 0UL) hash ^= Flags.GetHashCode(); - if (SecureRelease != 0UL) hash ^= SecureRelease.GetHashCode(); - if (WhitelistStart != 0UL) hash ^= WhitelistStart.GetHashCode(); - if (WhitelistEnd != 0UL) hash ^= WhitelistEnd.GetHashCode(); - if (FullName.Length != 0) hash ^= FullName.GetHashCode(); - hash ^= licenses_.GetHashCode(); - hash ^= credentials_.GetHashCode(); - hash ^= accountLinks_.GetHashCode(); - if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode(); - if (DefaultCurrency != 0) hash ^= DefaultCurrency.GetHashCode(); - if (LegalRegion != 0) hash ^= LegalRegion.GetHashCode(); - if (LegalLocale != 0) hash ^= LegalLocale.GetHashCode(); - if (CacheExpiration != 0UL) hash ^= CacheExpiration.GetHashCode(); - if (parentalControlInfo_ != null) hash ^= ParentalControlInfo.GetHashCode(); - if (Country.Length != 0) hash ^= Country.GetHashCode(); - if (PreferredRegion != 0) hash ^= PreferredRegion.GetHashCode(); - if (IdentityCheckStatus != Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA) hash ^= IdentityCheckStatus.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(Id); - } - if (Region != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(Region); - } - email_.WriteTo(output, _repeated_email_codec); - if (Flags != 0UL) - { - output.WriteRawTag(40); - output.WriteUInt64(Flags); - } - if (SecureRelease != 0UL) - { - output.WriteRawTag(48); - output.WriteUInt64(SecureRelease); - } - if (WhitelistStart != 0UL) - { - output.WriteRawTag(56); - output.WriteUInt64(WhitelistStart); - } - if (WhitelistEnd != 0UL) - { - output.WriteRawTag(64); - output.WriteUInt64(WhitelistEnd); - } - if (FullName.Length != 0) - { - output.WriteRawTag(82); - output.WriteString(FullName); - } - licenses_.WriteTo(output, _repeated_licenses_codec); - credentials_.WriteTo(output, _repeated_credentials_codec); - accountLinks_.WriteTo(output, _repeated_accountLinks_codec); - if (BattleTag.Length != 0) - { - output.WriteRawTag(186, 1); - output.WriteString(BattleTag); - } - if (DefaultCurrency != 0) - { - output.WriteRawTag(205, 1); - output.WriteFixed32(DefaultCurrency); - } - if (LegalRegion != 0) - { - output.WriteRawTag(208, 1); - output.WriteUInt32(LegalRegion); - } - if (LegalLocale != 0) - { - output.WriteRawTag(221, 1); - output.WriteFixed32(LegalLocale); - } - if (CacheExpiration != 0UL) - { - output.WriteRawTag(240, 1); - output.WriteUInt64(CacheExpiration); - } - if (parentalControlInfo_ != null) - { - output.WriteRawTag(250, 1); - output.WriteMessage(ParentalControlInfo); - } - if (Country.Length != 0) - { - output.WriteRawTag(130, 2); - output.WriteString(Country); - } - if (PreferredRegion != 0) - { - output.WriteRawTag(136, 2); - output.WriteUInt32(PreferredRegion); - } - if (IdentityCheckStatus != Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA) - { - output.WriteRawTag(144, 2); - output.WriteEnum((int)IdentityCheckStatus); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + 4; - } - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - size += email_.CalculateSize(_repeated_email_codec); - if (Flags != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Flags); - } - if (SecureRelease != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SecureRelease); - } - if (WhitelistStart != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(WhitelistStart); - } - if (WhitelistEnd != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(WhitelistEnd); - } - if (FullName.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName); - } - size += licenses_.CalculateSize(_repeated_licenses_codec); - size += credentials_.CalculateSize(_repeated_credentials_codec); - size += accountLinks_.CalculateSize(_repeated_accountLinks_codec); - if (BattleTag.Length != 0) - { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BattleTag); - } - if (DefaultCurrency != 0) - { - size += 2 + 4; - } - if (LegalRegion != 0) - { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(LegalRegion); - } - if (LegalLocale != 0) - { - size += 2 + 4; - } - if (CacheExpiration != 0UL) - { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(CacheExpiration); - } - if (parentalControlInfo_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParentalControlInfo); - } - if (Country.Length != 0) - { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Country); - } - if (PreferredRegion != 0) - { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(PreferredRegion); - } - if (IdentityCheckStatus != Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA) - { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int)IdentityCheckStatus); - } - return size; - } - - public void MergeFrom(AccountBlob other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.Region != 0) - { - Region = other.Region; - } - email_.Add(other.email_); - if (other.Flags != 0UL) - { - Flags = other.Flags; - } - if (other.SecureRelease != 0UL) - { - SecureRelease = other.SecureRelease; - } - if (other.WhitelistStart != 0UL) - { - WhitelistStart = other.WhitelistStart; - } - if (other.WhitelistEnd != 0UL) - { - WhitelistEnd = other.WhitelistEnd; - } - if (other.FullName.Length != 0) - { - FullName = other.FullName; - } - licenses_.Add(other.licenses_); - credentials_.Add(other.credentials_); - accountLinks_.Add(other.accountLinks_); - if (other.BattleTag.Length != 0) - { - BattleTag = other.BattleTag; - } - if (other.DefaultCurrency != 0) - { - DefaultCurrency = other.DefaultCurrency; - } - if (other.LegalRegion != 0) - { - LegalRegion = other.LegalRegion; - } - if (other.LegalLocale != 0) - { - LegalLocale = other.LegalLocale; - } - if (other.CacheExpiration != 0UL) - { - CacheExpiration = other.CacheExpiration; - } - if (other.parentalControlInfo_ != null) - { - if (parentalControlInfo_ == null) - { - parentalControlInfo_ = new Bgs.Protocol.Account.V1.ParentalControlInfo(); - } - ParentalControlInfo.MergeFrom(other.ParentalControlInfo); - } - if (other.Country.Length != 0) - { - Country = other.Country; - } - if (other.PreferredRegion != 0) - { - PreferredRegion = other.PreferredRegion; - } - if (other.IdentityCheckStatus != Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA) - { - IdentityCheckStatus = other.IdentityCheckStatus; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 21: - { - Id = input.ReadFixed32(); - break; - } - case 24: - { - Region = input.ReadUInt32(); - break; - } - case 34: - { - email_.AddEntriesFrom(input, _repeated_email_codec); - break; - } - case 40: - { - Flags = input.ReadUInt64(); - break; - } - case 48: - { - SecureRelease = input.ReadUInt64(); - break; - } - case 56: - { - WhitelistStart = input.ReadUInt64(); - break; - } - case 64: - { - WhitelistEnd = input.ReadUInt64(); - break; - } - case 82: - { - FullName = input.ReadString(); - break; - } - case 162: - { - licenses_.AddEntriesFrom(input, _repeated_licenses_codec); - break; - } - case 170: - { - credentials_.AddEntriesFrom(input, _repeated_credentials_codec); - break; - } - case 178: - { - accountLinks_.AddEntriesFrom(input, _repeated_accountLinks_codec); - break; - } - case 186: - { - BattleTag = input.ReadString(); - break; - } - case 205: - { - DefaultCurrency = input.ReadFixed32(); - break; - } - case 208: - { - LegalRegion = input.ReadUInt32(); - break; - } - case 221: - { - LegalLocale = input.ReadFixed32(); - break; - } - case 240: - { - CacheExpiration = input.ReadUInt64(); - break; - } - case 250: - { - if (parentalControlInfo_ == null) - { - parentalControlInfo_ = new Bgs.Protocol.Account.V1.ParentalControlInfo(); - } - input.ReadMessage(parentalControlInfo_); - break; - } - case 258: - { - Country = input.ReadString(); - break; - } - case 264: - { - PreferredRegion = input.ReadUInt32(); - break; - } - case 272: - { - identityCheckStatus_ = (Bgs.Protocol.Account.V1.IdentityVerificationStatus)input.ReadEnum(); - break; - } - } - } - } + partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountId(AccountId other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountBlobList : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBlobList()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountBlobList() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountBlobList(AccountBlobList other) : this() - { - blob_ = other.blob_.Clone(); - } - - public AccountBlobList Clone() - { - return new AccountBlobList(this); - } - - /// Field number for the "blob" field. - public const int BlobFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_blob_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.AccountBlob.Parser); - private readonly pbc::RepeatedField blob_ = new pbc::RepeatedField(); - public pbc::RepeatedField Blob - { - get { return blob_; } - } - - public override bool Equals(object other) - { - return Equals(other as AccountBlobList); - } - - public bool Equals(AccountBlobList other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!blob_.Equals(other.blob_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= blob_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - blob_.WriteTo(output, _repeated_blob_codec); - } - - public int CalculateSize() - { - int size = 0; - size += blob_.CalculateSize(_repeated_blob_codec); - return size; - } - - public void MergeFrom(AccountBlobList other) - { - if (other == null) - { - return; - } - blob_.Add(other.blob_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - blob_.AddEntriesFrom(input, _repeated_blob_codec); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountId Clone() { + return new AccountId(this); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountHandle : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountHandle()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountHandle() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountHandle(GameAccountHandle other) : this() - { - id_ = other.id_; - program_ = other.program_; - region_ = other.region_; - } - - public GameAccountHandle Clone() - { - return new GameAccountHandle(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 2; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 3; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountHandle); - } - - public bool Equals(GameAccountHandle other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - if (Program != other.Program) return false; - if (Region != other.Region) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (Region != 0) hash ^= Region.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Id); - } - if (Program != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(Program); - } - if (Region != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(Region); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + 4; - } - if (Program != 0) - { - size += 1 + 4; - } - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - return size; - } - - public void MergeFrom(GameAccountHandle other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.Program != 0) - { - Program = other.Program; - } - if (other.Region != 0) - { - Region = other.Region; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Id = input.ReadFixed32(); - break; - } - case 21: - { - Program = input.ReadFixed32(); - break; - } - case 24: - { - Region = input.ReadUInt32(); - break; - } - } - } - } + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountLink : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountLink()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountLink() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountLink(GameAccountLink other) : this() - { - GameAccount = other.gameAccount_ != null ? other.GameAccount.Clone() : null; - name_ = other.name_; - } - - public GameAccountLink Clone() - { - return new GameAccountLink(this); - } - - /// Field number for the "game_account" field. - public const int GameAccountFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; - public Bgs.Protocol.Account.V1.GameAccountHandle GameAccount - { - get { return gameAccount_; } - set - { - gameAccount_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - public string Name - { - get { return name_; } - set - { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountLink); - } - - public bool Equals(GameAccountLink other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccount, other.GameAccount)) return false; - if (Name != other.Name) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccount_ != null) hash ^= GameAccount.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccount_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccount); - } - if (Name.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(Name); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccount_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); - } - if (Name.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - return size; - } - - public void MergeFrom(GameAccountLink other) - { - if (other == null) - { - return; - } - if (other.gameAccount_ != null) - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - GameAccount.MergeFrom(other.GameAccount); - } - if (other.Name.Length != 0) - { - Name = other.Name; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - input.ReadMessage(gameAccount_); - break; - } - case 18: - { - Name = input.ReadString(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountId); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountBlob : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountBlob()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[7]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountBlob() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountBlob(GameAccountBlob other) : this() - { - GameAccount = other.gameAccount_ != null ? other.GameAccount.Clone() : null; - name_ = other.name_; - realmPermissions_ = other.realmPermissions_; - status_ = other.status_; - flags_ = other.flags_; - billingFlags_ = other.billingFlags_; - cacheExpiration_ = other.cacheExpiration_; - subscriptionExpiration_ = other.subscriptionExpiration_; - unitsRemaining_ = other.unitsRemaining_; - statusExpiration_ = other.statusExpiration_; - boxLevel_ = other.boxLevel_; - boxLevelExpiration_ = other.boxLevelExpiration_; - licenses_ = other.licenses_.Clone(); - rafAccount_ = other.rafAccount_; - rafInfo_ = other.rafInfo_; - rafExpiration_ = other.rafExpiration_; - } - - public GameAccountBlob Clone() - { - return new GameAccountBlob(this); - } - - /// Field number for the "game_account" field. - public const int GameAccountFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; - public Bgs.Protocol.Account.V1.GameAccountHandle GameAccount - { - get { return gameAccount_; } - set - { - gameAccount_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - public string Name - { - get { return name_; } - set - { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "realm_permissions" field. - public const int RealmPermissionsFieldNumber = 3; - private uint realmPermissions_; - public uint RealmPermissions - { - get { return realmPermissions_; } - set - { - realmPermissions_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private uint status_; - public uint Status - { - get { return status_; } - set - { - status_ = value; - } - } - - /// Field number for the "flags" field. - public const int FlagsFieldNumber = 5; - private ulong flags_; - public ulong Flags - { - get { return flags_; } - set - { - flags_ = value; - } - } - - /// Field number for the "billing_flags" field. - public const int BillingFlagsFieldNumber = 6; - private uint billingFlags_; - public uint BillingFlags - { - get { return billingFlags_; } - set - { - billingFlags_ = value; - } - } - - /// Field number for the "cache_expiration" field. - public const int CacheExpirationFieldNumber = 7; - private ulong cacheExpiration_; - public ulong CacheExpiration - { - get { return cacheExpiration_; } - set - { - cacheExpiration_ = value; - } - } - - /// Field number for the "subscription_expiration" field. - public const int SubscriptionExpirationFieldNumber = 10; - private ulong subscriptionExpiration_; - public ulong SubscriptionExpiration - { - get { return subscriptionExpiration_; } - set - { - subscriptionExpiration_ = value; - } - } - - /// Field number for the "units_remaining" field. - public const int UnitsRemainingFieldNumber = 11; - private uint unitsRemaining_; - public uint UnitsRemaining - { - get { return unitsRemaining_; } - set - { - unitsRemaining_ = value; - } - } - - /// Field number for the "status_expiration" field. - public const int StatusExpirationFieldNumber = 12; - private ulong statusExpiration_; - public ulong StatusExpiration - { - get { return statusExpiration_; } - set - { - statusExpiration_ = value; - } - } - - /// Field number for the "box_level" field. - public const int BoxLevelFieldNumber = 13; - private uint boxLevel_; - public uint BoxLevel - { - get { return boxLevel_; } - set - { - boxLevel_ = value; - } - } - - /// Field number for the "box_level_expiration" field. - public const int BoxLevelExpirationFieldNumber = 14; - private ulong boxLevelExpiration_; - public ulong BoxLevelExpiration - { - get { return boxLevelExpiration_; } - set - { - boxLevelExpiration_ = value; - } - } - - /// Field number for the "licenses" field. - public const int LicensesFieldNumber = 20; - private static readonly pb::FieldCodec _repeated_licenses_codec - = pb::FieldCodec.ForMessage(162, Bgs.Protocol.Account.V1.AccountLicense.Parser); - private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); - public pbc::RepeatedField Licenses - { - get { return licenses_; } - } - - /// Field number for the "raf_account" field. - public const int RafAccountFieldNumber = 21; - private uint rafAccount_; - public uint RafAccount - { - get { return rafAccount_; } - set - { - rafAccount_ = value; - } - } - - /// Field number for the "raf_info" field. - public const int RafInfoFieldNumber = 22; - private pb::ByteString rafInfo_ = pb::ByteString.Empty; - public pb::ByteString RafInfo - { - get { return rafInfo_; } - set - { - rafInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "raf_expiration" field. - public const int RafExpirationFieldNumber = 23; - private ulong rafExpiration_; - public ulong RafExpiration - { - get { return rafExpiration_; } - set - { - rafExpiration_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountBlob); - } - - public bool Equals(GameAccountBlob other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccount, other.GameAccount)) return false; - if (Name != other.Name) return false; - if (RealmPermissions != other.RealmPermissions) return false; - if (Status != other.Status) return false; - if (Flags != other.Flags) return false; - if (BillingFlags != other.BillingFlags) return false; - if (CacheExpiration != other.CacheExpiration) return false; - if (SubscriptionExpiration != other.SubscriptionExpiration) return false; - if (UnitsRemaining != other.UnitsRemaining) return false; - if (StatusExpiration != other.StatusExpiration) return false; - if (BoxLevel != other.BoxLevel) return false; - if (BoxLevelExpiration != other.BoxLevelExpiration) return false; - if (!licenses_.Equals(other.licenses_)) return false; - if (RafAccount != other.RafAccount) return false; - if (RafInfo != other.RafInfo) return false; - if (RafExpiration != other.RafExpiration) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccount_ != null) hash ^= GameAccount.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (RealmPermissions != 0) hash ^= RealmPermissions.GetHashCode(); - if (Status != 0) hash ^= Status.GetHashCode(); - if (Flags != 0UL) hash ^= Flags.GetHashCode(); - if (BillingFlags != 0) hash ^= BillingFlags.GetHashCode(); - if (CacheExpiration != 0UL) hash ^= CacheExpiration.GetHashCode(); - if (SubscriptionExpiration != 0UL) hash ^= SubscriptionExpiration.GetHashCode(); - if (UnitsRemaining != 0) hash ^= UnitsRemaining.GetHashCode(); - if (StatusExpiration != 0UL) hash ^= StatusExpiration.GetHashCode(); - if (BoxLevel != 0) hash ^= BoxLevel.GetHashCode(); - if (BoxLevelExpiration != 0UL) hash ^= BoxLevelExpiration.GetHashCode(); - hash ^= licenses_.GetHashCode(); - if (RafAccount != 0) hash ^= RafAccount.GetHashCode(); - if (RafInfo.Length != 0) hash ^= RafInfo.GetHashCode(); - if (RafExpiration != 0UL) hash ^= RafExpiration.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccount_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccount); - } - if (Name.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (RealmPermissions != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(RealmPermissions); - } - if (Status != 0) - { - output.WriteRawTag(32); - output.WriteUInt32(Status); - } - if (Flags != 0UL) - { - output.WriteRawTag(40); - output.WriteUInt64(Flags); - } - if (BillingFlags != 0) - { - output.WriteRawTag(48); - output.WriteUInt32(BillingFlags); - } - if (CacheExpiration != 0UL) - { - output.WriteRawTag(56); - output.WriteUInt64(CacheExpiration); - } - if (SubscriptionExpiration != 0UL) - { - output.WriteRawTag(80); - output.WriteUInt64(SubscriptionExpiration); - } - if (UnitsRemaining != 0) - { - output.WriteRawTag(88); - output.WriteUInt32(UnitsRemaining); - } - if (StatusExpiration != 0UL) - { - output.WriteRawTag(96); - output.WriteUInt64(StatusExpiration); - } - if (BoxLevel != 0) - { - output.WriteRawTag(104); - output.WriteUInt32(BoxLevel); - } - if (BoxLevelExpiration != 0UL) - { - output.WriteRawTag(112); - output.WriteUInt64(BoxLevelExpiration); - } - licenses_.WriteTo(output, _repeated_licenses_codec); - if (RafAccount != 0) - { - output.WriteRawTag(173, 1); - output.WriteFixed32(RafAccount); - } - if (RafInfo.Length != 0) - { - output.WriteRawTag(178, 1); - output.WriteBytes(RafInfo); - } - if (RafExpiration != 0UL) - { - output.WriteRawTag(184, 1); - output.WriteUInt64(RafExpiration); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccount_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); - } - if (Name.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (RealmPermissions != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RealmPermissions); - } - if (Status != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status); - } - if (Flags != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Flags); - } - if (BillingFlags != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BillingFlags); - } - if (CacheExpiration != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CacheExpiration); - } - if (SubscriptionExpiration != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriptionExpiration); - } - if (UnitsRemaining != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UnitsRemaining); - } - if (StatusExpiration != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StatusExpiration); - } - if (BoxLevel != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BoxLevel); - } - if (BoxLevelExpiration != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BoxLevelExpiration); - } - size += licenses_.CalculateSize(_repeated_licenses_codec); - if (RafAccount != 0) - { - size += 2 + 4; - } - if (RafInfo.Length != 0) - { - size += 2 + pb::CodedOutputStream.ComputeBytesSize(RafInfo); - } - if (RafExpiration != 0UL) - { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RafExpiration); - } - return size; - } - - public void MergeFrom(GameAccountBlob other) - { - if (other == null) - { - return; - } - if (other.gameAccount_ != null) - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - GameAccount.MergeFrom(other.GameAccount); - } - if (other.Name.Length != 0) - { - Name = other.Name; - } - if (other.RealmPermissions != 0) - { - RealmPermissions = other.RealmPermissions; - } - if (other.Status != 0) - { - Status = other.Status; - } - if (other.Flags != 0UL) - { - Flags = other.Flags; - } - if (other.BillingFlags != 0) - { - BillingFlags = other.BillingFlags; - } - if (other.CacheExpiration != 0UL) - { - CacheExpiration = other.CacheExpiration; - } - if (other.SubscriptionExpiration != 0UL) - { - SubscriptionExpiration = other.SubscriptionExpiration; - } - if (other.UnitsRemaining != 0) - { - UnitsRemaining = other.UnitsRemaining; - } - if (other.StatusExpiration != 0UL) - { - StatusExpiration = other.StatusExpiration; - } - if (other.BoxLevel != 0) - { - BoxLevel = other.BoxLevel; - } - if (other.BoxLevelExpiration != 0UL) - { - BoxLevelExpiration = other.BoxLevelExpiration; - } - licenses_.Add(other.licenses_); - if (other.RafAccount != 0) - { - RafAccount = other.RafAccount; - } - if (other.RafInfo.Length != 0) - { - RafInfo = other.RafInfo; - } - if (other.RafExpiration != 0UL) - { - RafExpiration = other.RafExpiration; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - input.ReadMessage(gameAccount_); - break; - } - case 18: - { - Name = input.ReadString(); - break; - } - case 24: - { - RealmPermissions = input.ReadUInt32(); - break; - } - case 32: - { - Status = input.ReadUInt32(); - break; - } - case 40: - { - Flags = input.ReadUInt64(); - break; - } - case 48: - { - BillingFlags = input.ReadUInt32(); - break; - } - case 56: - { - CacheExpiration = input.ReadUInt64(); - break; - } - case 80: - { - SubscriptionExpiration = input.ReadUInt64(); - break; - } - case 88: - { - UnitsRemaining = input.ReadUInt32(); - break; - } - case 96: - { - StatusExpiration = input.ReadUInt64(); - break; - } - case 104: - { - BoxLevel = input.ReadUInt32(); - break; - } - case 112: - { - BoxLevelExpiration = input.ReadUInt64(); - break; - } - case 162: - { - licenses_.AddEntriesFrom(input, _repeated_licenses_codec); - break; - } - case 173: - { - RafAccount = input.ReadFixed32(); - break; - } - case 178: - { - RafInfo = input.ReadBytes(); - break; - } - case 184: - { - RafExpiration = input.ReadUInt64(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountBlobList : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountBlobList()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[8]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountBlobList() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountBlobList(GameAccountBlobList other) : this() - { - blob_ = other.blob_.Clone(); - } - - public GameAccountBlobList Clone() - { - return new GameAccountBlobList(this); - } - - /// Field number for the "blob" field. - public const int BlobFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_blob_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.GameAccountBlob.Parser); - private readonly pbc::RepeatedField blob_ = new pbc::RepeatedField(); - public pbc::RepeatedField Blob - { - get { return blob_; } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountBlobList); - } - - public bool Equals(GameAccountBlobList other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!blob_.Equals(other.blob_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= blob_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - blob_.WriteTo(output, _repeated_blob_codec); - } - - public int CalculateSize() - { - int size = 0; - size += blob_.CalculateSize(_repeated_blob_codec); - return size; - } - - public void MergeFrom(GameAccountBlobList other) - { - if (other == null) - { - return; - } - blob_.Add(other.blob_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - blob_.AddEntriesFrom(input, _repeated_blob_codec); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountReference : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountReference()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[9]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountReference() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountReference(AccountReference other) : this() - { - id_ = other.id_; - email_ = other.email_; - Handle = other.handle_ != null ? other.Handle.Clone() : null; - battleTag_ = other.battleTag_; - region_ = other.region_; - } - - public AccountReference Clone() - { - return new AccountReference(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 2; - private string email_ = ""; - public string Email - { - get { return email_; } - set - { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "handle" field. - public const int HandleFieldNumber = 3; - private Bgs.Protocol.Account.V1.GameAccountHandle handle_; - public Bgs.Protocol.Account.V1.GameAccountHandle Handle - { - get { return handle_; } - set - { - handle_ = value; - } - } - - /// Field number for the "battle_tag" field. - public const int BattleTagFieldNumber = 4; - private string battleTag_ = ""; - public string BattleTag - { - get { return battleTag_; } - set - { - battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 10; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountReference); - } - - public bool Equals(AccountReference other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - if (Email != other.Email) return false; - if (!object.Equals(Handle, other.Handle)) return false; - if (BattleTag != other.BattleTag) return false; - if (Region != other.Region) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode(); - if (Region != 0) hash ^= Region.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Id); - } - if (Email.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(Email); - } - if (handle_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(Handle); - } - if (BattleTag.Length != 0) - { - output.WriteRawTag(34); - output.WriteString(BattleTag); - } - if (Region != 0) - { - output.WriteRawTag(80); - output.WriteUInt32(Region); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + 4; - } - if (Email.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - if (handle_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); - } - if (BattleTag.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); - } - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - return size; - } - - public void MergeFrom(AccountReference other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.Email.Length != 0) - { - Email = other.Email; - } - if (other.handle_ != null) - { - if (handle_ == null) - { - handle_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - Handle.MergeFrom(other.Handle); - } - if (other.BattleTag.Length != 0) - { - BattleTag = other.BattleTag; - } - if (other.Region != 0) - { - Region = other.Region; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Id = input.ReadFixed32(); - break; - } - case 18: - { - Email = input.ReadString(); - break; - } - case 26: - { - if (handle_ == null) - { - handle_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - input.ReadMessage(handle_); - break; - } - case 34: - { - BattleTag = input.ReadString(); - break; - } - case 80: - { - Region = input.ReadUInt32(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Identity : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Identity()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[10]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public Identity() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public Identity(Identity other) : this() - { - Account = other.account_ != null ? other.Account.Clone() : null; - GameAccount = other.gameAccount_ != null ? other.GameAccount.Clone() : null; - Process = other.process_ != null ? other.Process.Clone() : null; - } - - public Identity Clone() - { - return new Identity(this); - } - - /// Field number for the "account" field. - public const int AccountFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountId account_; - public Bgs.Protocol.Account.V1.AccountId Account - { - get { return account_; } - set - { - account_ = value; - } - } - - /// Field number for the "game_account" field. - public const int GameAccountFieldNumber = 2; - private Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; - public Bgs.Protocol.Account.V1.GameAccountHandle GameAccount - { - get { return gameAccount_; } - set - { - gameAccount_ = value; - } - } - - /// Field number for the "process" field. - public const int ProcessFieldNumber = 3; - private Bgs.Protocol.ProcessId process_; - public Bgs.Protocol.ProcessId Process - { - get { return process_; } - set - { - process_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as Identity); - } - - public bool Equals(Identity other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Account, other.Account)) return false; - if (!object.Equals(GameAccount, other.GameAccount)) return false; - if (!object.Equals(Process, other.Process)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (account_ != null) hash ^= Account.GetHashCode(); - if (gameAccount_ != null) hash ^= GameAccount.GetHashCode(); - if (process_ != null) hash ^= Process.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (account_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Account); - } - if (gameAccount_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(GameAccount); - } - if (process_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(Process); - } - } - - public int CalculateSize() - { - int size = 0; - if (account_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Account); - } - if (gameAccount_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); - } - if (process_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Process); - } - return size; - } - - public void MergeFrom(Identity other) - { - if (other == null) - { - return; - } - if (other.account_ != null) - { - if (account_ == null) - { - account_ = new Bgs.Protocol.Account.V1.AccountId(); - } - Account.MergeFrom(other.Account); - } - if (other.gameAccount_ != null) - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - GameAccount.MergeFrom(other.GameAccount); - } - if (other.process_ != null) - { - if (process_ == null) - { - process_ = new Bgs.Protocol.ProcessId(); - } - Process.MergeFrom(other.Process); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (account_ == null) - { - account_ = new Bgs.Protocol.Account.V1.AccountId(); - } - input.ReadMessage(account_); - break; - } - case 18: - { - if (gameAccount_ == null) - { - gameAccount_ = new Bgs.Protocol.Account.V1.GameAccountHandle(); - } - input.ReadMessage(gameAccount_); - break; - } - case 26: - { - if (process_ == null) - { - process_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(process_); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(13); + output.WriteFixed32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ProgramTag : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProgramTag()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[11]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ProgramTag() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ProgramTag(ProgramTag other) : this() - { - program_ = other.program_; - tag_ = other.tag_; - } - - public ProgramTag Clone() - { - return new ProgramTag(this); - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 1; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "tag" field. - public const int TagFieldNumber = 2; - private uint tag_; - public uint Tag - { - get { return tag_; } - set - { - tag_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ProgramTag); - } - - public bool Equals(ProgramTag other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Program != other.Program) return false; - if (Tag != other.Tag) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Program != 0) hash ^= Program.GetHashCode(); - if (Tag != 0) hash ^= Tag.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Program != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Program); - } - if (Tag != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(Tag); - } - } - - public int CalculateSize() - { - int size = 0; - if (Program != 0) - { - size += 1 + 4; - } - if (Tag != 0) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(ProgramTag other) - { - if (other == null) - { - return; - } - if (other.Program != 0) - { - Program = other.Program; - } - if (other.Tag != 0) - { - Tag = other.Tag; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Program = input.ReadFixed32(); - break; - } - case 21: - { - Tag = input.ReadFixed32(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class RegionTag : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionTag()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[12]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public RegionTag() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public RegionTag(RegionTag other) : this() - { - region_ = other.region_; - tag_ = other.tag_; - } - - public RegionTag Clone() - { - return new RegionTag(this); - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 1; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - /// Field number for the "tag" field. - public const int TagFieldNumber = 2; - private uint tag_; - public uint Tag - { - get { return tag_; } - set - { - tag_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as RegionTag); - } - - public bool Equals(RegionTag other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Region != other.Region) return false; - if (Tag != other.Tag) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Region != 0) hash ^= Region.GetHashCode(); - if (Tag != 0) hash ^= Tag.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Region != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Region); - } - if (Tag != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(Tag); - } - } - - public int CalculateSize() - { - int size = 0; - if (Region != 0) - { - size += 1 + 4; - } - if (Tag != 0) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(RegionTag other) - { - if (other == null) - { - return; - } - if (other.Region != 0) - { - Region = other.Region; - } - if (other.Tag != 0) - { - Tag = other.Tag; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Region = input.ReadFixed32(); - break; - } - case 21: - { - Tag = input.ReadFixed32(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountId other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountFieldTags : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountFieldTags()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[13]; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Id = input.ReadFixed32(); + break; + } } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountFieldTags() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountFieldTags(AccountFieldTags other) : this() - { - accountLevelInfoTag_ = other.accountLevelInfoTag_; - privacyInfoTag_ = other.privacyInfoTag_; - parentalControlInfoTag_ = other.parentalControlInfoTag_; - gameLevelInfoTags_ = other.gameLevelInfoTags_.Clone(); - gameStatusTags_ = other.gameStatusTags_.Clone(); - gameAccountTags_ = other.gameAccountTags_.Clone(); - } - - public AccountFieldTags Clone() - { - return new AccountFieldTags(this); - } - - /// Field number for the "account_level_info_tag" field. - public const int AccountLevelInfoTagFieldNumber = 2; - private uint accountLevelInfoTag_; - public uint AccountLevelInfoTag - { - get { return accountLevelInfoTag_; } - set - { - accountLevelInfoTag_ = value; - } - } - - /// Field number for the "privacy_info_tag" field. - public const int PrivacyInfoTagFieldNumber = 3; - private uint privacyInfoTag_; - public uint PrivacyInfoTag - { - get { return privacyInfoTag_; } - set - { - privacyInfoTag_ = value; - } - } - - /// Field number for the "parental_control_info_tag" field. - public const int ParentalControlInfoTagFieldNumber = 4; - private uint parentalControlInfoTag_; - public uint ParentalControlInfoTag - { - get { return parentalControlInfoTag_; } - set - { - parentalControlInfoTag_ = value; - } - } - - /// Field number for the "game_level_info_tags" field. - public const int GameLevelInfoTagsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_gameLevelInfoTags_codec - = pb::FieldCodec.ForMessage(58, Bgs.Protocol.Account.V1.ProgramTag.Parser); - private readonly pbc::RepeatedField gameLevelInfoTags_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameLevelInfoTags - { - get { return gameLevelInfoTags_; } - } - - /// Field number for the "game_status_tags" field. - public const int GameStatusTagsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_gameStatusTags_codec - = pb::FieldCodec.ForMessage(74, Bgs.Protocol.Account.V1.ProgramTag.Parser); - private readonly pbc::RepeatedField gameStatusTags_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameStatusTags - { - get { return gameStatusTags_; } - } - - /// Field number for the "game_account_tags" field. - public const int GameAccountTagsFieldNumber = 11; - private static readonly pb::FieldCodec _repeated_gameAccountTags_codec - = pb::FieldCodec.ForMessage(90, Bgs.Protocol.Account.V1.RegionTag.Parser); - private readonly pbc::RepeatedField gameAccountTags_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameAccountTags - { - get { return gameAccountTags_; } - } - - public override bool Equals(object other) - { - return Equals(other as AccountFieldTags); - } - - public bool Equals(AccountFieldTags other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (AccountLevelInfoTag != other.AccountLevelInfoTag) return false; - if (PrivacyInfoTag != other.PrivacyInfoTag) return false; - if (ParentalControlInfoTag != other.ParentalControlInfoTag) return false; - if (!gameLevelInfoTags_.Equals(other.gameLevelInfoTags_)) return false; - if (!gameStatusTags_.Equals(other.gameStatusTags_)) return false; - if (!gameAccountTags_.Equals(other.gameAccountTags_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (AccountLevelInfoTag != 0) hash ^= AccountLevelInfoTag.GetHashCode(); - if (PrivacyInfoTag != 0) hash ^= PrivacyInfoTag.GetHashCode(); - if (ParentalControlInfoTag != 0) hash ^= ParentalControlInfoTag.GetHashCode(); - hash ^= gameLevelInfoTags_.GetHashCode(); - hash ^= gameStatusTags_.GetHashCode(); - hash ^= gameAccountTags_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (AccountLevelInfoTag != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(AccountLevelInfoTag); - } - if (PrivacyInfoTag != 0) - { - output.WriteRawTag(29); - output.WriteFixed32(PrivacyInfoTag); - } - if (ParentalControlInfoTag != 0) - { - output.WriteRawTag(37); - output.WriteFixed32(ParentalControlInfoTag); - } - gameLevelInfoTags_.WriteTo(output, _repeated_gameLevelInfoTags_codec); - gameStatusTags_.WriteTo(output, _repeated_gameStatusTags_codec); - gameAccountTags_.WriteTo(output, _repeated_gameAccountTags_codec); - } - - public int CalculateSize() - { - int size = 0; - if (AccountLevelInfoTag != 0) - { - size += 1 + 4; - } - if (PrivacyInfoTag != 0) - { - size += 1 + 4; - } - if (ParentalControlInfoTag != 0) - { - size += 1 + 4; - } - size += gameLevelInfoTags_.CalculateSize(_repeated_gameLevelInfoTags_codec); - size += gameStatusTags_.CalculateSize(_repeated_gameStatusTags_codec); - size += gameAccountTags_.CalculateSize(_repeated_gameAccountTags_codec); - return size; - } - - public void MergeFrom(AccountFieldTags other) - { - if (other == null) - { - return; - } - if (other.AccountLevelInfoTag != 0) - { - AccountLevelInfoTag = other.AccountLevelInfoTag; - } - if (other.PrivacyInfoTag != 0) - { - PrivacyInfoTag = other.PrivacyInfoTag; - } - if (other.ParentalControlInfoTag != 0) - { - ParentalControlInfoTag = other.ParentalControlInfoTag; - } - gameLevelInfoTags_.Add(other.gameLevelInfoTags_); - gameStatusTags_.Add(other.gameStatusTags_); - gameAccountTags_.Add(other.gameAccountTags_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 21: - { - AccountLevelInfoTag = input.ReadFixed32(); - break; - } - case 29: - { - PrivacyInfoTag = input.ReadFixed32(); - break; - } - case 37: - { - ParentalControlInfoTag = input.ReadFixed32(); - break; - } - case 58: - { - gameLevelInfoTags_.AddEntriesFrom(input, _repeated_gameLevelInfoTags_codec); - break; - } - case 74: - { - gameStatusTags_.AddEntriesFrom(input, _repeated_gameStatusTags_codec); - break; - } - case 90: - { - gameAccountTags_.AddEntriesFrom(input, _repeated_gameAccountTags_codec); - break; - } - } - } - } - + } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountFieldTags : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountFieldTags()); - public static pb::MessageParser Parser { get { return _parser; } } + } - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[14]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountFieldTags() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountFieldTags(GameAccountFieldTags other) : this() - { - gameLevelInfoTag_ = other.gameLevelInfoTag_; - gameTimeInfoTag_ = other.gameTimeInfoTag_; - gameStatusTag_ = other.gameStatusTag_; - rafInfoTag_ = other.rafInfoTag_; - } - - public GameAccountFieldTags Clone() - { - return new GameAccountFieldTags(this); - } - - /// Field number for the "game_level_info_tag" field. - public const int GameLevelInfoTagFieldNumber = 2; - private uint gameLevelInfoTag_; - public uint GameLevelInfoTag - { - get { return gameLevelInfoTag_; } - set - { - gameLevelInfoTag_ = value; - } - } - - /// Field number for the "game_time_info_tag" field. - public const int GameTimeInfoTagFieldNumber = 3; - private uint gameTimeInfoTag_; - public uint GameTimeInfoTag - { - get { return gameTimeInfoTag_; } - set - { - gameTimeInfoTag_ = value; - } - } - - /// Field number for the "game_status_tag" field. - public const int GameStatusTagFieldNumber = 4; - private uint gameStatusTag_; - public uint GameStatusTag - { - get { return gameStatusTag_; } - set - { - gameStatusTag_ = value; - } - } - - /// Field number for the "raf_info_tag" field. - public const int RafInfoTagFieldNumber = 5; - private uint rafInfoTag_; - public uint RafInfoTag - { - get { return rafInfoTag_; } - set - { - rafInfoTag_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountFieldTags); - } - - public bool Equals(GameAccountFieldTags other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (GameLevelInfoTag != other.GameLevelInfoTag) return false; - if (GameTimeInfoTag != other.GameTimeInfoTag) return false; - if (GameStatusTag != other.GameStatusTag) return false; - if (RafInfoTag != other.RafInfoTag) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (GameLevelInfoTag != 0) hash ^= GameLevelInfoTag.GetHashCode(); - if (GameTimeInfoTag != 0) hash ^= GameTimeInfoTag.GetHashCode(); - if (GameStatusTag != 0) hash ^= GameStatusTag.GetHashCode(); - if (RafInfoTag != 0) hash ^= RafInfoTag.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (GameLevelInfoTag != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(GameLevelInfoTag); - } - if (GameTimeInfoTag != 0) - { - output.WriteRawTag(29); - output.WriteFixed32(GameTimeInfoTag); - } - if (GameStatusTag != 0) - { - output.WriteRawTag(37); - output.WriteFixed32(GameStatusTag); - } - if (RafInfoTag != 0) - { - output.WriteRawTag(45); - output.WriteFixed32(RafInfoTag); - } - } - - public int CalculateSize() - { - int size = 0; - if (GameLevelInfoTag != 0) - { - size += 1 + 4; - } - if (GameTimeInfoTag != 0) - { - size += 1 + 4; - } - if (GameStatusTag != 0) - { - size += 1 + 4; - } - if (RafInfoTag != 0) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(GameAccountFieldTags other) - { - if (other == null) - { - return; - } - if (other.GameLevelInfoTag != 0) - { - GameLevelInfoTag = other.GameLevelInfoTag; - } - if (other.GameTimeInfoTag != 0) - { - GameTimeInfoTag = other.GameTimeInfoTag; - } - if (other.GameStatusTag != 0) - { - GameStatusTag = other.GameStatusTag; - } - if (other.RafInfoTag != 0) - { - RafInfoTag = other.RafInfoTag; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 21: - { - GameLevelInfoTag = input.ReadFixed32(); - break; - } - case 29: - { - GameTimeInfoTag = input.ReadFixed32(); - break; - } - case 37: - { - GameStatusTag = input.ReadFixed32(); - break; - } - case 45: - { - RafInfoTag = input.ReadFixed32(); - break; - } - } - } - } + public sealed partial class AccountLicense : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountLicense()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[1]; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountFieldOptions : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountFieldOptions()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[15]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountFieldOptions() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountFieldOptions(AccountFieldOptions other) : this() - { - allFields_ = other.allFields_; - fieldAccountLevelInfo_ = other.fieldAccountLevelInfo_; - fieldPrivacyInfo_ = other.fieldPrivacyInfo_; - fieldParentalControlInfo_ = other.fieldParentalControlInfo_; - fieldGameLevelInfo_ = other.fieldGameLevelInfo_; - fieldGameStatus_ = other.fieldGameStatus_; - fieldGameAccounts_ = other.fieldGameAccounts_; - } - - public AccountFieldOptions Clone() - { - return new AccountFieldOptions(this); - } - - /// Field number for the "all_fields" field. - public const int AllFieldsFieldNumber = 1; - private bool allFields_; - public bool AllFields - { - get { return allFields_; } - set - { - allFields_ = value; - } - } - - /// Field number for the "field_account_level_info" field. - public const int FieldAccountLevelInfoFieldNumber = 2; - private bool fieldAccountLevelInfo_; - public bool FieldAccountLevelInfo - { - get { return fieldAccountLevelInfo_; } - set - { - fieldAccountLevelInfo_ = value; - } - } - - /// Field number for the "field_privacy_info" field. - public const int FieldPrivacyInfoFieldNumber = 3; - private bool fieldPrivacyInfo_; - public bool FieldPrivacyInfo - { - get { return fieldPrivacyInfo_; } - set - { - fieldPrivacyInfo_ = value; - } - } - - /// Field number for the "field_parental_control_info" field. - public const int FieldParentalControlInfoFieldNumber = 4; - private bool fieldParentalControlInfo_; - public bool FieldParentalControlInfo - { - get { return fieldParentalControlInfo_; } - set - { - fieldParentalControlInfo_ = value; - } - } - - /// Field number for the "field_game_level_info" field. - public const int FieldGameLevelInfoFieldNumber = 6; - private bool fieldGameLevelInfo_; - public bool FieldGameLevelInfo - { - get { return fieldGameLevelInfo_; } - set - { - fieldGameLevelInfo_ = value; - } - } - - /// Field number for the "field_game_status" field. - public const int FieldGameStatusFieldNumber = 7; - private bool fieldGameStatus_; - public bool FieldGameStatus - { - get { return fieldGameStatus_; } - set - { - fieldGameStatus_ = value; - } - } - - /// Field number for the "field_game_accounts" field. - public const int FieldGameAccountsFieldNumber = 8; - private bool fieldGameAccounts_; - public bool FieldGameAccounts - { - get { return fieldGameAccounts_; } - set - { - fieldGameAccounts_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountFieldOptions); - } - - public bool Equals(AccountFieldOptions other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (AllFields != other.AllFields) return false; - if (FieldAccountLevelInfo != other.FieldAccountLevelInfo) return false; - if (FieldPrivacyInfo != other.FieldPrivacyInfo) return false; - if (FieldParentalControlInfo != other.FieldParentalControlInfo) return false; - if (FieldGameLevelInfo != other.FieldGameLevelInfo) return false; - if (FieldGameStatus != other.FieldGameStatus) return false; - if (FieldGameAccounts != other.FieldGameAccounts) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (AllFields != false) hash ^= AllFields.GetHashCode(); - if (FieldAccountLevelInfo != false) hash ^= FieldAccountLevelInfo.GetHashCode(); - if (FieldPrivacyInfo != false) hash ^= FieldPrivacyInfo.GetHashCode(); - if (FieldParentalControlInfo != false) hash ^= FieldParentalControlInfo.GetHashCode(); - if (FieldGameLevelInfo != false) hash ^= FieldGameLevelInfo.GetHashCode(); - if (FieldGameStatus != false) hash ^= FieldGameStatus.GetHashCode(); - if (FieldGameAccounts != false) hash ^= FieldGameAccounts.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (AllFields != false) - { - output.WriteRawTag(8); - output.WriteBool(AllFields); - } - if (FieldAccountLevelInfo != false) - { - output.WriteRawTag(16); - output.WriteBool(FieldAccountLevelInfo); - } - if (FieldPrivacyInfo != false) - { - output.WriteRawTag(24); - output.WriteBool(FieldPrivacyInfo); - } - if (FieldParentalControlInfo != false) - { - output.WriteRawTag(32); - output.WriteBool(FieldParentalControlInfo); - } - if (FieldGameLevelInfo != false) - { - output.WriteRawTag(48); - output.WriteBool(FieldGameLevelInfo); - } - if (FieldGameStatus != false) - { - output.WriteRawTag(56); - output.WriteBool(FieldGameStatus); - } - if (FieldGameAccounts != false) - { - output.WriteRawTag(64); - output.WriteBool(FieldGameAccounts); - } - } - - public int CalculateSize() - { - int size = 0; - if (AllFields != false) - { - size += 1 + 1; - } - if (FieldAccountLevelInfo != false) - { - size += 1 + 1; - } - if (FieldPrivacyInfo != false) - { - size += 1 + 1; - } - if (FieldParentalControlInfo != false) - { - size += 1 + 1; - } - if (FieldGameLevelInfo != false) - { - size += 1 + 1; - } - if (FieldGameStatus != false) - { - size += 1 + 1; - } - if (FieldGameAccounts != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(AccountFieldOptions other) - { - if (other == null) - { - return; - } - if (other.AllFields != false) - { - AllFields = other.AllFields; - } - if (other.FieldAccountLevelInfo != false) - { - FieldAccountLevelInfo = other.FieldAccountLevelInfo; - } - if (other.FieldPrivacyInfo != false) - { - FieldPrivacyInfo = other.FieldPrivacyInfo; - } - if (other.FieldParentalControlInfo != false) - { - FieldParentalControlInfo = other.FieldParentalControlInfo; - } - if (other.FieldGameLevelInfo != false) - { - FieldGameLevelInfo = other.FieldGameLevelInfo; - } - if (other.FieldGameStatus != false) - { - FieldGameStatus = other.FieldGameStatus; - } - if (other.FieldGameAccounts != false) - { - FieldGameAccounts = other.FieldGameAccounts; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - AllFields = input.ReadBool(); - break; - } - case 16: - { - FieldAccountLevelInfo = input.ReadBool(); - break; - } - case 24: - { - FieldPrivacyInfo = input.ReadBool(); - break; - } - case 32: - { - FieldParentalControlInfo = input.ReadBool(); - break; - } - case 48: - { - FieldGameLevelInfo = input.ReadBool(); - break; - } - case 56: - { - FieldGameStatus = input.ReadBool(); - break; - } - case 64: - { - FieldGameAccounts = input.ReadBool(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountFieldOptions : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountFieldOptions()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[16]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountFieldOptions() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountFieldOptions(GameAccountFieldOptions other) : this() - { - allFields_ = other.allFields_; - fieldGameLevelInfo_ = other.fieldGameLevelInfo_; - fieldGameTimeInfo_ = other.fieldGameTimeInfo_; - fieldGameStatus_ = other.fieldGameStatus_; - fieldRafInfo_ = other.fieldRafInfo_; - } - - public GameAccountFieldOptions Clone() - { - return new GameAccountFieldOptions(this); - } - - /// Field number for the "all_fields" field. - public const int AllFieldsFieldNumber = 1; - private bool allFields_; - public bool AllFields - { - get { return allFields_; } - set - { - allFields_ = value; - } - } - - /// Field number for the "field_game_level_info" field. - public const int FieldGameLevelInfoFieldNumber = 2; - private bool fieldGameLevelInfo_; - public bool FieldGameLevelInfo - { - get { return fieldGameLevelInfo_; } - set - { - fieldGameLevelInfo_ = value; - } - } - - /// Field number for the "field_game_time_info" field. - public const int FieldGameTimeInfoFieldNumber = 3; - private bool fieldGameTimeInfo_; - public bool FieldGameTimeInfo - { - get { return fieldGameTimeInfo_; } - set - { - fieldGameTimeInfo_ = value; - } - } - - /// Field number for the "field_game_status" field. - public const int FieldGameStatusFieldNumber = 4; - private bool fieldGameStatus_; - public bool FieldGameStatus - { - get { return fieldGameStatus_; } - set - { - fieldGameStatus_ = value; - } - } - - /// Field number for the "field_raf_info" field. - public const int FieldRafInfoFieldNumber = 5; - private bool fieldRafInfo_; - public bool FieldRafInfo - { - get { return fieldRafInfo_; } - set - { - fieldRafInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountFieldOptions); - } - - public bool Equals(GameAccountFieldOptions other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (AllFields != other.AllFields) return false; - if (FieldGameLevelInfo != other.FieldGameLevelInfo) return false; - if (FieldGameTimeInfo != other.FieldGameTimeInfo) return false; - if (FieldGameStatus != other.FieldGameStatus) return false; - if (FieldRafInfo != other.FieldRafInfo) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (AllFields != false) hash ^= AllFields.GetHashCode(); - if (FieldGameLevelInfo != false) hash ^= FieldGameLevelInfo.GetHashCode(); - if (FieldGameTimeInfo != false) hash ^= FieldGameTimeInfo.GetHashCode(); - if (FieldGameStatus != false) hash ^= FieldGameStatus.GetHashCode(); - if (FieldRafInfo != false) hash ^= FieldRafInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (AllFields != false) - { - output.WriteRawTag(8); - output.WriteBool(AllFields); - } - if (FieldGameLevelInfo != false) - { - output.WriteRawTag(16); - output.WriteBool(FieldGameLevelInfo); - } - if (FieldGameTimeInfo != false) - { - output.WriteRawTag(24); - output.WriteBool(FieldGameTimeInfo); - } - if (FieldGameStatus != false) - { - output.WriteRawTag(32); - output.WriteBool(FieldGameStatus); - } - if (FieldRafInfo != false) - { - output.WriteRawTag(40); - output.WriteBool(FieldRafInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (AllFields != false) - { - size += 1 + 1; - } - if (FieldGameLevelInfo != false) - { - size += 1 + 1; - } - if (FieldGameTimeInfo != false) - { - size += 1 + 1; - } - if (FieldGameStatus != false) - { - size += 1 + 1; - } - if (FieldRafInfo != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(GameAccountFieldOptions other) - { - if (other == null) - { - return; - } - if (other.AllFields != false) - { - AllFields = other.AllFields; - } - if (other.FieldGameLevelInfo != false) - { - FieldGameLevelInfo = other.FieldGameLevelInfo; - } - if (other.FieldGameTimeInfo != false) - { - FieldGameTimeInfo = other.FieldGameTimeInfo; - } - if (other.FieldGameStatus != false) - { - FieldGameStatus = other.FieldGameStatus; - } - if (other.FieldRafInfo != false) - { - FieldRafInfo = other.FieldRafInfo; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - AllFields = input.ReadBool(); - break; - } - case 16: - { - FieldGameLevelInfo = input.ReadBool(); - break; - } - case 24: - { - FieldGameTimeInfo = input.ReadBool(); - break; - } - case 32: - { - FieldGameStatus = input.ReadBool(); - break; - } - case 40: - { - FieldRafInfo = input.ReadBool(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountLicense() { + OnConstruction(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SubscriberReference : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriberReference()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[17]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public SubscriberReference() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public SubscriberReference(SubscriberReference other) : this() - { - objectId_ = other.objectId_; - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; - AccountOptions = other.accountOptions_ != null ? other.AccountOptions.Clone() : null; - AccountTags = other.accountTags_ != null ? other.AccountTags.Clone() : null; - GameAccountOptions = other.gameAccountOptions_ != null ? other.GameAccountOptions.Clone() : null; - GameAccountTags = other.gameAccountTags_ != null ? other.GameAccountTags.Clone() : null; - subscriberId_ = other.subscriberId_; - } - - public SubscriberReference Clone() - { - return new SubscriberReference(this); - } - - /// Field number for the "object_id" field. - public const int ObjectIdFieldNumber = 1; - private ulong objectId_; - public ulong ObjectId - { - get { return objectId_; } - set - { - objectId_ = value; - } - } - - /// Field number for the "entity_id" field. - public const int EntityIdFieldNumber = 2; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId - { - get { return entityId_; } - set - { - entityId_ = value; - } - } - - /// Field number for the "account_options" field. - public const int AccountOptionsFieldNumber = 3; - private Bgs.Protocol.Account.V1.AccountFieldOptions accountOptions_; - public Bgs.Protocol.Account.V1.AccountFieldOptions AccountOptions - { - get { return accountOptions_; } - set - { - accountOptions_ = value; - } - } - - /// Field number for the "account_tags" field. - public const int AccountTagsFieldNumber = 4; - private Bgs.Protocol.Account.V1.AccountFieldTags accountTags_; - public Bgs.Protocol.Account.V1.AccountFieldTags AccountTags - { - get { return accountTags_; } - set - { - accountTags_ = value; - } - } - - /// Field number for the "game_account_options" field. - public const int GameAccountOptionsFieldNumber = 5; - private Bgs.Protocol.Account.V1.GameAccountFieldOptions gameAccountOptions_; - public Bgs.Protocol.Account.V1.GameAccountFieldOptions GameAccountOptions - { - get { return gameAccountOptions_; } - set - { - gameAccountOptions_ = value; - } - } - - /// Field number for the "game_account_tags" field. - public const int GameAccountTagsFieldNumber = 6; - private Bgs.Protocol.Account.V1.GameAccountFieldTags gameAccountTags_; - public Bgs.Protocol.Account.V1.GameAccountFieldTags GameAccountTags - { - get { return gameAccountTags_; } - set - { - gameAccountTags_ = value; - } - } - - /// Field number for the "subscriber_id" field. - public const int SubscriberIdFieldNumber = 7; - private ulong subscriberId_; - public ulong SubscriberId - { - get { return subscriberId_; } - set - { - subscriberId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as SubscriberReference); - } - - public bool Equals(SubscriberReference other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ObjectId != other.ObjectId) return false; - if (!object.Equals(EntityId, other.EntityId)) return false; - if (!object.Equals(AccountOptions, other.AccountOptions)) return false; - if (!object.Equals(AccountTags, other.AccountTags)) return false; - if (!object.Equals(GameAccountOptions, other.GameAccountOptions)) return false; - if (!object.Equals(GameAccountTags, other.GameAccountTags)) return false; - if (SubscriberId != other.SubscriberId) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - if (accountOptions_ != null) hash ^= AccountOptions.GetHashCode(); - if (accountTags_ != null) hash ^= AccountTags.GetHashCode(); - if (gameAccountOptions_ != null) hash ^= GameAccountOptions.GetHashCode(); - if (gameAccountTags_ != null) hash ^= GameAccountTags.GetHashCode(); - if (SubscriberId != 0UL) hash ^= SubscriberId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (ObjectId != 0UL) - { - output.WriteRawTag(8); - output.WriteUInt64(ObjectId); - } - if (entityId_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(EntityId); - } - if (accountOptions_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(AccountOptions); - } - if (accountTags_ != null) - { - output.WriteRawTag(34); - output.WriteMessage(AccountTags); - } - if (gameAccountOptions_ != null) - { - output.WriteRawTag(42); - output.WriteMessage(GameAccountOptions); - } - if (gameAccountTags_ != null) - { - output.WriteRawTag(50); - output.WriteMessage(GameAccountTags); - } - if (SubscriberId != 0UL) - { - output.WriteRawTag(56); - output.WriteUInt64(SubscriberId); - } - } - - public int CalculateSize() - { - int size = 0; - if (ObjectId != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); - } - if (entityId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); - } - if (accountOptions_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountOptions); - } - if (accountTags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountTags); - } - if (gameAccountOptions_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountOptions); - } - if (gameAccountTags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountTags); - } - if (SubscriberId != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriberId); - } - return size; - } - - public void MergeFrom(SubscriberReference other) - { - if (other == null) - { - return; - } - if (other.ObjectId != 0UL) - { - ObjectId = other.ObjectId; - } - if (other.entityId_ != null) - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - EntityId.MergeFrom(other.EntityId); - } - if (other.accountOptions_ != null) - { - if (accountOptions_ == null) - { - accountOptions_ = new Bgs.Protocol.Account.V1.AccountFieldOptions(); - } - AccountOptions.MergeFrom(other.AccountOptions); - } - if (other.accountTags_ != null) - { - if (accountTags_ == null) - { - accountTags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - AccountTags.MergeFrom(other.AccountTags); - } - if (other.gameAccountOptions_ != null) - { - if (gameAccountOptions_ == null) - { - gameAccountOptions_ = new Bgs.Protocol.Account.V1.GameAccountFieldOptions(); - } - GameAccountOptions.MergeFrom(other.GameAccountOptions); - } - if (other.gameAccountTags_ != null) - { - if (gameAccountTags_ == null) - { - gameAccountTags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - GameAccountTags.MergeFrom(other.GameAccountTags); - } - if (other.SubscriberId != 0UL) - { - SubscriberId = other.SubscriberId; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - ObjectId = input.ReadUInt64(); - break; - } - case 18: - { - if (entityId_ == null) - { - entityId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(entityId_); - break; - } - case 26: - { - if (accountOptions_ == null) - { - accountOptions_ = new Bgs.Protocol.Account.V1.AccountFieldOptions(); - } - input.ReadMessage(accountOptions_); - break; - } - case 34: - { - if (accountTags_ == null) - { - accountTags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - input.ReadMessage(accountTags_); - break; - } - case 42: - { - if (gameAccountOptions_ == null) - { - gameAccountOptions_ = new Bgs.Protocol.Account.V1.GameAccountFieldOptions(); - } - input.ReadMessage(gameAccountOptions_); - break; - } - case 50: - { - if (gameAccountTags_ == null) - { - gameAccountTags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - input.ReadMessage(gameAccountTags_); - break; - } - case 56: - { - SubscriberId = input.ReadUInt64(); - break; - } - } - } - } + partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountLicense(AccountLicense other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + expires_ = other.expires_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountLevelInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountLevelInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[18]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountLevelInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountLevelInfo(AccountLevelInfo other) : this() - { - licenses_ = other.licenses_.Clone(); - defaultCurrency_ = other.defaultCurrency_; - country_ = other.country_; - preferredRegion_ = other.preferredRegion_; - fullName_ = other.fullName_; - battleTag_ = other.battleTag_; - muted_ = other.muted_; - manualReview_ = other.manualReview_; - accountPaidAny_ = other.accountPaidAny_; - identityCheckStatus_ = other.identityCheckStatus_; - email_ = other.email_; - } - - public AccountLevelInfo Clone() - { - return new AccountLevelInfo(this); - } - - /// Field number for the "licenses" field. - public const int LicensesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_licenses_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.Account.V1.AccountLicense.Parser); - private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); - public pbc::RepeatedField Licenses - { - get { return licenses_; } - } - - /// Field number for the "default_currency" field. - public const int DefaultCurrencyFieldNumber = 4; - private uint defaultCurrency_; - public uint DefaultCurrency - { - get { return defaultCurrency_; } - set - { - defaultCurrency_ = value; - } - } - - /// Field number for the "country" field. - public const int CountryFieldNumber = 5; - private string country_ = ""; - public string Country - { - get { return country_; } - set - { - country_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "preferred_region" field. - public const int PreferredRegionFieldNumber = 6; - private uint preferredRegion_; - public uint PreferredRegion - { - get { return preferredRegion_; } - set - { - preferredRegion_ = value; - } - } - - /// Field number for the "full_name" field. - public const int FullNameFieldNumber = 7; - private string fullName_ = ""; - public string FullName - { - get { return fullName_; } - set - { - fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "battle_tag" field. - public const int BattleTagFieldNumber = 8; - private string battleTag_ = ""; - public string BattleTag - { - get { return battleTag_; } - set - { - battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "muted" field. - public const int MutedFieldNumber = 9; - private bool muted_; - public bool Muted - { - get { return muted_; } - set - { - muted_ = value; - } - } - - /// Field number for the "manual_review" field. - public const int ManualReviewFieldNumber = 10; - private bool manualReview_; - public bool ManualReview - { - get { return manualReview_; } - set - { - manualReview_ = value; - } - } - - /// Field number for the "account_paid_any" field. - public const int AccountPaidAnyFieldNumber = 11; - private bool accountPaidAny_; - public bool AccountPaidAny - { - get { return accountPaidAny_; } - set - { - accountPaidAny_ = value; - } - } - - /// Field number for the "identity_check_status" field. - public const int IdentityCheckStatusFieldNumber = 12; - private Bgs.Protocol.Account.V1.IdentityVerificationStatus identityCheckStatus_ = Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA; - public Bgs.Protocol.Account.V1.IdentityVerificationStatus IdentityCheckStatus - { - get { return identityCheckStatus_; } - set - { - identityCheckStatus_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 13; - private string email_ = ""; - public string Email - { - get { return email_; } - set - { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountLevelInfo); - } - - public bool Equals(AccountLevelInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!licenses_.Equals(other.licenses_)) return false; - if (DefaultCurrency != other.DefaultCurrency) return false; - if (Country != other.Country) return false; - if (PreferredRegion != other.PreferredRegion) return false; - if (FullName != other.FullName) return false; - if (BattleTag != other.BattleTag) return false; - if (Muted != other.Muted) return false; - if (ManualReview != other.ManualReview) return false; - if (AccountPaidAny != other.AccountPaidAny) return false; - if (IdentityCheckStatus != other.IdentityCheckStatus) return false; - if (Email != other.Email) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= licenses_.GetHashCode(); - if (DefaultCurrency != 0) hash ^= DefaultCurrency.GetHashCode(); - if (Country.Length != 0) hash ^= Country.GetHashCode(); - if (PreferredRegion != 0) hash ^= PreferredRegion.GetHashCode(); - if (FullName.Length != 0) hash ^= FullName.GetHashCode(); - if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode(); - if (Muted != false) hash ^= Muted.GetHashCode(); - if (ManualReview != false) hash ^= ManualReview.GetHashCode(); - if (AccountPaidAny != false) hash ^= AccountPaidAny.GetHashCode(); - if (IdentityCheckStatus != Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA) hash ^= IdentityCheckStatus.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - licenses_.WriteTo(output, _repeated_licenses_codec); - if (DefaultCurrency != 0) - { - output.WriteRawTag(37); - output.WriteFixed32(DefaultCurrency); - } - if (Country.Length != 0) - { - output.WriteRawTag(42); - output.WriteString(Country); - } - if (PreferredRegion != 0) - { - output.WriteRawTag(48); - output.WriteUInt32(PreferredRegion); - } - if (FullName.Length != 0) - { - output.WriteRawTag(58); - output.WriteString(FullName); - } - if (BattleTag.Length != 0) - { - output.WriteRawTag(66); - output.WriteString(BattleTag); - } - if (Muted != false) - { - output.WriteRawTag(72); - output.WriteBool(Muted); - } - if (ManualReview != false) - { - output.WriteRawTag(80); - output.WriteBool(ManualReview); - } - if (AccountPaidAny != false) - { - output.WriteRawTag(88); - output.WriteBool(AccountPaidAny); - } - if (IdentityCheckStatus != Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA) - { - output.WriteRawTag(96); - output.WriteEnum((int)IdentityCheckStatus); - } - if (Email.Length != 0) - { - output.WriteRawTag(106); - output.WriteString(Email); - } - } - - public int CalculateSize() - { - int size = 0; - size += licenses_.CalculateSize(_repeated_licenses_codec); - if (DefaultCurrency != 0) - { - size += 1 + 4; - } - if (Country.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Country); - } - if (PreferredRegion != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PreferredRegion); - } - if (FullName.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName); - } - if (BattleTag.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); - } - if (Muted != false) - { - size += 1 + 1; - } - if (ManualReview != false) - { - size += 1 + 1; - } - if (AccountPaidAny != false) - { - size += 1 + 1; - } - if (IdentityCheckStatus != Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA) - { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)IdentityCheckStatus); - } - if (Email.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - return size; - } - - public void MergeFrom(AccountLevelInfo other) - { - if (other == null) - { - return; - } - licenses_.Add(other.licenses_); - if (other.DefaultCurrency != 0) - { - DefaultCurrency = other.DefaultCurrency; - } - if (other.Country.Length != 0) - { - Country = other.Country; - } - if (other.PreferredRegion != 0) - { - PreferredRegion = other.PreferredRegion; - } - if (other.FullName.Length != 0) - { - FullName = other.FullName; - } - if (other.BattleTag.Length != 0) - { - BattleTag = other.BattleTag; - } - if (other.Muted != false) - { - Muted = other.Muted; - } - if (other.ManualReview != false) - { - ManualReview = other.ManualReview; - } - if (other.AccountPaidAny != false) - { - AccountPaidAny = other.AccountPaidAny; - } - if (other.IdentityCheckStatus != Bgs.Protocol.Account.V1.IdentityVerificationStatus.IDENT_NO_DATA) - { - IdentityCheckStatus = other.IdentityCheckStatus; - } - if (other.Email.Length != 0) - { - Email = other.Email; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 26: - { - licenses_.AddEntriesFrom(input, _repeated_licenses_codec); - break; - } - case 37: - { - DefaultCurrency = input.ReadFixed32(); - break; - } - case 42: - { - Country = input.ReadString(); - break; - } - case 48: - { - PreferredRegion = input.ReadUInt32(); - break; - } - case 58: - { - FullName = input.ReadString(); - break; - } - case 66: - { - BattleTag = input.ReadString(); - break; - } - case 72: - { - Muted = input.ReadBool(); - break; - } - case 80: - { - ManualReview = input.ReadBool(); - break; - } - case 88: - { - AccountPaidAny = input.ReadBool(); - break; - } - case 96: - { - identityCheckStatus_ = (Bgs.Protocol.Account.V1.IdentityVerificationStatus)input.ReadEnum(); - break; - } - case 106: - { - Email = input.ReadString(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountLicense Clone() { + return new AccountLicense(this); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class PrivacyInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrivacyInfo()); - public static pb::MessageParser Parser { get { return _parser; } } + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[19]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public PrivacyInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public PrivacyInfo(PrivacyInfo other) : this() - { - isUsingRid_ = other.isUsingRid_; - isVisibleForViewFriends = other.isVisibleForViewFriends; - isHiddenFromFriendFinder_ = other.isHiddenFromFriendFinder_; - gameInfoPrivacy_ = other.gameInfoPrivacy_; - } - - public PrivacyInfo Clone() - { - return new PrivacyInfo(this); - } - - /// Field number for the "is_using_rid" field. - public const int IsUsingRidFieldNumber = 3; - private bool isUsingRid_; - public bool IsUsingRid - { - get { return isUsingRid_; } - set - { - bitArray.Set(IsUsingRidFieldNumber, true); - isUsingRid_ = value; - } - } - - /// Field number for the "is_real_id_visible_for_view_friends" field. - public const int IsRealIdVisibleForViewFriendsFieldNumber = 4; - private bool isVisibleForViewFriends; - public bool IsRealIdVisibleForViewFriends - { - get { return isVisibleForViewFriends; } - set - { - bitArray.Set(IsRealIdVisibleForViewFriendsFieldNumber, true); - isVisibleForViewFriends = value; - } - } - - /// Field number for the "is_hidden_from_friend_finder" field. - public const int IsHiddenFromFriendFinderFieldNumber = 5; - private bool isHiddenFromFriendFinder_; - public bool IsHiddenFromFriendFinder - { - get { return isHiddenFromFriendFinder_; } - set - { - bitArray.Set(IsHiddenFromFriendFinderFieldNumber, true); - isHiddenFromFriendFinder_ = value; - } - } - - /// Field number for the "game_info_privacy" field. - public const int GameInfoPrivacyFieldNumber = 6; - private Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy gameInfoPrivacy_ = Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy.PRIVACY_ME; - public Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy GameInfoPrivacy - { - get { return gameInfoPrivacy_; } - set - { - bitArray.Set(GameInfoPrivacyFieldNumber, true); - gameInfoPrivacy_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as PrivacyInfo); - } - - public bool Equals(PrivacyInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (IsUsingRid != other.IsUsingRid) return false; - if (IsRealIdVisibleForViewFriends != other.IsRealIdVisibleForViewFriends) return false; - if (IsHiddenFromFriendFinder != other.IsHiddenFromFriendFinder) return false; - if (GameInfoPrivacy != other.GameInfoPrivacy) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (IsUsingRid != false) hash ^= IsUsingRid.GetHashCode(); - if (IsRealIdVisibleForViewFriends != false) hash ^= IsRealIdVisibleForViewFriends.GetHashCode(); - if (IsHiddenFromFriendFinder != false) hash ^= IsHiddenFromFriendFinder.GetHashCode(); - if (GameInfoPrivacy != Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy.PRIVACY_ME) hash ^= GameInfoPrivacy.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (bitArray.Get(IsUsingRidFieldNumber)) - { - output.WriteRawTag(24); - output.WriteBool(IsUsingRid); - } - if (bitArray.Get(IsRealIdVisibleForViewFriendsFieldNumber)) - { - output.WriteRawTag(32); - output.WriteBool(IsRealIdVisibleForViewFriends); - } - if (bitArray.Get(IsHiddenFromFriendFinderFieldNumber)) - { - output.WriteRawTag(40); - output.WriteBool(IsHiddenFromFriendFinder); - } - if (bitArray.Get(GameInfoPrivacyFieldNumber)) - { - output.WriteRawTag(48); - output.WriteEnum((int)GameInfoPrivacy); - } - } - - public int CalculateSize() - { - int size = 0; - if (bitArray.Get(IsUsingRidFieldNumber)) - { - size += 1 + 1; - } - if (bitArray.Get(IsRealIdVisibleForViewFriendsFieldNumber)) - { - size += 1 + 1; - } - if (bitArray.Get(IsHiddenFromFriendFinderFieldNumber)) - { - size += 1 + 1; - } - if (bitArray.Get(GameInfoPrivacyFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)GameInfoPrivacy); - } - return size; - } - - public void MergeFrom(PrivacyInfo other) - { - if (other == null) - { - return; - } - if (other.IsUsingRid != false) - { - IsUsingRid = other.IsUsingRid; - } - if (other.IsRealIdVisibleForViewFriends != false) - { - IsRealIdVisibleForViewFriends = other.IsRealIdVisibleForViewFriends; - } - if (other.IsHiddenFromFriendFinder != false) - { - IsHiddenFromFriendFinder = other.IsHiddenFromFriendFinder; - } - if (other.GameInfoPrivacy != Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy.PRIVACY_ME) - { - GameInfoPrivacy = other.GameInfoPrivacy; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 24: - { - IsUsingRid = input.ReadBool(); - break; - } - case 32: - { - IsRealIdVisibleForViewFriends = input.ReadBool(); - break; - } - case 40: - { - IsHiddenFromFriendFinder = input.ReadBool(); - break; - } - case 48: - { - gameInfoPrivacy_ = (Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy)input.ReadEnum(); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the PrivacyInfo message type. - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class Types - { - public enum GameInfoPrivacy - { - PRIVACY_ME = 0, - PRIVACY_FRIENDS = 1, - PRIVACY_EVERYONE = 2, - } - - } - #endregion - - System.Collections.BitArray bitArray = new System.Collections.BitArray(7); + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ParentalControlInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParentalControlInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[20]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ParentalControlInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ParentalControlInfo(ParentalControlInfo other) : this() - { - timezone_ = other.timezone_; - minutesPerDay_ = other.minutesPerDay_; - minutesPerWeek_ = other.minutesPerWeek_; - canReceiveVoice_ = other.canReceiveVoice_; - canSendVoice_ = other.canSendVoice_; - playSchedule_ = other.playSchedule_.Clone(); - } - - public ParentalControlInfo Clone() - { - return new ParentalControlInfo(this); - } - - /// Field number for the "timezone" field. - public const int TimezoneFieldNumber = 3; - private string timezone_ = ""; - public string Timezone - { - get { return timezone_; } - set - { - timezone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "minutes_per_day" field. - public const int MinutesPerDayFieldNumber = 4; - private uint minutesPerDay_; - public uint MinutesPerDay - { - get { return minutesPerDay_; } - set - { - minutesPerDay_ = value; - } - } - - /// Field number for the "minutes_per_week" field. - public const int MinutesPerWeekFieldNumber = 5; - private uint minutesPerWeek_; - public uint MinutesPerWeek - { - get { return minutesPerWeek_; } - set - { - minutesPerWeek_ = value; - } - } - - /// Field number for the "can_receive_voice" field. - public const int CanReceiveVoiceFieldNumber = 6; - private bool canReceiveVoice_; - public bool CanReceiveVoice - { - get { return canReceiveVoice_; } - set - { - canReceiveVoice_ = value; - } - } - - /// Field number for the "can_send_voice" field. - public const int CanSendVoiceFieldNumber = 7; - private bool canSendVoice_; - public bool CanSendVoice - { - get { return canSendVoice_; } - set - { - canSendVoice_ = value; - } - } - - /// Field number for the "play_schedule" field. - public const int PlayScheduleFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_playSchedule_codec - = pb::FieldCodec.ForBool(66); - private readonly pbc::RepeatedField playSchedule_ = new pbc::RepeatedField(); - public pbc::RepeatedField PlaySchedule - { - get { return playSchedule_; } - } - - public override bool Equals(object other) - { - return Equals(other as ParentalControlInfo); - } - - public bool Equals(ParentalControlInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Timezone != other.Timezone) return false; - if (MinutesPerDay != other.MinutesPerDay) return false; - if (MinutesPerWeek != other.MinutesPerWeek) return false; - if (CanReceiveVoice != other.CanReceiveVoice) return false; - if (CanSendVoice != other.CanSendVoice) return false; - if (!playSchedule_.Equals(other.playSchedule_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Timezone.Length != 0) hash ^= Timezone.GetHashCode(); - if (MinutesPerDay != 0) hash ^= MinutesPerDay.GetHashCode(); - if (MinutesPerWeek != 0) hash ^= MinutesPerWeek.GetHashCode(); - if (CanReceiveVoice != false) hash ^= CanReceiveVoice.GetHashCode(); - if (CanSendVoice != false) hash ^= CanSendVoice.GetHashCode(); - hash ^= playSchedule_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Timezone.Length != 0) - { - output.WriteRawTag(26); - output.WriteString(Timezone); - } - if (MinutesPerDay != 0) - { - output.WriteRawTag(32); - output.WriteUInt32(MinutesPerDay); - } - if (MinutesPerWeek != 0) - { - output.WriteRawTag(40); - output.WriteUInt32(MinutesPerWeek); - } - if (CanReceiveVoice != false) - { - output.WriteRawTag(48); - output.WriteBool(CanReceiveVoice); - } - if (CanSendVoice != false) - { - output.WriteRawTag(56); - output.WriteBool(CanSendVoice); - } - playSchedule_.WriteTo(output, _repeated_playSchedule_codec); - } - - public int CalculateSize() - { - int size = 0; - if (Timezone.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Timezone); - } - if (MinutesPerDay != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinutesPerDay); - } - if (MinutesPerWeek != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinutesPerWeek); - } - if (CanReceiveVoice != false) - { - size += 1 + 1; - } - if (CanSendVoice != false) - { - size += 1 + 1; - } - size += playSchedule_.CalculateSize(_repeated_playSchedule_codec); - return size; - } - - public void MergeFrom(ParentalControlInfo other) - { - if (other == null) - { - return; - } - if (other.Timezone.Length != 0) - { - Timezone = other.Timezone; - } - if (other.MinutesPerDay != 0) - { - MinutesPerDay = other.MinutesPerDay; - } - if (other.MinutesPerWeek != 0) - { - MinutesPerWeek = other.MinutesPerWeek; - } - if (other.CanReceiveVoice != false) - { - CanReceiveVoice = other.CanReceiveVoice; - } - if (other.CanSendVoice != false) - { - CanSendVoice = other.CanSendVoice; - } - playSchedule_.Add(other.playSchedule_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 26: - { - Timezone = input.ReadString(); - break; - } - case 32: - { - MinutesPerDay = input.ReadUInt32(); - break; - } - case 40: - { - MinutesPerWeek = input.ReadUInt32(); - break; - } - case 48: - { - CanReceiveVoice = input.ReadBool(); - break; - } - case 56: - { - CanSendVoice = input.ReadBool(); - break; - } - case 66: - case 64: - { - playSchedule_.AddEntriesFrom(input, _repeated_playSchedule_codec); - break; - } - } - } - } + /// Field number for the "expires" field. + public const int ExpiresFieldNumber = 2; + private readonly static ulong ExpiresDefaultValue = 0UL; + private ulong expires_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Expires { + get { if ((_hasBits0 & 2) != 0) { return expires_; } else { return ExpiresDefaultValue; } } + set { + _hasBits0 |= 2; + expires_ = value; + } + } + /// Gets whether the "expires" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpires { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "expires" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpires() { + _hasBits0 &= ~2; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameLevelInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameLevelInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[21]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameLevelInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameLevelInfo(GameLevelInfo other) : this() - { - isTrial_ = other.isTrial_; - isLifetime_ = other.isLifetime_; - isRestricted_ = other.isRestricted_; - isBeta_ = other.isBeta_; - name_ = other.name_; - program_ = other.program_; - licenses_ = other.licenses_.Clone(); - realmPermissions_ = other.realmPermissions_; - } - - public GameLevelInfo Clone() - { - return new GameLevelInfo(this); - } - - /// Field number for the "is_trial" field. - public const int IsTrialFieldNumber = 4; - private bool isTrial_; - public bool IsTrial - { - get { return isTrial_; } - set - { - isTrial_ = value; - } - } - - /// Field number for the "is_lifetime" field. - public const int IsLifetimeFieldNumber = 5; - private bool isLifetime_; - public bool IsLifetime - { - get { return isLifetime_; } - set - { - isLifetime_ = value; - } - } - - /// Field number for the "is_restricted" field. - public const int IsRestrictedFieldNumber = 6; - private bool isRestricted_; - public bool IsRestricted - { - get { return isRestricted_; } - set - { - isRestricted_ = value; - } - } - - /// Field number for the "is_beta" field. - public const int IsBetaFieldNumber = 7; - private bool isBeta_; - public bool IsBeta - { - get { return isBeta_; } - set - { - isBeta_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 8; - private string name_ = ""; - public string Name - { - get { return name_; } - set - { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 9; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "licenses" field. - public const int LicensesFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_licenses_codec - = pb::FieldCodec.ForMessage(82, Bgs.Protocol.Account.V1.AccountLicense.Parser); - private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); - public pbc::RepeatedField Licenses - { - get { return licenses_; } - } - - /// Field number for the "realm_permissions" field. - public const int RealmPermissionsFieldNumber = 11; - private uint realmPermissions_; - public uint RealmPermissions - { - get { return realmPermissions_; } - set - { - realmPermissions_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameLevelInfo); - } - - public bool Equals(GameLevelInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (IsTrial != other.IsTrial) return false; - if (IsLifetime != other.IsLifetime) return false; - if (IsRestricted != other.IsRestricted) return false; - if (IsBeta != other.IsBeta) return false; - if (Name != other.Name) return false; - if (Program != other.Program) return false; - if (!licenses_.Equals(other.licenses_)) return false; - if (RealmPermissions != other.RealmPermissions) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (IsTrial != false) hash ^= IsTrial.GetHashCode(); - if (IsLifetime != false) hash ^= IsLifetime.GetHashCode(); - if (IsRestricted != false) hash ^= IsRestricted.GetHashCode(); - if (IsBeta != false) hash ^= IsBeta.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - hash ^= licenses_.GetHashCode(); - if (RealmPermissions != 0) hash ^= RealmPermissions.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (IsTrial != false) - { - output.WriteRawTag(32); - output.WriteBool(IsTrial); - } - if (IsLifetime != false) - { - output.WriteRawTag(40); - output.WriteBool(IsLifetime); - } - if (IsRestricted != false) - { - output.WriteRawTag(48); - output.WriteBool(IsRestricted); - } - if (IsBeta != false) - { - output.WriteRawTag(56); - output.WriteBool(IsBeta); - } - if (Name.Length != 0) - { - output.WriteRawTag(66); - output.WriteString(Name); - } - if (Program != 0) - { - output.WriteRawTag(77); - output.WriteFixed32(Program); - } - licenses_.WriteTo(output, _repeated_licenses_codec); - if (RealmPermissions != 0) - { - output.WriteRawTag(88); - output.WriteUInt32(RealmPermissions); - } - } - - public int CalculateSize() - { - int size = 0; - if (IsTrial != false) - { - size += 1 + 1; - } - if (IsLifetime != false) - { - size += 1 + 1; - } - if (IsRestricted != false) - { - size += 1 + 1; - } - if (IsBeta != false) - { - size += 1 + 1; - } - if (Name.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Program != 0) - { - size += 1 + 4; - } - size += licenses_.CalculateSize(_repeated_licenses_codec); - if (RealmPermissions != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RealmPermissions); - } - return size; - } - - public void MergeFrom(GameLevelInfo other) - { - if (other == null) - { - return; - } - if (other.IsTrial != false) - { - IsTrial = other.IsTrial; - } - if (other.IsLifetime != false) - { - IsLifetime = other.IsLifetime; - } - if (other.IsRestricted != false) - { - IsRestricted = other.IsRestricted; - } - if (other.IsBeta != false) - { - IsBeta = other.IsBeta; - } - if (other.Name.Length != 0) - { - Name = other.Name; - } - if (other.Program != 0) - { - Program = other.Program; - } - licenses_.Add(other.licenses_); - if (other.RealmPermissions != 0) - { - RealmPermissions = other.RealmPermissions; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 32: - { - IsTrial = input.ReadBool(); - break; - } - case 40: - { - IsLifetime = input.ReadBool(); - break; - } - case 48: - { - IsRestricted = input.ReadBool(); - break; - } - case 56: - { - IsBeta = input.ReadBool(); - break; - } - case 66: - { - Name = input.ReadString(); - break; - } - case 77: - { - Program = input.ReadFixed32(); - break; - } - case 82: - { - licenses_.AddEntriesFrom(input, _repeated_licenses_codec); - break; - } - case 88: - { - RealmPermissions = input.ReadUInt32(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountLicense); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameTimeInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameTimeInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[22]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameTimeInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameTimeInfo(GameTimeInfo other) : this() - { - isUnlimitedPlayTime_ = other.isUnlimitedPlayTime_; - playTimeExpires_ = other.playTimeExpires_; - isSubscription_ = other.isSubscription_; - isRecurringSubscription_ = other.isRecurringSubscription_; - } - - public GameTimeInfo Clone() - { - return new GameTimeInfo(this); - } - - /// Field number for the "is_unlimited_play_time" field. - public const int IsUnlimitedPlayTimeFieldNumber = 3; - private bool isUnlimitedPlayTime_; - public bool IsUnlimitedPlayTime - { - get { return isUnlimitedPlayTime_; } - set - { - isUnlimitedPlayTime_ = value; - } - } - - /// Field number for the "play_time_expires" field. - public const int PlayTimeExpiresFieldNumber = 5; - private ulong playTimeExpires_; - public ulong PlayTimeExpires - { - get { return playTimeExpires_; } - set - { - playTimeExpires_ = value; - } - } - - /// Field number for the "is_subscription" field. - public const int IsSubscriptionFieldNumber = 6; - private bool isSubscription_; - public bool IsSubscription - { - get { return isSubscription_; } - set - { - isSubscription_ = value; - } - } - - /// Field number for the "is_recurring_subscription" field. - public const int IsRecurringSubscriptionFieldNumber = 7; - private bool isRecurringSubscription_; - public bool IsRecurringSubscription - { - get { return isRecurringSubscription_; } - set - { - isRecurringSubscription_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameTimeInfo); - } - - public bool Equals(GameTimeInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (IsUnlimitedPlayTime != other.IsUnlimitedPlayTime) return false; - if (PlayTimeExpires != other.PlayTimeExpires) return false; - if (IsSubscription != other.IsSubscription) return false; - if (IsRecurringSubscription != other.IsRecurringSubscription) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (IsUnlimitedPlayTime != false) hash ^= IsUnlimitedPlayTime.GetHashCode(); - if (PlayTimeExpires != 0UL) hash ^= PlayTimeExpires.GetHashCode(); - if (IsSubscription != false) hash ^= IsSubscription.GetHashCode(); - if (IsRecurringSubscription != false) hash ^= IsRecurringSubscription.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (IsUnlimitedPlayTime != false) - { - output.WriteRawTag(24); - output.WriteBool(IsUnlimitedPlayTime); - } - if (PlayTimeExpires != 0UL) - { - output.WriteRawTag(40); - output.WriteUInt64(PlayTimeExpires); - } - if (IsSubscription != false) - { - output.WriteRawTag(48); - output.WriteBool(IsSubscription); - } - if (IsRecurringSubscription != false) - { - output.WriteRawTag(56); - output.WriteBool(IsRecurringSubscription); - } - } - - public int CalculateSize() - { - int size = 0; - if (IsUnlimitedPlayTime != false) - { - size += 1 + 1; - } - if (PlayTimeExpires != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PlayTimeExpires); - } - if (IsSubscription != false) - { - size += 1 + 1; - } - if (IsRecurringSubscription != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(GameTimeInfo other) - { - if (other == null) - { - return; - } - if (other.IsUnlimitedPlayTime != false) - { - IsUnlimitedPlayTime = other.IsUnlimitedPlayTime; - } - if (other.PlayTimeExpires != 0UL) - { - PlayTimeExpires = other.PlayTimeExpires; - } - if (other.IsSubscription != false) - { - IsSubscription = other.IsSubscription; - } - if (other.IsRecurringSubscription != false) - { - IsRecurringSubscription = other.IsRecurringSubscription; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 24: - { - IsUnlimitedPlayTime = input.ReadBool(); - break; - } - case 40: - { - PlayTimeExpires = input.ReadUInt64(); - break; - } - case 48: - { - IsSubscription = input.ReadBool(); - break; - } - case 56: - { - IsRecurringSubscription = input.ReadBool(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountLicense other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Expires != other.Expires) return false; + return Equals(_unknownFields, other._unknownFields); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameTimeRemainingInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameTimeRemainingInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[23]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameTimeRemainingInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameTimeRemainingInfo(GameTimeRemainingInfo other) : this() - { - minutesRemaining_ = other.minutesRemaining_; - parentalDailyMinutesRemaining_ = other.parentalDailyMinutesRemaining_; - parentalWeeklyMinutesRemaining_ = other.parentalWeeklyMinutesRemaining_; - secondsRemainingUntilKick_ = other.secondsRemainingUntilKick_; - } - - public GameTimeRemainingInfo Clone() - { - return new GameTimeRemainingInfo(this); - } - - /// Field number for the "minutes_remaining" field. - public const int MinutesRemainingFieldNumber = 1; - private uint minutesRemaining_; - public uint MinutesRemaining - { - get { return minutesRemaining_; } - set - { - minutesRemaining_ = value; - } - } - - /// Field number for the "parental_daily_minutes_remaining" field. - public const int ParentalDailyMinutesRemainingFieldNumber = 2; - private uint parentalDailyMinutesRemaining_; - public uint ParentalDailyMinutesRemaining - { - get { return parentalDailyMinutesRemaining_; } - set - { - parentalDailyMinutesRemaining_ = value; - } - } - - /// Field number for the "parental_weekly_minutes_remaining" field. - public const int ParentalWeeklyMinutesRemainingFieldNumber = 3; - private uint parentalWeeklyMinutesRemaining_; - public uint ParentalWeeklyMinutesRemaining - { - get { return parentalWeeklyMinutesRemaining_; } - set - { - parentalWeeklyMinutesRemaining_ = value; - } - } - - /// Field number for the "seconds_remaining_until_kick" field. - public const int SecondsRemainingUntilKickFieldNumber = 4; - private uint secondsRemainingUntilKick_; - public uint SecondsRemainingUntilKick - { - get { return secondsRemainingUntilKick_; } - set - { - secondsRemainingUntilKick_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameTimeRemainingInfo); - } - - public bool Equals(GameTimeRemainingInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (MinutesRemaining != other.MinutesRemaining) return false; - if (ParentalDailyMinutesRemaining != other.ParentalDailyMinutesRemaining) return false; - if (ParentalWeeklyMinutesRemaining != other.ParentalWeeklyMinutesRemaining) return false; - if (SecondsRemainingUntilKick != other.SecondsRemainingUntilKick) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (MinutesRemaining != 0) hash ^= MinutesRemaining.GetHashCode(); - if (ParentalDailyMinutesRemaining != 0) hash ^= ParentalDailyMinutesRemaining.GetHashCode(); - if (ParentalWeeklyMinutesRemaining != 0) hash ^= ParentalWeeklyMinutesRemaining.GetHashCode(); - if (SecondsRemainingUntilKick != 0) hash ^= SecondsRemainingUntilKick.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (MinutesRemaining != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(MinutesRemaining); - } - if (ParentalDailyMinutesRemaining != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(ParentalDailyMinutesRemaining); - } - if (ParentalWeeklyMinutesRemaining != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(ParentalWeeklyMinutesRemaining); - } - if (SecondsRemainingUntilKick != 0) - { - output.WriteRawTag(32); - output.WriteUInt32(SecondsRemainingUntilKick); - } - } - - public int CalculateSize() - { - int size = 0; - if (MinutesRemaining != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinutesRemaining); - } - if (ParentalDailyMinutesRemaining != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ParentalDailyMinutesRemaining); - } - if (ParentalWeeklyMinutesRemaining != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ParentalWeeklyMinutesRemaining); - } - if (SecondsRemainingUntilKick != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SecondsRemainingUntilKick); - } - return size; - } - - public void MergeFrom(GameTimeRemainingInfo other) - { - if (other == null) - { - return; - } - if (other.MinutesRemaining != 0) - { - MinutesRemaining = other.MinutesRemaining; - } - if (other.ParentalDailyMinutesRemaining != 0) - { - ParentalDailyMinutesRemaining = other.ParentalDailyMinutesRemaining; - } - if (other.ParentalWeeklyMinutesRemaining != 0) - { - ParentalWeeklyMinutesRemaining = other.ParentalWeeklyMinutesRemaining; - } - if (other.SecondsRemainingUntilKick != 0) - { - SecondsRemainingUntilKick = other.SecondsRemainingUntilKick; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - MinutesRemaining = input.ReadUInt32(); - break; - } - case 16: - { - ParentalDailyMinutesRemaining = input.ReadUInt32(); - break; - } - case 24: - { - ParentalWeeklyMinutesRemaining = input.ReadUInt32(); - break; - } - case 32: - { - SecondsRemainingUntilKick = input.ReadUInt32(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasExpires) hash ^= Expires.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameStatus : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameStatus()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[24]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameStatus() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameStatus(GameStatus other) : this() - { - isSuspended_ = other.isSuspended_; - isBanned_ = other.isBanned_; - suspensionExpires_ = other.suspensionExpires_; - program_ = other.program_; - isLocked_ = other.isLocked_; - isBamUnlockable_ = other.isBamUnlockable_; - } - - public GameStatus Clone() - { - return new GameStatus(this); - } - - /// Field number for the "is_suspended" field. - public const int IsSuspendedFieldNumber = 4; - private bool isSuspended_; - public bool IsSuspended - { - get { return isSuspended_; } - set - { - bitArray.Set(IsSuspendedFieldNumber, true); - isSuspended_ = value; - } - } - - /// Field number for the "is_banned" field. - public const int IsBannedFieldNumber = 5; - private bool isBanned_; - public bool IsBanned - { - get { return isBanned_; } - set - { - bitArray.Set(IsBannedFieldNumber, true); - isBanned_ = value; - } - } - - /// Field number for the "suspension_expires" field. - public const int SuspensionExpiresFieldNumber = 6; - private ulong suspensionExpires_; - public ulong SuspensionExpires - { - get { return suspensionExpires_; } - set - { - bitArray.Set(SuspensionExpiresFieldNumber, true); - suspensionExpires_ = value; - } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 7; - private uint program_; - public uint Program - { - get { return program_; } - set - { - bitArray.Set(ProgramFieldNumber, true); - program_ = value; - } - } - - /// Field number for the "is_locked" field. - public const int IsLockedFieldNumber = 8; - private bool isLocked_; - public bool IsLocked - { - get { return isLocked_; } - set - { - bitArray.Set(IsLockedFieldNumber, true); - isLocked_ = value; - } - } - - /// Field number for the "is_bam_unlockable" field. - public const int IsBamUnlockableFieldNumber = 9; - private bool isBamUnlockable_; - public bool IsBamUnlockable - { - get { return isBamUnlockable_; } - set - { - bitArray.Set(IsBamUnlockableFieldNumber, true); - isBamUnlockable_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameStatus); - } - - public bool Equals(GameStatus other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (IsSuspended != other.IsSuspended) return false; - if (IsBanned != other.IsBanned) return false; - if (SuspensionExpires != other.SuspensionExpires) return false; - if (Program != other.Program) return false; - if (IsLocked != other.IsLocked) return false; - if (IsBamUnlockable != other.IsBamUnlockable) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (IsSuspended != false) hash ^= IsSuspended.GetHashCode(); - if (IsBanned != false) hash ^= IsBanned.GetHashCode(); - if (SuspensionExpires != 0UL) hash ^= SuspensionExpires.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (IsLocked != false) hash ^= IsLocked.GetHashCode(); - if (IsBamUnlockable != false) hash ^= IsBamUnlockable.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (bitArray.Get(IsSuspendedFieldNumber)) - { - output.WriteRawTag(32); - output.WriteBool(IsSuspended); - } - if (bitArray.Get(IsBannedFieldNumber)) - { - output.WriteRawTag(40); - output.WriteBool(IsBanned); - } - if (bitArray.Get(SuspensionExpiresFieldNumber)) - { - output.WriteRawTag(48); - output.WriteUInt64(SuspensionExpires); - } - if (bitArray.Get(ProgramFieldNumber)) - { - output.WriteRawTag(61); - output.WriteFixed32(Program); - } - if (bitArray.Get(IsLockedFieldNumber)) - { - output.WriteRawTag(64); - output.WriteBool(IsLocked); - } - if (bitArray.Get(IsBamUnlockableFieldNumber)) - { - output.WriteRawTag(72); - output.WriteBool(IsBamUnlockable); - } - } - - public int CalculateSize() - { - int size = 0; - if (bitArray.Get(IsSuspendedFieldNumber)) - { - size += 1 + 1; - } - if (bitArray.Get(IsBannedFieldNumber)) - { - size += 1 + 1; - } - if (bitArray.Get(SuspensionExpiresFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SuspensionExpires); - } - if (bitArray.Get(ProgramFieldNumber)) - { - size += 1 + 4; - } - if (bitArray.Get(IsLockedFieldNumber)) - { - size += 1 + 1; - } - if (bitArray.Get(IsBamUnlockableFieldNumber)) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(GameStatus other) - { - if (other == null) - { - return; - } - if (other.IsSuspended != false) - { - IsSuspended = other.IsSuspended; - } - if (other.IsBanned != false) - { - IsBanned = other.IsBanned; - } - if (other.SuspensionExpires != 0UL) - { - SuspensionExpires = other.SuspensionExpires; - } - if (other.Program != 0) - { - Program = other.Program; - } - if (other.IsLocked != false) - { - IsLocked = other.IsLocked; - } - if (other.IsBamUnlockable != false) - { - IsBamUnlockable = other.IsBamUnlockable; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 32: - { - IsSuspended = input.ReadBool(); - break; - } - case 40: - { - IsBanned = input.ReadBool(); - break; - } - case 48: - { - SuspensionExpires = input.ReadUInt64(); - break; - } - case 61: - { - Program = input.ReadFixed32(); - break; - } - case 64: - { - IsLocked = input.ReadBool(); - break; - } - case 72: - { - IsBamUnlockable = input.ReadBool(); - break; - } - } - } - } - - System.Collections.BitArray bitArray = new System.Collections.BitArray(10); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class RAFInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RAFInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[25]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public RAFInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public RAFInfo(RAFInfo other) : this() - { - rafInfo_ = other.rafInfo_; - } - - public RAFInfo Clone() - { - return new RAFInfo(this); - } - - /// Field number for the "raf_info" field. - public const int RafInfoFieldNumber = 1; - private pb::ByteString rafInfo_ = pb::ByteString.Empty; - public pb::ByteString RafInfo - { - get { return rafInfo_; } - set - { - rafInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as RAFInfo); - } - - public bool Equals(RAFInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (RafInfo != other.RafInfo) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (RafInfo.Length != 0) hash ^= RafInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (RafInfo.Length != 0) - { - output.WriteRawTag(10); - output.WriteBytes(RafInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (RafInfo.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(RafInfo); - } - return size; - } - - public void MergeFrom(RAFInfo other) - { - if (other == null) - { - return; - } - if (other.RafInfo.Length != 0) - { - RafInfo = other.RafInfo; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - RafInfo = input.ReadBytes(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (HasExpires) { + output.WriteRawTag(16); + output.WriteUInt64(Expires); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameSessionInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameSessionInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[26]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameSessionInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameSessionInfo(GameSessionInfo other) : this() - { - startTime_ = other.startTime_; - Location = other.location_ != null ? other.Location.Clone() : null; - hasBenefactor_ = other.hasBenefactor_; - isUsingIgr_ = other.isUsingIgr_; - parentalControlsActive_ = other.parentalControlsActive_; - startTimeSec_ = other.startTimeSec_; - } - - public GameSessionInfo Clone() - { - return new GameSessionInfo(this); - } - - /// Field number for the "start_time" field. - public const int StartTimeFieldNumber = 3; - private uint startTime_; - [System.ObsoleteAttribute()] - public uint StartTime - { - get { return startTime_; } - set - { - startTime_ = value; - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 4; - private Bgs.Protocol.Account.V1.GameSessionLocation location_; - public Bgs.Protocol.Account.V1.GameSessionLocation Location - { - get { return location_; } - set - { - location_ = value; - } - } - - /// Field number for the "has_benefactor" field. - public const int HasBenefactorFieldNumber = 5; - private bool hasBenefactor_; - public bool HasBenefactor - { - get { return hasBenefactor_; } - set - { - hasBenefactor_ = value; - } - } - - /// Field number for the "is_using_igr" field. - public const int IsUsingIgrFieldNumber = 6; - private bool isUsingIgr_; - public bool IsUsingIgr - { - get { return isUsingIgr_; } - set - { - isUsingIgr_ = value; - } - } - - /// Field number for the "parental_controls_active" field. - public const int ParentalControlsActiveFieldNumber = 7; - private bool parentalControlsActive_; - public bool ParentalControlsActive - { - get { return parentalControlsActive_; } - set - { - parentalControlsActive_ = value; - } - } - - /// Field number for the "start_time_sec" field. - public const int StartTimeSecFieldNumber = 8; - private ulong startTimeSec_; - public ulong StartTimeSec - { - get { return startTimeSec_; } - set - { - startTimeSec_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameSessionInfo); - } - - public bool Equals(GameSessionInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (StartTime != other.StartTime) return false; - if (!object.Equals(Location, other.Location)) return false; - if (HasBenefactor != other.HasBenefactor) return false; - if (IsUsingIgr != other.IsUsingIgr) return false; - if (ParentalControlsActive != other.ParentalControlsActive) return false; - if (StartTimeSec != other.StartTimeSec) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (StartTime != 0) hash ^= StartTime.GetHashCode(); - if (location_ != null) hash ^= Location.GetHashCode(); - if (HasBenefactor != false) hash ^= HasBenefactor.GetHashCode(); - if (IsUsingIgr != false) hash ^= IsUsingIgr.GetHashCode(); - if (ParentalControlsActive != false) hash ^= ParentalControlsActive.GetHashCode(); - if (StartTimeSec != 0UL) hash ^= StartTimeSec.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (StartTime != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(StartTime); - } - if (location_ != null) - { - output.WriteRawTag(34); - output.WriteMessage(Location); - } - if (HasBenefactor != false) - { - output.WriteRawTag(40); - output.WriteBool(HasBenefactor); - } - if (IsUsingIgr != false) - { - output.WriteRawTag(48); - output.WriteBool(IsUsingIgr); - } - if (ParentalControlsActive != false) - { - output.WriteRawTag(56); - output.WriteBool(ParentalControlsActive); - } - if (StartTimeSec != 0UL) - { - output.WriteRawTag(64); - output.WriteUInt64(StartTimeSec); - } - } - - public int CalculateSize() - { - int size = 0; - if (StartTime != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StartTime); - } - if (location_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (HasBenefactor != false) - { - size += 1 + 1; - } - if (IsUsingIgr != false) - { - size += 1 + 1; - } - if (ParentalControlsActive != false) - { - size += 1 + 1; - } - if (StartTimeSec != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StartTimeSec); - } - return size; - } - - public void MergeFrom(GameSessionInfo other) - { - if (other == null) - { - return; - } - if (other.StartTime != 0) - { - StartTime = other.StartTime; - } - if (other.location_ != null) - { - if (location_ == null) - { - location_ = new Bgs.Protocol.Account.V1.GameSessionLocation(); - } - Location.MergeFrom(other.Location); - } - if (other.HasBenefactor != false) - { - HasBenefactor = other.HasBenefactor; - } - if (other.IsUsingIgr != false) - { - IsUsingIgr = other.IsUsingIgr; - } - if (other.ParentalControlsActive != false) - { - ParentalControlsActive = other.ParentalControlsActive; - } - if (other.StartTimeSec != 0UL) - { - StartTimeSec = other.StartTimeSec; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 24: - { - StartTime = input.ReadUInt32(); - break; - } - case 34: - { - if (location_ == null) - { - location_ = new Bgs.Protocol.Account.V1.GameSessionLocation(); - } - input.ReadMessage(location_); - break; - } - case 40: - { - HasBenefactor = input.ReadBool(); - break; - } - case 48: - { - IsUsingIgr = input.ReadBool(); - break; - } - case 56: - { - ParentalControlsActive = input.ReadBool(); - break; - } - case 64: - { - StartTimeSec = input.ReadUInt64(); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (HasExpires) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Expires); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameSessionUpdateInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameSessionUpdateInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[27]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameSessionUpdateInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameSessionUpdateInfo(GameSessionUpdateInfo other) : this() - { - Cais = other.cais_ != null ? other.Cais.Clone() : null; - } - - public GameSessionUpdateInfo Clone() - { - return new GameSessionUpdateInfo(this); - } - - /// Field number for the "cais" field. - public const int CaisFieldNumber = 8; - private Bgs.Protocol.Account.V1.CAIS cais_; - public Bgs.Protocol.Account.V1.CAIS Cais - { - get { return cais_; } - set - { - cais_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameSessionUpdateInfo); - } - - public bool Equals(GameSessionUpdateInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Cais, other.Cais)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (cais_ != null) hash ^= Cais.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (cais_ != null) - { - output.WriteRawTag(66); - output.WriteMessage(Cais); - } - } - - public int CalculateSize() - { - int size = 0; - if (cais_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cais); - } - return size; - } - - public void MergeFrom(GameSessionUpdateInfo other) - { - if (other == null) - { - return; - } - if (other.cais_ != null) - { - if (cais_ == null) - { - cais_ = new Bgs.Protocol.Account.V1.CAIS(); - } - Cais.MergeFrom(other.Cais); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 66: - { - if (cais_ == null) - { - cais_ = new Bgs.Protocol.Account.V1.CAIS(); - } - input.ReadMessage(cais_); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountLicense other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasExpires) { + Expires = other.Expires; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameSessionLocation : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameSessionLocation()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[28]; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Expires = input.ReadUInt64(); + break; + } } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameSessionLocation() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameSessionLocation(GameSessionLocation other) : this() - { - ipAddress_ = other.ipAddress_; - country_ = other.country_; - city_ = other.city_; - } - - public GameSessionLocation Clone() - { - return new GameSessionLocation(this); - } - - /// Field number for the "ip_address" field. - public const int IpAddressFieldNumber = 1; - private string ipAddress_ = ""; - public string IpAddress - { - get { return ipAddress_; } - set - { - ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "country" field. - public const int CountryFieldNumber = 2; - private uint country_; - public uint Country - { - get { return country_; } - set - { - country_ = value; - } - } - - /// Field number for the "city" field. - public const int CityFieldNumber = 3; - private string city_ = ""; - public string City - { - get { return city_; } - set - { - city_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as GameSessionLocation); - } - - public bool Equals(GameSessionLocation other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (IpAddress != other.IpAddress) return false; - if (Country != other.Country) return false; - if (City != other.City) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (IpAddress.Length != 0) hash ^= IpAddress.GetHashCode(); - if (Country != 0) hash ^= Country.GetHashCode(); - if (City.Length != 0) hash ^= City.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (IpAddress.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(IpAddress); - } - if (Country != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Country); - } - if (City.Length != 0) - { - output.WriteRawTag(26); - output.WriteString(City); - } - } - - public int CalculateSize() - { - int size = 0; - if (IpAddress.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); - } - if (Country != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Country); - } - if (City.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(City); - } - return size; - } - - public void MergeFrom(GameSessionLocation other) - { - if (other == null) - { - return; - } - if (other.IpAddress.Length != 0) - { - IpAddress = other.IpAddress; - } - if (other.Country != 0) - { - Country = other.Country; - } - if (other.City.Length != 0) - { - City = other.City; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - IpAddress = input.ReadString(); - break; - } - case 16: - { - Country = input.ReadUInt32(); - break; - } - case 26: - { - City = input.ReadString(); - break; - } - } - } - } - + } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class CAIS : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CAIS()); - public static pb::MessageParser Parser { get { return _parser; } } + } - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[29]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public CAIS() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public CAIS(CAIS other) : this() - { - playedMinutes_ = other.playedMinutes_; - restedMinutes_ = other.restedMinutes_; - lastHeardTime_ = other.lastHeardTime_; - } - - public CAIS Clone() - { - return new CAIS(this); - } - - /// Field number for the "played_minutes" field. - public const int PlayedMinutesFieldNumber = 1; - private uint playedMinutes_; - public uint PlayedMinutes - { - get { return playedMinutes_; } - set - { - playedMinutes_ = value; - } - } - - /// Field number for the "rested_minutes" field. - public const int RestedMinutesFieldNumber = 2; - private uint restedMinutes_; - public uint RestedMinutes - { - get { return restedMinutes_; } - set - { - restedMinutes_ = value; - } - } - - /// Field number for the "last_heard_time" field. - public const int LastHeardTimeFieldNumber = 3; - private ulong lastHeardTime_; - public ulong LastHeardTime - { - get { return lastHeardTime_; } - set - { - lastHeardTime_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as CAIS); - } - - public bool Equals(CAIS other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (PlayedMinutes != other.PlayedMinutes) return false; - if (RestedMinutes != other.RestedMinutes) return false; - if (LastHeardTime != other.LastHeardTime) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (PlayedMinutes != 0) hash ^= PlayedMinutes.GetHashCode(); - if (RestedMinutes != 0) hash ^= RestedMinutes.GetHashCode(); - if (LastHeardTime != 0UL) hash ^= LastHeardTime.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (PlayedMinutes != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(PlayedMinutes); - } - if (RestedMinutes != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(RestedMinutes); - } - if (LastHeardTime != 0UL) - { - output.WriteRawTag(24); - output.WriteUInt64(LastHeardTime); - } - } - - public int CalculateSize() - { - int size = 0; - if (PlayedMinutes != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlayedMinutes); - } - if (RestedMinutes != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RestedMinutes); - } - if (LastHeardTime != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LastHeardTime); - } - return size; - } - - public void MergeFrom(CAIS other) - { - if (other == null) - { - return; - } - if (other.PlayedMinutes != 0) - { - PlayedMinutes = other.PlayedMinutes; - } - if (other.RestedMinutes != 0) - { - RestedMinutes = other.RestedMinutes; - } - if (other.LastHeardTime != 0UL) - { - LastHeardTime = other.LastHeardTime; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - PlayedMinutes = input.ReadUInt32(); - break; - } - case 16: - { - RestedMinutes = input.ReadUInt32(); - break; - } - case 24: - { - LastHeardTime = input.ReadUInt64(); - break; - } - } - } - } + public sealed partial class GameAccountHandle : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountHandle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[2]; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountList : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountList()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[30]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountList() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountList(GameAccountList other) : this() - { - region_ = other.region_; - handle_ = other.handle_.Clone(); - } - - public GameAccountList Clone() - { - return new GameAccountList(this); - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 3; - private uint region_; - public uint Region - { - get { return region_; } - set - { - region_ = value; - } - } - - /// Field number for the "handle" field. - public const int HandleFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_handle_codec - = pb::FieldCodec.ForMessage(34, Bgs.Protocol.Account.V1.GameAccountHandle.Parser); - private readonly pbc::RepeatedField handle_ = new pbc::RepeatedField(); - public pbc::RepeatedField Handle - { - get { return handle_; } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountList); - } - - public bool Equals(GameAccountList other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Region != other.Region) return false; - if (!handle_.Equals(other.handle_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Region != 0) hash ^= Region.GetHashCode(); - hash ^= handle_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Region != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(Region); - } - handle_.WriteTo(output, _repeated_handle_codec); - } - - public int CalculateSize() - { - int size = 0; - if (Region != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); - } - size += handle_.CalculateSize(_repeated_handle_codec); - return size; - } - - public void MergeFrom(GameAccountList other) - { - if (other == null) - { - return; - } - if (other.Region != 0) - { - Region = other.Region; - } - handle_.Add(other.handle_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 24: - { - Region = input.ReadUInt32(); - break; - } - case 34: - { - handle_.AddEntriesFrom(input, _repeated_handle_codec); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountState : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountState()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[31]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountState() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountState(AccountState other) : this() - { - AccountLevelInfo = other.accountLevelInfo_ != null ? other.AccountLevelInfo.Clone() : null; - PrivacyInfo = other.privacyInfo_ != null ? other.PrivacyInfo.Clone() : null; - ParentalControlInfo = other.parentalControlInfo_ != null ? other.ParentalControlInfo.Clone() : null; - gameLevelInfo_ = other.gameLevelInfo_.Clone(); - gameStatus_ = other.gameStatus_.Clone(); - gameAccounts_ = other.gameAccounts_.Clone(); - } - - public AccountState Clone() - { - return new AccountState(this); - } - - /// Field number for the "account_level_info" field. - public const int AccountLevelInfoFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountLevelInfo accountLevelInfo_; - public Bgs.Protocol.Account.V1.AccountLevelInfo AccountLevelInfo - { - get { return accountLevelInfo_; } - set - { - accountLevelInfo_ = value; - } - } - - /// Field number for the "privacy_info" field. - public const int PrivacyInfoFieldNumber = 2; - private Bgs.Protocol.Account.V1.PrivacyInfo privacyInfo_; - public Bgs.Protocol.Account.V1.PrivacyInfo PrivacyInfo - { - get { return privacyInfo_; } - set - { - privacyInfo_ = value; - } - } - - /// Field number for the "parental_control_info" field. - public const int ParentalControlInfoFieldNumber = 3; - private Bgs.Protocol.Account.V1.ParentalControlInfo parentalControlInfo_; - public Bgs.Protocol.Account.V1.ParentalControlInfo ParentalControlInfo - { - get { return parentalControlInfo_; } - set - { - parentalControlInfo_ = value; - } - } - - /// Field number for the "game_level_info" field. - public const int GameLevelInfoFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_gameLevelInfo_codec - = pb::FieldCodec.ForMessage(42, Bgs.Protocol.Account.V1.GameLevelInfo.Parser); - private readonly pbc::RepeatedField gameLevelInfo_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameLevelInfo - { - get { return gameLevelInfo_; } - } - - /// Field number for the "game_status" field. - public const int GameStatusFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_gameStatus_codec - = pb::FieldCodec.ForMessage(50, Bgs.Protocol.Account.V1.GameStatus.Parser); - private readonly pbc::RepeatedField gameStatus_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameStatus - { - get { return gameStatus_; } - } - - /// Field number for the "game_accounts" field. - public const int GameAccountsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_gameAccounts_codec - = pb::FieldCodec.ForMessage(58, Bgs.Protocol.Account.V1.GameAccountList.Parser); - private readonly pbc::RepeatedField gameAccounts_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameAccounts - { - get { return gameAccounts_; } - } - - public override bool Equals(object other) - { - return Equals(other as AccountState); - } - - public bool Equals(AccountState other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(AccountLevelInfo, other.AccountLevelInfo)) return false; - if (!object.Equals(PrivacyInfo, other.PrivacyInfo)) return false; - if (!object.Equals(ParentalControlInfo, other.ParentalControlInfo)) return false; - if (!gameLevelInfo_.Equals(other.gameLevelInfo_)) return false; - if (!gameStatus_.Equals(other.gameStatus_)) return false; - if (!gameAccounts_.Equals(other.gameAccounts_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (accountLevelInfo_ != null) hash ^= AccountLevelInfo.GetHashCode(); - if (privacyInfo_ != null) hash ^= PrivacyInfo.GetHashCode(); - if (parentalControlInfo_ != null) hash ^= ParentalControlInfo.GetHashCode(); - hash ^= gameLevelInfo_.GetHashCode(); - hash ^= gameStatus_.GetHashCode(); - hash ^= gameAccounts_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (accountLevelInfo_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(AccountLevelInfo); - } - if (privacyInfo_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(PrivacyInfo); - } - if (parentalControlInfo_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(ParentalControlInfo); - } - gameLevelInfo_.WriteTo(output, _repeated_gameLevelInfo_codec); - gameStatus_.WriteTo(output, _repeated_gameStatus_codec); - gameAccounts_.WriteTo(output, _repeated_gameAccounts_codec); - } - - public int CalculateSize() - { - int size = 0; - if (accountLevelInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountLevelInfo); - } - if (privacyInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrivacyInfo); - } - if (parentalControlInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParentalControlInfo); - } - size += gameLevelInfo_.CalculateSize(_repeated_gameLevelInfo_codec); - size += gameStatus_.CalculateSize(_repeated_gameStatus_codec); - size += gameAccounts_.CalculateSize(_repeated_gameAccounts_codec); - return size; - } - - public void MergeFrom(AccountState other) - { - if (other == null) - { - return; - } - if (other.accountLevelInfo_ != null) - { - if (accountLevelInfo_ == null) - { - accountLevelInfo_ = new Bgs.Protocol.Account.V1.AccountLevelInfo(); - } - AccountLevelInfo.MergeFrom(other.AccountLevelInfo); - } - if (other.privacyInfo_ != null) - { - if (privacyInfo_ == null) - { - privacyInfo_ = new Bgs.Protocol.Account.V1.PrivacyInfo(); - } - PrivacyInfo.MergeFrom(other.PrivacyInfo); - } - if (other.parentalControlInfo_ != null) - { - if (parentalControlInfo_ == null) - { - parentalControlInfo_ = new Bgs.Protocol.Account.V1.ParentalControlInfo(); - } - ParentalControlInfo.MergeFrom(other.ParentalControlInfo); - } - gameLevelInfo_.Add(other.gameLevelInfo_); - gameStatus_.Add(other.gameStatus_); - gameAccounts_.Add(other.gameAccounts_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (accountLevelInfo_ == null) - { - accountLevelInfo_ = new Bgs.Protocol.Account.V1.AccountLevelInfo(); - } - input.ReadMessage(accountLevelInfo_); - break; - } - case 18: - { - if (privacyInfo_ == null) - { - privacyInfo_ = new Bgs.Protocol.Account.V1.PrivacyInfo(); - } - input.ReadMessage(privacyInfo_); - break; - } - case 26: - { - if (parentalControlInfo_ == null) - { - parentalControlInfo_ = new Bgs.Protocol.Account.V1.ParentalControlInfo(); - } - input.ReadMessage(parentalControlInfo_); - break; - } - case 42: - { - gameLevelInfo_.AddEntriesFrom(input, _repeated_gameLevelInfo_codec); - break; - } - case 50: - { - gameStatus_.AddEntriesFrom(input, _repeated_gameStatus_codec); - break; - } - case 58: - { - gameAccounts_.AddEntriesFrom(input, _repeated_gameAccounts_codec); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountHandle() { + OnConstruction(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountStateTagged : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountStateTagged()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[32]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountStateTagged() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountStateTagged(AccountStateTagged other) : this() - { - AccountState = other.accountState_ != null ? other.AccountState.Clone() : null; - AccountTags = other.accountTags_ != null ? other.AccountTags.Clone() : null; - } - - public AccountStateTagged Clone() - { - return new AccountStateTagged(this); - } - - /// Field number for the "account_state" field. - public const int AccountStateFieldNumber = 1; - private Bgs.Protocol.Account.V1.AccountState accountState_; - public Bgs.Protocol.Account.V1.AccountState AccountState - { - get { return accountState_; } - set - { - accountState_ = value; - } - } - - /// Field number for the "account_tags" field. - public const int AccountTagsFieldNumber = 2; - private Bgs.Protocol.Account.V1.AccountFieldTags accountTags_; - public Bgs.Protocol.Account.V1.AccountFieldTags AccountTags - { - get { return accountTags_; } - set - { - accountTags_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountStateTagged); - } - - public bool Equals(AccountStateTagged other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(AccountState, other.AccountState)) return false; - if (!object.Equals(AccountTags, other.AccountTags)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (accountState_ != null) hash ^= AccountState.GetHashCode(); - if (accountTags_ != null) hash ^= AccountTags.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (accountState_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(AccountState); - } - if (accountTags_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(AccountTags); - } - } - - public int CalculateSize() - { - int size = 0; - if (accountState_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountState); - } - if (accountTags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountTags); - } - return size; - } - - public void MergeFrom(AccountStateTagged other) - { - if (other == null) - { - return; - } - if (other.accountState_ != null) - { - if (accountState_ == null) - { - accountState_ = new Bgs.Protocol.Account.V1.AccountState(); - } - AccountState.MergeFrom(other.AccountState); - } - if (other.accountTags_ != null) - { - if (accountTags_ == null) - { - accountTags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - AccountTags.MergeFrom(other.AccountTags); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (accountState_ == null) - { - accountState_ = new Bgs.Protocol.Account.V1.AccountState(); - } - input.ReadMessage(accountState_); - break; - } - case 18: - { - if (accountTags_ == null) - { - accountTags_ = new Bgs.Protocol.Account.V1.AccountFieldTags(); - } - input.ReadMessage(accountTags_); - break; - } - } - } - } + partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountHandle(GameAccountHandle other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + program_ = other.program_; + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountState : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountState()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[33]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountState() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountState(GameAccountState other) : this() - { - GameLevelInfo = other.gameLevelInfo_ != null ? other.GameLevelInfo.Clone() : null; - GameTimeInfo = other.gameTimeInfo_ != null ? other.GameTimeInfo.Clone() : null; - GameStatus = other.gameStatus_ != null ? other.GameStatus.Clone() : null; - RafInfo = other.rafInfo_ != null ? other.RafInfo.Clone() : null; - } - - public GameAccountState Clone() - { - return new GameAccountState(this); - } - - /// Field number for the "game_level_info" field. - public const int GameLevelInfoFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameLevelInfo gameLevelInfo_; - public Bgs.Protocol.Account.V1.GameLevelInfo GameLevelInfo - { - get { return gameLevelInfo_; } - set - { - gameLevelInfo_ = value; - } - } - - /// Field number for the "game_time_info" field. - public const int GameTimeInfoFieldNumber = 2; - private Bgs.Protocol.Account.V1.GameTimeInfo gameTimeInfo_; - public Bgs.Protocol.Account.V1.GameTimeInfo GameTimeInfo - { - get { return gameTimeInfo_; } - set - { - gameTimeInfo_ = value; - } - } - - /// Field number for the "game_status" field. - public const int GameStatusFieldNumber = 3; - private Bgs.Protocol.Account.V1.GameStatus gameStatus_; - public Bgs.Protocol.Account.V1.GameStatus GameStatus - { - get { return gameStatus_; } - set - { - gameStatus_ = value; - } - } - - /// Field number for the "raf_info" field. - public const int RafInfoFieldNumber = 4; - private Bgs.Protocol.Account.V1.RAFInfo rafInfo_; - public Bgs.Protocol.Account.V1.RAFInfo RafInfo - { - get { return rafInfo_; } - set - { - rafInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountState); - } - - public bool Equals(GameAccountState other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameLevelInfo, other.GameLevelInfo)) return false; - if (!object.Equals(GameTimeInfo, other.GameTimeInfo)) return false; - if (!object.Equals(GameStatus, other.GameStatus)) return false; - if (!object.Equals(RafInfo, other.RafInfo)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameLevelInfo_ != null) hash ^= GameLevelInfo.GetHashCode(); - if (gameTimeInfo_ != null) hash ^= GameTimeInfo.GetHashCode(); - if (gameStatus_ != null) hash ^= GameStatus.GetHashCode(); - if (rafInfo_ != null) hash ^= RafInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameLevelInfo_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameLevelInfo); - } - if (gameTimeInfo_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(GameTimeInfo); - } - if (gameStatus_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(GameStatus); - } - if (rafInfo_ != null) - { - output.WriteRawTag(34); - output.WriteMessage(RafInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameLevelInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameLevelInfo); - } - if (gameTimeInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameTimeInfo); - } - if (gameStatus_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameStatus); - } - if (rafInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RafInfo); - } - return size; - } - - public void MergeFrom(GameAccountState other) - { - if (other == null) - { - return; - } - if (other.gameLevelInfo_ != null) - { - if (gameLevelInfo_ == null) - { - gameLevelInfo_ = new Bgs.Protocol.Account.V1.GameLevelInfo(); - } - GameLevelInfo.MergeFrom(other.GameLevelInfo); - } - if (other.gameTimeInfo_ != null) - { - if (gameTimeInfo_ == null) - { - gameTimeInfo_ = new Bgs.Protocol.Account.V1.GameTimeInfo(); - } - GameTimeInfo.MergeFrom(other.GameTimeInfo); - } - if (other.gameStatus_ != null) - { - if (gameStatus_ == null) - { - gameStatus_ = new Bgs.Protocol.Account.V1.GameStatus(); - } - GameStatus.MergeFrom(other.GameStatus); - } - if (other.rafInfo_ != null) - { - if (rafInfo_ == null) - { - rafInfo_ = new Bgs.Protocol.Account.V1.RAFInfo(); - } - RafInfo.MergeFrom(other.RafInfo); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameLevelInfo_ == null) - { - gameLevelInfo_ = new Bgs.Protocol.Account.V1.GameLevelInfo(); - } - input.ReadMessage(gameLevelInfo_); - break; - } - case 18: - { - if (gameTimeInfo_ == null) - { - gameTimeInfo_ = new Bgs.Protocol.Account.V1.GameTimeInfo(); - } - input.ReadMessage(gameTimeInfo_); - break; - } - case 26: - { - if (gameStatus_ == null) - { - gameStatus_ = new Bgs.Protocol.Account.V1.GameStatus(); - } - input.ReadMessage(gameStatus_); - break; - } - case 34: - { - if (rafInfo_ == null) - { - rafInfo_ = new Bgs.Protocol.Account.V1.RAFInfo(); - } - input.ReadMessage(rafInfo_); - break; - } - } - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountHandle Clone() { + return new GameAccountHandle(this); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountStateTagged : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountStateTagged()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[34]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountStateTagged() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountStateTagged(GameAccountStateTagged other) : this() - { - GameAccountState = other.gameAccountState_ != null ? other.GameAccountState.Clone() : null; - GameAccountTags = other.gameAccountTags_ != null ? other.GameAccountTags.Clone() : null; - } - - public GameAccountStateTagged Clone() - { - return new GameAccountStateTagged(this); - } - - /// Field number for the "game_account_state" field. - public const int GameAccountStateFieldNumber = 1; - private Bgs.Protocol.Account.V1.GameAccountState gameAccountState_; - public Bgs.Protocol.Account.V1.GameAccountState GameAccountState - { - get { return gameAccountState_; } - set - { - gameAccountState_ = value; - } - } - - /// Field number for the "game_account_tags" field. - public const int GameAccountTagsFieldNumber = 2; - private Bgs.Protocol.Account.V1.GameAccountFieldTags gameAccountTags_; - public Bgs.Protocol.Account.V1.GameAccountFieldTags GameAccountTags - { - get { return gameAccountTags_; } - set - { - gameAccountTags_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountStateTagged); - } - - public bool Equals(GameAccountStateTagged other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccountState, other.GameAccountState)) return false; - if (!object.Equals(GameAccountTags, other.GameAccountTags)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccountState_ != null) hash ^= GameAccountState.GetHashCode(); - if (gameAccountTags_ != null) hash ^= GameAccountTags.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccountState_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccountState); - } - if (gameAccountTags_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(GameAccountTags); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccountState_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountState); - } - if (gameAccountTags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountTags); - } - return size; - } - - public void MergeFrom(GameAccountStateTagged other) - { - if (other == null) - { - return; - } - if (other.gameAccountState_ != null) - { - if (gameAccountState_ == null) - { - gameAccountState_ = new Bgs.Protocol.Account.V1.GameAccountState(); - } - GameAccountState.MergeFrom(other.GameAccountState); - } - if (other.gameAccountTags_ != null) - { - if (gameAccountTags_ == null) - { - gameAccountTags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - GameAccountTags.MergeFrom(other.GameAccountTags); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccountState_ == null) - { - gameAccountState_ = new Bgs.Protocol.Account.V1.GameAccountState(); - } - input.ReadMessage(gameAccountState_); - break; - } - case 18: - { - if (gameAccountTags_ == null) - { - gameAccountTags_ = new Bgs.Protocol.Account.V1.GameAccountFieldTags(); - } - input.ReadMessage(gameAccountTags_); - break; - } - } - } - } + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AuthorizedData : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthorizedData()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[35]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AuthorizedData() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AuthorizedData(AuthorizedData other) : this() - { - data_ = other.data_; - license_ = other.license_.Clone(); - } - - public AuthorizedData Clone() - { - return new AuthorizedData(this); - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 1; - private string data_ = ""; - public string Data - { - get { return data_; } - set - { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "license" field. - public const int LicenseFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_license_codec - = pb::FieldCodec.ForUInt32(18); - private readonly pbc::RepeatedField license_ = new pbc::RepeatedField(); - public pbc::RepeatedField License - { - get { return license_; } - } - - public override bool Equals(object other) - { - return Equals(other as AuthorizedData); - } - - public bool Equals(AuthorizedData other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Data != other.Data) return false; - if (!license_.Equals(other.license_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Data.Length != 0) hash ^= Data.GetHashCode(); - hash ^= license_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Data.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(Data); - } - license_.WriteTo(output, _repeated_license_codec); - } - - public int CalculateSize() - { - int size = 0; - if (Data.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); - } - size += license_.CalculateSize(_repeated_license_codec); - return size; - } - - public void MergeFrom(AuthorizedData other) - { - if (other == null) - { - return; - } - if (other.Data.Length != 0) - { - Data = other.Data; - } - license_.Add(other.license_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Data = input.ReadString(); - break; - } - case 18: - case 16: - { - license_.AddEntriesFrom(input, _repeated_license_codec); - break; - } - } - } - } + /// Field number for the "program" field. + public const int ProgramFieldNumber = 2; + private readonly static uint ProgramDefaultValue = 0; + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 2) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 2; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~2; } + /// Field number for the "region" field. + public const int RegionFieldNumber = 3; + private readonly static uint RegionDefaultValue = 0; + + private uint region_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Region { + get { if ((_hasBits0 & 4) != 0) { return region_; } else { return RegionDefaultValue; } } + set { + _hasBits0 |= 4; + region_ = value; + } + } + /// Gets whether the "region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegion { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegion() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountHandle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountHandle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Program != other.Program) return false; + if (Region != other.Region) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasRegion) hash ^= Region.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(13); + output.WriteFixed32(Id); + } + if (HasProgram) { + output.WriteRawTag(21); + output.WriteFixed32(Program); + } + if (HasRegion) { + output.WriteRawTag(24); + output.WriteUInt32(Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + 4; + } + if (HasProgram) { + size += 1 + 4; + } + if (HasRegion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountHandle other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasRegion) { + Region = other.Region; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Id = input.ReadFixed32(); + break; + } + case 21: { + Program = input.ReadFixed32(); + break; + } + case 24: { + Region = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class AccountReference : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountReference()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountReference() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountReference(AccountReference other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + email_ = other.email_; + handle_ = other.HasHandle ? other.handle_.Clone() : null; + battleTag_ = other.battleTag_; + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountReference Clone() { + return new AccountReference(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; + + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 2; + private readonly static string EmailDefaultValue = ""; + + private string email_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Email { + get { return email_ ?? EmailDefaultValue; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "email" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEmail { + get { return email_ != null; } + } + /// Clears the value of the "email" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEmail() { + email_ = null; + } + + /// Field number for the "handle" field. + public const int HandleFieldNumber = 3; + private global::Bgs.Protocol.Account.V1.GameAccountHandle handle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle Handle { + get { return handle_; } + set { + handle_ = value; + } + } + /// Gets whether the handle field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHandle { + get { return handle_ != null; } + } + /// Clears the value of the handle field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHandle() { + handle_ = null; + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 4; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 10; + private readonly static uint RegionDefaultValue = 0; + + private uint region_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Region { + get { if ((_hasBits0 & 2) != 0) { return region_; } else { return RegionDefaultValue; } } + set { + _hasBits0 |= 2; + region_ = value; + } + } + /// Gets whether the "region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegion { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegion() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountReference); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountReference other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Email != other.Email) return false; + if (!object.Equals(Handle, other.Handle)) return false; + if (BattleTag != other.BattleTag) return false; + if (Region != other.Region) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasEmail) hash ^= Email.GetHashCode(); + if (HasHandle) hash ^= Handle.GetHashCode(); + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + if (HasRegion) hash ^= Region.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(13); + output.WriteFixed32(Id); + } + if (HasEmail) { + output.WriteRawTag(18); + output.WriteString(Email); + } + if (HasHandle) { + output.WriteRawTag(26); + output.WriteMessage(Handle); + } + if (HasBattleTag) { + output.WriteRawTag(34); + output.WriteString(BattleTag); + } + if (HasRegion) { + output.WriteRawTag(80); + output.WriteUInt32(Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + 4; + } + if (HasEmail) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (HasHandle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); + } + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + if (HasRegion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountReference other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasEmail) { + Email = other.Email; + } + if (other.HasHandle) { + if (!HasHandle) { + Handle = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + Handle.MergeFrom(other.Handle); + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + if (other.HasRegion) { + Region = other.Region; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Id = input.ReadFixed32(); + break; + } + case 18: { + Email = input.ReadString(); + break; + } + case 26: { + if (!HasHandle) { + Handle = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(Handle); + break; + } + case 34: { + BattleTag = input.ReadString(); + break; + } + case 80: { + Region = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class Identity : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Identity()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Identity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Identity(Identity other) : this() { + account_ = other.HasAccount ? other.account_.Clone() : null; + gameAccount_ = other.HasGameAccount ? other.gameAccount_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Identity Clone() { + return new Identity(this); + } + + /// Field number for the "account" field. + public const int AccountFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId account_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId Account { + get { return account_; } + set { + account_ = value; + } + } + /// Gets whether the account field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccount { + get { return account_ != null; } + } + /// Clears the value of the account field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccount() { + account_ = null; + } + + /// Field number for the "game_account" field. + public const int GameAccountFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle GameAccount { + get { return gameAccount_; } + set { + gameAccount_ = value; + } + } + /// Gets whether the game_account field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccount { + get { return gameAccount_ != null; } + } + /// Clears the value of the game_account field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccount() { + gameAccount_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Identity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Identity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Account, other.Account)) return false; + if (!object.Equals(GameAccount, other.GameAccount)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccount) hash ^= Account.GetHashCode(); + if (HasGameAccount) hash ^= GameAccount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccount) { + output.WriteRawTag(10); + output.WriteMessage(Account); + } + if (HasGameAccount) { + output.WriteRawTag(18); + output.WriteMessage(GameAccount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Account); + } + if (HasGameAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Identity other) { + if (other == null) { + return; + } + if (other.HasAccount) { + if (!HasAccount) { + Account = new global::Bgs.Protocol.Account.V1.AccountId(); + } + Account.MergeFrom(other.Account); + } + if (other.HasGameAccount) { + if (!HasGameAccount) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + GameAccount.MergeFrom(other.GameAccount); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccount) { + Account = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(Account); + break; + } + case 18: { + if (!HasGameAccount) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(GameAccount); + break; + } + } + } + } + + } + + public sealed partial class ProgramTag : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProgramTag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProgramTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProgramTag(ProgramTag other) : this() { + _hasBits0 = other._hasBits0; + program_ = other.program_; + tag_ = other.tag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProgramTag Clone() { + return new ProgramTag(this); + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 1; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 2; + private readonly static uint TagDefaultValue = 0; + + private uint tag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Tag { + get { if ((_hasBits0 & 2) != 0) { return tag_; } else { return TagDefaultValue; } } + set { + _hasBits0 |= 2; + tag_ = value; + } + } + /// Gets whether the "tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTag { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTag() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ProgramTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ProgramTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Program != other.Program) return false; + if (Tag != other.Tag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasTag) hash ^= Tag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasProgram) { + output.WriteRawTag(13); + output.WriteFixed32(Program); + } + if (HasTag) { + output.WriteRawTag(21); + output.WriteFixed32(Tag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasProgram) { + size += 1 + 4; + } + if (HasTag) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ProgramTag other) { + if (other == null) { + return; + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasTag) { + Tag = other.Tag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Program = input.ReadFixed32(); + break; + } + case 21: { + Tag = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class RegionTag : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionTag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegionTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegionTag(RegionTag other) : this() { + _hasBits0 = other._hasBits0; + region_ = other.region_; + tag_ = other.tag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegionTag Clone() { + return new RegionTag(this); + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 1; + private readonly static uint RegionDefaultValue = 0; + + private uint region_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Region { + get { if ((_hasBits0 & 1) != 0) { return region_; } else { return RegionDefaultValue; } } + set { + _hasBits0 |= 1; + region_ = value; + } + } + /// Gets whether the "region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegion { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegion() { + _hasBits0 &= ~1; + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 2; + private readonly static uint TagDefaultValue = 0; + + private uint tag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Tag { + get { if ((_hasBits0 & 2) != 0) { return tag_; } else { return TagDefaultValue; } } + set { + _hasBits0 |= 2; + tag_ = value; + } + } + /// Gets whether the "tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTag { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTag() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RegionTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RegionTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Region != other.Region) return false; + if (Tag != other.Tag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasRegion) hash ^= Region.GetHashCode(); + if (HasTag) hash ^= Tag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasRegion) { + output.WriteRawTag(13); + output.WriteFixed32(Region); + } + if (HasTag) { + output.WriteRawTag(21); + output.WriteFixed32(Tag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasRegion) { + size += 1 + 4; + } + if (HasTag) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RegionTag other) { + if (other == null) { + return; + } + if (other.HasRegion) { + Region = other.Region; + } + if (other.HasTag) { + Tag = other.Tag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Region = input.ReadFixed32(); + break; + } + case 21: { + Tag = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class AccountFieldTags : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountFieldTags()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountFieldTags() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountFieldTags(AccountFieldTags other) : this() { + _hasBits0 = other._hasBits0; + accountLevelInfoTag_ = other.accountLevelInfoTag_; + privacyInfoTag_ = other.privacyInfoTag_; + parentalControlInfoTag_ = other.parentalControlInfoTag_; + gameLevelInfoTags_ = other.gameLevelInfoTags_.Clone(); + gameStatusTags_ = other.gameStatusTags_.Clone(); + gameAccountTags_ = other.gameAccountTags_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountFieldTags Clone() { + return new AccountFieldTags(this); + } + + /// Field number for the "account_level_info_tag" field. + public const int AccountLevelInfoTagFieldNumber = 2; + private readonly static uint AccountLevelInfoTagDefaultValue = 0; + + private uint accountLevelInfoTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint AccountLevelInfoTag { + get { if ((_hasBits0 & 1) != 0) { return accountLevelInfoTag_; } else { return AccountLevelInfoTagDefaultValue; } } + set { + _hasBits0 |= 1; + accountLevelInfoTag_ = value; + } + } + /// Gets whether the "account_level_info_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountLevelInfoTag { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "account_level_info_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountLevelInfoTag() { + _hasBits0 &= ~1; + } + + /// Field number for the "privacy_info_tag" field. + public const int PrivacyInfoTagFieldNumber = 3; + private readonly static uint PrivacyInfoTagDefaultValue = 0; + + private uint privacyInfoTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PrivacyInfoTag { + get { if ((_hasBits0 & 2) != 0) { return privacyInfoTag_; } else { return PrivacyInfoTagDefaultValue; } } + set { + _hasBits0 |= 2; + privacyInfoTag_ = value; + } + } + /// Gets whether the "privacy_info_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivacyInfoTag { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "privacy_info_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivacyInfoTag() { + _hasBits0 &= ~2; + } + + /// Field number for the "parental_control_info_tag" field. + public const int ParentalControlInfoTagFieldNumber = 4; + private readonly static uint ParentalControlInfoTagDefaultValue = 0; + + private uint parentalControlInfoTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ParentalControlInfoTag { + get { if ((_hasBits0 & 4) != 0) { return parentalControlInfoTag_; } else { return ParentalControlInfoTagDefaultValue; } } + set { + _hasBits0 |= 4; + parentalControlInfoTag_ = value; + } + } + /// Gets whether the "parental_control_info_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasParentalControlInfoTag { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "parental_control_info_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearParentalControlInfoTag() { + _hasBits0 &= ~4; + } + + /// Field number for the "game_level_info_tags" field. + public const int GameLevelInfoTagsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_gameLevelInfoTags_codec + = pb::FieldCodec.ForMessage(58, global::Bgs.Protocol.Account.V1.ProgramTag.Parser); + private readonly pbc::RepeatedField gameLevelInfoTags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField GameLevelInfoTags { + get { return gameLevelInfoTags_; } + } + + /// Field number for the "game_status_tags" field. + public const int GameStatusTagsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_gameStatusTags_codec + = pb::FieldCodec.ForMessage(74, global::Bgs.Protocol.Account.V1.ProgramTag.Parser); + private readonly pbc::RepeatedField gameStatusTags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField GameStatusTags { + get { return gameStatusTags_; } + } + + /// Field number for the "game_account_tags" field. + public const int GameAccountTagsFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_gameAccountTags_codec + = pb::FieldCodec.ForMessage(90, global::Bgs.Protocol.Account.V1.RegionTag.Parser); + private readonly pbc::RepeatedField gameAccountTags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField GameAccountTags { + get { return gameAccountTags_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountFieldTags); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountFieldTags other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AccountLevelInfoTag != other.AccountLevelInfoTag) return false; + if (PrivacyInfoTag != other.PrivacyInfoTag) return false; + if (ParentalControlInfoTag != other.ParentalControlInfoTag) return false; + if(!gameLevelInfoTags_.Equals(other.gameLevelInfoTags_)) return false; + if(!gameStatusTags_.Equals(other.gameStatusTags_)) return false; + if(!gameAccountTags_.Equals(other.gameAccountTags_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountLevelInfoTag) hash ^= AccountLevelInfoTag.GetHashCode(); + if (HasPrivacyInfoTag) hash ^= PrivacyInfoTag.GetHashCode(); + if (HasParentalControlInfoTag) hash ^= ParentalControlInfoTag.GetHashCode(); + hash ^= gameLevelInfoTags_.GetHashCode(); + hash ^= gameStatusTags_.GetHashCode(); + hash ^= gameAccountTags_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountLevelInfoTag) { + output.WriteRawTag(21); + output.WriteFixed32(AccountLevelInfoTag); + } + if (HasPrivacyInfoTag) { + output.WriteRawTag(29); + output.WriteFixed32(PrivacyInfoTag); + } + if (HasParentalControlInfoTag) { + output.WriteRawTag(37); + output.WriteFixed32(ParentalControlInfoTag); + } + gameLevelInfoTags_.WriteTo(output, _repeated_gameLevelInfoTags_codec); + gameStatusTags_.WriteTo(output, _repeated_gameStatusTags_codec); + gameAccountTags_.WriteTo(output, _repeated_gameAccountTags_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountLevelInfoTag) { + size += 1 + 4; + } + if (HasPrivacyInfoTag) { + size += 1 + 4; + } + if (HasParentalControlInfoTag) { + size += 1 + 4; + } + size += gameLevelInfoTags_.CalculateSize(_repeated_gameLevelInfoTags_codec); + size += gameStatusTags_.CalculateSize(_repeated_gameStatusTags_codec); + size += gameAccountTags_.CalculateSize(_repeated_gameAccountTags_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountFieldTags other) { + if (other == null) { + return; + } + if (other.HasAccountLevelInfoTag) { + AccountLevelInfoTag = other.AccountLevelInfoTag; + } + if (other.HasPrivacyInfoTag) { + PrivacyInfoTag = other.PrivacyInfoTag; + } + if (other.HasParentalControlInfoTag) { + ParentalControlInfoTag = other.ParentalControlInfoTag; + } + gameLevelInfoTags_.Add(other.gameLevelInfoTags_); + gameStatusTags_.Add(other.gameStatusTags_); + gameAccountTags_.Add(other.gameAccountTags_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 21: { + AccountLevelInfoTag = input.ReadFixed32(); + break; + } + case 29: { + PrivacyInfoTag = input.ReadFixed32(); + break; + } + case 37: { + ParentalControlInfoTag = input.ReadFixed32(); + break; + } + case 58: { + gameLevelInfoTags_.AddEntriesFrom(input, _repeated_gameLevelInfoTags_codec); + break; + } + case 74: { + gameStatusTags_.AddEntriesFrom(input, _repeated_gameStatusTags_codec); + break; + } + case 90: { + gameAccountTags_.AddEntriesFrom(input, _repeated_gameAccountTags_codec); + break; + } + } + } + } + + } + + public sealed partial class GameAccountFieldTags : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountFieldTags()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFieldTags() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFieldTags(GameAccountFieldTags other) : this() { + _hasBits0 = other._hasBits0; + gameLevelInfoTag_ = other.gameLevelInfoTag_; + gameTimeInfoTag_ = other.gameTimeInfoTag_; + gameStatusTag_ = other.gameStatusTag_; + rafInfoTag_ = other.rafInfoTag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFieldTags Clone() { + return new GameAccountFieldTags(this); + } + + /// Field number for the "game_level_info_tag" field. + public const int GameLevelInfoTagFieldNumber = 2; + private readonly static uint GameLevelInfoTagDefaultValue = 0; + + private uint gameLevelInfoTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint GameLevelInfoTag { + get { if ((_hasBits0 & 1) != 0) { return gameLevelInfoTag_; } else { return GameLevelInfoTagDefaultValue; } } + set { + _hasBits0 |= 1; + gameLevelInfoTag_ = value; + } + } + /// Gets whether the "game_level_info_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameLevelInfoTag { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "game_level_info_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameLevelInfoTag() { + _hasBits0 &= ~1; + } + + /// Field number for the "game_time_info_tag" field. + public const int GameTimeInfoTagFieldNumber = 3; + private readonly static uint GameTimeInfoTagDefaultValue = 0; + + private uint gameTimeInfoTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint GameTimeInfoTag { + get { if ((_hasBits0 & 2) != 0) { return gameTimeInfoTag_; } else { return GameTimeInfoTagDefaultValue; } } + set { + _hasBits0 |= 2; + gameTimeInfoTag_ = value; + } + } + /// Gets whether the "game_time_info_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameTimeInfoTag { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "game_time_info_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameTimeInfoTag() { + _hasBits0 &= ~2; + } + + /// Field number for the "game_status_tag" field. + public const int GameStatusTagFieldNumber = 4; + private readonly static uint GameStatusTagDefaultValue = 0; + + private uint gameStatusTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint GameStatusTag { + get { if ((_hasBits0 & 4) != 0) { return gameStatusTag_; } else { return GameStatusTagDefaultValue; } } + set { + _hasBits0 |= 4; + gameStatusTag_ = value; + } + } + /// Gets whether the "game_status_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameStatusTag { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "game_status_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameStatusTag() { + _hasBits0 &= ~4; + } + + /// Field number for the "raf_info_tag" field. + public const int RafInfoTagFieldNumber = 5; + private readonly static uint RafInfoTagDefaultValue = 0; + + private uint rafInfoTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint RafInfoTag { + get { if ((_hasBits0 & 8) != 0) { return rafInfoTag_; } else { return RafInfoTagDefaultValue; } } + set { + _hasBits0 |= 8; + rafInfoTag_ = value; + } + } + /// Gets whether the "raf_info_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRafInfoTag { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "raf_info_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRafInfoTag() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountFieldTags); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountFieldTags other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GameLevelInfoTag != other.GameLevelInfoTag) return false; + if (GameTimeInfoTag != other.GameTimeInfoTag) return false; + if (GameStatusTag != other.GameStatusTag) return false; + if (RafInfoTag != other.RafInfoTag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameLevelInfoTag) hash ^= GameLevelInfoTag.GetHashCode(); + if (HasGameTimeInfoTag) hash ^= GameTimeInfoTag.GetHashCode(); + if (HasGameStatusTag) hash ^= GameStatusTag.GetHashCode(); + if (HasRafInfoTag) hash ^= RafInfoTag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameLevelInfoTag) { + output.WriteRawTag(21); + output.WriteFixed32(GameLevelInfoTag); + } + if (HasGameTimeInfoTag) { + output.WriteRawTag(29); + output.WriteFixed32(GameTimeInfoTag); + } + if (HasGameStatusTag) { + output.WriteRawTag(37); + output.WriteFixed32(GameStatusTag); + } + if (HasRafInfoTag) { + output.WriteRawTag(45); + output.WriteFixed32(RafInfoTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameLevelInfoTag) { + size += 1 + 4; + } + if (HasGameTimeInfoTag) { + size += 1 + 4; + } + if (HasGameStatusTag) { + size += 1 + 4; + } + if (HasRafInfoTag) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountFieldTags other) { + if (other == null) { + return; + } + if (other.HasGameLevelInfoTag) { + GameLevelInfoTag = other.GameLevelInfoTag; + } + if (other.HasGameTimeInfoTag) { + GameTimeInfoTag = other.GameTimeInfoTag; + } + if (other.HasGameStatusTag) { + GameStatusTag = other.GameStatusTag; + } + if (other.HasRafInfoTag) { + RafInfoTag = other.RafInfoTag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 21: { + GameLevelInfoTag = input.ReadFixed32(); + break; + } + case 29: { + GameTimeInfoTag = input.ReadFixed32(); + break; + } + case 37: { + GameStatusTag = input.ReadFixed32(); + break; + } + case 45: { + RafInfoTag = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class AccountFieldOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountFieldOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountFieldOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountFieldOptions(AccountFieldOptions other) : this() { + _hasBits0 = other._hasBits0; + allFields_ = other.allFields_; + fieldAccountLevelInfo_ = other.fieldAccountLevelInfo_; + fieldPrivacyInfo_ = other.fieldPrivacyInfo_; + fieldParentalControlInfo_ = other.fieldParentalControlInfo_; + fieldGameLevelInfo_ = other.fieldGameLevelInfo_; + fieldGameStatus_ = other.fieldGameStatus_; + fieldGameAccounts_ = other.fieldGameAccounts_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountFieldOptions Clone() { + return new AccountFieldOptions(this); + } + + /// Field number for the "all_fields" field. + public const int AllFieldsFieldNumber = 1; + private readonly static bool AllFieldsDefaultValue = false; + + private bool allFields_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AllFields { + get { if ((_hasBits0 & 1) != 0) { return allFields_; } else { return AllFieldsDefaultValue; } } + set { + _hasBits0 |= 1; + allFields_ = value; + } + } + /// Gets whether the "all_fields" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAllFields { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "all_fields" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAllFields() { + _hasBits0 &= ~1; + } + + /// Field number for the "field_account_level_info" field. + public const int FieldAccountLevelInfoFieldNumber = 2; + private readonly static bool FieldAccountLevelInfoDefaultValue = false; + + private bool fieldAccountLevelInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldAccountLevelInfo { + get { if ((_hasBits0 & 2) != 0) { return fieldAccountLevelInfo_; } else { return FieldAccountLevelInfoDefaultValue; } } + set { + _hasBits0 |= 2; + fieldAccountLevelInfo_ = value; + } + } + /// Gets whether the "field_account_level_info" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldAccountLevelInfo { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "field_account_level_info" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldAccountLevelInfo() { + _hasBits0 &= ~2; + } + + /// Field number for the "field_privacy_info" field. + public const int FieldPrivacyInfoFieldNumber = 3; + private readonly static bool FieldPrivacyInfoDefaultValue = false; + + private bool fieldPrivacyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldPrivacyInfo { + get { if ((_hasBits0 & 4) != 0) { return fieldPrivacyInfo_; } else { return FieldPrivacyInfoDefaultValue; } } + set { + _hasBits0 |= 4; + fieldPrivacyInfo_ = value; + } + } + /// Gets whether the "field_privacy_info" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldPrivacyInfo { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "field_privacy_info" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldPrivacyInfo() { + _hasBits0 &= ~4; + } + + /// Field number for the "field_parental_control_info" field. + public const int FieldParentalControlInfoFieldNumber = 4; + private readonly static bool FieldParentalControlInfoDefaultValue = false; + + private bool fieldParentalControlInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldParentalControlInfo { + get { if ((_hasBits0 & 8) != 0) { return fieldParentalControlInfo_; } else { return FieldParentalControlInfoDefaultValue; } } + set { + _hasBits0 |= 8; + fieldParentalControlInfo_ = value; + } + } + /// Gets whether the "field_parental_control_info" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldParentalControlInfo { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "field_parental_control_info" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldParentalControlInfo() { + _hasBits0 &= ~8; + } + + /// Field number for the "field_game_level_info" field. + public const int FieldGameLevelInfoFieldNumber = 6; + private readonly static bool FieldGameLevelInfoDefaultValue = false; + + private bool fieldGameLevelInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldGameLevelInfo { + get { if ((_hasBits0 & 16) != 0) { return fieldGameLevelInfo_; } else { return FieldGameLevelInfoDefaultValue; } } + set { + _hasBits0 |= 16; + fieldGameLevelInfo_ = value; + } + } + /// Gets whether the "field_game_level_info" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldGameLevelInfo { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "field_game_level_info" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldGameLevelInfo() { + _hasBits0 &= ~16; + } + + /// Field number for the "field_game_status" field. + public const int FieldGameStatusFieldNumber = 7; + private readonly static bool FieldGameStatusDefaultValue = false; + + private bool fieldGameStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldGameStatus { + get { if ((_hasBits0 & 32) != 0) { return fieldGameStatus_; } else { return FieldGameStatusDefaultValue; } } + set { + _hasBits0 |= 32; + fieldGameStatus_ = value; + } + } + /// Gets whether the "field_game_status" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldGameStatus { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "field_game_status" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldGameStatus() { + _hasBits0 &= ~32; + } + + /// Field number for the "field_game_accounts" field. + public const int FieldGameAccountsFieldNumber = 8; + private readonly static bool FieldGameAccountsDefaultValue = false; + + private bool fieldGameAccounts_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldGameAccounts { + get { if ((_hasBits0 & 64) != 0) { return fieldGameAccounts_; } else { return FieldGameAccountsDefaultValue; } } + set { + _hasBits0 |= 64; + fieldGameAccounts_ = value; + } + } + /// Gets whether the "field_game_accounts" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldGameAccounts { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "field_game_accounts" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldGameAccounts() { + _hasBits0 &= ~64; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountFieldOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountFieldOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AllFields != other.AllFields) return false; + if (FieldAccountLevelInfo != other.FieldAccountLevelInfo) return false; + if (FieldPrivacyInfo != other.FieldPrivacyInfo) return false; + if (FieldParentalControlInfo != other.FieldParentalControlInfo) return false; + if (FieldGameLevelInfo != other.FieldGameLevelInfo) return false; + if (FieldGameStatus != other.FieldGameStatus) return false; + if (FieldGameAccounts != other.FieldGameAccounts) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAllFields) hash ^= AllFields.GetHashCode(); + if (HasFieldAccountLevelInfo) hash ^= FieldAccountLevelInfo.GetHashCode(); + if (HasFieldPrivacyInfo) hash ^= FieldPrivacyInfo.GetHashCode(); + if (HasFieldParentalControlInfo) hash ^= FieldParentalControlInfo.GetHashCode(); + if (HasFieldGameLevelInfo) hash ^= FieldGameLevelInfo.GetHashCode(); + if (HasFieldGameStatus) hash ^= FieldGameStatus.GetHashCode(); + if (HasFieldGameAccounts) hash ^= FieldGameAccounts.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAllFields) { + output.WriteRawTag(8); + output.WriteBool(AllFields); + } + if (HasFieldAccountLevelInfo) { + output.WriteRawTag(16); + output.WriteBool(FieldAccountLevelInfo); + } + if (HasFieldPrivacyInfo) { + output.WriteRawTag(24); + output.WriteBool(FieldPrivacyInfo); + } + if (HasFieldParentalControlInfo) { + output.WriteRawTag(32); + output.WriteBool(FieldParentalControlInfo); + } + if (HasFieldGameLevelInfo) { + output.WriteRawTag(48); + output.WriteBool(FieldGameLevelInfo); + } + if (HasFieldGameStatus) { + output.WriteRawTag(56); + output.WriteBool(FieldGameStatus); + } + if (HasFieldGameAccounts) { + output.WriteRawTag(64); + output.WriteBool(FieldGameAccounts); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAllFields) { + size += 1 + 1; + } + if (HasFieldAccountLevelInfo) { + size += 1 + 1; + } + if (HasFieldPrivacyInfo) { + size += 1 + 1; + } + if (HasFieldParentalControlInfo) { + size += 1 + 1; + } + if (HasFieldGameLevelInfo) { + size += 1 + 1; + } + if (HasFieldGameStatus) { + size += 1 + 1; + } + if (HasFieldGameAccounts) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountFieldOptions other) { + if (other == null) { + return; + } + if (other.HasAllFields) { + AllFields = other.AllFields; + } + if (other.HasFieldAccountLevelInfo) { + FieldAccountLevelInfo = other.FieldAccountLevelInfo; + } + if (other.HasFieldPrivacyInfo) { + FieldPrivacyInfo = other.FieldPrivacyInfo; + } + if (other.HasFieldParentalControlInfo) { + FieldParentalControlInfo = other.FieldParentalControlInfo; + } + if (other.HasFieldGameLevelInfo) { + FieldGameLevelInfo = other.FieldGameLevelInfo; + } + if (other.HasFieldGameStatus) { + FieldGameStatus = other.FieldGameStatus; + } + if (other.HasFieldGameAccounts) { + FieldGameAccounts = other.FieldGameAccounts; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AllFields = input.ReadBool(); + break; + } + case 16: { + FieldAccountLevelInfo = input.ReadBool(); + break; + } + case 24: { + FieldPrivacyInfo = input.ReadBool(); + break; + } + case 32: { + FieldParentalControlInfo = input.ReadBool(); + break; + } + case 48: { + FieldGameLevelInfo = input.ReadBool(); + break; + } + case 56: { + FieldGameStatus = input.ReadBool(); + break; + } + case 64: { + FieldGameAccounts = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class GameAccountFieldOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountFieldOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFieldOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFieldOptions(GameAccountFieldOptions other) : this() { + _hasBits0 = other._hasBits0; + allFields_ = other.allFields_; + fieldGameLevelInfo_ = other.fieldGameLevelInfo_; + fieldGameTimeInfo_ = other.fieldGameTimeInfo_; + fieldGameStatus_ = other.fieldGameStatus_; + fieldRafInfo_ = other.fieldRafInfo_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountFieldOptions Clone() { + return new GameAccountFieldOptions(this); + } + + /// Field number for the "all_fields" field. + public const int AllFieldsFieldNumber = 1; + private readonly static bool AllFieldsDefaultValue = false; + + private bool allFields_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AllFields { + get { if ((_hasBits0 & 1) != 0) { return allFields_; } else { return AllFieldsDefaultValue; } } + set { + _hasBits0 |= 1; + allFields_ = value; + } + } + /// Gets whether the "all_fields" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAllFields { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "all_fields" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAllFields() { + _hasBits0 &= ~1; + } + + /// Field number for the "field_game_level_info" field. + public const int FieldGameLevelInfoFieldNumber = 2; + private readonly static bool FieldGameLevelInfoDefaultValue = false; + + private bool fieldGameLevelInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldGameLevelInfo { + get { if ((_hasBits0 & 2) != 0) { return fieldGameLevelInfo_; } else { return FieldGameLevelInfoDefaultValue; } } + set { + _hasBits0 |= 2; + fieldGameLevelInfo_ = value; + } + } + /// Gets whether the "field_game_level_info" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldGameLevelInfo { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "field_game_level_info" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldGameLevelInfo() { + _hasBits0 &= ~2; + } + + /// Field number for the "field_game_time_info" field. + public const int FieldGameTimeInfoFieldNumber = 3; + private readonly static bool FieldGameTimeInfoDefaultValue = false; + + private bool fieldGameTimeInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldGameTimeInfo { + get { if ((_hasBits0 & 4) != 0) { return fieldGameTimeInfo_; } else { return FieldGameTimeInfoDefaultValue; } } + set { + _hasBits0 |= 4; + fieldGameTimeInfo_ = value; + } + } + /// Gets whether the "field_game_time_info" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldGameTimeInfo { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "field_game_time_info" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldGameTimeInfo() { + _hasBits0 &= ~4; + } + + /// Field number for the "field_game_status" field. + public const int FieldGameStatusFieldNumber = 4; + private readonly static bool FieldGameStatusDefaultValue = false; + + private bool fieldGameStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldGameStatus { + get { if ((_hasBits0 & 8) != 0) { return fieldGameStatus_; } else { return FieldGameStatusDefaultValue; } } + set { + _hasBits0 |= 8; + fieldGameStatus_ = value; + } + } + /// Gets whether the "field_game_status" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldGameStatus { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "field_game_status" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldGameStatus() { + _hasBits0 &= ~8; + } + + /// Field number for the "field_raf_info" field. + public const int FieldRafInfoFieldNumber = 5; + private readonly static bool FieldRafInfoDefaultValue = false; + + private bool fieldRafInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FieldRafInfo { + get { if ((_hasBits0 & 16) != 0) { return fieldRafInfo_; } else { return FieldRafInfoDefaultValue; } } + set { + _hasBits0 |= 16; + fieldRafInfo_ = value; + } + } + /// Gets whether the "field_raf_info" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFieldRafInfo { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "field_raf_info" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFieldRafInfo() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountFieldOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountFieldOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AllFields != other.AllFields) return false; + if (FieldGameLevelInfo != other.FieldGameLevelInfo) return false; + if (FieldGameTimeInfo != other.FieldGameTimeInfo) return false; + if (FieldGameStatus != other.FieldGameStatus) return false; + if (FieldRafInfo != other.FieldRafInfo) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAllFields) hash ^= AllFields.GetHashCode(); + if (HasFieldGameLevelInfo) hash ^= FieldGameLevelInfo.GetHashCode(); + if (HasFieldGameTimeInfo) hash ^= FieldGameTimeInfo.GetHashCode(); + if (HasFieldGameStatus) hash ^= FieldGameStatus.GetHashCode(); + if (HasFieldRafInfo) hash ^= FieldRafInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAllFields) { + output.WriteRawTag(8); + output.WriteBool(AllFields); + } + if (HasFieldGameLevelInfo) { + output.WriteRawTag(16); + output.WriteBool(FieldGameLevelInfo); + } + if (HasFieldGameTimeInfo) { + output.WriteRawTag(24); + output.WriteBool(FieldGameTimeInfo); + } + if (HasFieldGameStatus) { + output.WriteRawTag(32); + output.WriteBool(FieldGameStatus); + } + if (HasFieldRafInfo) { + output.WriteRawTag(40); + output.WriteBool(FieldRafInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAllFields) { + size += 1 + 1; + } + if (HasFieldGameLevelInfo) { + size += 1 + 1; + } + if (HasFieldGameTimeInfo) { + size += 1 + 1; + } + if (HasFieldGameStatus) { + size += 1 + 1; + } + if (HasFieldRafInfo) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountFieldOptions other) { + if (other == null) { + return; + } + if (other.HasAllFields) { + AllFields = other.AllFields; + } + if (other.HasFieldGameLevelInfo) { + FieldGameLevelInfo = other.FieldGameLevelInfo; + } + if (other.HasFieldGameTimeInfo) { + FieldGameTimeInfo = other.FieldGameTimeInfo; + } + if (other.HasFieldGameStatus) { + FieldGameStatus = other.FieldGameStatus; + } + if (other.HasFieldRafInfo) { + FieldRafInfo = other.FieldRafInfo; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AllFields = input.ReadBool(); + break; + } + case 16: { + FieldGameLevelInfo = input.ReadBool(); + break; + } + case 24: { + FieldGameTimeInfo = input.ReadBool(); + break; + } + case 32: { + FieldGameStatus = input.ReadBool(); + break; + } + case 40: { + FieldRafInfo = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class SubscriberReference : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriberReference()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberReference() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberReference(SubscriberReference other) : this() { + _hasBits0 = other._hasBits0; + objectId_ = other.objectId_; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; + accountOptions_ = other.HasAccountOptions ? other.accountOptions_.Clone() : null; + accountTags_ = other.HasAccountTags ? other.accountTags_.Clone() : null; + gameAccountOptions_ = other.HasGameAccountOptions ? other.gameAccountOptions_.Clone() : null; + gameAccountTags_ = other.HasGameAccountTags ? other.gameAccountTags_.Clone() : null; + subscriberId_ = other.subscriberId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberReference Clone() { + return new SubscriberReference(this); + } + + /// Field number for the "object_id" field. + public const int ObjectIdFieldNumber = 1; + private readonly static ulong ObjectIdDefaultValue = 0UL; + + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ObjectId { + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } + set { + _hasBits0 |= 1; + objectId_ = value; + } + } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } + + /// Field number for the "account_options" field. + public const int AccountOptionsFieldNumber = 3; + private global::Bgs.Protocol.Account.V1.AccountFieldOptions accountOptions_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountFieldOptions AccountOptions { + get { return accountOptions_; } + set { + accountOptions_ = value; + } + } + /// Gets whether the account_options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountOptions { + get { return accountOptions_ != null; } + } + /// Clears the value of the account_options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountOptions() { + accountOptions_ = null; + } + + /// Field number for the "account_tags" field. + public const int AccountTagsFieldNumber = 4; + private global::Bgs.Protocol.Account.V1.AccountFieldTags accountTags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountFieldTags AccountTags { + get { return accountTags_; } + set { + accountTags_ = value; + } + } + /// Gets whether the account_tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountTags { + get { return accountTags_ != null; } + } + /// Clears the value of the account_tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountTags() { + accountTags_ = null; + } + + /// Field number for the "game_account_options" field. + public const int GameAccountOptionsFieldNumber = 5; + private global::Bgs.Protocol.Account.V1.GameAccountFieldOptions gameAccountOptions_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountFieldOptions GameAccountOptions { + get { return gameAccountOptions_; } + set { + gameAccountOptions_ = value; + } + } + /// Gets whether the game_account_options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountOptions { + get { return gameAccountOptions_ != null; } + } + /// Clears the value of the game_account_options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountOptions() { + gameAccountOptions_ = null; + } + + /// Field number for the "game_account_tags" field. + public const int GameAccountTagsFieldNumber = 6; + private global::Bgs.Protocol.Account.V1.GameAccountFieldTags gameAccountTags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountFieldTags GameAccountTags { + get { return gameAccountTags_; } + set { + gameAccountTags_ = value; + } + } + /// Gets whether the game_account_tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountTags { + get { return gameAccountTags_ != null; } + } + /// Clears the value of the game_account_tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountTags() { + gameAccountTags_ = null; + } + + /// Field number for the "subscriber_id" field. + public const int SubscriberIdFieldNumber = 7; + private readonly static ulong SubscriberIdDefaultValue = 0UL; + + private ulong subscriberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SubscriberId { + get { if ((_hasBits0 & 2) != 0) { return subscriberId_; } else { return SubscriberIdDefaultValue; } } + set { + _hasBits0 |= 2; + subscriberId_ = value; + } + } + /// Gets whether the "subscriber_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriberId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "subscriber_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriberId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscriberReference); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscriberReference other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ObjectId != other.ObjectId) return false; + if (!object.Equals(EntityId, other.EntityId)) return false; + if (!object.Equals(AccountOptions, other.AccountOptions)) return false; + if (!object.Equals(AccountTags, other.AccountTags)) return false; + if (!object.Equals(GameAccountOptions, other.GameAccountOptions)) return false; + if (!object.Equals(GameAccountTags, other.GameAccountTags)) return false; + if (SubscriberId != other.SubscriberId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (HasAccountOptions) hash ^= AccountOptions.GetHashCode(); + if (HasAccountTags) hash ^= AccountTags.GetHashCode(); + if (HasGameAccountOptions) hash ^= GameAccountOptions.GetHashCode(); + if (HasGameAccountTags) hash ^= GameAccountTags.GetHashCode(); + if (HasSubscriberId) hash ^= SubscriberId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasObjectId) { + output.WriteRawTag(8); + output.WriteUInt64(ObjectId); + } + if (HasEntityId) { + output.WriteRawTag(18); + output.WriteMessage(EntityId); + } + if (HasAccountOptions) { + output.WriteRawTag(26); + output.WriteMessage(AccountOptions); + } + if (HasAccountTags) { + output.WriteRawTag(34); + output.WriteMessage(AccountTags); + } + if (HasGameAccountOptions) { + output.WriteRawTag(42); + output.WriteMessage(GameAccountOptions); + } + if (HasGameAccountTags) { + output.WriteRawTag(50); + output.WriteMessage(GameAccountTags); + } + if (HasSubscriberId) { + output.WriteRawTag(56); + output.WriteUInt64(SubscriberId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasObjectId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); + } + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + if (HasAccountOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountOptions); + } + if (HasAccountTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountTags); + } + if (HasGameAccountOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountOptions); + } + if (HasGameAccountTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountTags); + } + if (HasSubscriberId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SubscriberId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscriberReference other) { + if (other == null) { + return; + } + if (other.HasObjectId) { + ObjectId = other.ObjectId; + } + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + EntityId.MergeFrom(other.EntityId); + } + if (other.HasAccountOptions) { + if (!HasAccountOptions) { + AccountOptions = new global::Bgs.Protocol.Account.V1.AccountFieldOptions(); + } + AccountOptions.MergeFrom(other.AccountOptions); + } + if (other.HasAccountTags) { + if (!HasAccountTags) { + AccountTags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + AccountTags.MergeFrom(other.AccountTags); + } + if (other.HasGameAccountOptions) { + if (!HasGameAccountOptions) { + GameAccountOptions = new global::Bgs.Protocol.Account.V1.GameAccountFieldOptions(); + } + GameAccountOptions.MergeFrom(other.GameAccountOptions); + } + if (other.HasGameAccountTags) { + if (!HasGameAccountTags) { + GameAccountTags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + GameAccountTags.MergeFrom(other.GameAccountTags); + } + if (other.HasSubscriberId) { + SubscriberId = other.SubscriberId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ObjectId = input.ReadUInt64(); + break; + } + case 18: { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(EntityId); + break; + } + case 26: { + if (!HasAccountOptions) { + AccountOptions = new global::Bgs.Protocol.Account.V1.AccountFieldOptions(); + } + input.ReadMessage(AccountOptions); + break; + } + case 34: { + if (!HasAccountTags) { + AccountTags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + input.ReadMessage(AccountTags); + break; + } + case 42: { + if (!HasGameAccountOptions) { + GameAccountOptions = new global::Bgs.Protocol.Account.V1.GameAccountFieldOptions(); + } + input.ReadMessage(GameAccountOptions); + break; + } + case 50: { + if (!HasGameAccountTags) { + GameAccountTags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + input.ReadMessage(GameAccountTags); + break; + } + case 56: { + SubscriberId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class AccountLevelInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountLevelInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountLevelInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountLevelInfo(AccountLevelInfo other) : this() { + _hasBits0 = other._hasBits0; + licenses_ = other.licenses_.Clone(); + defaultCurrency_ = other.defaultCurrency_; + country_ = other.country_; + preferredRegion_ = other.preferredRegion_; + fullName_ = other.fullName_; + battleTag_ = other.battleTag_; + muted_ = other.muted_; + manualReview_ = other.manualReview_; + accountPaidAny_ = other.accountPaidAny_; + identityCheckStatus_ = other.identityCheckStatus_; + email_ = other.email_; + headlessAccount_ = other.headlessAccount_; + testAccount_ = other.testAccount_; + isSmsProtected_ = other.isSmsProtected_; + ratingsBoardMinimumAge_ = other.ratingsBoardMinimumAge_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountLevelInfo Clone() { + return new AccountLevelInfo(this); + } + + /// Field number for the "licenses" field. + public const int LicensesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_licenses_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Account.V1.AccountLicense.Parser); + private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Licenses { + get { return licenses_; } + } + + /// Field number for the "default_currency" field. + public const int DefaultCurrencyFieldNumber = 4; + private readonly static uint DefaultCurrencyDefaultValue = 0; + + private uint defaultCurrency_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint DefaultCurrency { + get { if ((_hasBits0 & 1) != 0) { return defaultCurrency_; } else { return DefaultCurrencyDefaultValue; } } + set { + _hasBits0 |= 1; + defaultCurrency_ = value; + } + } + /// Gets whether the "default_currency" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDefaultCurrency { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "default_currency" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDefaultCurrency() { + _hasBits0 &= ~1; + } + + /// Field number for the "country" field. + public const int CountryFieldNumber = 5; + private readonly static string CountryDefaultValue = ""; + + private string country_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Country { + get { return country_ ?? CountryDefaultValue; } + set { + country_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "country" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCountry { + get { return country_ != null; } + } + /// Clears the value of the "country" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCountry() { + country_ = null; + } + + /// Field number for the "preferred_region" field. + public const int PreferredRegionFieldNumber = 6; + private readonly static uint PreferredRegionDefaultValue = 0; + + private uint preferredRegion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PreferredRegion { + get { if ((_hasBits0 & 2) != 0) { return preferredRegion_; } else { return PreferredRegionDefaultValue; } } + set { + _hasBits0 |= 2; + preferredRegion_ = value; + } + } + /// Gets whether the "preferred_region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPreferredRegion { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "preferred_region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPreferredRegion() { + _hasBits0 &= ~2; + } + + /// Field number for the "full_name" field. + public const int FullNameFieldNumber = 7; + private readonly static string FullNameDefaultValue = ""; + + private string fullName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string FullName { + get { return fullName_ ?? FullNameDefaultValue; } + set { + fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "full_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFullName { + get { return fullName_ != null; } + } + /// Clears the value of the "full_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFullName() { + fullName_ = null; + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 8; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + /// Field number for the "muted" field. + public const int MutedFieldNumber = 9; + private readonly static bool MutedDefaultValue = false; + + private bool muted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Muted { + get { if ((_hasBits0 & 4) != 0) { return muted_; } else { return MutedDefaultValue; } } + set { + _hasBits0 |= 4; + muted_ = value; + } + } + /// Gets whether the "muted" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMuted { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "muted" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMuted() { + _hasBits0 &= ~4; + } + + /// Field number for the "manual_review" field. + public const int ManualReviewFieldNumber = 10; + private readonly static bool ManualReviewDefaultValue = false; + + private bool manualReview_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ManualReview { + get { if ((_hasBits0 & 8) != 0) { return manualReview_; } else { return ManualReviewDefaultValue; } } + set { + _hasBits0 |= 8; + manualReview_ = value; + } + } + /// Gets whether the "manual_review" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasManualReview { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "manual_review" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearManualReview() { + _hasBits0 &= ~8; + } + + /// Field number for the "account_paid_any" field. + public const int AccountPaidAnyFieldNumber = 11; + private readonly static bool AccountPaidAnyDefaultValue = false; + + private bool accountPaidAny_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AccountPaidAny { + get { if ((_hasBits0 & 16) != 0) { return accountPaidAny_; } else { return AccountPaidAnyDefaultValue; } } + set { + _hasBits0 |= 16; + accountPaidAny_ = value; + } + } + /// Gets whether the "account_paid_any" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountPaidAny { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "account_paid_any" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountPaidAny() { + _hasBits0 &= ~16; + } + + /// Field number for the "identity_check_status" field. + public const int IdentityCheckStatusFieldNumber = 12; + private readonly static global::Bgs.Protocol.Account.V1.IdentityVerificationStatus IdentityCheckStatusDefaultValue = global::Bgs.Protocol.Account.V1.IdentityVerificationStatus.IdentNoData; + + private global::Bgs.Protocol.Account.V1.IdentityVerificationStatus identityCheckStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.IdentityVerificationStatus IdentityCheckStatus { + get { if ((_hasBits0 & 32) != 0) { return identityCheckStatus_; } else { return IdentityCheckStatusDefaultValue; } } + set { + _hasBits0 |= 32; + identityCheckStatus_ = value; + } + } + /// Gets whether the "identity_check_status" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIdentityCheckStatus { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "identity_check_status" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIdentityCheckStatus() { + _hasBits0 &= ~32; + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 13; + private readonly static string EmailDefaultValue = ""; + + private string email_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Email { + get { return email_ ?? EmailDefaultValue; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "email" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEmail { + get { return email_ != null; } + } + /// Clears the value of the "email" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEmail() { + email_ = null; + } + + /// Field number for the "headless_account" field. + public const int HeadlessAccountFieldNumber = 14; + private readonly static bool HeadlessAccountDefaultValue = false; + + private bool headlessAccount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HeadlessAccount { + get { if ((_hasBits0 & 64) != 0) { return headlessAccount_; } else { return HeadlessAccountDefaultValue; } } + set { + _hasBits0 |= 64; + headlessAccount_ = value; + } + } + /// Gets whether the "headless_account" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHeadlessAccount { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "headless_account" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHeadlessAccount() { + _hasBits0 &= ~64; + } + + /// Field number for the "test_account" field. + public const int TestAccountFieldNumber = 15; + private readonly static bool TestAccountDefaultValue = false; + + private bool testAccount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool TestAccount { + get { if ((_hasBits0 & 128) != 0) { return testAccount_; } else { return TestAccountDefaultValue; } } + set { + _hasBits0 |= 128; + testAccount_ = value; + } + } + /// Gets whether the "test_account" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTestAccount { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "test_account" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTestAccount() { + _hasBits0 &= ~128; + } + + /// Field number for the "is_sms_protected" field. + public const int IsSmsProtectedFieldNumber = 17; + private readonly static bool IsSmsProtectedDefaultValue = false; + + private bool isSmsProtected_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsSmsProtected { + get { if ((_hasBits0 & 256) != 0) { return isSmsProtected_; } else { return IsSmsProtectedDefaultValue; } } + set { + _hasBits0 |= 256; + isSmsProtected_ = value; + } + } + /// Gets whether the "is_sms_protected" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsSmsProtected { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "is_sms_protected" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsSmsProtected() { + _hasBits0 &= ~256; + } + + /// Field number for the "ratings_board_minimum_age" field. + public const int RatingsBoardMinimumAgeFieldNumber = 18; + private readonly static uint RatingsBoardMinimumAgeDefaultValue = 0; + + private uint ratingsBoardMinimumAge_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint RatingsBoardMinimumAge { + get { if ((_hasBits0 & 512) != 0) { return ratingsBoardMinimumAge_; } else { return RatingsBoardMinimumAgeDefaultValue; } } + set { + _hasBits0 |= 512; + ratingsBoardMinimumAge_ = value; + } + } + /// Gets whether the "ratings_board_minimum_age" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRatingsBoardMinimumAge { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "ratings_board_minimum_age" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRatingsBoardMinimumAge() { + _hasBits0 &= ~512; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountLevelInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountLevelInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!licenses_.Equals(other.licenses_)) return false; + if (DefaultCurrency != other.DefaultCurrency) return false; + if (Country != other.Country) return false; + if (PreferredRegion != other.PreferredRegion) return false; + if (FullName != other.FullName) return false; + if (BattleTag != other.BattleTag) return false; + if (Muted != other.Muted) return false; + if (ManualReview != other.ManualReview) return false; + if (AccountPaidAny != other.AccountPaidAny) return false; + if (IdentityCheckStatus != other.IdentityCheckStatus) return false; + if (Email != other.Email) return false; + if (HeadlessAccount != other.HeadlessAccount) return false; + if (TestAccount != other.TestAccount) return false; + if (IsSmsProtected != other.IsSmsProtected) return false; + if (RatingsBoardMinimumAge != other.RatingsBoardMinimumAge) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= licenses_.GetHashCode(); + if (HasDefaultCurrency) hash ^= DefaultCurrency.GetHashCode(); + if (HasCountry) hash ^= Country.GetHashCode(); + if (HasPreferredRegion) hash ^= PreferredRegion.GetHashCode(); + if (HasFullName) hash ^= FullName.GetHashCode(); + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + if (HasMuted) hash ^= Muted.GetHashCode(); + if (HasManualReview) hash ^= ManualReview.GetHashCode(); + if (HasAccountPaidAny) hash ^= AccountPaidAny.GetHashCode(); + if (HasIdentityCheckStatus) hash ^= IdentityCheckStatus.GetHashCode(); + if (HasEmail) hash ^= Email.GetHashCode(); + if (HasHeadlessAccount) hash ^= HeadlessAccount.GetHashCode(); + if (HasTestAccount) hash ^= TestAccount.GetHashCode(); + if (HasIsSmsProtected) hash ^= IsSmsProtected.GetHashCode(); + if (HasRatingsBoardMinimumAge) hash ^= RatingsBoardMinimumAge.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + licenses_.WriteTo(output, _repeated_licenses_codec); + if (HasDefaultCurrency) { + output.WriteRawTag(37); + output.WriteFixed32(DefaultCurrency); + } + if (HasCountry) { + output.WriteRawTag(42); + output.WriteString(Country); + } + if (HasPreferredRegion) { + output.WriteRawTag(48); + output.WriteUInt32(PreferredRegion); + } + if (HasFullName) { + output.WriteRawTag(58); + output.WriteString(FullName); + } + if (HasBattleTag) { + output.WriteRawTag(66); + output.WriteString(BattleTag); + } + if (HasMuted) { + output.WriteRawTag(72); + output.WriteBool(Muted); + } + if (HasManualReview) { + output.WriteRawTag(80); + output.WriteBool(ManualReview); + } + if (HasAccountPaidAny) { + output.WriteRawTag(88); + output.WriteBool(AccountPaidAny); + } + if (HasIdentityCheckStatus) { + output.WriteRawTag(96); + output.WriteEnum((int) IdentityCheckStatus); + } + if (HasEmail) { + output.WriteRawTag(106); + output.WriteString(Email); + } + if (HasHeadlessAccount) { + output.WriteRawTag(112); + output.WriteBool(HeadlessAccount); + } + if (HasTestAccount) { + output.WriteRawTag(120); + output.WriteBool(TestAccount); + } + if (HasIsSmsProtected) { + output.WriteRawTag(136, 1); + output.WriteBool(IsSmsProtected); + } + if (HasRatingsBoardMinimumAge) { + output.WriteRawTag(144, 1); + output.WriteUInt32(RatingsBoardMinimumAge); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += licenses_.CalculateSize(_repeated_licenses_codec); + if (HasDefaultCurrency) { + size += 1 + 4; + } + if (HasCountry) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Country); + } + if (HasPreferredRegion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PreferredRegion); + } + if (HasFullName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName); + } + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + if (HasMuted) { + size += 1 + 1; + } + if (HasManualReview) { + size += 1 + 1; + } + if (HasAccountPaidAny) { + size += 1 + 1; + } + if (HasIdentityCheckStatus) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IdentityCheckStatus); + } + if (HasEmail) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (HasHeadlessAccount) { + size += 1 + 1; + } + if (HasTestAccount) { + size += 1 + 1; + } + if (HasIsSmsProtected) { + size += 2 + 1; + } + if (HasRatingsBoardMinimumAge) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RatingsBoardMinimumAge); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountLevelInfo other) { + if (other == null) { + return; + } + licenses_.Add(other.licenses_); + if (other.HasDefaultCurrency) { + DefaultCurrency = other.DefaultCurrency; + } + if (other.HasCountry) { + Country = other.Country; + } + if (other.HasPreferredRegion) { + PreferredRegion = other.PreferredRegion; + } + if (other.HasFullName) { + FullName = other.FullName; + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + if (other.HasMuted) { + Muted = other.Muted; + } + if (other.HasManualReview) { + ManualReview = other.ManualReview; + } + if (other.HasAccountPaidAny) { + AccountPaidAny = other.AccountPaidAny; + } + if (other.HasIdentityCheckStatus) { + IdentityCheckStatus = other.IdentityCheckStatus; + } + if (other.HasEmail) { + Email = other.Email; + } + if (other.HasHeadlessAccount) { + HeadlessAccount = other.HeadlessAccount; + } + if (other.HasTestAccount) { + TestAccount = other.TestAccount; + } + if (other.HasIsSmsProtected) { + IsSmsProtected = other.IsSmsProtected; + } + if (other.HasRatingsBoardMinimumAge) { + RatingsBoardMinimumAge = other.RatingsBoardMinimumAge; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + licenses_.AddEntriesFrom(input, _repeated_licenses_codec); + break; + } + case 37: { + DefaultCurrency = input.ReadFixed32(); + break; + } + case 42: { + Country = input.ReadString(); + break; + } + case 48: { + PreferredRegion = input.ReadUInt32(); + break; + } + case 58: { + FullName = input.ReadString(); + break; + } + case 66: { + BattleTag = input.ReadString(); + break; + } + case 72: { + Muted = input.ReadBool(); + break; + } + case 80: { + ManualReview = input.ReadBool(); + break; + } + case 88: { + AccountPaidAny = input.ReadBool(); + break; + } + case 96: { + IdentityCheckStatus = (global::Bgs.Protocol.Account.V1.IdentityVerificationStatus) input.ReadEnum(); + break; + } + case 106: { + Email = input.ReadString(); + break; + } + case 112: { + HeadlessAccount = input.ReadBool(); + break; + } + case 120: { + TestAccount = input.ReadBool(); + break; + } + case 136: { + IsSmsProtected = input.ReadBool(); + break; + } + case 144: { + RatingsBoardMinimumAge = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class PrivacyInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrivacyInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PrivacyInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PrivacyInfo(PrivacyInfo other) : this() { + _hasBits0 = other._hasBits0; + isUsingRid_ = other.isUsingRid_; + isVisibleForViewFriends_ = other.isVisibleForViewFriends_; + isHiddenFromFriendFinder_ = other.isHiddenFromFriendFinder_; + gameInfoPrivacy_ = other.gameInfoPrivacy_; + onlyAllowFriendWhispers_ = other.onlyAllowFriendWhispers_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PrivacyInfo Clone() { + return new PrivacyInfo(this); + } + + /// Field number for the "is_using_rid" field. + public const int IsUsingRidFieldNumber = 3; + private readonly static bool IsUsingRidDefaultValue = false; + + private bool isUsingRid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsUsingRid { + get { if ((_hasBits0 & 1) != 0) { return isUsingRid_; } else { return IsUsingRidDefaultValue; } } + set { + _hasBits0 |= 1; + isUsingRid_ = value; + } + } + /// Gets whether the "is_using_rid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsUsingRid { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_using_rid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsUsingRid() { + _hasBits0 &= ~1; + } + + /// Field number for the "is_visible_for_view_friends" field. + public const int IsVisibleForViewFriendsFieldNumber = 4; + private readonly static bool IsVisibleForViewFriendsDefaultValue = false; + + private bool isVisibleForViewFriends_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsVisibleForViewFriends { + get { if ((_hasBits0 & 2) != 0) { return isVisibleForViewFriends_; } else { return IsVisibleForViewFriendsDefaultValue; } } + set { + _hasBits0 |= 2; + isVisibleForViewFriends_ = value; + } + } + /// Gets whether the "is_visible_for_view_friends" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsVisibleForViewFriends { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "is_visible_for_view_friends" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsVisibleForViewFriends() { + _hasBits0 &= ~2; + } + + /// Field number for the "is_hidden_from_friend_finder" field. + public const int IsHiddenFromFriendFinderFieldNumber = 5; + private readonly static bool IsHiddenFromFriendFinderDefaultValue = false; + + private bool isHiddenFromFriendFinder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsHiddenFromFriendFinder { + get { if ((_hasBits0 & 4) != 0) { return isHiddenFromFriendFinder_; } else { return IsHiddenFromFriendFinderDefaultValue; } } + set { + _hasBits0 |= 4; + isHiddenFromFriendFinder_ = value; + } + } + /// Gets whether the "is_hidden_from_friend_finder" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsHiddenFromFriendFinder { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "is_hidden_from_friend_finder" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsHiddenFromFriendFinder() { + _hasBits0 &= ~4; + } + + /// Field number for the "game_info_privacy" field. + public const int GameInfoPrivacyFieldNumber = 6; + private readonly static global::Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy GameInfoPrivacyDefaultValue = global::Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy.PrivacyFriends; + + private global::Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy gameInfoPrivacy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy GameInfoPrivacy { + get { if ((_hasBits0 & 8) != 0) { return gameInfoPrivacy_; } else { return GameInfoPrivacyDefaultValue; } } + set { + _hasBits0 |= 8; + gameInfoPrivacy_ = value; + } + } + /// Gets whether the "game_info_privacy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameInfoPrivacy { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "game_info_privacy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameInfoPrivacy() { + _hasBits0 &= ~8; + } + + /// Field number for the "only_allow_friend_whispers" field. + public const int OnlyAllowFriendWhispersFieldNumber = 7; + private readonly static bool OnlyAllowFriendWhispersDefaultValue = false; + + private bool onlyAllowFriendWhispers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool OnlyAllowFriendWhispers { + get { if ((_hasBits0 & 16) != 0) { return onlyAllowFriendWhispers_; } else { return OnlyAllowFriendWhispersDefaultValue; } } + set { + _hasBits0 |= 16; + onlyAllowFriendWhispers_ = value; + } + } + /// Gets whether the "only_allow_friend_whispers" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOnlyAllowFriendWhispers { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "only_allow_friend_whispers" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOnlyAllowFriendWhispers() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as PrivacyInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(PrivacyInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsUsingRid != other.IsUsingRid) return false; + if (IsVisibleForViewFriends != other.IsVisibleForViewFriends) return false; + if (IsHiddenFromFriendFinder != other.IsHiddenFromFriendFinder) return false; + if (GameInfoPrivacy != other.GameInfoPrivacy) return false; + if (OnlyAllowFriendWhispers != other.OnlyAllowFriendWhispers) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasIsUsingRid) hash ^= IsUsingRid.GetHashCode(); + if (HasIsVisibleForViewFriends) hash ^= IsVisibleForViewFriends.GetHashCode(); + if (HasIsHiddenFromFriendFinder) hash ^= IsHiddenFromFriendFinder.GetHashCode(); + if (HasGameInfoPrivacy) hash ^= GameInfoPrivacy.GetHashCode(); + if (HasOnlyAllowFriendWhispers) hash ^= OnlyAllowFriendWhispers.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasIsUsingRid) { + output.WriteRawTag(24); + output.WriteBool(IsUsingRid); + } + if (HasIsVisibleForViewFriends) { + output.WriteRawTag(32); + output.WriteBool(IsVisibleForViewFriends); + } + if (HasIsHiddenFromFriendFinder) { + output.WriteRawTag(40); + output.WriteBool(IsHiddenFromFriendFinder); + } + if (HasGameInfoPrivacy) { + output.WriteRawTag(48); + output.WriteEnum((int) GameInfoPrivacy); + } + if (HasOnlyAllowFriendWhispers) { + output.WriteRawTag(56); + output.WriteBool(OnlyAllowFriendWhispers); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasIsUsingRid) { + size += 1 + 1; + } + if (HasIsVisibleForViewFriends) { + size += 1 + 1; + } + if (HasIsHiddenFromFriendFinder) { + size += 1 + 1; + } + if (HasGameInfoPrivacy) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GameInfoPrivacy); + } + if (HasOnlyAllowFriendWhispers) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(PrivacyInfo other) { + if (other == null) { + return; + } + if (other.HasIsUsingRid) { + IsUsingRid = other.IsUsingRid; + } + if (other.HasIsVisibleForViewFriends) { + IsVisibleForViewFriends = other.IsVisibleForViewFriends; + } + if (other.HasIsHiddenFromFriendFinder) { + IsHiddenFromFriendFinder = other.IsHiddenFromFriendFinder; + } + if (other.HasGameInfoPrivacy) { + GameInfoPrivacy = other.GameInfoPrivacy; + } + if (other.HasOnlyAllowFriendWhispers) { + OnlyAllowFriendWhispers = other.OnlyAllowFriendWhispers; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + IsUsingRid = input.ReadBool(); + break; + } + case 32: { + IsVisibleForViewFriends = input.ReadBool(); + break; + } + case 40: { + IsHiddenFromFriendFinder = input.ReadBool(); + break; + } + case 48: { + GameInfoPrivacy = (global::Bgs.Protocol.Account.V1.PrivacyInfo.Types.GameInfoPrivacy) input.ReadEnum(); + break; + } + case 56: { + OnlyAllowFriendWhispers = input.ReadBool(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the PrivacyInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum GameInfoPrivacy { + [pbr::OriginalName("PRIVACY_ME")] PrivacyMe = 0, + [pbr::OriginalName("PRIVACY_FRIENDS")] PrivacyFriends = 1, + [pbr::OriginalName("PRIVACY_EVERYONE")] PrivacyEveryone = 2, + } + + } #endregion + + } + + public sealed partial class ParentalControlInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParentalControlInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentalControlInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentalControlInfo(ParentalControlInfo other) : this() { + _hasBits0 = other._hasBits0; + timezone_ = other.timezone_; + minutesPerDay_ = other.minutesPerDay_; + minutesPerWeek_ = other.minutesPerWeek_; + canReceiveVoice_ = other.canReceiveVoice_; + canSendVoice_ = other.canSendVoice_; + playSchedule_ = other.playSchedule_.Clone(); + canJoinGroup_ = other.canJoinGroup_; + canUseProfile_ = other.canUseProfile_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ParentalControlInfo Clone() { + return new ParentalControlInfo(this); + } + + /// Field number for the "timezone" field. + public const int TimezoneFieldNumber = 3; + private readonly static string TimezoneDefaultValue = ""; + + private string timezone_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Timezone { + get { return timezone_ ?? TimezoneDefaultValue; } + set { + timezone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "timezone" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTimezone { + get { return timezone_ != null; } + } + /// Clears the value of the "timezone" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTimezone() { + timezone_ = null; + } + + /// Field number for the "minutes_per_day" field. + public const int MinutesPerDayFieldNumber = 4; + private readonly static uint MinutesPerDayDefaultValue = 0; + + private uint minutesPerDay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MinutesPerDay { + get { if ((_hasBits0 & 1) != 0) { return minutesPerDay_; } else { return MinutesPerDayDefaultValue; } } + set { + _hasBits0 |= 1; + minutesPerDay_ = value; + } + } + /// Gets whether the "minutes_per_day" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMinutesPerDay { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "minutes_per_day" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMinutesPerDay() { + _hasBits0 &= ~1; + } + + /// Field number for the "minutes_per_week" field. + public const int MinutesPerWeekFieldNumber = 5; + private readonly static uint MinutesPerWeekDefaultValue = 0; + + private uint minutesPerWeek_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MinutesPerWeek { + get { if ((_hasBits0 & 2) != 0) { return minutesPerWeek_; } else { return MinutesPerWeekDefaultValue; } } + set { + _hasBits0 |= 2; + minutesPerWeek_ = value; + } + } + /// Gets whether the "minutes_per_week" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMinutesPerWeek { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "minutes_per_week" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMinutesPerWeek() { + _hasBits0 &= ~2; + } + + /// Field number for the "can_receive_voice" field. + public const int CanReceiveVoiceFieldNumber = 6; + private readonly static bool CanReceiveVoiceDefaultValue = false; + + private bool canReceiveVoice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanReceiveVoice { + get { if ((_hasBits0 & 4) != 0) { return canReceiveVoice_; } else { return CanReceiveVoiceDefaultValue; } } + set { + _hasBits0 |= 4; + canReceiveVoice_ = value; + } + } + /// Gets whether the "can_receive_voice" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanReceiveVoice { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "can_receive_voice" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanReceiveVoice() { + _hasBits0 &= ~4; + } + + /// Field number for the "can_send_voice" field. + public const int CanSendVoiceFieldNumber = 7; + private readonly static bool CanSendVoiceDefaultValue = false; + + private bool canSendVoice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSendVoice { + get { if ((_hasBits0 & 8) != 0) { return canSendVoice_; } else { return CanSendVoiceDefaultValue; } } + set { + _hasBits0 |= 8; + canSendVoice_ = value; + } + } + /// Gets whether the "can_send_voice" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSendVoice { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "can_send_voice" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSendVoice() { + _hasBits0 &= ~8; + } + + /// Field number for the "play_schedule" field. + public const int PlayScheduleFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_playSchedule_codec + = pb::FieldCodec.ForBool(64); + private readonly pbc::RepeatedField playSchedule_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField PlaySchedule { + get { return playSchedule_; } + } + + /// Field number for the "can_join_group" field. + public const int CanJoinGroupFieldNumber = 9; + private readonly static bool CanJoinGroupDefaultValue = false; + + private bool canJoinGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanJoinGroup { + get { if ((_hasBits0 & 16) != 0) { return canJoinGroup_; } else { return CanJoinGroupDefaultValue; } } + set { + _hasBits0 |= 16; + canJoinGroup_ = value; + } + } + /// Gets whether the "can_join_group" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanJoinGroup { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "can_join_group" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanJoinGroup() { + _hasBits0 &= ~16; + } + + /// Field number for the "can_use_profile" field. + public const int CanUseProfileFieldNumber = 10; + private readonly static bool CanUseProfileDefaultValue = false; + + private bool canUseProfile_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanUseProfile { + get { if ((_hasBits0 & 32) != 0) { return canUseProfile_; } else { return CanUseProfileDefaultValue; } } + set { + _hasBits0 |= 32; + canUseProfile_ = value; + } + } + /// Gets whether the "can_use_profile" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanUseProfile { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "can_use_profile" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanUseProfile() { + _hasBits0 &= ~32; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ParentalControlInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ParentalControlInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Timezone != other.Timezone) return false; + if (MinutesPerDay != other.MinutesPerDay) return false; + if (MinutesPerWeek != other.MinutesPerWeek) return false; + if (CanReceiveVoice != other.CanReceiveVoice) return false; + if (CanSendVoice != other.CanSendVoice) return false; + if(!playSchedule_.Equals(other.playSchedule_)) return false; + if (CanJoinGroup != other.CanJoinGroup) return false; + if (CanUseProfile != other.CanUseProfile) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTimezone) hash ^= Timezone.GetHashCode(); + if (HasMinutesPerDay) hash ^= MinutesPerDay.GetHashCode(); + if (HasMinutesPerWeek) hash ^= MinutesPerWeek.GetHashCode(); + if (HasCanReceiveVoice) hash ^= CanReceiveVoice.GetHashCode(); + if (HasCanSendVoice) hash ^= CanSendVoice.GetHashCode(); + hash ^= playSchedule_.GetHashCode(); + if (HasCanJoinGroup) hash ^= CanJoinGroup.GetHashCode(); + if (HasCanUseProfile) hash ^= CanUseProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTimezone) { + output.WriteRawTag(26); + output.WriteString(Timezone); + } + if (HasMinutesPerDay) { + output.WriteRawTag(32); + output.WriteUInt32(MinutesPerDay); + } + if (HasMinutesPerWeek) { + output.WriteRawTag(40); + output.WriteUInt32(MinutesPerWeek); + } + if (HasCanReceiveVoice) { + output.WriteRawTag(48); + output.WriteBool(CanReceiveVoice); + } + if (HasCanSendVoice) { + output.WriteRawTag(56); + output.WriteBool(CanSendVoice); + } + playSchedule_.WriteTo(output, _repeated_playSchedule_codec); + if (HasCanJoinGroup) { + output.WriteRawTag(72); + output.WriteBool(CanJoinGroup); + } + if (HasCanUseProfile) { + output.WriteRawTag(80); + output.WriteBool(CanUseProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTimezone) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Timezone); + } + if (HasMinutesPerDay) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinutesPerDay); + } + if (HasMinutesPerWeek) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinutesPerWeek); + } + if (HasCanReceiveVoice) { + size += 1 + 1; + } + if (HasCanSendVoice) { + size += 1 + 1; + } + size += playSchedule_.CalculateSize(_repeated_playSchedule_codec); + if (HasCanJoinGroup) { + size += 1 + 1; + } + if (HasCanUseProfile) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ParentalControlInfo other) { + if (other == null) { + return; + } + if (other.HasTimezone) { + Timezone = other.Timezone; + } + if (other.HasMinutesPerDay) { + MinutesPerDay = other.MinutesPerDay; + } + if (other.HasMinutesPerWeek) { + MinutesPerWeek = other.MinutesPerWeek; + } + if (other.HasCanReceiveVoice) { + CanReceiveVoice = other.CanReceiveVoice; + } + if (other.HasCanSendVoice) { + CanSendVoice = other.CanSendVoice; + } + playSchedule_.Add(other.playSchedule_); + if (other.HasCanJoinGroup) { + CanJoinGroup = other.CanJoinGroup; + } + if (other.HasCanUseProfile) { + CanUseProfile = other.CanUseProfile; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + Timezone = input.ReadString(); + break; + } + case 32: { + MinutesPerDay = input.ReadUInt32(); + break; + } + case 40: { + MinutesPerWeek = input.ReadUInt32(); + break; + } + case 48: { + CanReceiveVoice = input.ReadBool(); + break; + } + case 56: { + CanSendVoice = input.ReadBool(); + break; + } + case 66: + case 64: { + playSchedule_.AddEntriesFrom(input, _repeated_playSchedule_codec); + break; + } + case 72: { + CanJoinGroup = input.ReadBool(); + break; + } + case 80: { + CanUseProfile = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class GameLevelInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameLevelInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameLevelInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameLevelInfo(GameLevelInfo other) : this() { + _hasBits0 = other._hasBits0; + isTrial_ = other.isTrial_; + isLifetime_ = other.isLifetime_; + isRestricted_ = other.isRestricted_; + isBeta_ = other.isBeta_; + name_ = other.name_; + program_ = other.program_; + licenses_ = other.licenses_.Clone(); + realmPermissions_ = other.realmPermissions_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameLevelInfo Clone() { + return new GameLevelInfo(this); + } + + /// Field number for the "is_trial" field. + public const int IsTrialFieldNumber = 4; + private readonly static bool IsTrialDefaultValue = false; + + private bool isTrial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsTrial { + get { if ((_hasBits0 & 1) != 0) { return isTrial_; } else { return IsTrialDefaultValue; } } + set { + _hasBits0 |= 1; + isTrial_ = value; + } + } + /// Gets whether the "is_trial" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsTrial { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_trial" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsTrial() { + _hasBits0 &= ~1; + } + + /// Field number for the "is_lifetime" field. + public const int IsLifetimeFieldNumber = 5; + private readonly static bool IsLifetimeDefaultValue = false; + + private bool isLifetime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsLifetime { + get { if ((_hasBits0 & 2) != 0) { return isLifetime_; } else { return IsLifetimeDefaultValue; } } + set { + _hasBits0 |= 2; + isLifetime_ = value; + } + } + /// Gets whether the "is_lifetime" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsLifetime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "is_lifetime" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsLifetime() { + _hasBits0 &= ~2; + } + + /// Field number for the "is_restricted" field. + public const int IsRestrictedFieldNumber = 6; + private readonly static bool IsRestrictedDefaultValue = false; + + private bool isRestricted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsRestricted { + get { if ((_hasBits0 & 4) != 0) { return isRestricted_; } else { return IsRestrictedDefaultValue; } } + set { + _hasBits0 |= 4; + isRestricted_ = value; + } + } + /// Gets whether the "is_restricted" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsRestricted { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "is_restricted" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsRestricted() { + _hasBits0 &= ~4; + } + + /// Field number for the "is_beta" field. + public const int IsBetaFieldNumber = 7; + private readonly static bool IsBetaDefaultValue = false; + + private bool isBeta_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsBeta { + get { if ((_hasBits0 & 8) != 0) { return isBeta_; } else { return IsBetaDefaultValue; } } + set { + _hasBits0 |= 8; + isBeta_ = value; + } + } + /// Gets whether the "is_beta" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsBeta { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "is_beta" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsBeta() { + _hasBits0 &= ~8; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 8; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 9; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 16) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 16; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~16; + } + + /// Field number for the "licenses" field. + public const int LicensesFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_licenses_codec + = pb::FieldCodec.ForMessage(82, global::Bgs.Protocol.Account.V1.AccountLicense.Parser); + private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Licenses { + get { return licenses_; } + } + + /// Field number for the "realm_permissions" field. + public const int RealmPermissionsFieldNumber = 11; + private readonly static uint RealmPermissionsDefaultValue = 0; + + private uint realmPermissions_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint RealmPermissions { + get { if ((_hasBits0 & 32) != 0) { return realmPermissions_; } else { return RealmPermissionsDefaultValue; } } + set { + _hasBits0 |= 32; + realmPermissions_ = value; + } + } + /// Gets whether the "realm_permissions" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRealmPermissions { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "realm_permissions" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRealmPermissions() { + _hasBits0 &= ~32; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameLevelInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameLevelInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsTrial != other.IsTrial) return false; + if (IsLifetime != other.IsLifetime) return false; + if (IsRestricted != other.IsRestricted) return false; + if (IsBeta != other.IsBeta) return false; + if (Name != other.Name) return false; + if (Program != other.Program) return false; + if(!licenses_.Equals(other.licenses_)) return false; + if (RealmPermissions != other.RealmPermissions) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasIsTrial) hash ^= IsTrial.GetHashCode(); + if (HasIsLifetime) hash ^= IsLifetime.GetHashCode(); + if (HasIsRestricted) hash ^= IsRestricted.GetHashCode(); + if (HasIsBeta) hash ^= IsBeta.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + hash ^= licenses_.GetHashCode(); + if (HasRealmPermissions) hash ^= RealmPermissions.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasIsTrial) { + output.WriteRawTag(32); + output.WriteBool(IsTrial); + } + if (HasIsLifetime) { + output.WriteRawTag(40); + output.WriteBool(IsLifetime); + } + if (HasIsRestricted) { + output.WriteRawTag(48); + output.WriteBool(IsRestricted); + } + if (HasIsBeta) { + output.WriteRawTag(56); + output.WriteBool(IsBeta); + } + if (HasName) { + output.WriteRawTag(66); + output.WriteString(Name); + } + if (HasProgram) { + output.WriteRawTag(77); + output.WriteFixed32(Program); + } + licenses_.WriteTo(output, _repeated_licenses_codec); + if (HasRealmPermissions) { + output.WriteRawTag(88); + output.WriteUInt32(RealmPermissions); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasIsTrial) { + size += 1 + 1; + } + if (HasIsLifetime) { + size += 1 + 1; + } + if (HasIsRestricted) { + size += 1 + 1; + } + if (HasIsBeta) { + size += 1 + 1; + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasProgram) { + size += 1 + 4; + } + size += licenses_.CalculateSize(_repeated_licenses_codec); + if (HasRealmPermissions) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RealmPermissions); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameLevelInfo other) { + if (other == null) { + return; + } + if (other.HasIsTrial) { + IsTrial = other.IsTrial; + } + if (other.HasIsLifetime) { + IsLifetime = other.IsLifetime; + } + if (other.HasIsRestricted) { + IsRestricted = other.IsRestricted; + } + if (other.HasIsBeta) { + IsBeta = other.IsBeta; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasProgram) { + Program = other.Program; + } + licenses_.Add(other.licenses_); + if (other.HasRealmPermissions) { + RealmPermissions = other.RealmPermissions; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + IsTrial = input.ReadBool(); + break; + } + case 40: { + IsLifetime = input.ReadBool(); + break; + } + case 48: { + IsRestricted = input.ReadBool(); + break; + } + case 56: { + IsBeta = input.ReadBool(); + break; + } + case 66: { + Name = input.ReadString(); + break; + } + case 77: { + Program = input.ReadFixed32(); + break; + } + case 82: { + licenses_.AddEntriesFrom(input, _repeated_licenses_codec); + break; + } + case 88: { + RealmPermissions = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class GameTimeInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameTimeInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameTimeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameTimeInfo(GameTimeInfo other) : this() { + _hasBits0 = other._hasBits0; + isUnlimitedPlayTime_ = other.isUnlimitedPlayTime_; + playTimeExpires_ = other.playTimeExpires_; + isSubscription_ = other.isSubscription_; + isRecurringSubscription_ = other.isRecurringSubscription_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameTimeInfo Clone() { + return new GameTimeInfo(this); + } + + /// Field number for the "is_unlimited_play_time" field. + public const int IsUnlimitedPlayTimeFieldNumber = 3; + private readonly static bool IsUnlimitedPlayTimeDefaultValue = false; + + private bool isUnlimitedPlayTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsUnlimitedPlayTime { + get { if ((_hasBits0 & 1) != 0) { return isUnlimitedPlayTime_; } else { return IsUnlimitedPlayTimeDefaultValue; } } + set { + _hasBits0 |= 1; + isUnlimitedPlayTime_ = value; + } + } + /// Gets whether the "is_unlimited_play_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsUnlimitedPlayTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_unlimited_play_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsUnlimitedPlayTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "play_time_expires" field. + public const int PlayTimeExpiresFieldNumber = 5; + private readonly static ulong PlayTimeExpiresDefaultValue = 0UL; + + private ulong playTimeExpires_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong PlayTimeExpires { + get { if ((_hasBits0 & 2) != 0) { return playTimeExpires_; } else { return PlayTimeExpiresDefaultValue; } } + set { + _hasBits0 |= 2; + playTimeExpires_ = value; + } + } + /// Gets whether the "play_time_expires" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPlayTimeExpires { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "play_time_expires" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPlayTimeExpires() { + _hasBits0 &= ~2; + } + + /// Field number for the "is_subscription" field. + public const int IsSubscriptionFieldNumber = 6; + private readonly static bool IsSubscriptionDefaultValue = false; + + private bool isSubscription_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsSubscription { + get { if ((_hasBits0 & 4) != 0) { return isSubscription_; } else { return IsSubscriptionDefaultValue; } } + set { + _hasBits0 |= 4; + isSubscription_ = value; + } + } + /// Gets whether the "is_subscription" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsSubscription { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "is_subscription" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsSubscription() { + _hasBits0 &= ~4; + } + + /// Field number for the "is_recurring_subscription" field. + public const int IsRecurringSubscriptionFieldNumber = 7; + private readonly static bool IsRecurringSubscriptionDefaultValue = false; + + private bool isRecurringSubscription_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsRecurringSubscription { + get { if ((_hasBits0 & 8) != 0) { return isRecurringSubscription_; } else { return IsRecurringSubscriptionDefaultValue; } } + set { + _hasBits0 |= 8; + isRecurringSubscription_ = value; + } + } + /// Gets whether the "is_recurring_subscription" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsRecurringSubscription { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "is_recurring_subscription" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsRecurringSubscription() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameTimeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameTimeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsUnlimitedPlayTime != other.IsUnlimitedPlayTime) return false; + if (PlayTimeExpires != other.PlayTimeExpires) return false; + if (IsSubscription != other.IsSubscription) return false; + if (IsRecurringSubscription != other.IsRecurringSubscription) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasIsUnlimitedPlayTime) hash ^= IsUnlimitedPlayTime.GetHashCode(); + if (HasPlayTimeExpires) hash ^= PlayTimeExpires.GetHashCode(); + if (HasIsSubscription) hash ^= IsSubscription.GetHashCode(); + if (HasIsRecurringSubscription) hash ^= IsRecurringSubscription.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasIsUnlimitedPlayTime) { + output.WriteRawTag(24); + output.WriteBool(IsUnlimitedPlayTime); + } + if (HasPlayTimeExpires) { + output.WriteRawTag(40); + output.WriteUInt64(PlayTimeExpires); + } + if (HasIsSubscription) { + output.WriteRawTag(48); + output.WriteBool(IsSubscription); + } + if (HasIsRecurringSubscription) { + output.WriteRawTag(56); + output.WriteBool(IsRecurringSubscription); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasIsUnlimitedPlayTime) { + size += 1 + 1; + } + if (HasPlayTimeExpires) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PlayTimeExpires); + } + if (HasIsSubscription) { + size += 1 + 1; + } + if (HasIsRecurringSubscription) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameTimeInfo other) { + if (other == null) { + return; + } + if (other.HasIsUnlimitedPlayTime) { + IsUnlimitedPlayTime = other.IsUnlimitedPlayTime; + } + if (other.HasPlayTimeExpires) { + PlayTimeExpires = other.PlayTimeExpires; + } + if (other.HasIsSubscription) { + IsSubscription = other.IsSubscription; + } + if (other.HasIsRecurringSubscription) { + IsRecurringSubscription = other.IsRecurringSubscription; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + IsUnlimitedPlayTime = input.ReadBool(); + break; + } + case 40: { + PlayTimeExpires = input.ReadUInt64(); + break; + } + case 48: { + IsSubscription = input.ReadBool(); + break; + } + case 56: { + IsRecurringSubscription = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class GameTimeRemainingInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameTimeRemainingInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameTimeRemainingInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameTimeRemainingInfo(GameTimeRemainingInfo other) : this() { + _hasBits0 = other._hasBits0; + minutesRemaining_ = other.minutesRemaining_; + parentalDailyMinutesRemaining_ = other.parentalDailyMinutesRemaining_; + parentalWeeklyMinutesRemaining_ = other.parentalWeeklyMinutesRemaining_; + secondsRemainingUntilKick_ = other.secondsRemainingUntilKick_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameTimeRemainingInfo Clone() { + return new GameTimeRemainingInfo(this); + } + + /// Field number for the "minutes_remaining" field. + public const int MinutesRemainingFieldNumber = 1; + private readonly static uint MinutesRemainingDefaultValue = 0; + + private uint minutesRemaining_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MinutesRemaining { + get { if ((_hasBits0 & 1) != 0) { return minutesRemaining_; } else { return MinutesRemainingDefaultValue; } } + set { + _hasBits0 |= 1; + minutesRemaining_ = value; + } + } + /// Gets whether the "minutes_remaining" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMinutesRemaining { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "minutes_remaining" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMinutesRemaining() { + _hasBits0 &= ~1; + } + + /// Field number for the "parental_daily_minutes_remaining" field. + public const int ParentalDailyMinutesRemainingFieldNumber = 2; + private readonly static uint ParentalDailyMinutesRemainingDefaultValue = 0; + + private uint parentalDailyMinutesRemaining_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ParentalDailyMinutesRemaining { + get { if ((_hasBits0 & 2) != 0) { return parentalDailyMinutesRemaining_; } else { return ParentalDailyMinutesRemainingDefaultValue; } } + set { + _hasBits0 |= 2; + parentalDailyMinutesRemaining_ = value; + } + } + /// Gets whether the "parental_daily_minutes_remaining" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasParentalDailyMinutesRemaining { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "parental_daily_minutes_remaining" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearParentalDailyMinutesRemaining() { + _hasBits0 &= ~2; + } + + /// Field number for the "parental_weekly_minutes_remaining" field. + public const int ParentalWeeklyMinutesRemainingFieldNumber = 3; + private readonly static uint ParentalWeeklyMinutesRemainingDefaultValue = 0; + + private uint parentalWeeklyMinutesRemaining_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ParentalWeeklyMinutesRemaining { + get { if ((_hasBits0 & 4) != 0) { return parentalWeeklyMinutesRemaining_; } else { return ParentalWeeklyMinutesRemainingDefaultValue; } } + set { + _hasBits0 |= 4; + parentalWeeklyMinutesRemaining_ = value; + } + } + /// Gets whether the "parental_weekly_minutes_remaining" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasParentalWeeklyMinutesRemaining { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "parental_weekly_minutes_remaining" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearParentalWeeklyMinutesRemaining() { + _hasBits0 &= ~4; + } + + /// Field number for the "seconds_remaining_until_kick" field. + public const int SecondsRemainingUntilKickFieldNumber = 4; + private readonly static uint SecondsRemainingUntilKickDefaultValue = 0; + + private uint secondsRemainingUntilKick_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint SecondsRemainingUntilKick { + get { if ((_hasBits0 & 8) != 0) { return secondsRemainingUntilKick_; } else { return SecondsRemainingUntilKickDefaultValue; } } + set { + _hasBits0 |= 8; + secondsRemainingUntilKick_ = value; + } + } + /// Gets whether the "seconds_remaining_until_kick" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSecondsRemainingUntilKick { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "seconds_remaining_until_kick" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSecondsRemainingUntilKick() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameTimeRemainingInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameTimeRemainingInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MinutesRemaining != other.MinutesRemaining) return false; + if (ParentalDailyMinutesRemaining != other.ParentalDailyMinutesRemaining) return false; + if (ParentalWeeklyMinutesRemaining != other.ParentalWeeklyMinutesRemaining) return false; + if (SecondsRemainingUntilKick != other.SecondsRemainingUntilKick) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMinutesRemaining) hash ^= MinutesRemaining.GetHashCode(); + if (HasParentalDailyMinutesRemaining) hash ^= ParentalDailyMinutesRemaining.GetHashCode(); + if (HasParentalWeeklyMinutesRemaining) hash ^= ParentalWeeklyMinutesRemaining.GetHashCode(); + if (HasSecondsRemainingUntilKick) hash ^= SecondsRemainingUntilKick.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMinutesRemaining) { + output.WriteRawTag(8); + output.WriteUInt32(MinutesRemaining); + } + if (HasParentalDailyMinutesRemaining) { + output.WriteRawTag(16); + output.WriteUInt32(ParentalDailyMinutesRemaining); + } + if (HasParentalWeeklyMinutesRemaining) { + output.WriteRawTag(24); + output.WriteUInt32(ParentalWeeklyMinutesRemaining); + } + if (HasSecondsRemainingUntilKick) { + output.WriteRawTag(32); + output.WriteUInt32(SecondsRemainingUntilKick); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMinutesRemaining) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinutesRemaining); + } + if (HasParentalDailyMinutesRemaining) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ParentalDailyMinutesRemaining); + } + if (HasParentalWeeklyMinutesRemaining) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ParentalWeeklyMinutesRemaining); + } + if (HasSecondsRemainingUntilKick) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SecondsRemainingUntilKick); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameTimeRemainingInfo other) { + if (other == null) { + return; + } + if (other.HasMinutesRemaining) { + MinutesRemaining = other.MinutesRemaining; + } + if (other.HasParentalDailyMinutesRemaining) { + ParentalDailyMinutesRemaining = other.ParentalDailyMinutesRemaining; + } + if (other.HasParentalWeeklyMinutesRemaining) { + ParentalWeeklyMinutesRemaining = other.ParentalWeeklyMinutesRemaining; + } + if (other.HasSecondsRemainingUntilKick) { + SecondsRemainingUntilKick = other.SecondsRemainingUntilKick; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MinutesRemaining = input.ReadUInt32(); + break; + } + case 16: { + ParentalDailyMinutesRemaining = input.ReadUInt32(); + break; + } + case 24: { + ParentalWeeklyMinutesRemaining = input.ReadUInt32(); + break; + } + case 32: { + SecondsRemainingUntilKick = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class GameStatus : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameStatus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameStatus(GameStatus other) : this() { + _hasBits0 = other._hasBits0; + isSuspended_ = other.isSuspended_; + isBanned_ = other.isBanned_; + suspensionExpires_ = other.suspensionExpires_; + program_ = other.program_; + isLocked_ = other.isLocked_; + isBamUnlockable_ = other.isBamUnlockable_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameStatus Clone() { + return new GameStatus(this); + } + + /// Field number for the "is_suspended" field. + public const int IsSuspendedFieldNumber = 4; + private readonly static bool IsSuspendedDefaultValue = false; + + private bool isSuspended_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsSuspended { + get { if ((_hasBits0 & 1) != 0) { return isSuspended_; } else { return IsSuspendedDefaultValue; } } + set { + _hasBits0 |= 1; + isSuspended_ = value; + } + } + /// Gets whether the "is_suspended" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsSuspended { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_suspended" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsSuspended() { + _hasBits0 &= ~1; + } + + /// Field number for the "is_banned" field. + public const int IsBannedFieldNumber = 5; + private readonly static bool IsBannedDefaultValue = false; + + private bool isBanned_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsBanned { + get { if ((_hasBits0 & 2) != 0) { return isBanned_; } else { return IsBannedDefaultValue; } } + set { + _hasBits0 |= 2; + isBanned_ = value; + } + } + /// Gets whether the "is_banned" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsBanned { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "is_banned" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsBanned() { + _hasBits0 &= ~2; + } + + /// Field number for the "suspension_expires" field. + public const int SuspensionExpiresFieldNumber = 6; + private readonly static ulong SuspensionExpiresDefaultValue = 0UL; + + private ulong suspensionExpires_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SuspensionExpires { + get { if ((_hasBits0 & 4) != 0) { return suspensionExpires_; } else { return SuspensionExpiresDefaultValue; } } + set { + _hasBits0 |= 4; + suspensionExpires_ = value; + } + } + /// Gets whether the "suspension_expires" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuspensionExpires { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "suspension_expires" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuspensionExpires() { + _hasBits0 &= ~4; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 7; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 8) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 8; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~8; + } + + /// Field number for the "is_locked" field. + public const int IsLockedFieldNumber = 8; + private readonly static bool IsLockedDefaultValue = false; + + private bool isLocked_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsLocked { + get { if ((_hasBits0 & 16) != 0) { return isLocked_; } else { return IsLockedDefaultValue; } } + set { + _hasBits0 |= 16; + isLocked_ = value; + } + } + /// Gets whether the "is_locked" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsLocked { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "is_locked" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsLocked() { + _hasBits0 &= ~16; + } + + /// Field number for the "is_bam_unlockable" field. + public const int IsBamUnlockableFieldNumber = 9; + private readonly static bool IsBamUnlockableDefaultValue = false; + + private bool isBamUnlockable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsBamUnlockable { + get { if ((_hasBits0 & 32) != 0) { return isBamUnlockable_; } else { return IsBamUnlockableDefaultValue; } } + set { + _hasBits0 |= 32; + isBamUnlockable_ = value; + } + } + /// Gets whether the "is_bam_unlockable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsBamUnlockable { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "is_bam_unlockable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsBamUnlockable() { + _hasBits0 &= ~32; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsSuspended != other.IsSuspended) return false; + if (IsBanned != other.IsBanned) return false; + if (SuspensionExpires != other.SuspensionExpires) return false; + if (Program != other.Program) return false; + if (IsLocked != other.IsLocked) return false; + if (IsBamUnlockable != other.IsBamUnlockable) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasIsSuspended) hash ^= IsSuspended.GetHashCode(); + if (HasIsBanned) hash ^= IsBanned.GetHashCode(); + if (HasSuspensionExpires) hash ^= SuspensionExpires.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasIsLocked) hash ^= IsLocked.GetHashCode(); + if (HasIsBamUnlockable) hash ^= IsBamUnlockable.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasIsSuspended) { + output.WriteRawTag(32); + output.WriteBool(IsSuspended); + } + if (HasIsBanned) { + output.WriteRawTag(40); + output.WriteBool(IsBanned); + } + if (HasSuspensionExpires) { + output.WriteRawTag(48); + output.WriteUInt64(SuspensionExpires); + } + if (HasProgram) { + output.WriteRawTag(61); + output.WriteFixed32(Program); + } + if (HasIsLocked) { + output.WriteRawTag(64); + output.WriteBool(IsLocked); + } + if (HasIsBamUnlockable) { + output.WriteRawTag(72); + output.WriteBool(IsBamUnlockable); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasIsSuspended) { + size += 1 + 1; + } + if (HasIsBanned) { + size += 1 + 1; + } + if (HasSuspensionExpires) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SuspensionExpires); + } + if (HasProgram) { + size += 1 + 4; + } + if (HasIsLocked) { + size += 1 + 1; + } + if (HasIsBamUnlockable) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameStatus other) { + if (other == null) { + return; + } + if (other.HasIsSuspended) { + IsSuspended = other.IsSuspended; + } + if (other.HasIsBanned) { + IsBanned = other.IsBanned; + } + if (other.HasSuspensionExpires) { + SuspensionExpires = other.SuspensionExpires; + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasIsLocked) { + IsLocked = other.IsLocked; + } + if (other.HasIsBamUnlockable) { + IsBamUnlockable = other.IsBamUnlockable; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + IsSuspended = input.ReadBool(); + break; + } + case 40: { + IsBanned = input.ReadBool(); + break; + } + case 48: { + SuspensionExpires = input.ReadUInt64(); + break; + } + case 61: { + Program = input.ReadFixed32(); + break; + } + case 64: { + IsLocked = input.ReadBool(); + break; + } + case 72: { + IsBamUnlockable = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class RAFInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RAFInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RAFInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RAFInfo(RAFInfo other) : this() { + rafInfo_ = other.rafInfo_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RAFInfo Clone() { + return new RAFInfo(this); + } + + /// Field number for the "raf_info" field. + public const int RafInfoFieldNumber = 1; + private readonly static pb::ByteString RafInfoDefaultValue = pb::ByteString.Empty; + + private pb::ByteString rafInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString RafInfo { + get { return rafInfo_ ?? RafInfoDefaultValue; } + set { + rafInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "raf_info" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRafInfo { + get { return rafInfo_ != null; } + } + /// Clears the value of the "raf_info" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRafInfo() { + rafInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RAFInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RAFInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RafInfo != other.RafInfo) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasRafInfo) hash ^= RafInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasRafInfo) { + output.WriteRawTag(10); + output.WriteBytes(RafInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasRafInfo) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RafInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RAFInfo other) { + if (other == null) { + return; + } + if (other.HasRafInfo) { + RafInfo = other.RafInfo; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RafInfo = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class GameSessionInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameSessionInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionInfo(GameSessionInfo other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + location_ = other.HasLocation ? other.location_.Clone() : null; + hasBenefactor_ = other.hasBenefactor_; + isUsingIgr_ = other.isUsingIgr_; + parentalControlsActive_ = other.parentalControlsActive_; + startTimeSec_ = other.startTimeSec_; + igrId_ = other.HasIgrId ? other.igrId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionInfo Clone() { + return new GameSessionInfo(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private readonly static uint StartTimeDefaultValue = 0; + + private uint startTime_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 4; + private global::Bgs.Protocol.Account.V1.GameSessionLocation location_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameSessionLocation Location { + get { return location_; } + set { + location_ = value; + } + } + /// Gets whether the location field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLocation { + get { return location_ != null; } + } + /// Clears the value of the location field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLocation() { + location_ = null; + } + + /// Field number for the "has_benefactor" field. + public const int HasBenefactorFieldNumber = 5; + private readonly static bool HasBenefactorDefaultValue = false; + + private bool hasBenefactor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBenefactor { + get { if ((_hasBits0 & 2) != 0) { return hasBenefactor_; } else { return HasBenefactorDefaultValue; } } + set { + _hasBits0 |= 2; + hasBenefactor_ = value; + } + } + /// Gets whether the "has_benefactor" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHasBenefactor { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "has_benefactor" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHasBenefactor() { + _hasBits0 &= ~2; + } + + /// Field number for the "is_using_igr" field. + public const int IsUsingIgrFieldNumber = 6; + private readonly static bool IsUsingIgrDefaultValue = false; + + private bool isUsingIgr_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsUsingIgr { + get { if ((_hasBits0 & 4) != 0) { return isUsingIgr_; } else { return IsUsingIgrDefaultValue; } } + set { + _hasBits0 |= 4; + isUsingIgr_ = value; + } + } + /// Gets whether the "is_using_igr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsUsingIgr { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "is_using_igr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsUsingIgr() { + _hasBits0 &= ~4; + } + + /// Field number for the "parental_controls_active" field. + public const int ParentalControlsActiveFieldNumber = 7; + private readonly static bool ParentalControlsActiveDefaultValue = false; + + private bool parentalControlsActive_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ParentalControlsActive { + get { if ((_hasBits0 & 8) != 0) { return parentalControlsActive_; } else { return ParentalControlsActiveDefaultValue; } } + set { + _hasBits0 |= 8; + parentalControlsActive_ = value; + } + } + /// Gets whether the "parental_controls_active" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasParentalControlsActive { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "parental_controls_active" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearParentalControlsActive() { + _hasBits0 &= ~8; + } + + /// Field number for the "start_time_sec" field. + public const int StartTimeSecFieldNumber = 8; + private readonly static ulong StartTimeSecDefaultValue = 0UL; + + private ulong startTimeSec_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StartTimeSec { + get { if ((_hasBits0 & 16) != 0) { return startTimeSec_; } else { return StartTimeSecDefaultValue; } } + set { + _hasBits0 |= 16; + startTimeSec_ = value; + } + } + /// Gets whether the "start_time_sec" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStartTimeSec { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "start_time_sec" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStartTimeSec() { + _hasBits0 &= ~16; + } + + /// Field number for the "igr_id" field. + public const int IgrIdFieldNumber = 9; + private global::Bgs.Protocol.Account.V1.IgrId igrId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.IgrId IgrId { + get { return igrId_; } + set { + igrId_ = value; + } + } + /// Gets whether the igr_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIgrId { + get { return igrId_ != null; } + } + /// Clears the value of the igr_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIgrId() { + igrId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameSessionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameSessionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (!object.Equals(Location, other.Location)) return false; + if (HasBenefactor != other.HasBenefactor) return false; + if (IsUsingIgr != other.IsUsingIgr) return false; + if (ParentalControlsActive != other.ParentalControlsActive) return false; + if (StartTimeSec != other.StartTimeSec) return false; + if (!object.Equals(IgrId, other.IgrId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasLocation) hash ^= Location.GetHashCode(); + if (HasHasBenefactor) hash ^= HasBenefactor.GetHashCode(); + if (HasIsUsingIgr) hash ^= IsUsingIgr.GetHashCode(); + if (HasParentalControlsActive) hash ^= ParentalControlsActive.GetHashCode(); + if (HasStartTimeSec) hash ^= StartTimeSec.GetHashCode(); + if (HasIgrId) hash ^= IgrId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasStartTime) { + output.WriteRawTag(24); + output.WriteUInt32(StartTime); + } + if (HasLocation) { + output.WriteRawTag(34); + output.WriteMessage(Location); + } + if (HasHasBenefactor) { + output.WriteRawTag(40); + output.WriteBool(HasBenefactor); + } + if (HasIsUsingIgr) { + output.WriteRawTag(48); + output.WriteBool(IsUsingIgr); + } + if (HasParentalControlsActive) { + output.WriteRawTag(56); + output.WriteBool(ParentalControlsActive); + } + if (HasStartTimeSec) { + output.WriteRawTag(64); + output.WriteUInt64(StartTimeSec); + } + if (HasIgrId) { + output.WriteRawTag(74); + output.WriteMessage(IgrId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StartTime); + } + if (HasLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (HasHasBenefactor) { + size += 1 + 1; + } + if (HasIsUsingIgr) { + size += 1 + 1; + } + if (HasParentalControlsActive) { + size += 1 + 1; + } + if (HasStartTimeSec) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StartTimeSec); + } + if (HasIgrId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IgrId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameSessionInfo other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasLocation) { + if (!HasLocation) { + Location = new global::Bgs.Protocol.Account.V1.GameSessionLocation(); + } + Location.MergeFrom(other.Location); + } + if (other.HasHasBenefactor) { + HasBenefactor = other.HasBenefactor; + } + if (other.HasIsUsingIgr) { + IsUsingIgr = other.IsUsingIgr; + } + if (other.HasParentalControlsActive) { + ParentalControlsActive = other.ParentalControlsActive; + } + if (other.HasStartTimeSec) { + StartTimeSec = other.StartTimeSec; + } + if (other.HasIgrId) { + if (!HasIgrId) { + IgrId = new global::Bgs.Protocol.Account.V1.IgrId(); + } + IgrId.MergeFrom(other.IgrId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + StartTime = input.ReadUInt32(); + break; + } + case 34: { + if (!HasLocation) { + Location = new global::Bgs.Protocol.Account.V1.GameSessionLocation(); + } + input.ReadMessage(Location); + break; + } + case 40: { + HasBenefactor = input.ReadBool(); + break; + } + case 48: { + IsUsingIgr = input.ReadBool(); + break; + } + case 56: { + ParentalControlsActive = input.ReadBool(); + break; + } + case 64: { + StartTimeSec = input.ReadUInt64(); + break; + } + case 74: { + if (!HasIgrId) { + IgrId = new global::Bgs.Protocol.Account.V1.IgrId(); + } + input.ReadMessage(IgrId); + break; + } + } + } + } + + } + + public sealed partial class GameSessionUpdateInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameSessionUpdateInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionUpdateInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionUpdateInfo(GameSessionUpdateInfo other) : this() { + cais_ = other.HasCais ? other.cais_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionUpdateInfo Clone() { + return new GameSessionUpdateInfo(this); + } + + /// Field number for the "cais" field. + public const int CaisFieldNumber = 8; + private global::Bgs.Protocol.Account.V1.CAIS cais_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.CAIS Cais { + get { return cais_; } + set { + cais_ = value; + } + } + /// Gets whether the cais field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCais { + get { return cais_ != null; } + } + /// Clears the value of the cais field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCais() { + cais_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameSessionUpdateInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameSessionUpdateInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Cais, other.Cais)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCais) hash ^= Cais.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCais) { + output.WriteRawTag(66); + output.WriteMessage(Cais); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCais) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cais); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameSessionUpdateInfo other) { + if (other == null) { + return; + } + if (other.HasCais) { + if (!HasCais) { + Cais = new global::Bgs.Protocol.Account.V1.CAIS(); + } + Cais.MergeFrom(other.Cais); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + if (!HasCais) { + Cais = new global::Bgs.Protocol.Account.V1.CAIS(); + } + input.ReadMessage(Cais); + break; + } + } + } + } + + } + + public sealed partial class GameSessionLocation : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameSessionLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionLocation(GameSessionLocation other) : this() { + _hasBits0 = other._hasBits0; + ipAddress_ = other.ipAddress_; + country_ = other.country_; + city_ = other.city_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameSessionLocation Clone() { + return new GameSessionLocation(this); + } + + /// Field number for the "ip_address" field. + public const int IpAddressFieldNumber = 1; + private readonly static string IpAddressDefaultValue = ""; + + private string ipAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string IpAddress { + get { return ipAddress_ ?? IpAddressDefaultValue; } + set { + ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "ip_address" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIpAddress { + get { return ipAddress_ != null; } + } + /// Clears the value of the "ip_address" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIpAddress() { + ipAddress_ = null; + } + + /// Field number for the "country" field. + public const int CountryFieldNumber = 2; + private readonly static uint CountryDefaultValue = 0; + + private uint country_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Country { + get { if ((_hasBits0 & 1) != 0) { return country_; } else { return CountryDefaultValue; } } + set { + _hasBits0 |= 1; + country_ = value; + } + } + /// Gets whether the "country" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCountry { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "country" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCountry() { + _hasBits0 &= ~1; + } + + /// Field number for the "city" field. + public const int CityFieldNumber = 3; + private readonly static string CityDefaultValue = ""; + + private string city_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string City { + get { return city_ ?? CityDefaultValue; } + set { + city_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "city" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCity { + get { return city_ != null; } + } + /// Clears the value of the "city" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCity() { + city_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameSessionLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameSessionLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IpAddress != other.IpAddress) return false; + if (Country != other.Country) return false; + if (City != other.City) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasIpAddress) hash ^= IpAddress.GetHashCode(); + if (HasCountry) hash ^= Country.GetHashCode(); + if (HasCity) hash ^= City.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasIpAddress) { + output.WriteRawTag(10); + output.WriteString(IpAddress); + } + if (HasCountry) { + output.WriteRawTag(16); + output.WriteUInt32(Country); + } + if (HasCity) { + output.WriteRawTag(26); + output.WriteString(City); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasIpAddress) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); + } + if (HasCountry) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Country); + } + if (HasCity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(City); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameSessionLocation other) { + if (other == null) { + return; + } + if (other.HasIpAddress) { + IpAddress = other.IpAddress; + } + if (other.HasCountry) { + Country = other.Country; + } + if (other.HasCity) { + City = other.City; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + IpAddress = input.ReadString(); + break; + } + case 16: { + Country = input.ReadUInt32(); + break; + } + case 26: { + City = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class CAIS : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CAIS()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CAIS() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CAIS(CAIS other) : this() { + _hasBits0 = other._hasBits0; + playedMinutes_ = other.playedMinutes_; + restedMinutes_ = other.restedMinutes_; + lastHeardTime_ = other.lastHeardTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CAIS Clone() { + return new CAIS(this); + } + + /// Field number for the "played_minutes" field. + public const int PlayedMinutesFieldNumber = 1; + private readonly static uint PlayedMinutesDefaultValue = 0; + + private uint playedMinutes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PlayedMinutes { + get { if ((_hasBits0 & 1) != 0) { return playedMinutes_; } else { return PlayedMinutesDefaultValue; } } + set { + _hasBits0 |= 1; + playedMinutes_ = value; + } + } + /// Gets whether the "played_minutes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPlayedMinutes { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "played_minutes" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPlayedMinutes() { + _hasBits0 &= ~1; + } + + /// Field number for the "rested_minutes" field. + public const int RestedMinutesFieldNumber = 2; + private readonly static uint RestedMinutesDefaultValue = 0; + + private uint restedMinutes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint RestedMinutes { + get { if ((_hasBits0 & 2) != 0) { return restedMinutes_; } else { return RestedMinutesDefaultValue; } } + set { + _hasBits0 |= 2; + restedMinutes_ = value; + } + } + /// Gets whether the "rested_minutes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRestedMinutes { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "rested_minutes" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRestedMinutes() { + _hasBits0 &= ~2; + } + + /// Field number for the "last_heard_time" field. + public const int LastHeardTimeFieldNumber = 3; + private readonly static ulong LastHeardTimeDefaultValue = 0UL; + + private ulong lastHeardTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong LastHeardTime { + get { if ((_hasBits0 & 4) != 0) { return lastHeardTime_; } else { return LastHeardTimeDefaultValue; } } + set { + _hasBits0 |= 4; + lastHeardTime_ = value; + } + } + /// Gets whether the "last_heard_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLastHeardTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "last_heard_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLastHeardTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CAIS); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CAIS other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PlayedMinutes != other.PlayedMinutes) return false; + if (RestedMinutes != other.RestedMinutes) return false; + if (LastHeardTime != other.LastHeardTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasPlayedMinutes) hash ^= PlayedMinutes.GetHashCode(); + if (HasRestedMinutes) hash ^= RestedMinutes.GetHashCode(); + if (HasLastHeardTime) hash ^= LastHeardTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasPlayedMinutes) { + output.WriteRawTag(8); + output.WriteUInt32(PlayedMinutes); + } + if (HasRestedMinutes) { + output.WriteRawTag(16); + output.WriteUInt32(RestedMinutes); + } + if (HasLastHeardTime) { + output.WriteRawTag(24); + output.WriteUInt64(LastHeardTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasPlayedMinutes) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlayedMinutes); + } + if (HasRestedMinutes) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RestedMinutes); + } + if (HasLastHeardTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LastHeardTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CAIS other) { + if (other == null) { + return; + } + if (other.HasPlayedMinutes) { + PlayedMinutes = other.PlayedMinutes; + } + if (other.HasRestedMinutes) { + RestedMinutes = other.RestedMinutes; + } + if (other.HasLastHeardTime) { + LastHeardTime = other.LastHeardTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PlayedMinutes = input.ReadUInt32(); + break; + } + case 16: { + RestedMinutes = input.ReadUInt32(); + break; + } + case 24: { + LastHeardTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GameAccountList : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountList(GameAccountList other) : this() { + _hasBits0 = other._hasBits0; + region_ = other.region_; + handle_ = other.handle_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountList Clone() { + return new GameAccountList(this); + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 3; + private readonly static uint RegionDefaultValue = 0; + + private uint region_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Region { + get { if ((_hasBits0 & 1) != 0) { return region_; } else { return RegionDefaultValue; } } + set { + _hasBits0 |= 1; + region_ = value; + } + } + /// Gets whether the "region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegion { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegion() { + _hasBits0 &= ~1; + } + + /// Field number for the "handle" field. + public const int HandleFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_handle_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Account.V1.GameAccountHandle.Parser); + private readonly pbc::RepeatedField handle_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Handle { + get { return handle_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Region != other.Region) return false; + if(!handle_.Equals(other.handle_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasRegion) hash ^= Region.GetHashCode(); + hash ^= handle_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasRegion) { + output.WriteRawTag(24); + output.WriteUInt32(Region); + } + handle_.WriteTo(output, _repeated_handle_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasRegion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); + } + size += handle_.CalculateSize(_repeated_handle_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountList other) { + if (other == null) { + return; + } + if (other.HasRegion) { + Region = other.Region; + } + handle_.Add(other.handle_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Region = input.ReadUInt32(); + break; + } + case 34: { + handle_.AddEntriesFrom(input, _repeated_handle_codec); + break; + } + } + } + } + + } + + public sealed partial class AccountState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountState()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountState(AccountState other) : this() { + accountLevelInfo_ = other.HasAccountLevelInfo ? other.accountLevelInfo_.Clone() : null; + privacyInfo_ = other.HasPrivacyInfo ? other.privacyInfo_.Clone() : null; + parentalControlInfo_ = other.HasParentalControlInfo ? other.parentalControlInfo_.Clone() : null; + gameLevelInfo_ = other.gameLevelInfo_.Clone(); + gameStatus_ = other.gameStatus_.Clone(); + gameAccounts_ = other.gameAccounts_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountState Clone() { + return new AccountState(this); + } + + /// Field number for the "account_level_info" field. + public const int AccountLevelInfoFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountLevelInfo accountLevelInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountLevelInfo AccountLevelInfo { + get { return accountLevelInfo_; } + set { + accountLevelInfo_ = value; + } + } + /// Gets whether the account_level_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountLevelInfo { + get { return accountLevelInfo_ != null; } + } + /// Clears the value of the account_level_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountLevelInfo() { + accountLevelInfo_ = null; + } + + /// Field number for the "privacy_info" field. + public const int PrivacyInfoFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.PrivacyInfo privacyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.PrivacyInfo PrivacyInfo { + get { return privacyInfo_; } + set { + privacyInfo_ = value; + } + } + /// Gets whether the privacy_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivacyInfo { + get { return privacyInfo_ != null; } + } + /// Clears the value of the privacy_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivacyInfo() { + privacyInfo_ = null; + } + + /// Field number for the "parental_control_info" field. + public const int ParentalControlInfoFieldNumber = 3; + private global::Bgs.Protocol.Account.V1.ParentalControlInfo parentalControlInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.ParentalControlInfo ParentalControlInfo { + get { return parentalControlInfo_; } + set { + parentalControlInfo_ = value; + } + } + /// Gets whether the parental_control_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasParentalControlInfo { + get { return parentalControlInfo_ != null; } + } + /// Clears the value of the parental_control_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearParentalControlInfo() { + parentalControlInfo_ = null; + } + + /// Field number for the "game_level_info" field. + public const int GameLevelInfoFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_gameLevelInfo_codec + = pb::FieldCodec.ForMessage(42, global::Bgs.Protocol.Account.V1.GameLevelInfo.Parser); + private readonly pbc::RepeatedField gameLevelInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField GameLevelInfo { + get { return gameLevelInfo_; } + } + + /// Field number for the "game_status" field. + public const int GameStatusFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_gameStatus_codec + = pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.Account.V1.GameStatus.Parser); + private readonly pbc::RepeatedField gameStatus_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField GameStatus { + get { return gameStatus_; } + } + + /// Field number for the "game_accounts" field. + public const int GameAccountsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_gameAccounts_codec + = pb::FieldCodec.ForMessage(58, global::Bgs.Protocol.Account.V1.GameAccountList.Parser); + private readonly pbc::RepeatedField gameAccounts_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField GameAccounts { + get { return gameAccounts_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountLevelInfo, other.AccountLevelInfo)) return false; + if (!object.Equals(PrivacyInfo, other.PrivacyInfo)) return false; + if (!object.Equals(ParentalControlInfo, other.ParentalControlInfo)) return false; + if(!gameLevelInfo_.Equals(other.gameLevelInfo_)) return false; + if(!gameStatus_.Equals(other.gameStatus_)) return false; + if(!gameAccounts_.Equals(other.gameAccounts_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountLevelInfo) hash ^= AccountLevelInfo.GetHashCode(); + if (HasPrivacyInfo) hash ^= PrivacyInfo.GetHashCode(); + if (HasParentalControlInfo) hash ^= ParentalControlInfo.GetHashCode(); + hash ^= gameLevelInfo_.GetHashCode(); + hash ^= gameStatus_.GetHashCode(); + hash ^= gameAccounts_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountLevelInfo) { + output.WriteRawTag(10); + output.WriteMessage(AccountLevelInfo); + } + if (HasPrivacyInfo) { + output.WriteRawTag(18); + output.WriteMessage(PrivacyInfo); + } + if (HasParentalControlInfo) { + output.WriteRawTag(26); + output.WriteMessage(ParentalControlInfo); + } + gameLevelInfo_.WriteTo(output, _repeated_gameLevelInfo_codec); + gameStatus_.WriteTo(output, _repeated_gameStatus_codec); + gameAccounts_.WriteTo(output, _repeated_gameAccounts_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountLevelInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountLevelInfo); + } + if (HasPrivacyInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrivacyInfo); + } + if (HasParentalControlInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParentalControlInfo); + } + size += gameLevelInfo_.CalculateSize(_repeated_gameLevelInfo_codec); + size += gameStatus_.CalculateSize(_repeated_gameStatus_codec); + size += gameAccounts_.CalculateSize(_repeated_gameAccounts_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountState other) { + if (other == null) { + return; + } + if (other.HasAccountLevelInfo) { + if (!HasAccountLevelInfo) { + AccountLevelInfo = new global::Bgs.Protocol.Account.V1.AccountLevelInfo(); + } + AccountLevelInfo.MergeFrom(other.AccountLevelInfo); + } + if (other.HasPrivacyInfo) { + if (!HasPrivacyInfo) { + PrivacyInfo = new global::Bgs.Protocol.Account.V1.PrivacyInfo(); + } + PrivacyInfo.MergeFrom(other.PrivacyInfo); + } + if (other.HasParentalControlInfo) { + if (!HasParentalControlInfo) { + ParentalControlInfo = new global::Bgs.Protocol.Account.V1.ParentalControlInfo(); + } + ParentalControlInfo.MergeFrom(other.ParentalControlInfo); + } + gameLevelInfo_.Add(other.gameLevelInfo_); + gameStatus_.Add(other.gameStatus_); + gameAccounts_.Add(other.gameAccounts_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccountLevelInfo) { + AccountLevelInfo = new global::Bgs.Protocol.Account.V1.AccountLevelInfo(); + } + input.ReadMessage(AccountLevelInfo); + break; + } + case 18: { + if (!HasPrivacyInfo) { + PrivacyInfo = new global::Bgs.Protocol.Account.V1.PrivacyInfo(); + } + input.ReadMessage(PrivacyInfo); + break; + } + case 26: { + if (!HasParentalControlInfo) { + ParentalControlInfo = new global::Bgs.Protocol.Account.V1.ParentalControlInfo(); + } + input.ReadMessage(ParentalControlInfo); + break; + } + case 42: { + gameLevelInfo_.AddEntriesFrom(input, _repeated_gameLevelInfo_codec); + break; + } + case 50: { + gameStatus_.AddEntriesFrom(input, _repeated_gameStatus_codec); + break; + } + case 58: { + gameAccounts_.AddEntriesFrom(input, _repeated_gameAccounts_codec); + break; + } + } + } + } + + } + + public sealed partial class AccountStateTagged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountStateTagged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountStateTagged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountStateTagged(AccountStateTagged other) : this() { + accountState_ = other.HasAccountState ? other.accountState_.Clone() : null; + accountTags_ = other.HasAccountTags ? other.accountTags_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountStateTagged Clone() { + return new AccountStateTagged(this); + } + + /// Field number for the "account_state" field. + public const int AccountStateFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountState accountState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountState AccountState { + get { return accountState_; } + set { + accountState_ = value; + } + } + /// Gets whether the account_state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountState { + get { return accountState_ != null; } + } + /// Clears the value of the account_state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountState() { + accountState_ = null; + } + + /// Field number for the "account_tags" field. + public const int AccountTagsFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.AccountFieldTags accountTags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountFieldTags AccountTags { + get { return accountTags_; } + set { + accountTags_ = value; + } + } + /// Gets whether the account_tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountTags { + get { return accountTags_ != null; } + } + /// Clears the value of the account_tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountTags() { + accountTags_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountStateTagged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountStateTagged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountState, other.AccountState)) return false; + if (!object.Equals(AccountTags, other.AccountTags)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountState) hash ^= AccountState.GetHashCode(); + if (HasAccountTags) hash ^= AccountTags.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountState) { + output.WriteRawTag(10); + output.WriteMessage(AccountState); + } + if (HasAccountTags) { + output.WriteRawTag(18); + output.WriteMessage(AccountTags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountState); + } + if (HasAccountTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountTags); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountStateTagged other) { + if (other == null) { + return; + } + if (other.HasAccountState) { + if (!HasAccountState) { + AccountState = new global::Bgs.Protocol.Account.V1.AccountState(); + } + AccountState.MergeFrom(other.AccountState); + } + if (other.HasAccountTags) { + if (!HasAccountTags) { + AccountTags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + AccountTags.MergeFrom(other.AccountTags); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccountState) { + AccountState = new global::Bgs.Protocol.Account.V1.AccountState(); + } + input.ReadMessage(AccountState); + break; + } + case 18: { + if (!HasAccountTags) { + AccountTags = new global::Bgs.Protocol.Account.V1.AccountFieldTags(); + } + input.ReadMessage(AccountTags); + break; + } + } + } + } + + } + + public sealed partial class GameAccountState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountState()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountState(GameAccountState other) : this() { + gameLevelInfo_ = other.HasGameLevelInfo ? other.gameLevelInfo_.Clone() : null; + gameTimeInfo_ = other.HasGameTimeInfo ? other.gameTimeInfo_.Clone() : null; + gameStatus_ = other.HasGameStatus ? other.gameStatus_.Clone() : null; + rafInfo_ = other.HasRafInfo ? other.rafInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountState Clone() { + return new GameAccountState(this); + } + + /// Field number for the "game_level_info" field. + public const int GameLevelInfoFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameLevelInfo gameLevelInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameLevelInfo GameLevelInfo { + get { return gameLevelInfo_; } + set { + gameLevelInfo_ = value; + } + } + /// Gets whether the game_level_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameLevelInfo { + get { return gameLevelInfo_ != null; } + } + /// Clears the value of the game_level_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameLevelInfo() { + gameLevelInfo_ = null; + } + + /// Field number for the "game_time_info" field. + public const int GameTimeInfoFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.GameTimeInfo gameTimeInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameTimeInfo GameTimeInfo { + get { return gameTimeInfo_; } + set { + gameTimeInfo_ = value; + } + } + /// Gets whether the game_time_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameTimeInfo { + get { return gameTimeInfo_ != null; } + } + /// Clears the value of the game_time_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameTimeInfo() { + gameTimeInfo_ = null; + } + + /// Field number for the "game_status" field. + public const int GameStatusFieldNumber = 3; + private global::Bgs.Protocol.Account.V1.GameStatus gameStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameStatus GameStatus { + get { return gameStatus_; } + set { + gameStatus_ = value; + } + } + /// Gets whether the game_status field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameStatus { + get { return gameStatus_ != null; } + } + /// Clears the value of the game_status field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameStatus() { + gameStatus_ = null; + } + + /// Field number for the "raf_info" field. + public const int RafInfoFieldNumber = 4; + private global::Bgs.Protocol.Account.V1.RAFInfo rafInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.RAFInfo RafInfo { + get { return rafInfo_; } + set { + rafInfo_ = value; + } + } + /// Gets whether the raf_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRafInfo { + get { return rafInfo_ != null; } + } + /// Clears the value of the raf_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRafInfo() { + rafInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameLevelInfo, other.GameLevelInfo)) return false; + if (!object.Equals(GameTimeInfo, other.GameTimeInfo)) return false; + if (!object.Equals(GameStatus, other.GameStatus)) return false; + if (!object.Equals(RafInfo, other.RafInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameLevelInfo) hash ^= GameLevelInfo.GetHashCode(); + if (HasGameTimeInfo) hash ^= GameTimeInfo.GetHashCode(); + if (HasGameStatus) hash ^= GameStatus.GetHashCode(); + if (HasRafInfo) hash ^= RafInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameLevelInfo) { + output.WriteRawTag(10); + output.WriteMessage(GameLevelInfo); + } + if (HasGameTimeInfo) { + output.WriteRawTag(18); + output.WriteMessage(GameTimeInfo); + } + if (HasGameStatus) { + output.WriteRawTag(26); + output.WriteMessage(GameStatus); + } + if (HasRafInfo) { + output.WriteRawTag(34); + output.WriteMessage(RafInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameLevelInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameLevelInfo); + } + if (HasGameTimeInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameTimeInfo); + } + if (HasGameStatus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameStatus); + } + if (HasRafInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RafInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountState other) { + if (other == null) { + return; + } + if (other.HasGameLevelInfo) { + if (!HasGameLevelInfo) { + GameLevelInfo = new global::Bgs.Protocol.Account.V1.GameLevelInfo(); + } + GameLevelInfo.MergeFrom(other.GameLevelInfo); + } + if (other.HasGameTimeInfo) { + if (!HasGameTimeInfo) { + GameTimeInfo = new global::Bgs.Protocol.Account.V1.GameTimeInfo(); + } + GameTimeInfo.MergeFrom(other.GameTimeInfo); + } + if (other.HasGameStatus) { + if (!HasGameStatus) { + GameStatus = new global::Bgs.Protocol.Account.V1.GameStatus(); + } + GameStatus.MergeFrom(other.GameStatus); + } + if (other.HasRafInfo) { + if (!HasRafInfo) { + RafInfo = new global::Bgs.Protocol.Account.V1.RAFInfo(); + } + RafInfo.MergeFrom(other.RafInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameLevelInfo) { + GameLevelInfo = new global::Bgs.Protocol.Account.V1.GameLevelInfo(); + } + input.ReadMessage(GameLevelInfo); + break; + } + case 18: { + if (!HasGameTimeInfo) { + GameTimeInfo = new global::Bgs.Protocol.Account.V1.GameTimeInfo(); + } + input.ReadMessage(GameTimeInfo); + break; + } + case 26: { + if (!HasGameStatus) { + GameStatus = new global::Bgs.Protocol.Account.V1.GameStatus(); + } + input.ReadMessage(GameStatus); + break; + } + case 34: { + if (!HasRafInfo) { + RafInfo = new global::Bgs.Protocol.Account.V1.RAFInfo(); + } + input.ReadMessage(RafInfo); + break; + } + } + } + } + + } + + public sealed partial class GameAccountStateTagged : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountStateTagged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountStateTagged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountStateTagged(GameAccountStateTagged other) : this() { + gameAccountState_ = other.HasGameAccountState ? other.gameAccountState_.Clone() : null; + gameAccountTags_ = other.HasGameAccountTags ? other.gameAccountTags_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountStateTagged Clone() { + return new GameAccountStateTagged(this); + } + + /// Field number for the "game_account_state" field. + public const int GameAccountStateFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountState gameAccountState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountState GameAccountState { + get { return gameAccountState_; } + set { + gameAccountState_ = value; + } + } + /// Gets whether the game_account_state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountState { + get { return gameAccountState_ != null; } + } + /// Clears the value of the game_account_state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountState() { + gameAccountState_ = null; + } + + /// Field number for the "game_account_tags" field. + public const int GameAccountTagsFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.GameAccountFieldTags gameAccountTags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountFieldTags GameAccountTags { + get { return gameAccountTags_; } + set { + gameAccountTags_ = value; + } + } + /// Gets whether the game_account_tags field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountTags { + get { return gameAccountTags_ != null; } + } + /// Clears the value of the game_account_tags field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountTags() { + gameAccountTags_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountStateTagged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountStateTagged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccountState, other.GameAccountState)) return false; + if (!object.Equals(GameAccountTags, other.GameAccountTags)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccountState) hash ^= GameAccountState.GetHashCode(); + if (HasGameAccountTags) hash ^= GameAccountTags.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccountState) { + output.WriteRawTag(10); + output.WriteMessage(GameAccountState); + } + if (HasGameAccountTags) { + output.WriteRawTag(18); + output.WriteMessage(GameAccountTags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccountState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountState); + } + if (HasGameAccountTags) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountTags); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountStateTagged other) { + if (other == null) { + return; + } + if (other.HasGameAccountState) { + if (!HasGameAccountState) { + GameAccountState = new global::Bgs.Protocol.Account.V1.GameAccountState(); + } + GameAccountState.MergeFrom(other.GameAccountState); + } + if (other.HasGameAccountTags) { + if (!HasGameAccountTags) { + GameAccountTags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + GameAccountTags.MergeFrom(other.GameAccountTags); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameAccountState) { + GameAccountState = new global::Bgs.Protocol.Account.V1.GameAccountState(); + } + input.ReadMessage(GameAccountState); + break; + } + case 18: { + if (!HasGameAccountTags) { + GameAccountTags = new global::Bgs.Protocol.Account.V1.GameAccountFieldTags(); + } + input.ReadMessage(GameAccountTags); + break; + } + } + } + } + + } + + public sealed partial class AuthorizedData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthorizedData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AuthorizedData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AuthorizedData(AuthorizedData other) : this() { + data_ = other.data_; + license_ = other.license_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AuthorizedData Clone() { + return new AuthorizedData(this); + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 1; + private readonly static string DataDefaultValue = ""; + + private string data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Data { + get { return data_ ?? DataDefaultValue; } + set { + data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "data" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasData { + get { return data_ != null; } + } + /// Clears the value of the "data" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearData() { + data_ = null; + } + + /// Field number for the "license" field. + public const int LicenseFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_license_codec + = pb::FieldCodec.ForUInt32(16); + private readonly pbc::RepeatedField license_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField License { + get { return license_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AuthorizedData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AuthorizedData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Data != other.Data) return false; + if(!license_.Equals(other.license_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasData) hash ^= Data.GetHashCode(); + hash ^= license_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasData) { + output.WriteRawTag(10); + output.WriteString(Data); + } + license_.WriteTo(output, _repeated_license_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasData) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); + } + size += license_.CalculateSize(_repeated_license_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AuthorizedData other) { + if (other == null) { + return; + } + if (other.HasData) { + Data = other.Data; + } + license_.Add(other.license_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Data = input.ReadString(); + break; + } + case 18: + case 16: { + license_.AddEntriesFrom(input, _repeated_license_codec); + break; + } + } + } + } + + } + + public sealed partial class IgrId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IgrId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgrId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgrId(IgrId other) : this() { + _hasBits0 = other._hasBits0; + switch (other.TypeCase) { + case TypeOneofCase.GameAccount: + GameAccount = other.GameAccount.Clone(); + break; + case TypeOneofCase.ExternalId: + ExternalId = other.ExternalId; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgrId Clone() { + return new IgrId(this); + } + + /// Field number for the "game_account" field. + public const int GameAccountFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle GameAccount { + get { return HasGameAccount ? (global::Bgs.Protocol.Account.V1.GameAccountHandle) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.GameAccount; + } + } + /// Gets whether the "game_account" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccount { + get { return typeCase_ == TypeOneofCase.GameAccount; } + } + /// Clears the value of the oneof if it's currently set to "game_account" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccount() { + if (HasGameAccount) { + ClearType(); + } + } + + /// Field number for the "external_id" field. + public const int ExternalIdFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ExternalId { + get { return HasExternalId ? (uint) type_ : 0; } + set { + type_ = value; + typeCase_ = TypeOneofCase.ExternalId; + } + } + /// Gets whether the "external_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExternalId { + get { return typeCase_ == TypeOneofCase.ExternalId; } + } + /// Clears the value of the oneof if it's currently set to "external_id" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExternalId() { + if (HasExternalId) { + ClearType(); + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + GameAccount = 1, + ExternalId = 2, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IgrId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(IgrId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccount, other.GameAccount)) return false; + if (ExternalId != other.ExternalId) return false; + if (TypeCase != other.TypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccount) hash ^= GameAccount.GetHashCode(); + if (HasExternalId) hash ^= ExternalId.GetHashCode(); + hash ^= (int) typeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccount) { + output.WriteRawTag(10); + output.WriteMessage(GameAccount); + } + if (HasExternalId) { + output.WriteRawTag(21); + output.WriteFixed32(ExternalId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); + } + if (HasExternalId) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(IgrId other) { + if (other == null) { + return; + } + switch (other.TypeCase) { + case TypeOneofCase.GameAccount: + if (GameAccount == null) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + GameAccount.MergeFrom(other.GameAccount); + break; + case TypeOneofCase.ExternalId: + ExternalId = other.ExternalId; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Bgs.Protocol.Account.V1.GameAccountHandle subBuilder = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + if (HasGameAccount) { + subBuilder.MergeFrom(GameAccount); + } + input.ReadMessage(subBuilder); + GameAccount = subBuilder; + break; + } + case 21: { + ExternalId = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class IgrAddress : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IgrAddress()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgrAddress() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgrAddress(IgrAddress other) : this() { + _hasBits0 = other._hasBits0; + clientAddress_ = other.clientAddress_; + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgrAddress Clone() { + return new IgrAddress(this); + } + + /// Field number for the "client_address" field. + public const int ClientAddressFieldNumber = 1; + private readonly static string ClientAddressDefaultValue = ""; + + private string clientAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ClientAddress { + get { return clientAddress_ ?? ClientAddressDefaultValue; } + set { + clientAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "client_address" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientAddress { + get { return clientAddress_ != null; } + } + /// Clears the value of the "client_address" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientAddress() { + clientAddress_ = null; + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 2; + private readonly static uint RegionDefaultValue = 0; + + private uint region_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Region { + get { if ((_hasBits0 & 1) != 0) { return region_; } else { return RegionDefaultValue; } } + set { + _hasBits0 |= 1; + region_ = value; + } + } + /// Gets whether the "region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegion { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegion() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IgrAddress); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(IgrAddress other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientAddress != other.ClientAddress) return false; + if (Region != other.Region) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClientAddress) hash ^= ClientAddress.GetHashCode(); + if (HasRegion) hash ^= Region.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClientAddress) { + output.WriteRawTag(10); + output.WriteString(ClientAddress); + } + if (HasRegion) { + output.WriteRawTag(16); + output.WriteUInt32(Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClientAddress) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientAddress); + } + if (HasRegion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(IgrAddress other) { + if (other == null) { + return; + } + if (other.HasClientAddress) { + ClientAddress = other.ClientAddress; + } + if (other.HasRegion) { + Region = other.Region; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ClientAddress = input.ReadString(); + break; + } + case 16: { + Region = input.ReadUInt32(); + break; + } + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/Api/V1/ChannelId.cs b/Source/Framework/Proto/Api/V1/ChannelId.cs new file mode 100644 index 000000000..a47e10119 --- /dev/null +++ b/Source/Framework/Proto/Api/V1/ChannelId.cs @@ -0,0 +1,280 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/api/client/v1/channel_id.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Channel.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/api/client/v1/channel_id.proto + public static partial class ChannelIdReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/api/client/v1/channel_id.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChannelIdReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjBiZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YxL2NoYW5uZWxfaWQu", + "cHJvdG8SF2Jncy5wcm90b2NvbC5jaGFubmVsLnYxGiFiZ3MvbG93L3BiL2Ns", + "aWVudC9ycGNfdHlwZXMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2Jh", + "bF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0aW9ucy5wcm90bxo3YmdzL2xvdy9w", + "Yi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvZmllbGRfb3B0aW9ucy5wcm90", + "bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWV0aG9k", + "X29wdGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRl", + "bnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5wcm90byJUCglDaGFubmVsSWQSDAoE", + "dHlwZRgBIAEoDRIlCgRob3N0GAIgASgLMhcuYmdzLnByb3RvY29sLlByb2Nl", + "c3NJZBIKCgJpZBgDIAEoBzoGgvkrAggB")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.ChannelId), global::Bgs.Protocol.Channel.V1.ChannelId.Parser, new[]{ "Type", "Host", "Id" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ChannelId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Channel.V1.ChannelIdReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChannelId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChannelId(ChannelId other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + host_ = other.HasHost ? other.host_.Clone() : null; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChannelId Clone() { + return new ChannelId(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static uint TypeDefaultValue = 0; + + private uint type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 2; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 3; + private readonly static uint IdDefaultValue = 0; + + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 2; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChannelId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChannelId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!object.Equals(Host, other.Host)) return false; + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasHost) hash ^= Host.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasType) { + output.WriteRawTag(8); + output.WriteUInt32(Type); + } + if (HasHost) { + output.WriteRawTag(18); + output.WriteMessage(Host); + } + if (HasId) { + output.WriteRawTag(29); + output.WriteFixed32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Type); + } + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (HasId) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChannelId other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = input.ReadUInt32(); + break; + } + case 18: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + case 29: { + Id = input.ReadFixed32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/Api/V2/AttributeTypes.cs b/Source/Framework/Proto/Api/V2/AttributeTypes.cs new file mode 100644 index 000000000..a772e4c88 --- /dev/null +++ b/Source/Framework/Proto/Api/V2/AttributeTypes.cs @@ -0,0 +1,804 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/api/client/v2/attribute_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.V2 { + + /// Holder for reflection information generated from bgs/low/pb/client/api/client/v2/attribute_types.proto + public static partial class AttributeTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/api/client/v2/attribute_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AttributeTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjViZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL2F0dHJpYnV0ZV90", + "eXBlcy5wcm90bxIPYmdzLnByb3RvY29sLnYyIpcBCgdWYXJpYW50EhQKCmJv", + "b2xfdmFsdWUYASABKAhIABITCglpbnRfdmFsdWUYAiABKANIABIVCgtmbG9h", + "dF92YWx1ZRgDIAEoAUgAEhYKDHN0cmluZ192YWx1ZRgEIAEoCUgAEhQKCmJs", + "b2JfdmFsdWUYBSABKAxIABIUCgp1aW50X3ZhbHVlGAYgASgESABCBgoEdHlw", + "ZSJCCglBdHRyaWJ1dGUSDAoEbmFtZRgBIAEoCRInCgV2YWx1ZRgCIAEoCzIY", + "LmJncy5wcm90b2NvbC52Mi5WYXJpYW50ItwBCg9BdHRyaWJ1dGVGaWx0ZXIS", + "QgoCb3AYASABKA4yKi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlRmlsdGVy", + "Lk9wZXJhdGlvbjoKTUFUQ0hfTk9ORRItCglhdHRyaWJ1dGUYAiADKAsyGi5i", + "Z3MucHJvdG9jb2wudjIuQXR0cmlidXRlIlYKCU9wZXJhdGlvbhIOCgpNQVRD", + "SF9OT05FEAASDQoJTUFUQ0hfQU5ZEAESDQoJTUFUQ0hfQUxMEAISGwoXTUFU", + "Q0hfQUxMX01PU1RfU1BFQ0lGSUMQAw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.Variant), global::Bgs.Protocol.V2.Variant.Parser, new[]{ "BoolValue", "IntValue", "FloatValue", "StringValue", "BlobValue", "UintValue" }, new[]{ "Type" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.Attribute), global::Bgs.Protocol.V2.Attribute.Parser, new[]{ "Name", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.AttributeFilter), global::Bgs.Protocol.V2.AttributeFilter.Parser, new[]{ "Op", "Attribute" }, null, new[]{ typeof(global::Bgs.Protocol.V2.AttributeFilter.Types.Operation) }, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class Variant : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Variant()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Variant() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Variant(Variant other) : this() { + _hasBits0 = other._hasBits0; + switch (other.TypeCase) { + case TypeOneofCase.BoolValue: + BoolValue = other.BoolValue; + break; + case TypeOneofCase.IntValue: + IntValue = other.IntValue; + break; + case TypeOneofCase.FloatValue: + FloatValue = other.FloatValue; + break; + case TypeOneofCase.StringValue: + StringValue = other.StringValue; + break; + case TypeOneofCase.BlobValue: + BlobValue = other.BlobValue; + break; + case TypeOneofCase.UintValue: + UintValue = other.UintValue; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Variant Clone() { + return new Variant(this); + } + + /// Field number for the "bool_value" field. + public const int BoolValueFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool BoolValue { + get { return HasBoolValue ? (bool) type_ : false; } + set { + type_ = value; + typeCase_ = TypeOneofCase.BoolValue; + } + } + /// Gets whether the "bool_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBoolValue { + get { return typeCase_ == TypeOneofCase.BoolValue; } + } + /// Clears the value of the oneof if it's currently set to "bool_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBoolValue() { + if (HasBoolValue) { + ClearType(); + } + } + + /// Field number for the "int_value" field. + public const int IntValueFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long IntValue { + get { return HasIntValue ? (long) type_ : 0L; } + set { + type_ = value; + typeCase_ = TypeOneofCase.IntValue; + } + } + /// Gets whether the "int_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIntValue { + get { return typeCase_ == TypeOneofCase.IntValue; } + } + /// Clears the value of the oneof if it's currently set to "int_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIntValue() { + if (HasIntValue) { + ClearType(); + } + } + + /// Field number for the "float_value" field. + public const int FloatValueFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double FloatValue { + get { return HasFloatValue ? (double) type_ : 0D; } + set { + type_ = value; + typeCase_ = TypeOneofCase.FloatValue; + } + } + /// Gets whether the "float_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFloatValue { + get { return typeCase_ == TypeOneofCase.FloatValue; } + } + /// Clears the value of the oneof if it's currently set to "float_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFloatValue() { + if (HasFloatValue) { + ClearType(); + } + } + + /// Field number for the "string_value" field. + public const int StringValueFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string StringValue { + get { return HasStringValue ? (string) type_ : ""; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + typeCase_ = TypeOneofCase.StringValue; + } + } + /// Gets whether the "string_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStringValue { + get { return typeCase_ == TypeOneofCase.StringValue; } + } + /// Clears the value of the oneof if it's currently set to "string_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStringValue() { + if (HasStringValue) { + ClearType(); + } + } + + /// Field number for the "blob_value" field. + public const int BlobValueFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString BlobValue { + get { return HasBlobValue ? (pb::ByteString) type_ : pb::ByteString.Empty; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + typeCase_ = TypeOneofCase.BlobValue; + } + } + /// Gets whether the "blob_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBlobValue { + get { return typeCase_ == TypeOneofCase.BlobValue; } + } + /// Clears the value of the oneof if it's currently set to "blob_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBlobValue() { + if (HasBlobValue) { + ClearType(); + } + } + + /// Field number for the "uint_value" field. + public const int UintValueFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong UintValue { + get { return HasUintValue ? (ulong) type_ : 0UL; } + set { + type_ = value; + typeCase_ = TypeOneofCase.UintValue; + } + } + /// Gets whether the "uint_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUintValue { + get { return typeCase_ == TypeOneofCase.UintValue; } + } + /// Clears the value of the oneof if it's currently set to "uint_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUintValue() { + if (HasUintValue) { + ClearType(); + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + BoolValue = 1, + IntValue = 2, + FloatValue = 3, + StringValue = 4, + BlobValue = 5, + UintValue = 6, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Variant); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Variant other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BoolValue != other.BoolValue) return false; + if (IntValue != other.IntValue) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FloatValue, other.FloatValue)) return false; + if (StringValue != other.StringValue) return false; + if (BlobValue != other.BlobValue) return false; + if (UintValue != other.UintValue) return false; + if (TypeCase != other.TypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasBoolValue) hash ^= BoolValue.GetHashCode(); + if (HasIntValue) hash ^= IntValue.GetHashCode(); + if (HasFloatValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FloatValue); + if (HasStringValue) hash ^= StringValue.GetHashCode(); + if (HasBlobValue) hash ^= BlobValue.GetHashCode(); + if (HasUintValue) hash ^= UintValue.GetHashCode(); + hash ^= (int) typeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasBoolValue) { + output.WriteRawTag(8); + output.WriteBool(BoolValue); + } + if (HasIntValue) { + output.WriteRawTag(16); + output.WriteInt64(IntValue); + } + if (HasFloatValue) { + output.WriteRawTag(25); + output.WriteDouble(FloatValue); + } + if (HasStringValue) { + output.WriteRawTag(34); + output.WriteString(StringValue); + } + if (HasBlobValue) { + output.WriteRawTag(42); + output.WriteBytes(BlobValue); + } + if (HasUintValue) { + output.WriteRawTag(48); + output.WriteUInt64(UintValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasBoolValue) { + size += 1 + 1; + } + if (HasIntValue) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntValue); + } + if (HasFloatValue) { + size += 1 + 8; + } + if (HasStringValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); + } + if (HasBlobValue) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(BlobValue); + } + if (HasUintValue) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UintValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Variant other) { + if (other == null) { + return; + } + switch (other.TypeCase) { + case TypeOneofCase.BoolValue: + BoolValue = other.BoolValue; + break; + case TypeOneofCase.IntValue: + IntValue = other.IntValue; + break; + case TypeOneofCase.FloatValue: + FloatValue = other.FloatValue; + break; + case TypeOneofCase.StringValue: + StringValue = other.StringValue; + break; + case TypeOneofCase.BlobValue: + BlobValue = other.BlobValue; + break; + case TypeOneofCase.UintValue: + UintValue = other.UintValue; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BoolValue = input.ReadBool(); + break; + } + case 16: { + IntValue = input.ReadInt64(); + break; + } + case 25: { + FloatValue = input.ReadDouble(); + break; + } + case 34: { + StringValue = input.ReadString(); + break; + } + case 42: { + BlobValue = input.ReadBytes(); + break; + } + case 48: { + UintValue = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class Attribute : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Attribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Attribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Attribute(Attribute other) : this() { + name_ = other.name_; + value_ = other.HasValue ? other.value_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Attribute Clone() { + return new Attribute(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private global::Bgs.Protocol.V2.Variant value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.V2.Variant Value { + get { return value_; } + set { + value_ = value; + } + } + /// Gets whether the value field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the value field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Attribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Attribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Attribute other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasValue) { + if (!HasValue) { + Value = new global::Bgs.Protocol.V2.Variant(); + } + Value.MergeFrom(other.Value); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (!HasValue) { + Value = new global::Bgs.Protocol.V2.Variant(); + } + input.ReadMessage(Value); + break; + } + } + } + } + + } + + public sealed partial class AttributeFilter : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttributeFilter()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttributeFilter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttributeFilter(AttributeFilter other) : this() { + _hasBits0 = other._hasBits0; + op_ = other.op_; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttributeFilter Clone() { + return new AttributeFilter(this); + } + + /// Field number for the "op" field. + public const int OpFieldNumber = 1; + private readonly static global::Bgs.Protocol.V2.AttributeFilter.Types.Operation OpDefaultValue = global::Bgs.Protocol.V2.AttributeFilter.Types.Operation.MatchNone; + + private global::Bgs.Protocol.V2.AttributeFilter.Types.Operation op_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.V2.AttributeFilter.Types.Operation Op { + get { if ((_hasBits0 & 1) != 0) { return op_; } else { return OpDefaultValue; } } + set { + _hasBits0 |= 1; + op_ = value; + } + } + /// Gets whether the "op" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "op" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOp() { + _hasBits0 &= ~1; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AttributeFilter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AttributeFilter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Op != other.Op) return false; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasOp) hash ^= Op.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasOp) { + output.WriteRawTag(8); + output.WriteEnum((int) Op); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasOp) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Op); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AttributeFilter other) { + if (other == null) { + return; + } + if (other.HasOp) { + Op = other.Op; + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Op = (global::Bgs.Protocol.V2.AttributeFilter.Types.Operation) input.ReadEnum(); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the AttributeFilter message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum Operation { + [pbr::OriginalName("MATCH_NONE")] MatchNone = 0, + [pbr::OriginalName("MATCH_ANY")] MatchAny = 1, + [pbr::OriginalName("MATCH_ALL")] MatchAll = 2, + [pbr::OriginalName("MATCH_ALL_MOST_SPECIFIC")] MatchAllMostSpecific = 3, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/Api/V2/ReportService.cs b/Source/Framework/Proto/Api/V2/ReportService.cs new file mode 100644 index 000000000..2bf774564 --- /dev/null +++ b/Source/Framework/Proto/Api/V2/ReportService.cs @@ -0,0 +1,416 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/api/client/v2/report_service.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Report.V2 { + + /// Holder for reflection information generated from bgs/low/pb/client/api/client/v2/report_service.proto + public static partial class ReportServiceReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/api/client/v2/report_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReportServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjRiZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL3JlcG9ydF9zZXJ2", + "aWNlLnByb3RvEhZiZ3MucHJvdG9jb2wucmVwb3J0LnYyGiViZ3MvbG93L3Bi", + "L2NsaWVudC9hY2NvdW50X3R5cGVzLnByb3RvGjJiZ3MvbG93L3BiL2NsaWVu", + "dC9hcGkvY2xpZW50L3YyL3JlcG9ydF90eXBlcy5wcm90bxohYmdzL2xvdy9w", + "Yi9jbGllbnQvcnBjX3R5cGVzLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9n", + "bG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9s", + "b3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMu", + "cHJvdG8aOGJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21l", + "dGhvZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxf", + "ZXh0ZW5zaW9ucy9zZXJ2aWNlX29wdGlvbnMucHJvdG8igAIKE1N1Ym1pdFJl", + "cG9ydFJlcXVlc3QSNAoIYWdlbnRfaWQYASABKAsyIi5iZ3MucHJvdG9jb2wu", + "YWNjb3VudC52MS5BY2NvdW50SWQSGAoQdXNlcl9kZXNjcmlwdGlvbhgCIAEo", + "CRIPCgdwcm9ncmFtGAMgASgNEjsKDHVzZXJfb3B0aW9ucxgKIAEoCzIjLmJn", + "cy5wcm90b2NvbC5yZXBvcnQudjIuVXNlck9wdGlvbnNIABI7CgxjbHViX29w", + "dGlvbnMYCyABKAsyIy5iZ3MucHJvdG9jb2wucmVwb3J0LnYyLkNsdWJPcHRp", + "b25zSAA6BoL5KwIQAUIGCgR0eXBlMqkBCg1SZXBvcnRTZXJ2aWNlElkKDFN1", + "Ym1pdFJlcG9ydBIrLmJncy5wcm90b2NvbC5yZXBvcnQudjIuU3VibWl0UmVw", + "b3J0UmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIARo9gvkr", + "JwolYm5ldC5wcm90b2NvbC5yZXBvcnQudjIuUmVwb3J0U2VydmljZYL5Kwgq", + "BnJlcG9ydIr5KwIQAUIDgAEA")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.Report.V2.ReportTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V2.SubmitReportRequest), global::Bgs.Protocol.Report.V2.SubmitReportRequest.Parser, new[]{ "AgentId", "UserDescription", "Program", "UserOptions", "ClubOptions" }, new[]{ "Type" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SubmitReportRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubmitReportRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V2.ReportServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubmitReportRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubmitReportRequest(SubmitReportRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + userDescription_ = other.userDescription_; + program_ = other.program_; + switch (other.TypeCase) { + case TypeOneofCase.UserOptions: + UserOptions = other.UserOptions.Clone(); + break; + case TypeOneofCase.ClubOptions: + ClubOptions = other.ClubOptions.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubmitReportRequest Clone() { + return new SubmitReportRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "user_description" field. + public const int UserDescriptionFieldNumber = 2; + private readonly static string UserDescriptionDefaultValue = ""; + + private string userDescription_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string UserDescription { + get { return userDescription_ ?? UserDescriptionDefaultValue; } + set { + userDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "user_description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUserDescription { + get { return userDescription_ != null; } + } + /// Clears the value of the "user_description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUserDescription() { + userDescription_ = null; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 3; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + /// Field number for the "user_options" field. + public const int UserOptionsFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V2.UserOptions UserOptions { + get { return HasUserOptions ? (global::Bgs.Protocol.Report.V2.UserOptions) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.UserOptions; + } + } + /// Gets whether the "user_options" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUserOptions { + get { return typeCase_ == TypeOneofCase.UserOptions; } + } + /// Clears the value of the oneof if it's currently set to "user_options" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUserOptions() { + if (HasUserOptions) { + ClearType(); + } + } + + /// Field number for the "club_options" field. + public const int ClubOptionsFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V2.ClubOptions ClubOptions { + get { return HasClubOptions ? (global::Bgs.Protocol.Report.V2.ClubOptions) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.ClubOptions; + } + } + /// Gets whether the "club_options" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubOptions { + get { return typeCase_ == TypeOneofCase.ClubOptions; } + } + /// Clears the value of the oneof if it's currently set to "club_options" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubOptions() { + if (HasClubOptions) { + ClearType(); + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + UserOptions = 10, + ClubOptions = 11, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubmitReportRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubmitReportRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (UserDescription != other.UserDescription) return false; + if (Program != other.Program) return false; + if (!object.Equals(UserOptions, other.UserOptions)) return false; + if (!object.Equals(ClubOptions, other.ClubOptions)) return false; + if (TypeCase != other.TypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasUserDescription) hash ^= UserDescription.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasUserOptions) hash ^= UserOptions.GetHashCode(); + if (HasClubOptions) hash ^= ClubOptions.GetHashCode(); + hash ^= (int) typeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasUserDescription) { + output.WriteRawTag(18); + output.WriteString(UserDescription); + } + if (HasProgram) { + output.WriteRawTag(24); + output.WriteUInt32(Program); + } + if (HasUserOptions) { + output.WriteRawTag(82); + output.WriteMessage(UserOptions); + } + if (HasClubOptions) { + output.WriteRawTag(90); + output.WriteMessage(ClubOptions); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasUserDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserDescription); + } + if (HasProgram) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program); + } + if (HasUserOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserOptions); + } + if (HasClubOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClubOptions); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubmitReportRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasUserDescription) { + UserDescription = other.UserDescription; + } + if (other.HasProgram) { + Program = other.Program; + } + switch (other.TypeCase) { + case TypeOneofCase.UserOptions: + if (UserOptions == null) { + UserOptions = new global::Bgs.Protocol.Report.V2.UserOptions(); + } + UserOptions.MergeFrom(other.UserOptions); + break; + case TypeOneofCase.ClubOptions: + if (ClubOptions == null) { + ClubOptions = new global::Bgs.Protocol.Report.V2.ClubOptions(); + } + ClubOptions.MergeFrom(other.ClubOptions); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + UserDescription = input.ReadString(); + break; + } + case 24: { + Program = input.ReadUInt32(); + break; + } + case 82: { + global::Bgs.Protocol.Report.V2.UserOptions subBuilder = new global::Bgs.Protocol.Report.V2.UserOptions(); + if (HasUserOptions) { + subBuilder.MergeFrom(UserOptions); + } + input.ReadMessage(subBuilder); + UserOptions = subBuilder; + break; + } + case 90: { + global::Bgs.Protocol.Report.V2.ClubOptions subBuilder = new global::Bgs.Protocol.Report.V2.ClubOptions(); + if (HasClubOptions) { + subBuilder.MergeFrom(ClubOptions); + } + input.ReadMessage(subBuilder); + ClubOptions = subBuilder; + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/Api/V2/ReportTypes.cs b/Source/Framework/Proto/Api/V2/ReportTypes.cs new file mode 100644 index 000000000..384a6d1ea --- /dev/null +++ b/Source/Framework/Proto/Api/V2/ReportTypes.cs @@ -0,0 +1,865 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/api/client/v2/report_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Report.V2 { + + /// Holder for reflection information generated from bgs/low/pb/client/api/client/v2/report_types.proto + public static partial class ReportTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/api/client/v2/report_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReportTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjJiZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL3JlcG9ydF90eXBl", + "cy5wcm90bxIWYmdzLnByb3RvY29sLnJlcG9ydC52MholYmdzL2xvdy9wYi9j", + "bGllbnQvYWNjb3VudF90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQv", + "cnBjX3R5cGVzLnByb3RvGiViZ3MvbG93L3BiL2NsaWVudC9tZXNzYWdlX3R5", + "cGVzLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u", + "cy9tZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIvY2xpZW50L2ds", + "b2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOGJncy9sb3cv", + "cGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnBy", + "b3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2", + "aWNlX29wdGlvbnMucHJvdG8iQwoKUmVwb3J0SXRlbRItCgptZXNzYWdlX2lk", + "GAEgASgLMhcuYmdzLnByb3RvY29sLk1lc3NhZ2VJZEgAQgYKBHR5cGUi/wEK", + "C1VzZXJPcHRpb25zEjUKCXRhcmdldF9pZBgBIAEoCzIiLmJncy5wcm90b2Nv", + "bC5hY2NvdW50LnYxLkFjY291bnRJZBJACgR0eXBlGAIgASgOMiEuYmdzLnBy", + "b3RvY29sLnJlcG9ydC52Mi5Jc3N1ZVR5cGU6D0lTU1VFX1RZUEVfU1BBTRJF", + "CgZzb3VyY2UYAyABKA4yIi5iZ3MucHJvdG9jb2wucmVwb3J0LnYyLlVzZXJT", + "b3VyY2U6EVVTRVJfU09VUkNFX09USEVSEjAKBGl0ZW0YBCABKAsyIi5iZ3Mu", + "cHJvdG9jb2wucmVwb3J0LnYyLlJlcG9ydEl0ZW0i7AEKC0NsdWJPcHRpb25z", + "Eg8KB2NsdWJfaWQYASABKAQSEQoJc3RyZWFtX2lkGAIgASgEEkAKBHR5cGUY", + "AyABKA4yIS5iZ3MucHJvdG9jb2wucmVwb3J0LnYyLklzc3VlVHlwZToPSVNT", + "VUVfVFlQRV9TUEFNEkUKBnNvdXJjZRgEIAEoDjIiLmJncy5wcm90b2NvbC5y", + "ZXBvcnQudjIuQ2x1YlNvdXJjZToRQ0xVQl9TT1VSQ0VfT1RIRVISMAoEaXRl", + "bRgFIAEoCzIiLmJncy5wcm90b2NvbC5yZXBvcnQudjIuUmVwb3J0SXRlbSqN", + "AQoJSXNzdWVUeXBlEhMKD0lTU1VFX1RZUEVfU1BBTRAAEhkKFUlTU1VFX1RZ", + "UEVfSEFSQVNTTUVOVBABEiAKHElTU1VFX1RZUEVfT0ZGRU5TSVZFX0NPTlRF", + "TlQQAxIWChJJU1NVRV9UWVBFX0hBQ0tJTkcQBBIWChJJU1NVRV9UWVBFX0JP", + "VFRJTkcQBSrBAQoKVXNlclNvdXJjZRIVChFVU0VSX1NPVVJDRV9PVEhFUhAA", + "EhcKE1VTRVJfU09VUkNFX1dISVNQRVIQARIXChNVU0VSX1NPVVJDRV9QUk9G", + "SUxFEAISGgoWVVNFUl9TT1VSQ0VfQkFUVExFX1RBRxADEhQKEFVTRVJfU09V", + "UkNFX0NIQVQQBBIhCh1VU0VSX1NPVVJDRV9GUklFTkRfSU5WSVRBVElPThAF", + "EhUKEVVTRVJfU09VUkNFX1ZPSUNFEAYqdAoKQ2x1YlNvdXJjZRIVChFDTFVC", + "X1NPVVJDRV9PVEhFUhAAEhcKE0NMVUJfU09VUkNFX01FU1NBR0UQARIZChVD", + "TFVCX1NPVVJDRV9DTFVCX05BTUUQAhIbChdDTFVCX1NPVVJDRV9TVFJFQU1f", + "TkFNRRADQgOAAQA=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.Report.V2.IssueType), typeof(global::Bgs.Protocol.Report.V2.UserSource), typeof(global::Bgs.Protocol.Report.V2.ClubSource), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V2.ReportItem), global::Bgs.Protocol.Report.V2.ReportItem.Parser, new[]{ "MessageId" }, new[]{ "Type" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V2.UserOptions), global::Bgs.Protocol.Report.V2.UserOptions.Parser, new[]{ "TargetId", "Type", "Source", "Item" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V2.ClubOptions), global::Bgs.Protocol.Report.V2.ClubOptions.Parser, new[]{ "ClubId", "StreamId", "Type", "Source", "Item" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum IssueType { + [pbr::OriginalName("ISSUE_TYPE_SPAM")] Spam = 0, + [pbr::OriginalName("ISSUE_TYPE_HARASSMENT")] Harassment = 1, + [pbr::OriginalName("ISSUE_TYPE_OFFENSIVE_CONTENT")] OffensiveContent = 3, + [pbr::OriginalName("ISSUE_TYPE_HACKING")] Hacking = 4, + [pbr::OriginalName("ISSUE_TYPE_BOTTING")] Botting = 5, + } + + public enum UserSource { + [pbr::OriginalName("USER_SOURCE_OTHER")] Other = 0, + [pbr::OriginalName("USER_SOURCE_WHISPER")] Whisper = 1, + [pbr::OriginalName("USER_SOURCE_PROFILE")] Profile = 2, + [pbr::OriginalName("USER_SOURCE_BATTLE_TAG")] BattleTag = 3, + [pbr::OriginalName("USER_SOURCE_CHAT")] Chat = 4, + [pbr::OriginalName("USER_SOURCE_FRIEND_INVITATION")] FriendInvitation = 5, + [pbr::OriginalName("USER_SOURCE_VOICE")] Voice = 6, + } + + public enum ClubSource { + [pbr::OriginalName("CLUB_SOURCE_OTHER")] Other = 0, + [pbr::OriginalName("CLUB_SOURCE_MESSAGE")] Message = 1, + [pbr::OriginalName("CLUB_SOURCE_CLUB_NAME")] ClubName = 2, + [pbr::OriginalName("CLUB_SOURCE_STREAM_NAME")] StreamName = 3, + } + + #endregion + + #region Messages + public sealed partial class ReportItem : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReportItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V2.ReportTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReportItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReportItem(ReportItem other) : this() { + switch (other.TypeCase) { + case TypeOneofCase.MessageId: + MessageId = other.MessageId.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReportItem Clone() { + return new ReportItem(this); + } + + /// Field number for the "message_id" field. + public const int MessageIdFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.MessageId MessageId { + get { return HasMessageId ? (global::Bgs.Protocol.MessageId) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.MessageId; + } + } + /// Gets whether the "message_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessageId { + get { return typeCase_ == TypeOneofCase.MessageId; } + } + /// Clears the value of the oneof if it's currently set to "message_id" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageId() { + if (HasMessageId) { + ClearType(); + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + MessageId = 1, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReportItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReportItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MessageId, other.MessageId)) return false; + if (TypeCase != other.TypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMessageId) hash ^= MessageId.GetHashCode(); + hash ^= (int) typeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMessageId) { + output.WriteRawTag(10); + output.WriteMessage(MessageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMessageId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReportItem other) { + if (other == null) { + return; + } + switch (other.TypeCase) { + case TypeOneofCase.MessageId: + if (MessageId == null) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + MessageId.MergeFrom(other.MessageId); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Bgs.Protocol.MessageId subBuilder = new global::Bgs.Protocol.MessageId(); + if (HasMessageId) { + subBuilder.MergeFrom(MessageId); + } + input.ReadMessage(subBuilder); + MessageId = subBuilder; + break; + } + } + } + } + + } + + public sealed partial class UserOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V2.ReportTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UserOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UserOptions(UserOptions other) : this() { + _hasBits0 = other._hasBits0; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + type_ = other.type_; + source_ = other.source_; + item_ = other.HasItem ? other.item_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UserOptions Clone() { + return new UserOptions(this); + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static global::Bgs.Protocol.Report.V2.IssueType TypeDefaultValue = global::Bgs.Protocol.Report.V2.IssueType.Spam; + + private global::Bgs.Protocol.Report.V2.IssueType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V2.IssueType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 3; + private readonly static global::Bgs.Protocol.Report.V2.UserSource SourceDefaultValue = global::Bgs.Protocol.Report.V2.UserSource.Other; + + private global::Bgs.Protocol.Report.V2.UserSource source_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V2.UserSource Source { + get { if ((_hasBits0 & 2) != 0) { return source_; } else { return SourceDefaultValue; } } + set { + _hasBits0 |= 2; + source_ = value; + } + } + /// Gets whether the "source" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSource { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "source" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSource() { + _hasBits0 &= ~2; + } + + /// Field number for the "item" field. + public const int ItemFieldNumber = 4; + private global::Bgs.Protocol.Report.V2.ReportItem item_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V2.ReportItem Item { + get { return item_; } + set { + item_ = value; + } + } + /// Gets whether the item field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasItem { + get { return item_ != null; } + } + /// Clears the value of the item field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearItem() { + item_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UserOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UserOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TargetId, other.TargetId)) return false; + if (Type != other.Type) return false; + if (Source != other.Source) return false; + if (!object.Equals(Item, other.Item)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasSource) hash ^= Source.GetHashCode(); + if (HasItem) hash ^= Item.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTargetId) { + output.WriteRawTag(10); + output.WriteMessage(TargetId); + } + if (HasType) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (HasSource) { + output.WriteRawTag(24); + output.WriteEnum((int) Source); + } + if (HasItem) { + output.WriteRawTag(34); + output.WriteMessage(Item); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasSource) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (HasItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UserOptions other) { + if (other == null) { + return; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + TargetId.MergeFrom(other.TargetId); + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasSource) { + Source = other.Source; + } + if (other.HasItem) { + if (!HasItem) { + Item = new global::Bgs.Protocol.Report.V2.ReportItem(); + } + Item.MergeFrom(other.Item); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(TargetId); + break; + } + case 16: { + Type = (global::Bgs.Protocol.Report.V2.IssueType) input.ReadEnum(); + break; + } + case 24: { + Source = (global::Bgs.Protocol.Report.V2.UserSource) input.ReadEnum(); + break; + } + case 34: { + if (!HasItem) { + Item = new global::Bgs.Protocol.Report.V2.ReportItem(); + } + input.ReadMessage(Item); + break; + } + } + } + } + + } + + public sealed partial class ClubOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V2.ReportTypesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubOptions(ClubOptions other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + type_ = other.type_; + source_ = other.source_; + item_ = other.HasItem ? other.item_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubOptions Clone() { + return new ClubOptions(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 2; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 3; + private readonly static global::Bgs.Protocol.Report.V2.IssueType TypeDefaultValue = global::Bgs.Protocol.Report.V2.IssueType.Spam; + + private global::Bgs.Protocol.Report.V2.IssueType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V2.IssueType Type { + get { if ((_hasBits0 & 4) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 4; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + _hasBits0 &= ~4; + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 4; + private readonly static global::Bgs.Protocol.Report.V2.ClubSource SourceDefaultValue = global::Bgs.Protocol.Report.V2.ClubSource.Other; + + private global::Bgs.Protocol.Report.V2.ClubSource source_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V2.ClubSource Source { + get { if ((_hasBits0 & 8) != 0) { return source_; } else { return SourceDefaultValue; } } + set { + _hasBits0 |= 8; + source_ = value; + } + } + /// Gets whether the "source" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSource { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "source" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSource() { + _hasBits0 &= ~8; + } + + /// Field number for the "item" field. + public const int ItemFieldNumber = 5; + private global::Bgs.Protocol.Report.V2.ReportItem item_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V2.ReportItem Item { + get { return item_; } + set { + item_ = value; + } + } + /// Gets whether the item field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasItem { + get { return item_ != null; } + } + /// Clears the value of the item field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearItem() { + item_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (Type != other.Type) return false; + if (Source != other.Source) return false; + if (!object.Equals(Item, other.Item)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasSource) hash ^= Source.GetHashCode(); + if (HasItem) hash ^= Item.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(16); + output.WriteUInt64(StreamId); + } + if (HasType) { + output.WriteRawTag(24); + output.WriteEnum((int) Type); + } + if (HasSource) { + output.WriteRawTag(32); + output.WriteEnum((int) Source); + } + if (HasItem) { + output.WriteRawTag(42); + output.WriteMessage(Item); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasSource) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (HasItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubOptions other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasSource) { + Source = other.Source; + } + if (other.HasItem) { + if (!HasItem) { + Item = new global::Bgs.Protocol.Report.V2.ReportItem(); + } + Item.MergeFrom(other.Item); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + case 16: { + StreamId = input.ReadUInt64(); + break; + } + case 24: { + Type = (global::Bgs.Protocol.Report.V2.IssueType) input.ReadEnum(); + break; + } + case 32: { + Source = (global::Bgs.Protocol.Report.V2.ClubSource) input.ReadEnum(); + break; + } + case 42: { + if (!HasItem) { + Item = new global::Bgs.Protocol.Report.V2.ReportItem(); + } + input.ReadMessage(Item); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/AttributeTypes.cs b/Source/Framework/Proto/AttributeTypes.cs index 7e54726d2..c4c802b6d 100644 --- a/Source/Framework/Proto/AttributeTypes.cs +++ b/Source/Framework/Proto/AttributeTypes.cs @@ -1,794 +1,892 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/attribute_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/attribute_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/attribute_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class AttributeTypesReflection - { - - #region Descriptor - /// File descriptor for bgs/low/pb/client/attribute_types.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AttributeTypesReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "CidiZ3MvbG93L3BiL2NsaWVudC9hdHRyaWJ1dGVfdHlwZXMucHJvdG8SDGJn", - "cy5wcm90b2NvbBokYmdzL2xvdy9wYi9jbGllbnQvZW50aXR5X3R5cGVzLnBy", - "b3RvIuEBCgdWYXJpYW50EhIKCmJvb2xfdmFsdWUYAiABKAgSEQoJaW50X3Zh", - "bHVlGAMgASgDEhMKC2Zsb2F0X3ZhbHVlGAQgASgBEhQKDHN0cmluZ192YWx1", - "ZRgFIAEoCRISCgpibG9iX3ZhbHVlGAYgASgMEhUKDW1lc3NhZ2VfdmFsdWUY", - "ByABKAwSFAoMZm91cmNjX3ZhbHVlGAggASgJEhIKCnVpbnRfdmFsdWUYCSAB", - "KAQSLwoPZW50aXR5X2lkX3ZhbHVlGAogASgLMhYuYmdzLnByb3RvY29sLkVu", - "dGl0eUlkIj8KCUF0dHJpYnV0ZRIMCgRuYW1lGAEgASgJEiQKBXZhbHVlGAIg", - "ASgLMhUuYmdzLnByb3RvY29sLlZhcmlhbnQiygEKD0F0dHJpYnV0ZUZpbHRl", - "chIzCgJvcBgBIAEoDjInLmJncy5wcm90b2NvbC5BdHRyaWJ1dGVGaWx0ZXIu", - "T3BlcmF0aW9uEioKCWF0dHJpYnV0ZRgCIAMoCzIXLmJncy5wcm90b2NvbC5B", - "dHRyaWJ1dGUiVgoJT3BlcmF0aW9uEg4KCk1BVENIX05PTkUQABINCglNQVRD", - "SF9BTlkQARINCglNQVRDSF9BTEwQAhIbChdNQVRDSF9BTExfTU9TVF9TUEVD", - "SUZJQxADQiEKDWJuZXQucHJvdG9jb2xCDkF0dHJpYnV0ZVByb3RvSAJiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.EntityTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Variant), Bgs.Protocol.Variant.Parser, new[]{ "BoolValue", "IntValue", "FloatValue", "StringValue", "BlobValue", "MessageValue", "FourccValue", "UintValue", "EntityIdValue" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Attribute), Bgs.Protocol.Attribute.Parser, new[]{ "Name", "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.AttributeFilter), Bgs.Protocol.AttributeFilter.Parser, new[]{ "Op", "Attribute" }, null, new[]{ typeof(Bgs.Protocol.AttributeFilter.Types.Operation) }, null) - })); - } - #endregion + /// Holder for reflection information generated from bgs/low/pb/client/attribute_types.proto + public static partial class AttributeTypesReflection { + #region Descriptor + /// File descriptor for bgs/low/pb/client/attribute_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Variant : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Variant()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public Variant() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public Variant(Variant other) : this() - { - boolValue_ = other.boolValue_; - intValue_ = other.intValue_; - floatValue_ = other.floatValue_; - stringValue_ = other.stringValue_; - blobValue_ = other.blobValue_; - messageValue_ = other.messageValue_; - fourccValue_ = other.fourccValue_; - uintValue_ = other.uintValue_; - EntityIdValue = other.entityIdValue_ != null ? other.EntityIdValue.Clone() : null; - } - - public Variant Clone() - { - return new Variant(this); - } - - /// Field number for the "bool_value" field. - public const int BoolValueFieldNumber = 2; - private bool boolValue_; - public bool BoolValue - { - get { return boolValue_; } - set - { - boolValue_ = value; - } - } - - /// Field number for the "int_value" field. - public const int IntValueFieldNumber = 3; - private long intValue_; - public long IntValue - { - get { return intValue_; } - set - { - intValue_ = value; - } - } - - /// Field number for the "float_value" field. - public const int FloatValueFieldNumber = 4; - private double floatValue_; - public double FloatValue - { - get { return floatValue_; } - set - { - floatValue_ = value; - } - } - - /// Field number for the "string_value" field. - public const int StringValueFieldNumber = 5; - private string stringValue_ = ""; - public string StringValue - { - get { return stringValue_; } - set - { - stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "blob_value" field. - public const int BlobValueFieldNumber = 6; - private pb::ByteString blobValue_ = pb::ByteString.Empty; - public pb::ByteString BlobValue - { - get { return blobValue_; } - set - { - blobValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "message_value" field. - public const int MessageValueFieldNumber = 7; - private pb::ByteString messageValue_ = pb::ByteString.Empty; - public pb::ByteString MessageValue - { - get { return messageValue_; } - set - { - messageValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "fourcc_value" field. - public const int FourccValueFieldNumber = 8; - private string fourccValue_ = ""; - public string FourccValue - { - get { return fourccValue_; } - set - { - fourccValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "uint_value" field. - public const int UintValueFieldNumber = 9; - private ulong uintValue_; - public ulong UintValue - { - get { return uintValue_; } - set - { - uintValue_ = value; - } - } - - /// Field number for the "entity_id_value" field. - public const int EntityIdValueFieldNumber = 10; - private Bgs.Protocol.EntityId entityIdValue_; - public Bgs.Protocol.EntityId EntityIdValue - { - get { return entityIdValue_; } - set - { - entityIdValue_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as Variant); - } - - public bool Equals(Variant other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (BoolValue != other.BoolValue) return false; - if (IntValue != other.IntValue) return false; - if (FloatValue != other.FloatValue) return false; - if (StringValue != other.StringValue) return false; - if (BlobValue != other.BlobValue) return false; - if (MessageValue != other.MessageValue) return false; - if (FourccValue != other.FourccValue) return false; - if (UintValue != other.UintValue) return false; - if (!object.Equals(EntityIdValue, other.EntityIdValue)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (BoolValue != false) hash ^= BoolValue.GetHashCode(); - if (IntValue != 0L) hash ^= IntValue.GetHashCode(); - if (FloatValue != 0D) hash ^= FloatValue.GetHashCode(); - if (StringValue.Length != 0) hash ^= StringValue.GetHashCode(); - if (BlobValue.Length != 0) hash ^= BlobValue.GetHashCode(); - if (MessageValue.Length != 0) hash ^= MessageValue.GetHashCode(); - if (FourccValue.Length != 0) hash ^= FourccValue.GetHashCode(); - if (UintValue != 0UL) hash ^= UintValue.GetHashCode(); - if (entityIdValue_ != null) hash ^= EntityIdValue.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (BoolValue != false) - { - output.WriteRawTag(16); - output.WriteBool(BoolValue); - } - if (IntValue != 0L) - { - output.WriteRawTag(24); - output.WriteInt64(IntValue); - } - if (FloatValue != 0D) - { - output.WriteRawTag(33); - output.WriteDouble(FloatValue); - } - if (StringValue.Length != 0) - { - output.WriteRawTag(42); - output.WriteString(StringValue); - } - if (BlobValue.Length != 0) - { - output.WriteRawTag(50); - output.WriteBytes(BlobValue); - } - if (MessageValue.Length != 0) - { - output.WriteRawTag(58); - output.WriteBytes(MessageValue); - } - if (FourccValue.Length != 0) - { - output.WriteRawTag(66); - output.WriteString(FourccValue); - } - if (UintValue != 0UL) - { - output.WriteRawTag(72); - output.WriteUInt64(UintValue); - } - if (entityIdValue_ != null) - { - output.WriteRawTag(82); - output.WriteMessage(EntityIdValue); - } - } - - public int CalculateSize() - { - int size = 0; - if (BoolValue != false) - { - size += 1 + 1; - } - if (IntValue != 0L) - { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntValue); - } - if (FloatValue != 0D) - { - size += 1 + 8; - } - if (StringValue.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); - } - if (BlobValue.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(BlobValue); - } - if (MessageValue.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(MessageValue); - } - if (FourccValue.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FourccValue); - } - if (UintValue != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UintValue); - } - if (entityIdValue_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityIdValue); - } - return size; - } - - public void MergeFrom(Variant other) - { - if (other == null) - { - return; - } - if (other.BoolValue != false) - { - BoolValue = other.BoolValue; - } - if (other.IntValue != 0L) - { - IntValue = other.IntValue; - } - if (other.FloatValue != 0D) - { - FloatValue = other.FloatValue; - } - if (other.StringValue.Length != 0) - { - StringValue = other.StringValue; - } - if (other.BlobValue.Length != 0) - { - BlobValue = other.BlobValue; - } - if (other.MessageValue.Length != 0) - { - MessageValue = other.MessageValue; - } - if (other.FourccValue.Length != 0) - { - FourccValue = other.FourccValue; - } - if (other.UintValue != 0UL) - { - UintValue = other.UintValue; - } - if (other.entityIdValue_ != null) - { - if (entityIdValue_ == null) - { - entityIdValue_ = new Bgs.Protocol.EntityId(); - } - EntityIdValue.MergeFrom(other.EntityIdValue); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 16: - { - BoolValue = input.ReadBool(); - break; - } - case 24: - { - IntValue = input.ReadInt64(); - break; - } - case 33: - { - FloatValue = input.ReadDouble(); - break; - } - case 42: - { - StringValue = input.ReadString(); - break; - } - case 50: - { - BlobValue = input.ReadBytes(); - break; - } - case 58: - { - MessageValue = input.ReadBytes(); - break; - } - case 66: - { - FourccValue = input.ReadString(); - break; - } - case 72: - { - UintValue = input.ReadUInt64(); - break; - } - case 82: - { - if (entityIdValue_ == null) - { - entityIdValue_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(entityIdValue_); - break; - } - } - } - } + private static pbr::FileDescriptor descriptor; + static AttributeTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CidiZ3MvbG93L3BiL2NsaWVudC9hdHRyaWJ1dGVfdHlwZXMucHJvdG8SDGJn", + "cy5wcm90b2NvbBokYmdzL2xvdy9wYi9jbGllbnQvZW50aXR5X3R5cGVzLnBy", + "b3RvIuEBCgdWYXJpYW50EhIKCmJvb2xfdmFsdWUYAiABKAgSEQoJaW50X3Zh", + "bHVlGAMgASgDEhMKC2Zsb2F0X3ZhbHVlGAQgASgBEhQKDHN0cmluZ192YWx1", + "ZRgFIAEoCRISCgpibG9iX3ZhbHVlGAYgASgMEhUKDW1lc3NhZ2VfdmFsdWUY", + "ByABKAwSFAoMZm91cmNjX3ZhbHVlGAggASgJEhIKCnVpbnRfdmFsdWUYCSAB", + "KAQSLwoPZW50aXR5X2lkX3ZhbHVlGAogASgLMhYuYmdzLnByb3RvY29sLkVu", + "dGl0eUlkIj8KCUF0dHJpYnV0ZRIMCgRuYW1lGAEgAigJEiQKBXZhbHVlGAIg", + "AigLMhUuYmdzLnByb3RvY29sLlZhcmlhbnQi1gEKD0F0dHJpYnV0ZUZpbHRl", + "chI/CgJvcBgBIAIoDjInLmJncy5wcm90b2NvbC5BdHRyaWJ1dGVGaWx0ZXIu", + "T3BlcmF0aW9uOgpNQVRDSF9OT05FEioKCWF0dHJpYnV0ZRgCIAMoCzIXLmJn", + "cy5wcm90b2NvbC5BdHRyaWJ1dGUiVgoJT3BlcmF0aW9uEg4KCk1BVENIX05P", + "TkUQABINCglNQVRDSF9BTlkQARINCglNQVRDSF9BTEwQAhIbChdNQVRDSF9B", + "TExfTU9TVF9TUEVDSUZJQxADQh8KDWJuZXQucHJvdG9jb2xCDkF0dHJpYnV0", + "ZVByb3Rv")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.EntityTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Variant), global::Bgs.Protocol.Variant.Parser, new[]{ "BoolValue", "IntValue", "FloatValue", "StringValue", "BlobValue", "MessageValue", "FourccValue", "UintValue", "EntityIdValue" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Attribute), global::Bgs.Protocol.Attribute.Parser, new[]{ "Name", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.AttributeFilter), global::Bgs.Protocol.AttributeFilter.Parser, new[]{ "Op", "Attribute" }, null, new[]{ typeof(global::Bgs.Protocol.AttributeFilter.Types.Operation) }, null, null) + })); } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Attribute : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Attribute()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public Attribute() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public Attribute(Attribute other) : this() - { - name_ = other.name_; - Value = other.value_ != null ? other.Value.Clone() : null; - } - - public Attribute Clone() - { - return new Attribute(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - public string Name - { - get { return name_; } - set - { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private Bgs.Protocol.Variant value_; - public Bgs.Protocol.Variant Value - { - get { return value_; } - set - { - value_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as Attribute); - } - - public bool Equals(Attribute other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Name != other.Name) return false; - if (!object.Equals(Value, other.Value)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (value_ != null) hash ^= Value.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Name.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (value_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(Value); - } - } - - public int CalculateSize() - { - int size = 0; - if (Name.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (value_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); - } - return size; - } - - public void MergeFrom(Attribute other) - { - if (other == null) - { - return; - } - if (other.Name.Length != 0) - { - Name = other.Name; - } - if (other.value_ != null) - { - if (value_ == null) - { - value_ = new Bgs.Protocol.Variant(); - } - Value.MergeFrom(other.Value); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Name = input.ReadString(); - break; - } - case 18: - { - if (value_ == null) - { - value_ = new Bgs.Protocol.Variant(); - } - input.ReadMessage(value_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AttributeFilter : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttributeFilter()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AttributeFilter() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AttributeFilter(AttributeFilter other) : this() - { - op_ = other.op_; - attribute_ = other.attribute_.Clone(); - } - - public AttributeFilter Clone() - { - return new AttributeFilter(this); - } - - /// Field number for the "op" field. - public const int OpFieldNumber = 1; - private Bgs.Protocol.AttributeFilter.Types.Operation op_ = Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE; - public Bgs.Protocol.AttributeFilter.Types.Operation Op - { - get { return op_; } - set - { - op_ = value; - } - } - - /// Field number for the "attribute" field. - public const int AttributeFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute - { - get { return attribute_; } - } - - public override bool Equals(object other) - { - return Equals(other as AttributeFilter); - } - - public bool Equals(AttributeFilter other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Op != other.Op) return false; - if (!attribute_.Equals(other.attribute_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Op != Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE) hash ^= Op.GetHashCode(); - hash ^= attribute_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Op != Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE) - { - output.WriteRawTag(8); - output.WriteEnum((int)Op); - } - attribute_.WriteTo(output, _repeated_attribute_codec); - } - - public int CalculateSize() - { - int size = 0; - if (Op != Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE) - { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)Op); - } - size += attribute_.CalculateSize(_repeated_attribute_codec); - return size; - } - - public void MergeFrom(AttributeFilter other) - { - if (other == null) - { - return; - } - if (other.Op != Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE) - { - Op = other.Op; - } - attribute_.Add(other.attribute_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - op_ = (Bgs.Protocol.AttributeFilter.Types.Operation)input.ReadEnum(); - break; - } - case 18: - { - attribute_.AddEntriesFrom(input, _repeated_attribute_codec); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the AttributeFilter message type. - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class Types - { - public enum Operation - { - MATCH_NONE = 0, - MATCH_ANY = 1, - MATCH_ALL = 2, - MATCH_ALL_MOST_SPECIFIC = 3, - } - - } - #endregion - - } - #endregion + } + #region Messages + public sealed partial class Variant : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Variant()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Variant() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Variant(Variant other) : this() { + _hasBits0 = other._hasBits0; + boolValue_ = other.boolValue_; + intValue_ = other.intValue_; + floatValue_ = other.floatValue_; + stringValue_ = other.stringValue_; + blobValue_ = other.blobValue_; + messageValue_ = other.messageValue_; + fourccValue_ = other.fourccValue_; + uintValue_ = other.uintValue_; + entityIdValue_ = other.HasEntityIdValue ? other.entityIdValue_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Variant Clone() { + return new Variant(this); + } + + /// Field number for the "bool_value" field. + public const int BoolValueFieldNumber = 2; + private readonly static bool BoolValueDefaultValue = false; + + private bool boolValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool BoolValue { + get { if ((_hasBits0 & 1) != 0) { return boolValue_; } else { return BoolValueDefaultValue; } } + set { + _hasBits0 |= 1; + boolValue_ = value; + } + } + /// Gets whether the "bool_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBoolValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bool_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBoolValue() { + _hasBits0 &= ~1; + } + + /// Field number for the "int_value" field. + public const int IntValueFieldNumber = 3; + private readonly static long IntValueDefaultValue = 0L; + + private long intValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long IntValue { + get { if ((_hasBits0 & 2) != 0) { return intValue_; } else { return IntValueDefaultValue; } } + set { + _hasBits0 |= 2; + intValue_ = value; + } + } + /// Gets whether the "int_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIntValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "int_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIntValue() { + _hasBits0 &= ~2; + } + + /// Field number for the "float_value" field. + public const int FloatValueFieldNumber = 4; + private readonly static double FloatValueDefaultValue = 0D; + + private double floatValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double FloatValue { + get { if ((_hasBits0 & 4) != 0) { return floatValue_; } else { return FloatValueDefaultValue; } } + set { + _hasBits0 |= 4; + floatValue_ = value; + } + } + /// Gets whether the "float_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFloatValue { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "float_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFloatValue() { + _hasBits0 &= ~4; + } + + /// Field number for the "string_value" field. + public const int StringValueFieldNumber = 5; + private readonly static string StringValueDefaultValue = ""; + + private string stringValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string StringValue { + get { return stringValue_ ?? StringValueDefaultValue; } + set { + stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "string_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStringValue { + get { return stringValue_ != null; } + } + /// Clears the value of the "string_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStringValue() { + stringValue_ = null; + } + + /// Field number for the "blob_value" field. + public const int BlobValueFieldNumber = 6; + private readonly static pb::ByteString BlobValueDefaultValue = pb::ByteString.Empty; + + private pb::ByteString blobValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString BlobValue { + get { return blobValue_ ?? BlobValueDefaultValue; } + set { + blobValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blob_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBlobValue { + get { return blobValue_ != null; } + } + /// Clears the value of the "blob_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBlobValue() { + blobValue_ = null; + } + + /// Field number for the "message_value" field. + public const int MessageValueFieldNumber = 7; + private readonly static pb::ByteString MessageValueDefaultValue = pb::ByteString.Empty; + + private pb::ByteString messageValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString MessageValue { + get { return messageValue_ ?? MessageValueDefaultValue; } + set { + messageValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessageValue { + get { return messageValue_ != null; } + } + /// Clears the value of the "message_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageValue() { + messageValue_ = null; + } + + /// Field number for the "fourcc_value" field. + public const int FourccValueFieldNumber = 8; + private readonly static string FourccValueDefaultValue = ""; + + private string fourccValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string FourccValue { + get { return fourccValue_ ?? FourccValueDefaultValue; } + set { + fourccValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "fourcc_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFourccValue { + get { return fourccValue_ != null; } + } + /// Clears the value of the "fourcc_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFourccValue() { + fourccValue_ = null; + } + + /// Field number for the "uint_value" field. + public const int UintValueFieldNumber = 9; + private readonly static ulong UintValueDefaultValue = 0UL; + + private ulong uintValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong UintValue { + get { if ((_hasBits0 & 8) != 0) { return uintValue_; } else { return UintValueDefaultValue; } } + set { + _hasBits0 |= 8; + uintValue_ = value; + } + } + /// Gets whether the "uint_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUintValue { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "uint_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUintValue() { + _hasBits0 &= ~8; + } + + /// Field number for the "entity_id_value" field. + public const int EntityIdValueFieldNumber = 10; + private global::Bgs.Protocol.EntityId entityIdValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityIdValue { + get { return entityIdValue_; } + set { + entityIdValue_ = value; + } + } + /// Gets whether the entity_id_value field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityIdValue { + get { return entityIdValue_ != null; } + } + /// Clears the value of the entity_id_value field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityIdValue() { + entityIdValue_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Variant); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Variant other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BoolValue != other.BoolValue) return false; + if (IntValue != other.IntValue) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FloatValue, other.FloatValue)) return false; + if (StringValue != other.StringValue) return false; + if (BlobValue != other.BlobValue) return false; + if (MessageValue != other.MessageValue) return false; + if (FourccValue != other.FourccValue) return false; + if (UintValue != other.UintValue) return false; + if (!object.Equals(EntityIdValue, other.EntityIdValue)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasBoolValue) hash ^= BoolValue.GetHashCode(); + if (HasIntValue) hash ^= IntValue.GetHashCode(); + if (HasFloatValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FloatValue); + if (HasStringValue) hash ^= StringValue.GetHashCode(); + if (HasBlobValue) hash ^= BlobValue.GetHashCode(); + if (HasMessageValue) hash ^= MessageValue.GetHashCode(); + if (HasFourccValue) hash ^= FourccValue.GetHashCode(); + if (HasUintValue) hash ^= UintValue.GetHashCode(); + if (HasEntityIdValue) hash ^= EntityIdValue.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasBoolValue) { + output.WriteRawTag(16); + output.WriteBool(BoolValue); + } + if (HasIntValue) { + output.WriteRawTag(24); + output.WriteInt64(IntValue); + } + if (HasFloatValue) { + output.WriteRawTag(33); + output.WriteDouble(FloatValue); + } + if (HasStringValue) { + output.WriteRawTag(42); + output.WriteString(StringValue); + } + if (HasBlobValue) { + output.WriteRawTag(50); + output.WriteBytes(BlobValue); + } + if (HasMessageValue) { + output.WriteRawTag(58); + output.WriteBytes(MessageValue); + } + if (HasFourccValue) { + output.WriteRawTag(66); + output.WriteString(FourccValue); + } + if (HasUintValue) { + output.WriteRawTag(72); + output.WriteUInt64(UintValue); + } + if (HasEntityIdValue) { + output.WriteRawTag(82); + output.WriteMessage(EntityIdValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasBoolValue) { + size += 1 + 1; + } + if (HasIntValue) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntValue); + } + if (HasFloatValue) { + size += 1 + 8; + } + if (HasStringValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); + } + if (HasBlobValue) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(BlobValue); + } + if (HasMessageValue) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(MessageValue); + } + if (HasFourccValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FourccValue); + } + if (HasUintValue) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UintValue); + } + if (HasEntityIdValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityIdValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Variant other) { + if (other == null) { + return; + } + if (other.HasBoolValue) { + BoolValue = other.BoolValue; + } + if (other.HasIntValue) { + IntValue = other.IntValue; + } + if (other.HasFloatValue) { + FloatValue = other.FloatValue; + } + if (other.HasStringValue) { + StringValue = other.StringValue; + } + if (other.HasBlobValue) { + BlobValue = other.BlobValue; + } + if (other.HasMessageValue) { + MessageValue = other.MessageValue; + } + if (other.HasFourccValue) { + FourccValue = other.FourccValue; + } + if (other.HasUintValue) { + UintValue = other.UintValue; + } + if (other.HasEntityIdValue) { + if (!HasEntityIdValue) { + EntityIdValue = new global::Bgs.Protocol.EntityId(); + } + EntityIdValue.MergeFrom(other.EntityIdValue); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + BoolValue = input.ReadBool(); + break; + } + case 24: { + IntValue = input.ReadInt64(); + break; + } + case 33: { + FloatValue = input.ReadDouble(); + break; + } + case 42: { + StringValue = input.ReadString(); + break; + } + case 50: { + BlobValue = input.ReadBytes(); + break; + } + case 58: { + MessageValue = input.ReadBytes(); + break; + } + case 66: { + FourccValue = input.ReadString(); + break; + } + case 72: { + UintValue = input.ReadUInt64(); + break; + } + case 82: { + if (!HasEntityIdValue) { + EntityIdValue = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(EntityIdValue); + break; + } + } + } + } + + } + + public sealed partial class Attribute : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Attribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Attribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Attribute(Attribute other) : this() { + name_ = other.name_; + value_ = other.HasValue ? other.value_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Attribute Clone() { + return new Attribute(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private global::Bgs.Protocol.Variant value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Variant Value { + get { return value_; } + set { + value_ = value; + } + } + /// Gets whether the value field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the value field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Attribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Attribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Attribute other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasValue) { + if (!HasValue) { + Value = new global::Bgs.Protocol.Variant(); + } + Value.MergeFrom(other.Value); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (!HasValue) { + Value = new global::Bgs.Protocol.Variant(); + } + input.ReadMessage(Value); + break; + } + } + } + } + + } + + public sealed partial class AttributeFilter : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttributeFilter()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttributeFilter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttributeFilter(AttributeFilter other) : this() { + _hasBits0 = other._hasBits0; + op_ = other.op_; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttributeFilter Clone() { + return new AttributeFilter(this); + } + + /// Field number for the "op" field. + public const int OpFieldNumber = 1; + private readonly static global::Bgs.Protocol.AttributeFilter.Types.Operation OpDefaultValue = global::Bgs.Protocol.AttributeFilter.Types.Operation.MatchNone; + + private global::Bgs.Protocol.AttributeFilter.Types.Operation op_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.AttributeFilter.Types.Operation Op { + get { if ((_hasBits0 & 1) != 0) { return op_; } else { return OpDefaultValue; } } + set { + _hasBits0 |= 1; + op_ = value; + } + } + /// Gets whether the "op" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "op" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOp() { + _hasBits0 &= ~1; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AttributeFilter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AttributeFilter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Op != other.Op) return false; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasOp) hash ^= Op.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasOp) { + output.WriteRawTag(8); + output.WriteEnum((int) Op); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasOp) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Op); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AttributeFilter other) { + if (other == null) { + return; + } + if (other.HasOp) { + Op = other.Op; + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Op = (global::Bgs.Protocol.AttributeFilter.Types.Operation) input.ReadEnum(); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the AttributeFilter message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum Operation { + [pbr::OriginalName("MATCH_NONE")] MatchNone = 0, + [pbr::OriginalName("MATCH_ANY")] MatchAny = 1, + [pbr::OriginalName("MATCH_ALL")] MatchAll = 2, + [pbr::OriginalName("MATCH_ALL_MOST_SPECIFIC")] MatchAllMostSpecific = 3, + } + + } + #endregion + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/AuthenticationService.cs b/Source/Framework/Proto/AuthenticationService.cs index 78ad90450..7090a7ce8 100644 --- a/Source/Framework/Proto/AuthenticationService.cs +++ b/Source/Framework/Proto/AuthenticationService.cs @@ -1,4023 +1,4477 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/authentication_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/authentication_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Authentication.V1 -{ - /// Holder for reflection information generated from bgs/low/pb/client/authentication_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class AuthenticationServiceReflection - { +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Authentication.V1 { - #region Descriptor - /// File descriptor for bgs/low/pb/client/authentication_service.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AuthenticationServiceReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "Ci5iZ3MvbG93L3BiL2NsaWVudC9hdXRoZW50aWNhdGlvbl9zZXJ2aWNlLnBy", - "b3RvEh5iZ3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24udjEaJWJncy9sb3cv", - "cGIvY2xpZW50L2FjY291bnRfdHlwZXMucHJvdG8aLGJncy9sb3cvcGIvY2xp", - "ZW50L2NvbnRlbnRfaGFuZGxlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2Ns", - "aWVudC9lbnRpdHlfdHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3Jw", - "Y190eXBlcy5wcm90byJYChFNb2R1bGVMb2FkUmVxdWVzdBIyCg1tb2R1bGVf", - "aGFuZGxlGAEgASgLMhsuYmdzLnByb3RvY29sLkNvbnRlbnRIYW5kbGUSDwoH", - "bWVzc2FnZRgCIAEoDCI3ChJNb2R1bGVOb3RpZmljYXRpb24SEQoJbW9kdWxl", - "X2lkGAIgASgFEg4KBnJlc3VsdBgDIAEoDSI6ChRNb2R1bGVNZXNzYWdlUmVx", - "dWVzdBIRCgltb2R1bGVfaWQYASABKAUSDwoHbWVzc2FnZRgCIAEoDCLfAgoM", - "TG9nb25SZXF1ZXN0Eg8KB3Byb2dyYW0YASABKAkSEAoIcGxhdGZvcm0YAiAB", - "KAkSDgoGbG9jYWxlGAMgASgJEg0KBWVtYWlsGAQgASgJEg8KB3ZlcnNpb24Y", - "BSABKAkSGwoTYXBwbGljYXRpb25fdmVyc2lvbhgGIAEoBRIXCg9wdWJsaWNf", - "Y29tcHV0ZXIYByABKAgSDgoGc3NvX2lkGAggASgMEiEKGWRpc2Nvbm5lY3Rf", - "b25fY29va2llX2ZhaWwYCSABKAgSJwofYWxsb3dfbG9nb25fcXVldWVfbm90", - "aWZpY2F0aW9ucxgKIAEoCBIfChd3ZWJfY2xpZW50X3ZlcmlmaWNhdGlvbhgL", - "IAEoCBIeChZjYWNoZWRfd2ViX2NyZWRlbnRpYWxzGAwgASgMEhUKDWVuYWJs", - "ZV9jb29raWUYDSABKAgSEgoKdXNlcl9hZ2VudBgOIAEoCSKaAgoLTG9nb25S", - "ZXN1bHQSEgoKZXJyb3JfY29kZRgBIAEoDRIqCgphY2NvdW50X2lkGAIgASgL", - "MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEi8KD2dhbWVfYWNjb3VudF9pZBgD", - "IAMoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBINCgVlbWFpbBgEIAEoCRIY", - "ChBhdmFpbGFibGVfcmVnaW9uGAUgAygNEhgKEGNvbm5lY3RlZF9yZWdpb24Y", - "BiABKA0SEgoKYmF0dGxlX3RhZxgHIAEoCRIVCg1nZW9pcF9jb3VudHJ5GAgg", - "ASgJEhMKC3Nlc3Npb25fa2V5GAkgASgMEhcKD3Jlc3RyaWN0ZWRfbW9kZRgK", - "IAEoCCIqChdHZW5lcmF0ZVNTT1Rva2VuUmVxdWVzdBIPCgdwcm9ncmFtGAEg", - "ASgHIj4KGEdlbmVyYXRlU1NPVG9rZW5SZXNwb25zZRIOCgZzc29faWQYASAB", - "KAwSEgoKc3NvX3NlY3JldBgCIAEoDCIoChJMb2dvblVwZGF0ZVJlcXVlc3QS", - "EgoKZXJyb3JfY29kZRgBIAEoDSJhChdMb2dvblF1ZXVlVXBkYXRlUmVxdWVz", - "dBIQCghwb3NpdGlvbhgBIAEoDRIWCg5lc3RpbWF0ZWRfdGltZRgCIAEoBBIc", - "ChRldGFfZGV2aWF0aW9uX2luX3NlYxgDIAEoBCK+AQobQWNjb3VudFNldHRp", - "bmdzTm90aWZpY2F0aW9uEjkKCGxpY2Vuc2VzGAEgAygLMicuYmdzLnByb3Rv", - "Y29sLmFjY291bnQudjEuQWNjb3VudExpY2Vuc2USFAoMaXNfdXNpbmdfcmlk", - "GAIgASgIEhsKE2lzX3BsYXlpbmdfZnJvbV9pZ3IYAyABKAgSGQoRY2FuX3Jl", - "Y2VpdmVfdm9pY2UYBCABKAgSFgoOY2FuX3NlbmRfdm9pY2UYBSABKAgiPQoY", - "U2VydmVyU3RhdGVDaGFuZ2VSZXF1ZXN0Eg0KBXN0YXRlGAEgASgNEhIKCmV2", - "ZW50X3RpbWUYAiABKAQiVAoLVmVyc2lvbkluZm8SDgoGbnVtYmVyGAEgASgN", - "Eg0KBXBhdGNoGAIgASgJEhMKC2lzX29wdGlvbmFsGAMgASgIEhEKCWtpY2tf", - "dGltZRgEIAEoBCJcChdWZXJzaW9uSW5mb05vdGlmaWNhdGlvbhJBCgx2ZXJz", - "aW9uX2luZm8YASABKAsyKy5iZ3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24u", - "djEuVmVyc2lvbkluZm8iXwoUTWVtTW9kdWxlTG9hZFJlcXVlc3QSKwoGaGFu", - "ZGxlGAEgASgLMhsuYmdzLnByb3RvY29sLkNvbnRlbnRIYW5kbGUSCwoDa2V5", - "GAIgASgMEg0KBWlucHV0GAMgASgMIiUKFU1lbU1vZHVsZUxvYWRSZXNwb25z", - "ZRIMCgRkYXRhGAEgASgMIksKGFNlbGVjdEdhbWVBY2NvdW50UmVxdWVzdBIv", - "Cg9nYW1lX2FjY291bnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5", - "SWQiXQoaR2FtZUFjY291bnRTZWxlY3RlZFJlcXVlc3QSDgoGcmVzdWx0GAEg", - "ASgNEi8KD2dhbWVfYWNjb3VudF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5F", - "bnRpdHlJZCIwCh1HZW5lcmF0ZVdlYkNyZWRlbnRpYWxzUmVxdWVzdBIPCgdw", - "cm9ncmFtGAEgASgHIjkKHkdlbmVyYXRlV2ViQ3JlZGVudGlhbHNSZXNwb25z", - "ZRIXCg93ZWJfY3JlZGVudGlhbHMYASABKAwiNgobVmVyaWZ5V2ViQ3JlZGVu", - "dGlhbHNSZXF1ZXN0EhcKD3dlYl9jcmVkZW50aWFscxgBIAEoDDKVCAoWQXV0", - "aGVudGljYXRpb25MaXN0ZW5lchJhCgxPbk1vZHVsZUxvYWQSMS5iZ3MucHJv", - "dG9jb2wuYXV0aGVudGljYXRpb24udjEuTW9kdWxlTG9hZFJlcXVlc3QaGS5i", - "Z3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiA4gCARJiCg9Pbk1vZHVsZU1lc3Nh", - "Z2USNC5iZ3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24udjEuTW9kdWxlTWVz", - "c2FnZVJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgOIAgESagoTT25T", - "ZXJ2ZXJTdGF0ZUNoYW5nZRI4LmJncy5wcm90b2NvbC5hdXRoZW50aWNhdGlv", - "bi52MS5TZXJ2ZXJTdGF0ZUNoYW5nZVJlcXVlc3QaGS5iZ3MucHJvdG9jb2wu", - "Tk9fUkVTUE9OU0USWQoPT25Mb2dvbkNvbXBsZXRlEisuYmdzLnByb3RvY29s", - "LmF1dGhlbnRpY2F0aW9uLnYxLkxvZ29uUmVzdWx0GhkuYmdzLnByb3RvY29s", - "Lk5PX1JFU1BPTlNFEn4KD09uTWVtTW9kdWxlTG9hZBI0LmJncy5wcm90b2Nv", - "bC5hdXRoZW50aWNhdGlvbi52MS5NZW1Nb2R1bGVMb2FkUmVxdWVzdBo1LmJn", - "cy5wcm90b2NvbC5hdXRoZW50aWNhdGlvbi52MS5NZW1Nb2R1bGVMb2FkUmVz", - "cG9uc2USXgoNT25Mb2dvblVwZGF0ZRIyLmJncy5wcm90b2NvbC5hdXRoZW50", - "aWNhdGlvbi52MS5Mb2dvblVwZGF0ZVJlcXVlc3QaGS5iZ3MucHJvdG9jb2wu", - "Tk9fUkVTUE9OU0USagoUT25WZXJzaW9uSW5mb1VwZGF0ZWQSNy5iZ3MucHJv", - "dG9jb2wuYXV0aGVudGljYXRpb24udjEuVmVyc2lvbkluZm9Ob3RpZmljYXRp", - "b24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0USaAoST25Mb2dvblF1ZXVl", - "VXBkYXRlEjcuYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0aW9uLnYxLkxvZ29u", - "UXVldWVVcGRhdGVSZXF1ZXN0GhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNF", - "EkIKD09uTG9nb25RdWV1ZUVuZBIULmJncy5wcm90b2NvbC5Ob0RhdGEaGS5i", - "Z3MucHJvdG9jb2wuTk9fUkVTUE9OU0UScwoVT25HYW1lQWNjb3VudFNlbGVj", - "dGVkEjouYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0aW9uLnYxLkdhbWVBY2Nv", - "dW50U2VsZWN0ZWRSZXF1ZXN0GhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNF", - "IgOIAgEy7wYKFUF1dGhlbnRpY2F0aW9uU2VydmljZRJLCgVMb2dvbhIsLmJn", - "cy5wcm90b2NvbC5hdXRoZW50aWNhdGlvbi52MS5Mb2dvblJlcXVlc3QaFC5i", - "Z3MucHJvdG9jb2wuTm9EYXRhEl0KDE1vZHVsZU5vdGlmeRIyLmJncy5wcm90", - "b2NvbC5hdXRoZW50aWNhdGlvbi52MS5Nb2R1bGVOb3RpZmljYXRpb24aFC5i", - "Z3MucHJvdG9jb2wuTm9EYXRhIgOIAgESYAoNTW9kdWxlTWVzc2FnZRI0LmJn", - "cy5wcm90b2NvbC5hdXRoZW50aWNhdGlvbi52MS5Nb2R1bGVNZXNzYWdlUmVx", - "dWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiA4gCARJRChxTZWxlY3RHYW1l", - "QWNjb3VudF9ERVBSRUNBVEVEEhYuYmdzLnByb3RvY29sLkVudGl0eUlkGhQu", - "YmdzLnByb3RvY29sLk5vRGF0YSIDiAIBEoUBChBHZW5lcmF0ZVNTT1Rva2Vu", - "EjcuYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0aW9uLnYxLkdlbmVyYXRlU1NP", - "VG9rZW5SZXF1ZXN0GjguYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0aW9uLnYx", - "LkdlbmVyYXRlU1NPVG9rZW5SZXNwb25zZRJoChFTZWxlY3RHYW1lQWNjb3Vu", - "dBI4LmJncy5wcm90b2NvbC5hdXRoZW50aWNhdGlvbi52MS5TZWxlY3RHYW1l", - "QWNjb3VudFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgOIAgESaQoU", - "VmVyaWZ5V2ViQ3JlZGVudGlhbHMSOy5iZ3MucHJvdG9jb2wuYXV0aGVudGlj", - "YXRpb24udjEuVmVyaWZ5V2ViQ3JlZGVudGlhbHNSZXF1ZXN0GhQuYmdzLnBy", - "b3RvY29sLk5vRGF0YRKXAQoWR2VuZXJhdGVXZWJDcmVkZW50aWFscxI9LmJn", - "cy5wcm90b2NvbC5hdXRoZW50aWNhdGlvbi52MS5HZW5lcmF0ZVdlYkNyZWRl", - "bnRpYWxzUmVxdWVzdBo+LmJncy5wcm90b2NvbC5hdXRoZW50aWNhdGlvbi52", - "MS5HZW5lcmF0ZVdlYkNyZWRlbnRpYWxzUmVzcG9uc2VCBUgCgAEAYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, Bgs.Protocol.ContentHandleTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.ModuleLoadRequest), Bgs.Protocol.Authentication.V1.ModuleLoadRequest.Parser, new[]{ "ModuleHandle", "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.ModuleNotification), Bgs.Protocol.Authentication.V1.ModuleNotification.Parser, new[]{ "ModuleId", "Result" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.ModuleMessageRequest), Bgs.Protocol.Authentication.V1.ModuleMessageRequest.Parser, new[]{ "ModuleId", "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.LogonRequest), Bgs.Protocol.Authentication.V1.LogonRequest.Parser, new[]{ "Program", "Platform", "Locale", "Email", "Version", "ApplicationVersion", "PublicComputer", "SsoId", "DisconnectOnCookieFail", "AllowLogonQueueNotifications", "WebClientVerification", "CachedWebCredentials", "EnableCookie", "UserAgent" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.LogonResult), Bgs.Protocol.Authentication.V1.LogonResult.Parser, new[]{ "ErrorCode", "AccountId", "GameAccountId", "Email", "AvailableRegion", "ConnectedRegion", "BattleTag", "GeoipCountry", "SessionKey", "RestrictedMode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.GenerateSSOTokenRequest), Bgs.Protocol.Authentication.V1.GenerateSSOTokenRequest.Parser, new[]{ "Program" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.GenerateSSOTokenResponse), Bgs.Protocol.Authentication.V1.GenerateSSOTokenResponse.Parser, new[]{ "SsoId", "SsoSecret" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.LogonUpdateRequest), Bgs.Protocol.Authentication.V1.LogonUpdateRequest.Parser, new[]{ "ErrorCode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.LogonQueueUpdateRequest), Bgs.Protocol.Authentication.V1.LogonQueueUpdateRequest.Parser, new[]{ "Position", "EstimatedTime", "EtaDeviationInSec" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.AccountSettingsNotification), Bgs.Protocol.Authentication.V1.AccountSettingsNotification.Parser, new[]{ "Licenses", "IsUsingRid", "IsPlayingFromIgr", "CanReceiveVoice", "CanSendVoice" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.ServerStateChangeRequest), Bgs.Protocol.Authentication.V1.ServerStateChangeRequest.Parser, new[]{ "State", "EventTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.VersionInfo), Bgs.Protocol.Authentication.V1.VersionInfo.Parser, new[]{ "Number", "Patch", "IsOptional", "KickTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.VersionInfoNotification), Bgs.Protocol.Authentication.V1.VersionInfoNotification.Parser, new[]{ "VersionInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.MemModuleLoadRequest), Bgs.Protocol.Authentication.V1.MemModuleLoadRequest.Parser, new[]{ "Handle", "Key", "Input" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.MemModuleLoadResponse), Bgs.Protocol.Authentication.V1.MemModuleLoadResponse.Parser, new[]{ "Data" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.SelectGameAccountRequest), Bgs.Protocol.Authentication.V1.SelectGameAccountRequest.Parser, new[]{ "GameAccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.GameAccountSelectedRequest), Bgs.Protocol.Authentication.V1.GameAccountSelectedRequest.Parser, new[]{ "Result", "GameAccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.GenerateWebCredentialsRequest), Bgs.Protocol.Authentication.V1.GenerateWebCredentialsRequest.Parser, new[]{ "Program" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.GenerateWebCredentialsResponse), Bgs.Protocol.Authentication.V1.GenerateWebCredentialsResponse.Parser, new[]{ "WebCredentials" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Authentication.V1.VerifyWebCredentialsRequest), Bgs.Protocol.Authentication.V1.VerifyWebCredentialsRequest.Parser, new[]{ "WebCredentials" }, null, null, null) - })); - } - #endregion + /// Holder for reflection information generated from bgs/low/pb/client/authentication_service.proto + public static partial class AuthenticationServiceReflection { + #region Descriptor + /// File descriptor for bgs/low/pb/client/authentication_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ModuleLoadRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModuleLoadRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ModuleLoadRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ModuleLoadRequest(ModuleLoadRequest other) : this() - { - ModuleHandle = other.moduleHandle_ != null ? other.ModuleHandle.Clone() : null; - message_ = other.message_; - } - - public ModuleLoadRequest Clone() - { - return new ModuleLoadRequest(this); - } - - /// Field number for the "module_handle" field. - public const int ModuleHandleFieldNumber = 1; - private Bgs.Protocol.ContentHandle moduleHandle_; - public Bgs.Protocol.ContentHandle ModuleHandle - { - get { return moduleHandle_; } - set - { - moduleHandle_ = value; - } - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 2; - private pb::ByteString message_ = pb::ByteString.Empty; - public pb::ByteString Message - { - get { return message_; } - set - { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as ModuleLoadRequest); - } - - public bool Equals(ModuleLoadRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(ModuleHandle, other.ModuleHandle)) return false; - if (Message != other.Message) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (moduleHandle_ != null) hash ^= ModuleHandle.GetHashCode(); - if (Message.Length != 0) hash ^= Message.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (moduleHandle_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(ModuleHandle); - } - if (Message.Length != 0) - { - output.WriteRawTag(18); - output.WriteBytes(Message); - } - } - - public int CalculateSize() - { - int size = 0; - if (moduleHandle_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModuleHandle); - } - if (Message.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Message); - } - return size; - } - - public void MergeFrom(ModuleLoadRequest other) - { - if (other == null) - { - return; - } - if (other.moduleHandle_ != null) - { - if (moduleHandle_ == null) - { - moduleHandle_ = new Bgs.Protocol.ContentHandle(); - } - ModuleHandle.MergeFrom(other.ModuleHandle); - } - if (other.Message.Length != 0) - { - Message = other.Message; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (moduleHandle_ == null) - { - moduleHandle_ = new Bgs.Protocol.ContentHandle(); - } - input.ReadMessage(moduleHandle_); - break; - } - case 18: - { - Message = input.ReadBytes(); - break; - } - } - } - } + private static pbr::FileDescriptor descriptor; + static AuthenticationServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci5iZ3MvbG93L3BiL2NsaWVudC9hdXRoZW50aWNhdGlvbl9zZXJ2aWNlLnBy", + "b3RvEh5iZ3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24udjEaJWJncy9sb3cv", + "cGIvY2xpZW50L2FjY291bnRfdHlwZXMucHJvdG8aLGJncy9sb3cvcGIvY2xp", + "ZW50L2NvbnRlbnRfaGFuZGxlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2Ns", + "aWVudC9lbnRpdHlfdHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3Jw", + "Y190eXBlcy5wcm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVu", + "c2lvbnMvbWVzc2FnZV9vcHRpb25zLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVu", + "dC9nbG9iYWxfZXh0ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjhiZ3Mv", + "bG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rfb3B0aW9u", + "cy5wcm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMv", + "c2VydmljZV9vcHRpb25zLnByb3RvIlgKEU1vZHVsZUxvYWRSZXF1ZXN0EjIK", + "DW1vZHVsZV9oYW5kbGUYASACKAsyGy5iZ3MucHJvdG9jb2wuQ29udGVudEhh", + "bmRsZRIPCgdtZXNzYWdlGAIgASgMIjcKEk1vZHVsZU5vdGlmaWNhdGlvbhIR", + "Cgltb2R1bGVfaWQYAiABKAUSDgoGcmVzdWx0GAMgASgNIjoKFE1vZHVsZU1l", + "c3NhZ2VSZXF1ZXN0EhEKCW1vZHVsZV9pZBgBIAIoBRIPCgdtZXNzYWdlGAIg", + "ASgMIo4CCgxMb2dvblJlcXVlc3QSDwoHcHJvZ3JhbRgBIAEoCRIQCghwbGF0", + "Zm9ybRgCIAEoCRIOCgZsb2NhbGUYAyABKAkSDQoFZW1haWwYBCABKAkSDwoH", + "dmVyc2lvbhgFIAEoCRIbChNhcHBsaWNhdGlvbl92ZXJzaW9uGAYgASgFEhcK", + "D3B1YmxpY19jb21wdXRlchgHIAEoCBIuCh9hbGxvd19sb2dvbl9xdWV1ZV9u", + "b3RpZmljYXRpb25zGAogASgIOgVmYWxzZRIeChZjYWNoZWRfd2ViX2NyZWRl", + "bnRpYWxzGAwgASgMEhIKCnVzZXJfYWdlbnQYDiABKAkSEQoJZGV2aWNlX2lk", + "GA8gASgJIq0CCgtMb2dvblJlc3VsdBISCgplcnJvcl9jb2RlGAEgAigNEioK", + "CmFjY291bnRfaWQYAiABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSLwoP", + "Z2FtZV9hY2NvdW50X2lkGAMgAygLMhYuYmdzLnByb3RvY29sLkVudGl0eUlk", + "Eg0KBWVtYWlsGAQgASgJEhgKEGF2YWlsYWJsZV9yZWdpb24YBSADKA0SGAoQ", + "Y29ubmVjdGVkX3JlZ2lvbhgGIAEoDRISCgpiYXR0bGVfdGFnGAcgASgJEhUK", + "DWdlb2lwX2NvdW50cnkYCCABKAkSEwoLc2Vzc2lvbl9rZXkYCSABKAwSFwoP", + "cmVzdHJpY3RlZF9tb2RlGAogASgIEhEKCWNsaWVudF9pZBgLIAEoCSIqChdH", + "ZW5lcmF0ZVNTT1Rva2VuUmVxdWVzdBIPCgdwcm9ncmFtGAEgASgHIj4KGEdl", + "bmVyYXRlU1NPVG9rZW5SZXNwb25zZRIOCgZzc29faWQYASABKAwSEgoKc3Nv", + "X3NlY3JldBgCIAEoDCIoChJMb2dvblVwZGF0ZVJlcXVlc3QSEgoKZXJyb3Jf", + "Y29kZRgBIAIoDSJhChdMb2dvblF1ZXVlVXBkYXRlUmVxdWVzdBIQCghwb3Np", + "dGlvbhgBIAIoDRIWCg5lc3RpbWF0ZWRfdGltZRgCIAIoBBIcChRldGFfZGV2", + "aWF0aW9uX2luX3NlYxgDIAIoBCK+AQobQWNjb3VudFNldHRpbmdzTm90aWZp", + "Y2F0aW9uEjkKCGxpY2Vuc2VzGAEgAygLMicuYmdzLnByb3RvY29sLmFjY291", + "bnQudjEuQWNjb3VudExpY2Vuc2USFAoMaXNfdXNpbmdfcmlkGAIgASgIEhsK", + "E2lzX3BsYXlpbmdfZnJvbV9pZ3IYAyABKAgSGQoRY2FuX3JlY2VpdmVfdm9p", + "Y2UYBCABKAgSFgoOY2FuX3NlbmRfdm9pY2UYBSABKAgiPQoYU2VydmVyU3Rh", + "dGVDaGFuZ2VSZXF1ZXN0Eg0KBXN0YXRlGAEgAigNEhIKCmV2ZW50X3RpbWUY", + "AiACKAQiVAoLVmVyc2lvbkluZm8SDgoGbnVtYmVyGAEgASgNEg0KBXBhdGNo", + "GAIgASgJEhMKC2lzX29wdGlvbmFsGAMgASgIEhEKCWtpY2tfdGltZRgEIAEo", + "BCJcChdWZXJzaW9uSW5mb05vdGlmaWNhdGlvbhJBCgx2ZXJzaW9uX2luZm8Y", + "ASABKAsyKy5iZ3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24udjEuVmVyc2lv", + "bkluZm8iXwoUTWVtTW9kdWxlTG9hZFJlcXVlc3QSKwoGaGFuZGxlGAEgAigL", + "MhsuYmdzLnByb3RvY29sLkNvbnRlbnRIYW5kbGUSCwoDa2V5GAIgAigMEg0K", + "BWlucHV0GAMgAigMIiUKFU1lbU1vZHVsZUxvYWRSZXNwb25zZRIMCgRkYXRh", + "GAEgAigMIksKGFNlbGVjdEdhbWVBY2NvdW50UmVxdWVzdBIvCg9nYW1lX2Fj", + "Y291bnRfaWQYASACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQiXQoaR2Ft", + "ZUFjY291bnRTZWxlY3RlZFJlcXVlc3QSDgoGcmVzdWx0GAEgAigNEi8KD2dh", + "bWVfYWNjb3VudF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCIw", + "Ch1HZW5lcmF0ZVdlYkNyZWRlbnRpYWxzUmVxdWVzdBIPCgdwcm9ncmFtGAEg", + "ASgHIjkKHkdlbmVyYXRlV2ViQ3JlZGVudGlhbHNSZXNwb25zZRIXCg93ZWJf", + "Y3JlZGVudGlhbHMYASABKAwiNgobVmVyaWZ5V2ViQ3JlZGVudGlhbHNSZXF1", + "ZXN0EhcKD3dlYl9jcmVkZW50aWFscxgBIAEoDDKfCQoWQXV0aGVudGljYXRp", + "b25MaXN0ZW5lchJnCgxPbk1vZHVsZUxvYWQSMS5iZ3MucHJvdG9jb2wuYXV0", + "aGVudGljYXRpb24udjEuTW9kdWxlTG9hZFJlcXVlc3QaGS5iZ3MucHJvdG9j", + "b2wuTk9fUkVTUE9OU0UiCYgCAYL5KwIIARJoCg9Pbk1vZHVsZU1lc3NhZ2US", + "NC5iZ3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24udjEuTW9kdWxlTWVzc2Fn", + "ZVJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgmIAgGC+SsCCAIScgoT", + "T25TZXJ2ZXJTdGF0ZUNoYW5nZRI4LmJncy5wcm90b2NvbC5hdXRoZW50aWNh", + "dGlvbi52MS5TZXJ2ZXJTdGF0ZUNoYW5nZVJlcXVlc3QaGS5iZ3MucHJvdG9j", + "b2wuTk9fUkVTUE9OU0UiBoL5KwIIBBJhCg9PbkxvZ29uQ29tcGxldGUSKy5i", + "Z3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24udjEuTG9nb25SZXN1bHQaGS5i", + "Z3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIBRKGAQoPT25NZW1Nb2R1", + "bGVMb2FkEjQuYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0aW9uLnYxLk1lbU1v", + "ZHVsZUxvYWRSZXF1ZXN0GjUuYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0aW9u", + "LnYxLk1lbU1vZHVsZUxvYWRSZXNwb25zZSIGgvkrAggGEmYKDU9uTG9nb25V", + "cGRhdGUSMi5iZ3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24udjEuTG9nb25V", + "cGRhdGVSZXF1ZXN0GhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsC", + "CAoScgoUT25WZXJzaW9uSW5mb1VwZGF0ZWQSNy5iZ3MucHJvdG9jb2wuYXV0", + "aGVudGljYXRpb24udjEuVmVyc2lvbkluZm9Ob3RpZmljYXRpb24aGS5iZ3Mu", + "cHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIICxJwChJPbkxvZ29uUXVldWVV", + "cGRhdGUSNy5iZ3MucHJvdG9jb2wuYXV0aGVudGljYXRpb24udjEuTG9nb25R", + "dWV1ZVVwZGF0ZVJlcXVlc3QaGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0Ui", + "BoL5KwIIDBJKCg9PbkxvZ29uUXVldWVFbmQSFC5iZ3MucHJvdG9jb2wuTm9E", + "YXRhGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCA0SeQoVT25H", + "YW1lQWNjb3VudFNlbGVjdGVkEjouYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0", + "aW9uLnYxLkdhbWVBY2NvdW50U2VsZWN0ZWRSZXF1ZXN0GhkuYmdzLnByb3Rv", + "Y29sLk5PX1JFU1BPTlNFIgmIAgGC+SsCCA4aPYL5KzMKMWJuZXQucHJvdG9j", + "b2wuYXV0aGVudGljYXRpb24uQXV0aGVudGljYXRpb25DbGllbnSK+SsCCAEy", + "+gcKFUF1dGhlbnRpY2F0aW9uU2VydmljZRJTCgVMb2dvbhIsLmJncy5wcm90", + "b2NvbC5hdXRoZW50aWNhdGlvbi52MS5Mb2dvblJlcXVlc3QaFC5iZ3MucHJv", + "dG9jb2wuTm9EYXRhIgaC+SsCCAESYwoMTW9kdWxlTm90aWZ5EjIuYmdzLnBy", + "b3RvY29sLmF1dGhlbnRpY2F0aW9uLnYxLk1vZHVsZU5vdGlmaWNhdGlvbhoU", + "LmJncy5wcm90b2NvbC5Ob0RhdGEiCYgCAYL5KwIIAhJmCg1Nb2R1bGVNZXNz", + "YWdlEjQuYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0aW9uLnYxLk1vZHVsZU1l", + "c3NhZ2VSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIJiAIBgvkrAggD", + "ElcKHFNlbGVjdEdhbWVBY2NvdW50X0RFUFJFQ0FURUQSFi5iZ3MucHJvdG9j", + "b2wuRW50aXR5SWQaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgmIAgGC+SsCCAQS", + "jQEKEEdlbmVyYXRlU1NPVG9rZW4SNy5iZ3MucHJvdG9jb2wuYXV0aGVudGlj", + "YXRpb24udjEuR2VuZXJhdGVTU09Ub2tlblJlcXVlc3QaOC5iZ3MucHJvdG9j", + "b2wuYXV0aGVudGljYXRpb24udjEuR2VuZXJhdGVTU09Ub2tlblJlc3BvbnNl", + "IgaC+SsCCAUSbgoRU2VsZWN0R2FtZUFjY291bnQSOC5iZ3MucHJvdG9jb2wu", + "YXV0aGVudGljYXRpb24udjEuU2VsZWN0R2FtZUFjY291bnRSZXF1ZXN0GhQu", + "YmdzLnByb3RvY29sLk5vRGF0YSIJiAIBgvkrAggGEnEKFFZlcmlmeVdlYkNy", + "ZWRlbnRpYWxzEjsuYmdzLnByb3RvY29sLmF1dGhlbnRpY2F0aW9uLnYxLlZl", + "cmlmeVdlYkNyZWRlbnRpYWxzUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0Rh", + "dGEiBoL5KwIIBxKfAQoWR2VuZXJhdGVXZWJDcmVkZW50aWFscxI9LmJncy5w", + "cm90b2NvbC5hdXRoZW50aWNhdGlvbi52MS5HZW5lcmF0ZVdlYkNyZWRlbnRp", + "YWxzUmVxdWVzdBo+LmJncy5wcm90b2NvbC5hdXRoZW50aWNhdGlvbi52MS5H", + "ZW5lcmF0ZVdlYkNyZWRlbnRpYWxzUmVzcG9uc2UiBoL5KwIICBpRgvkrMwox", + "Ym5ldC5wcm90b2NvbC5hdXRoZW50aWNhdGlvbi5BdXRoZW50aWNhdGlvblNl", + "cnZlcoL5KxAqDmF1dGhlbnRpY2F0aW9uivkrAhABQgOAAQA=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.ContentHandleTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.ModuleLoadRequest), global::Bgs.Protocol.Authentication.V1.ModuleLoadRequest.Parser, new[]{ "ModuleHandle", "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.ModuleNotification), global::Bgs.Protocol.Authentication.V1.ModuleNotification.Parser, new[]{ "ModuleId", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.ModuleMessageRequest), global::Bgs.Protocol.Authentication.V1.ModuleMessageRequest.Parser, new[]{ "ModuleId", "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.LogonRequest), global::Bgs.Protocol.Authentication.V1.LogonRequest.Parser, new[]{ "Program", "Platform", "Locale", "Email", "Version", "ApplicationVersion", "PublicComputer", "AllowLogonQueueNotifications", "CachedWebCredentials", "UserAgent", "DeviceId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.LogonResult), global::Bgs.Protocol.Authentication.V1.LogonResult.Parser, new[]{ "ErrorCode", "AccountId", "GameAccountId", "Email", "AvailableRegion", "ConnectedRegion", "BattleTag", "GeoipCountry", "SessionKey", "RestrictedMode", "ClientId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.GenerateSSOTokenRequest), global::Bgs.Protocol.Authentication.V1.GenerateSSOTokenRequest.Parser, new[]{ "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.GenerateSSOTokenResponse), global::Bgs.Protocol.Authentication.V1.GenerateSSOTokenResponse.Parser, new[]{ "SsoId", "SsoSecret" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.LogonUpdateRequest), global::Bgs.Protocol.Authentication.V1.LogonUpdateRequest.Parser, new[]{ "ErrorCode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.LogonQueueUpdateRequest), global::Bgs.Protocol.Authentication.V1.LogonQueueUpdateRequest.Parser, new[]{ "Position", "EstimatedTime", "EtaDeviationInSec" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.AccountSettingsNotification), global::Bgs.Protocol.Authentication.V1.AccountSettingsNotification.Parser, new[]{ "Licenses", "IsUsingRid", "IsPlayingFromIgr", "CanReceiveVoice", "CanSendVoice" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.ServerStateChangeRequest), global::Bgs.Protocol.Authentication.V1.ServerStateChangeRequest.Parser, new[]{ "State", "EventTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.VersionInfo), global::Bgs.Protocol.Authentication.V1.VersionInfo.Parser, new[]{ "Number", "Patch", "IsOptional", "KickTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.VersionInfoNotification), global::Bgs.Protocol.Authentication.V1.VersionInfoNotification.Parser, new[]{ "VersionInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.MemModuleLoadRequest), global::Bgs.Protocol.Authentication.V1.MemModuleLoadRequest.Parser, new[]{ "Handle", "Key", "Input" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.MemModuleLoadResponse), global::Bgs.Protocol.Authentication.V1.MemModuleLoadResponse.Parser, new[]{ "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.SelectGameAccountRequest), global::Bgs.Protocol.Authentication.V1.SelectGameAccountRequest.Parser, new[]{ "GameAccountId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.GameAccountSelectedRequest), global::Bgs.Protocol.Authentication.V1.GameAccountSelectedRequest.Parser, new[]{ "Result", "GameAccountId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.GenerateWebCredentialsRequest), global::Bgs.Protocol.Authentication.V1.GenerateWebCredentialsRequest.Parser, new[]{ "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.GenerateWebCredentialsResponse), global::Bgs.Protocol.Authentication.V1.GenerateWebCredentialsResponse.Parser, new[]{ "WebCredentials" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Authentication.V1.VerifyWebCredentialsRequest), global::Bgs.Protocol.Authentication.V1.VerifyWebCredentialsRequest.Parser, new[]{ "WebCredentials" }, null, null, null, null) + })); } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ModuleNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModuleNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ModuleNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ModuleNotification(ModuleNotification other) : this() - { - moduleId_ = other.moduleId_; - result_ = other.result_; - } - - public ModuleNotification Clone() - { - return new ModuleNotification(this); - } - - /// Field number for the "module_id" field. - public const int ModuleIdFieldNumber = 2; - private int moduleId_; - public int ModuleId - { - get { return moduleId_; } - set - { - moduleId_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 3; - private uint result_; - public uint Result - { - get { return result_; } - set - { - result_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ModuleNotification); - } - - public bool Equals(ModuleNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ModuleId != other.ModuleId) return false; - if (Result != other.Result) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ModuleId != 0) hash ^= ModuleId.GetHashCode(); - if (Result != 0) hash ^= Result.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (ModuleId != 0) - { - output.WriteRawTag(16); - output.WriteInt32(ModuleId); - } - if (Result != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(Result); - } - } - - public int CalculateSize() - { - int size = 0; - if (ModuleId != 0) - { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModuleId); - } - if (Result != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Result); - } - return size; - } - - public void MergeFrom(ModuleNotification other) - { - if (other == null) - { - return; - } - if (other.ModuleId != 0) - { - ModuleId = other.ModuleId; - } - if (other.Result != 0) - { - Result = other.Result; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 16: - { - ModuleId = input.ReadInt32(); - break; - } - case 24: - { - Result = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ModuleMessageRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModuleMessageRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ModuleMessageRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ModuleMessageRequest(ModuleMessageRequest other) : this() - { - moduleId_ = other.moduleId_; - message_ = other.message_; - } - - public ModuleMessageRequest Clone() - { - return new ModuleMessageRequest(this); - } - - /// Field number for the "module_id" field. - public const int ModuleIdFieldNumber = 1; - private int moduleId_; - public int ModuleId - { - get { return moduleId_; } - set - { - moduleId_ = value; - } - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 2; - private pb::ByteString message_ = pb::ByteString.Empty; - public pb::ByteString Message - { - get { return message_; } - set - { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as ModuleMessageRequest); - } - - public bool Equals(ModuleMessageRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ModuleId != other.ModuleId) return false; - if (Message != other.Message) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ModuleId != 0) hash ^= ModuleId.GetHashCode(); - if (Message.Length != 0) hash ^= Message.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (ModuleId != 0) - { - output.WriteRawTag(8); - output.WriteInt32(ModuleId); - } - if (Message.Length != 0) - { - output.WriteRawTag(18); - output.WriteBytes(Message); - } - } - - public int CalculateSize() - { - int size = 0; - if (ModuleId != 0) - { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModuleId); - } - if (Message.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Message); - } - return size; - } - - public void MergeFrom(ModuleMessageRequest other) - { - if (other == null) - { - return; - } - if (other.ModuleId != 0) - { - ModuleId = other.ModuleId; - } - if (other.Message.Length != 0) - { - Message = other.Message; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - ModuleId = input.ReadInt32(); - break; - } - case 18: - { - Message = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class LogonRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogonRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[3]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public LogonRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public LogonRequest(LogonRequest other) : this() - { - program_ = other.program_; - platform_ = other.platform_; - locale_ = other.locale_; - email_ = other.email_; - version_ = other.version_; - applicationVersion_ = other.applicationVersion_; - publicComputer_ = other.publicComputer_; - ssoId_ = other.ssoId_; - disconnectOnCookieFail_ = other.disconnectOnCookieFail_; - allowLogonQueueNotifications_ = other.allowLogonQueueNotifications_; - webClientVerification_ = other.webClientVerification_; - cachedWebCredentials_ = other.cachedWebCredentials_; - enableCookie_ = other.enableCookie_; - userAgent_ = other.userAgent_; - } - - public LogonRequest Clone() - { - return new LogonRequest(this); - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 1; - private string program_ = ""; - public string Program - { - get { return program_; } - set - { - program_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "platform" field. - public const int PlatformFieldNumber = 2; - private string platform_ = ""; - public string Platform - { - get { return platform_; } - set - { - platform_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "locale" field. - public const int LocaleFieldNumber = 3; - private string locale_ = ""; - public string Locale - { - get { return locale_; } - set - { - locale_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 4; - private string email_ = ""; - public string Email - { - get { return email_; } - set - { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "version" field. - public const int VersionFieldNumber = 5; - private string version_ = ""; - public string Version - { - get { return version_; } - set - { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_version" field. - public const int ApplicationVersionFieldNumber = 6; - private int applicationVersion_; - public int ApplicationVersion - { - get { return applicationVersion_; } - set - { - applicationVersion_ = value; - } - } - - /// Field number for the "public_computer" field. - public const int PublicComputerFieldNumber = 7; - private bool publicComputer_; - public bool PublicComputer - { - get { return publicComputer_; } - set - { - publicComputer_ = value; - } - } - - /// Field number for the "sso_id" field. - public const int SsoIdFieldNumber = 8; - private pb::ByteString ssoId_ = pb::ByteString.Empty; - public pb::ByteString SsoId - { - get { return ssoId_; } - set - { - ssoId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "disconnect_on_cookie_fail" field. - public const int DisconnectOnCookieFailFieldNumber = 9; - private bool disconnectOnCookieFail_; - public bool DisconnectOnCookieFail - { - get { return disconnectOnCookieFail_; } - set - { - disconnectOnCookieFail_ = value; - } - } - - /// Field number for the "allow_logon_queue_notifications" field. - public const int AllowLogonQueueNotificationsFieldNumber = 10; - private bool allowLogonQueueNotifications_; - public bool AllowLogonQueueNotifications - { - get { return allowLogonQueueNotifications_; } - set - { - allowLogonQueueNotifications_ = value; - } - } - - /// Field number for the "web_client_verification" field. - public const int WebClientVerificationFieldNumber = 11; - private bool webClientVerification_; - public bool WebClientVerification - { - get { return webClientVerification_; } - set - { - webClientVerification_ = value; - } - } - - /// Field number for the "cached_web_credentials" field. - public const int CachedWebCredentialsFieldNumber = 12; - private pb::ByteString cachedWebCredentials_ = pb::ByteString.Empty; - public pb::ByteString CachedWebCredentials - { - get { return cachedWebCredentials_; } - set - { - cachedWebCredentials_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "enable_cookie" field. - public const int EnableCookieFieldNumber = 13; - private bool enableCookie_; - public bool EnableCookie - { - get { return enableCookie_; } - set - { - enableCookie_ = value; - } - } - - /// Field number for the "user_agent" field. - public const int UserAgentFieldNumber = 14; - private string userAgent_ = ""; - public string UserAgent - { - get { return userAgent_; } - set - { - userAgent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as LogonRequest); - } - - public bool Equals(LogonRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Program != other.Program) return false; - if (Platform != other.Platform) return false; - if (Locale != other.Locale) return false; - if (Email != other.Email) return false; - if (Version != other.Version) return false; - if (ApplicationVersion != other.ApplicationVersion) return false; - if (PublicComputer != other.PublicComputer) return false; - if (SsoId != other.SsoId) return false; - if (DisconnectOnCookieFail != other.DisconnectOnCookieFail) return false; - if (AllowLogonQueueNotifications != other.AllowLogonQueueNotifications) return false; - if (WebClientVerification != other.WebClientVerification) return false; - if (CachedWebCredentials != other.CachedWebCredentials) return false; - if (EnableCookie != other.EnableCookie) return false; - if (UserAgent != other.UserAgent) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Program.Length != 0) hash ^= Program.GetHashCode(); - if (Platform.Length != 0) hash ^= Platform.GetHashCode(); - if (Locale.Length != 0) hash ^= Locale.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - if (Version.Length != 0) hash ^= Version.GetHashCode(); - if (ApplicationVersion != 0) hash ^= ApplicationVersion.GetHashCode(); - if (PublicComputer != false) hash ^= PublicComputer.GetHashCode(); - if (SsoId.Length != 0) hash ^= SsoId.GetHashCode(); - if (DisconnectOnCookieFail != false) hash ^= DisconnectOnCookieFail.GetHashCode(); - if (AllowLogonQueueNotifications != false) hash ^= AllowLogonQueueNotifications.GetHashCode(); - if (WebClientVerification != false) hash ^= WebClientVerification.GetHashCode(); - if (CachedWebCredentials.Length != 0) hash ^= CachedWebCredentials.GetHashCode(); - if (EnableCookie != false) hash ^= EnableCookie.GetHashCode(); - if (UserAgent.Length != 0) hash ^= UserAgent.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Program.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(Program); - } - if (Platform.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(Platform); - } - if (Locale.Length != 0) - { - output.WriteRawTag(26); - output.WriteString(Locale); - } - if (Email.Length != 0) - { - output.WriteRawTag(34); - output.WriteString(Email); - } - if (Version.Length != 0) - { - output.WriteRawTag(42); - output.WriteString(Version); - } - if (ApplicationVersion != 0) - { - output.WriteRawTag(48); - output.WriteInt32(ApplicationVersion); - } - if (PublicComputer != false) - { - output.WriteRawTag(56); - output.WriteBool(PublicComputer); - } - if (SsoId.Length != 0) - { - output.WriteRawTag(66); - output.WriteBytes(SsoId); - } - if (DisconnectOnCookieFail != false) - { - output.WriteRawTag(72); - output.WriteBool(DisconnectOnCookieFail); - } - if (AllowLogonQueueNotifications != false) - { - output.WriteRawTag(80); - output.WriteBool(AllowLogonQueueNotifications); - } - if (WebClientVerification != false) - { - output.WriteRawTag(88); - output.WriteBool(WebClientVerification); - } - if (CachedWebCredentials.Length != 0) - { - output.WriteRawTag(98); - output.WriteBytes(CachedWebCredentials); - } - if (EnableCookie != false) - { - output.WriteRawTag(104); - output.WriteBool(EnableCookie); - } - if (UserAgent.Length != 0) - { - output.WriteRawTag(114); - output.WriteString(UserAgent); - } - } - - public int CalculateSize() - { - int size = 0; - if (Program.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Program); - } - if (Platform.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Platform); - } - if (Locale.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Locale); - } - if (Email.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - if (Version.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); - } - if (ApplicationVersion != 0) - { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationVersion); - } - if (PublicComputer != false) - { - size += 1 + 1; - } - if (SsoId.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(SsoId); - } - if (DisconnectOnCookieFail != false) - { - size += 1 + 1; - } - if (AllowLogonQueueNotifications != false) - { - size += 1 + 1; - } - if (WebClientVerification != false) - { - size += 1 + 1; - } - if (CachedWebCredentials.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(CachedWebCredentials); - } - if (EnableCookie != false) - { - size += 1 + 1; - } - if (UserAgent.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserAgent); - } - return size; - } - - public void MergeFrom(LogonRequest other) - { - if (other == null) - { - return; - } - if (other.Program.Length != 0) - { - Program = other.Program; - } - if (other.Platform.Length != 0) - { - Platform = other.Platform; - } - if (other.Locale.Length != 0) - { - Locale = other.Locale; - } - if (other.Email.Length != 0) - { - Email = other.Email; - } - if (other.Version.Length != 0) - { - Version = other.Version; - } - if (other.ApplicationVersion != 0) - { - ApplicationVersion = other.ApplicationVersion; - } - if (other.PublicComputer != false) - { - PublicComputer = other.PublicComputer; - } - if (other.SsoId.Length != 0) - { - SsoId = other.SsoId; - } - if (other.DisconnectOnCookieFail != false) - { - DisconnectOnCookieFail = other.DisconnectOnCookieFail; - } - if (other.AllowLogonQueueNotifications != false) - { - AllowLogonQueueNotifications = other.AllowLogonQueueNotifications; - } - if (other.WebClientVerification != false) - { - WebClientVerification = other.WebClientVerification; - } - if (other.CachedWebCredentials.Length != 0) - { - CachedWebCredentials = other.CachedWebCredentials; - } - if (other.EnableCookie != false) - { - EnableCookie = other.EnableCookie; - } - if (other.UserAgent.Length != 0) - { - UserAgent = other.UserAgent; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Program = input.ReadString(); - break; - } - case 18: - { - Platform = input.ReadString(); - break; - } - case 26: - { - Locale = input.ReadString(); - break; - } - case 34: - { - Email = input.ReadString(); - break; - } - case 42: - { - Version = input.ReadString(); - break; - } - case 48: - { - ApplicationVersion = input.ReadInt32(); - break; - } - case 56: - { - PublicComputer = input.ReadBool(); - break; - } - case 66: - { - SsoId = input.ReadBytes(); - break; - } - case 72: - { - DisconnectOnCookieFail = input.ReadBool(); - break; - } - case 80: - { - AllowLogonQueueNotifications = input.ReadBool(); - break; - } - case 88: - { - WebClientVerification = input.ReadBool(); - break; - } - case 98: - { - CachedWebCredentials = input.ReadBytes(); - break; - } - case 104: - { - EnableCookie = input.ReadBool(); - break; - } - case 114: - { - UserAgent = input.ReadString(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class LogonResult : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogonResult()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public LogonResult() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public LogonResult(LogonResult other) : this() - { - errorCode_ = other.errorCode_; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; - gameAccountId_ = other.gameAccountId_.Clone(); - email_ = other.email_; - availableRegion_ = other.availableRegion_.Clone(); - connectedRegion_ = other.connectedRegion_; - battleTag_ = other.battleTag_; - geoipCountry_ = other.geoipCountry_; - sessionKey_ = other.sessionKey_; - restrictedMode_ = other.restrictedMode_; - } - - public LogonResult Clone() - { - return new LogonResult(this); - } - - /// Field number for the "error_code" field. - public const int ErrorCodeFieldNumber = 0; - private uint errorCode_; - public uint ErrorCode - { - get { return errorCode_; } - set - { - bitArray.Set(ErrorCodeFieldNumber, true); - errorCode_ = value; - } - } - - /// Field number for the "account_id" field. - public const int AccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId - { - get { return accountId_; } - set - { - bitArray.Set(AccountIdFieldNumber, true); - accountId_ = value; - } - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_gameAccountId_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.EntityId.Parser); - private readonly pbc::RepeatedField gameAccountId_ = new pbc::RepeatedField(); - public pbc::RepeatedField GameAccountId - { - get { return gameAccountId_; } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 3; - private string email_ = ""; - public string Email - { - get { return email_; } - set - { - bitArray.Set(EmailFieldNumber, true); - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "available_region" field. - public const int AvailableRegionFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_availableRegion_codec - = pb::FieldCodec.ForUInt32(42); - private readonly pbc::RepeatedField availableRegion_ = new pbc::RepeatedField(); - public pbc::RepeatedField AvailableRegion - { - get { return availableRegion_; } - } - - /// Field number for the "connected_region" field. - public const int ConnectedRegionFieldNumber = 5; - private uint connectedRegion_; - public uint ConnectedRegion - { - get { return connectedRegion_; } - set - { - bitArray.Set(ConnectedRegionFieldNumber, true); - connectedRegion_ = value; - } - } - - /// Field number for the "battle_tag" field. - public const int BattleTagFieldNumber = 6; - private string battleTag_ = ""; - public string BattleTag - { - get { return battleTag_; } - set - { - bitArray.Set(BattleTagFieldNumber, true); - battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "geoip_country" field. - public const int GeoipCountryFieldNumber = 7; - private string geoipCountry_ = ""; - public string GeoipCountry - { - get { return geoipCountry_; } - set - { - bitArray.Set(GeoipCountryFieldNumber, true); - geoipCountry_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "session_key" field. - public const int SessionKeyFieldNumber = 8; - private pb::ByteString sessionKey_ = pb::ByteString.Empty; - public pb::ByteString SessionKey - { - get { return sessionKey_; } - set - { - bitArray.Set(SessionKeyFieldNumber, true); - sessionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "restricted_mode" field. - public const int RestrictedModeFieldNumber = 9; - private bool restrictedMode_; - public bool RestrictedMode - { - get { return restrictedMode_; } - set - { - bitArray.Set(RestrictedModeFieldNumber, true); - restrictedMode_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as LogonResult); - } - - public bool Equals(LogonResult other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ErrorCode != other.ErrorCode) return false; - if (!object.Equals(AccountId, other.AccountId)) return false; - if (!gameAccountId_.Equals(other.gameAccountId_)) return false; - if (Email != other.Email) return false; - if (!availableRegion_.Equals(other.availableRegion_)) return false; - if (ConnectedRegion != other.ConnectedRegion) return false; - if (BattleTag != other.BattleTag) return false; - if (GeoipCountry != other.GeoipCountry) return false; - if (SessionKey != other.SessionKey) return false; - if (RestrictedMode != other.RestrictedMode) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ErrorCode != 0) hash ^= ErrorCode.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); - hash ^= gameAccountId_.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - hash ^= availableRegion_.GetHashCode(); - if (ConnectedRegion != 0) hash ^= ConnectedRegion.GetHashCode(); - if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode(); - if (GeoipCountry.Length != 0) hash ^= GeoipCountry.GetHashCode(); - if (SessionKey.Length != 0) hash ^= SessionKey.GetHashCode(); - if (RestrictedMode != false) hash ^= RestrictedMode.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (bitArray.Get(ErrorCodeFieldNumber)) - { - output.WriteRawTag(8); - output.WriteUInt32(ErrorCode); - } - if (bitArray.Get(AccountIdFieldNumber)) - { - output.WriteRawTag(18); - output.WriteMessage(AccountId); - } - gameAccountId_.WriteTo(output, _repeated_gameAccountId_codec); - if (bitArray.Get(EmailFieldNumber)) - { - output.WriteRawTag(34); - output.WriteString(Email); - } - availableRegion_.WriteTo(output, _repeated_availableRegion_codec); - if (bitArray.Get(ConnectedRegionFieldNumber)) - { - output.WriteRawTag(48); - output.WriteUInt32(ConnectedRegion); - } - if (bitArray.Get(BattleTagFieldNumber)) - { - output.WriteRawTag(58); - output.WriteString(BattleTag); - } - if (bitArray.Get(GeoipCountryFieldNumber)) - { - output.WriteRawTag(66); - output.WriteString(GeoipCountry); - } - if (bitArray.Get(SessionKeyFieldNumber)) - { - output.WriteRawTag(74); - output.WriteBytes(SessionKey); - } - if (bitArray.Get(RestrictedModeFieldNumber)) - { - output.WriteRawTag(80); - output.WriteBool(RestrictedMode); - } - } - - public int CalculateSize() - { - int size = 0; - if (bitArray.Get(ErrorCodeFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode); - } - if (bitArray.Get(AccountIdFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); - } - size += gameAccountId_.CalculateSize(_repeated_gameAccountId_codec); - if (bitArray.Get(EmailFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - size += availableRegion_.CalculateSize(_repeated_availableRegion_codec); - if (bitArray.Get(ConnectedRegionFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ConnectedRegion); - } - if (bitArray.Get(BattleTagFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); - } - if (bitArray.Get(GeoipCountryFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GeoipCountry); - } - if (bitArray.Get(SessionKeyFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(SessionKey); - } - if (bitArray.Get(RestrictedModeFieldNumber)) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(LogonResult other) - { - if (other == null) - { - return; - } - if (other.ErrorCode != 0) - { - ErrorCode = other.ErrorCode; - } - if (other.accountId_ != null) - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - AccountId.MergeFrom(other.AccountId); - } - gameAccountId_.Add(other.gameAccountId_); - if (other.Email.Length != 0) - { - Email = other.Email; - } - availableRegion_.Add(other.availableRegion_); - if (other.ConnectedRegion != 0) - { - ConnectedRegion = other.ConnectedRegion; - } - if (other.BattleTag.Length != 0) - { - BattleTag = other.BattleTag; - } - if (other.GeoipCountry.Length != 0) - { - GeoipCountry = other.GeoipCountry; - } - if (other.SessionKey.Length != 0) - { - SessionKey = other.SessionKey; - } - if (other.RestrictedMode != false) - { - RestrictedMode = other.RestrictedMode; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - ErrorCode = input.ReadUInt32(); - break; - } - case 18: - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(accountId_); - break; - } - case 26: - { - gameAccountId_.AddEntriesFrom(input, _repeated_gameAccountId_codec); - break; - } - case 34: - { - Email = input.ReadString(); - break; - } - case 42: - case 40: - { - availableRegion_.AddEntriesFrom(input, _repeated_availableRegion_codec); - break; - } - case 48: - { - ConnectedRegion = input.ReadUInt32(); - break; - } - case 58: - { - BattleTag = input.ReadString(); - break; - } - case 66: - { - GeoipCountry = input.ReadString(); - break; - } - case 74: - { - SessionKey = input.ReadBytes(); - break; - } - case 80: - { - RestrictedMode = input.ReadBool(); - break; - } - } - } - } - - System.Collections.BitArray bitArray = new System.Collections.BitArray(10); - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GenerateSSOTokenRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateSSOTokenRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GenerateSSOTokenRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GenerateSSOTokenRequest(GenerateSSOTokenRequest other) : this() - { - program_ = other.program_; - } - - public GenerateSSOTokenRequest Clone() - { - return new GenerateSSOTokenRequest(this); - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 1; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GenerateSSOTokenRequest); - } - - public bool Equals(GenerateSSOTokenRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Program != other.Program) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Program != 0) hash ^= Program.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Program != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Program); - } - } - - public int CalculateSize() - { - int size = 0; - if (Program != 0) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(GenerateSSOTokenRequest other) - { - if (other == null) - { - return; - } - if (other.Program != 0) - { - Program = other.Program; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Program = input.ReadFixed32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GenerateSSOTokenResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateSSOTokenResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GenerateSSOTokenResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GenerateSSOTokenResponse(GenerateSSOTokenResponse other) : this() - { - ssoId_ = other.ssoId_; - ssoSecret_ = other.ssoSecret_; - } - - public GenerateSSOTokenResponse Clone() - { - return new GenerateSSOTokenResponse(this); - } - - /// Field number for the "sso_id" field. - public const int SsoIdFieldNumber = 1; - private pb::ByteString ssoId_ = pb::ByteString.Empty; - public pb::ByteString SsoId - { - get { return ssoId_; } - set - { - ssoId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "sso_secret" field. - public const int SsoSecretFieldNumber = 2; - private pb::ByteString ssoSecret_ = pb::ByteString.Empty; - public pb::ByteString SsoSecret - { - get { return ssoSecret_; } - set - { - ssoSecret_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as GenerateSSOTokenResponse); - } - - public bool Equals(GenerateSSOTokenResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (SsoId != other.SsoId) return false; - if (SsoSecret != other.SsoSecret) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (SsoId.Length != 0) hash ^= SsoId.GetHashCode(); - if (SsoSecret.Length != 0) hash ^= SsoSecret.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (SsoId.Length != 0) - { - output.WriteRawTag(10); - output.WriteBytes(SsoId); - } - if (SsoSecret.Length != 0) - { - output.WriteRawTag(18); - output.WriteBytes(SsoSecret); - } - } - - public int CalculateSize() - { - int size = 0; - if (SsoId.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(SsoId); - } - if (SsoSecret.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(SsoSecret); - } - return size; - } - - public void MergeFrom(GenerateSSOTokenResponse other) - { - if (other == null) - { - return; - } - if (other.SsoId.Length != 0) - { - SsoId = other.SsoId; - } - if (other.SsoSecret.Length != 0) - { - SsoSecret = other.SsoSecret; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - SsoId = input.ReadBytes(); - break; - } - case 18: - { - SsoSecret = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class LogonUpdateRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogonUpdateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[7]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public LogonUpdateRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public LogonUpdateRequest(LogonUpdateRequest other) : this() - { - errorCode_ = other.errorCode_; - } - - public LogonUpdateRequest Clone() - { - return new LogonUpdateRequest(this); - } - - /// Field number for the "error_code" field. - public const int ErrorCodeFieldNumber = 1; - private uint errorCode_; - public uint ErrorCode - { - get { return errorCode_; } - set - { - errorCode_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as LogonUpdateRequest); - } - - public bool Equals(LogonUpdateRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ErrorCode != other.ErrorCode) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ErrorCode != 0) hash ^= ErrorCode.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (ErrorCode != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(ErrorCode); - } - } - - public int CalculateSize() - { - int size = 0; - if (ErrorCode != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode); - } - return size; - } - - public void MergeFrom(LogonUpdateRequest other) - { - if (other == null) - { - return; - } - if (other.ErrorCode != 0) - { - ErrorCode = other.ErrorCode; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - ErrorCode = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class LogonQueueUpdateRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogonQueueUpdateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[8]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public LogonQueueUpdateRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public LogonQueueUpdateRequest(LogonQueueUpdateRequest other) : this() - { - position_ = other.position_; - estimatedTime_ = other.estimatedTime_; - etaDeviationInSec_ = other.etaDeviationInSec_; - } - - public LogonQueueUpdateRequest Clone() - { - return new LogonQueueUpdateRequest(this); - } - - /// Field number for the "position" field. - public const int PositionFieldNumber = 1; - private uint position_; - public uint Position - { - get { return position_; } - set - { - position_ = value; - } - } - - /// Field number for the "estimated_time" field. - public const int EstimatedTimeFieldNumber = 2; - private ulong estimatedTime_; - public ulong EstimatedTime - { - get { return estimatedTime_; } - set - { - estimatedTime_ = value; - } - } - - /// Field number for the "eta_deviation_in_sec" field. - public const int EtaDeviationInSecFieldNumber = 3; - private ulong etaDeviationInSec_; - public ulong EtaDeviationInSec - { - get { return etaDeviationInSec_; } - set - { - etaDeviationInSec_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as LogonQueueUpdateRequest); - } - - public bool Equals(LogonQueueUpdateRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Position != other.Position) return false; - if (EstimatedTime != other.EstimatedTime) return false; - if (EtaDeviationInSec != other.EtaDeviationInSec) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Position != 0) hash ^= Position.GetHashCode(); - if (EstimatedTime != 0UL) hash ^= EstimatedTime.GetHashCode(); - if (EtaDeviationInSec != 0UL) hash ^= EtaDeviationInSec.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Position != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Position); - } - if (EstimatedTime != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(EstimatedTime); - } - if (EtaDeviationInSec != 0UL) - { - output.WriteRawTag(24); - output.WriteUInt64(EtaDeviationInSec); - } - } - - public int CalculateSize() - { - int size = 0; - if (Position != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Position); - } - if (EstimatedTime != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EstimatedTime); - } - if (EtaDeviationInSec != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EtaDeviationInSec); - } - return size; - } - - public void MergeFrom(LogonQueueUpdateRequest other) - { - if (other == null) - { - return; - } - if (other.Position != 0) - { - Position = other.Position; - } - if (other.EstimatedTime != 0UL) - { - EstimatedTime = other.EstimatedTime; - } - if (other.EtaDeviationInSec != 0UL) - { - EtaDeviationInSec = other.EtaDeviationInSec; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Position = input.ReadUInt32(); - break; - } - case 16: - { - EstimatedTime = input.ReadUInt64(); - break; - } - case 24: - { - EtaDeviationInSec = input.ReadUInt64(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountSettingsNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountSettingsNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[9]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public AccountSettingsNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountSettingsNotification(AccountSettingsNotification other) : this() - { - licenses_ = other.licenses_.Clone(); - isUsingRid_ = other.isUsingRid_; - isPlayingFromIgr_ = other.isPlayingFromIgr_; - canReceiveVoice_ = other.canReceiveVoice_; - canSendVoice_ = other.canSendVoice_; - } - - public AccountSettingsNotification Clone() - { - return new AccountSettingsNotification(this); - } - - /// Field number for the "licenses" field. - public const int LicensesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_licenses_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Account.V1.AccountLicense.Parser); - private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); - public pbc::RepeatedField Licenses - { - get { return licenses_; } - } - - /// Field number for the "is_using_rid" field. - public const int IsUsingRidFieldNumber = 2; - private bool isUsingRid_; - public bool IsUsingRid - { - get { return isUsingRid_; } - set - { - isUsingRid_ = value; - } - } - - /// Field number for the "is_playing_from_igr" field. - public const int IsPlayingFromIgrFieldNumber = 3; - private bool isPlayingFromIgr_; - public bool IsPlayingFromIgr - { - get { return isPlayingFromIgr_; } - set - { - isPlayingFromIgr_ = value; - } - } - - /// Field number for the "can_receive_voice" field. - public const int CanReceiveVoiceFieldNumber = 4; - private bool canReceiveVoice_; - public bool CanReceiveVoice - { - get { return canReceiveVoice_; } - set - { - canReceiveVoice_ = value; - } - } - - /// Field number for the "can_send_voice" field. - public const int CanSendVoiceFieldNumber = 5; - private bool canSendVoice_; - public bool CanSendVoice - { - get { return canSendVoice_; } - set - { - canSendVoice_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as AccountSettingsNotification); - } - - public bool Equals(AccountSettingsNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!licenses_.Equals(other.licenses_)) return false; - if (IsUsingRid != other.IsUsingRid) return false; - if (IsPlayingFromIgr != other.IsPlayingFromIgr) return false; - if (CanReceiveVoice != other.CanReceiveVoice) return false; - if (CanSendVoice != other.CanSendVoice) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= licenses_.GetHashCode(); - if (IsUsingRid != false) hash ^= IsUsingRid.GetHashCode(); - if (IsPlayingFromIgr != false) hash ^= IsPlayingFromIgr.GetHashCode(); - if (CanReceiveVoice != false) hash ^= CanReceiveVoice.GetHashCode(); - if (CanSendVoice != false) hash ^= CanSendVoice.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - licenses_.WriteTo(output, _repeated_licenses_codec); - if (IsUsingRid != false) - { - output.WriteRawTag(16); - output.WriteBool(IsUsingRid); - } - if (IsPlayingFromIgr != false) - { - output.WriteRawTag(24); - output.WriteBool(IsPlayingFromIgr); - } - if (CanReceiveVoice != false) - { - output.WriteRawTag(32); - output.WriteBool(CanReceiveVoice); - } - if (CanSendVoice != false) - { - output.WriteRawTag(40); - output.WriteBool(CanSendVoice); - } - } - - public int CalculateSize() - { - int size = 0; - size += licenses_.CalculateSize(_repeated_licenses_codec); - if (IsUsingRid != false) - { - size += 1 + 1; - } - if (IsPlayingFromIgr != false) - { - size += 1 + 1; - } - if (CanReceiveVoice != false) - { - size += 1 + 1; - } - if (CanSendVoice != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(AccountSettingsNotification other) - { - if (other == null) - { - return; - } - licenses_.Add(other.licenses_); - if (other.IsUsingRid != false) - { - IsUsingRid = other.IsUsingRid; - } - if (other.IsPlayingFromIgr != false) - { - IsPlayingFromIgr = other.IsPlayingFromIgr; - } - if (other.CanReceiveVoice != false) - { - CanReceiveVoice = other.CanReceiveVoice; - } - if (other.CanSendVoice != false) - { - CanSendVoice = other.CanSendVoice; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - licenses_.AddEntriesFrom(input, _repeated_licenses_codec); - break; - } - case 16: - { - IsUsingRid = input.ReadBool(); - break; - } - case 24: - { - IsPlayingFromIgr = input.ReadBool(); - break; - } - case 32: - { - CanReceiveVoice = input.ReadBool(); - break; - } - case 40: - { - CanSendVoice = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ServerStateChangeRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServerStateChangeRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[10]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ServerStateChangeRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ServerStateChangeRequest(ServerStateChangeRequest other) : this() - { - state_ = other.state_; - eventTime_ = other.eventTime_; - } - - public ServerStateChangeRequest Clone() - { - return new ServerStateChangeRequest(this); - } - - /// Field number for the "state" field. - public const int StateFieldNumber = 1; - private uint state_; - public uint State - { - get { return state_; } - set - { - state_ = value; - } - } - - /// Field number for the "event_time" field. - public const int EventTimeFieldNumber = 2; - private ulong eventTime_; - public ulong EventTime - { - get { return eventTime_; } - set - { - eventTime_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ServerStateChangeRequest); - } - - public bool Equals(ServerStateChangeRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (State != other.State) return false; - if (EventTime != other.EventTime) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (State != 0) hash ^= State.GetHashCode(); - if (EventTime != 0UL) hash ^= EventTime.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (State != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(State); - } - if (EventTime != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(EventTime); - } - } - - public int CalculateSize() - { - int size = 0; - if (State != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(State); - } - if (EventTime != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EventTime); - } - return size; - } - - public void MergeFrom(ServerStateChangeRequest other) - { - if (other == null) - { - return; - } - if (other.State != 0) - { - State = other.State; - } - if (other.EventTime != 0UL) - { - EventTime = other.EventTime; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - State = input.ReadUInt32(); - break; - } - case 16: - { - EventTime = input.ReadUInt64(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class VersionInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VersionInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[11]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public VersionInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public VersionInfo(VersionInfo other) : this() - { - number_ = other.number_; - patch_ = other.patch_; - isOptional_ = other.isOptional_; - kickTime_ = other.kickTime_; - } - - public VersionInfo Clone() - { - return new VersionInfo(this); - } - - /// Field number for the "number" field. - public const int NumberFieldNumber = 1; - private uint number_; - public uint Number - { - get { return number_; } - set - { - number_ = value; - } - } - - /// Field number for the "patch" field. - public const int PatchFieldNumber = 2; - private string patch_ = ""; - public string Patch - { - get { return patch_; } - set - { - patch_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_optional" field. - public const int IsOptionalFieldNumber = 3; - private bool isOptional_; - public bool IsOptional - { - get { return isOptional_; } - set - { - isOptional_ = value; - } - } - - /// Field number for the "kick_time" field. - public const int KickTimeFieldNumber = 4; - private ulong kickTime_; - public ulong KickTime - { - get { return kickTime_; } - set - { - kickTime_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as VersionInfo); - } - - public bool Equals(VersionInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Number != other.Number) return false; - if (Patch != other.Patch) return false; - if (IsOptional != other.IsOptional) return false; - if (KickTime != other.KickTime) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Number != 0) hash ^= Number.GetHashCode(); - if (Patch.Length != 0) hash ^= Patch.GetHashCode(); - if (IsOptional != false) hash ^= IsOptional.GetHashCode(); - if (KickTime != 0UL) hash ^= KickTime.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Number != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Number); - } - if (Patch.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(Patch); - } - if (IsOptional != false) - { - output.WriteRawTag(24); - output.WriteBool(IsOptional); - } - if (KickTime != 0UL) - { - output.WriteRawTag(32); - output.WriteUInt64(KickTime); - } - } - - public int CalculateSize() - { - int size = 0; - if (Number != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Number); - } - if (Patch.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Patch); - } - if (IsOptional != false) - { - size += 1 + 1; - } - if (KickTime != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(KickTime); - } - return size; - } - - public void MergeFrom(VersionInfo other) - { - if (other == null) - { - return; - } - if (other.Number != 0) - { - Number = other.Number; - } - if (other.Patch.Length != 0) - { - Patch = other.Patch; - } - if (other.IsOptional != false) - { - IsOptional = other.IsOptional; - } - if (other.KickTime != 0UL) - { - KickTime = other.KickTime; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Number = input.ReadUInt32(); - break; - } - case 18: - { - Patch = input.ReadString(); - break; - } - case 24: - { - IsOptional = input.ReadBool(); - break; - } - case 32: - { - KickTime = input.ReadUInt64(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class VersionInfoNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VersionInfoNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[12]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public VersionInfoNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public VersionInfoNotification(VersionInfoNotification other) : this() - { - VersionInfo = other.versionInfo_ != null ? other.VersionInfo.Clone() : null; - } - - public VersionInfoNotification Clone() - { - return new VersionInfoNotification(this); - } - - /// Field number for the "version_info" field. - public const int VersionInfoFieldNumber = 1; - private Bgs.Protocol.Authentication.V1.VersionInfo versionInfo_; - public Bgs.Protocol.Authentication.V1.VersionInfo VersionInfo - { - get { return versionInfo_; } - set - { - versionInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as VersionInfoNotification); - } - - public bool Equals(VersionInfoNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(VersionInfo, other.VersionInfo)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (versionInfo_ != null) hash ^= VersionInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (versionInfo_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(VersionInfo); - } - } - - public int CalculateSize() - { - int size = 0; - if (versionInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(VersionInfo); - } - return size; - } - - public void MergeFrom(VersionInfoNotification other) - { - if (other == null) - { - return; - } - if (other.versionInfo_ != null) - { - if (versionInfo_ == null) - { - versionInfo_ = new Bgs.Protocol.Authentication.V1.VersionInfo(); - } - VersionInfo.MergeFrom(other.VersionInfo); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (versionInfo_ == null) - { - versionInfo_ = new Bgs.Protocol.Authentication.V1.VersionInfo(); - } - input.ReadMessage(versionInfo_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class MemModuleLoadRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemModuleLoadRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[13]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public MemModuleLoadRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public MemModuleLoadRequest(MemModuleLoadRequest other) : this() - { - Handle = other.handle_ != null ? other.Handle.Clone() : null; - key_ = other.key_; - input_ = other.input_; - } - - public MemModuleLoadRequest Clone() - { - return new MemModuleLoadRequest(this); - } - - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private Bgs.Protocol.ContentHandle handle_; - public Bgs.Protocol.ContentHandle Handle - { - get { return handle_; } - set - { - handle_ = value; - } - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 2; - private pb::ByteString key_ = pb::ByteString.Empty; - public pb::ByteString Key - { - get { return key_; } - set - { - key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "input" field. - public const int InputFieldNumber = 3; - private pb::ByteString input_ = pb::ByteString.Empty; - public pb::ByteString Input - { - get { return input_; } - set - { - input_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as MemModuleLoadRequest); - } - - public bool Equals(MemModuleLoadRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Handle, other.Handle)) return false; - if (Key != other.Key) return false; - if (Input != other.Input) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (Key.Length != 0) hash ^= Key.GetHashCode(); - if (Input.Length != 0) hash ^= Input.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (handle_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (Key.Length != 0) - { - output.WriteRawTag(18); - output.WriteBytes(Key); - } - if (Input.Length != 0) - { - output.WriteRawTag(26); - output.WriteBytes(Input); - } - } - - public int CalculateSize() - { - int size = 0; - if (handle_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); - } - if (Key.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); - } - if (Input.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Input); - } - return size; - } - - public void MergeFrom(MemModuleLoadRequest other) - { - if (other == null) - { - return; - } - if (other.handle_ != null) - { - if (handle_ == null) - { - handle_ = new Bgs.Protocol.ContentHandle(); - } - Handle.MergeFrom(other.Handle); - } - if (other.Key.Length != 0) - { - Key = other.Key; - } - if (other.Input.Length != 0) - { - Input = other.Input; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (handle_ == null) - { - handle_ = new Bgs.Protocol.ContentHandle(); - } - input.ReadMessage(handle_); - break; - } - case 18: - { - Key = input.ReadBytes(); - break; - } - case 26: - { - Input = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class MemModuleLoadResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemModuleLoadResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[14]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public MemModuleLoadResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public MemModuleLoadResponse(MemModuleLoadResponse other) : this() - { - data_ = other.data_; - } - - public MemModuleLoadResponse Clone() - { - return new MemModuleLoadResponse(this); - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 1; - private pb::ByteString data_ = pb::ByteString.Empty; - public pb::ByteString Data - { - get { return data_; } - set - { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as MemModuleLoadResponse); - } - - public bool Equals(MemModuleLoadResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Data != other.Data) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Data.Length != 0) hash ^= Data.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Data.Length != 0) - { - output.WriteRawTag(10); - output.WriteBytes(Data); - } - } - - public int CalculateSize() - { - int size = 0; - if (Data.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - return size; - } - - public void MergeFrom(MemModuleLoadResponse other) - { - if (other == null) - { - return; - } - if (other.Data.Length != 0) - { - Data = other.Data; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Data = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SelectGameAccountRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectGameAccountRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[15]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public SelectGameAccountRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public SelectGameAccountRequest(SelectGameAccountRequest other) : this() - { - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - } - - public SelectGameAccountRequest Clone() - { - return new SelectGameAccountRequest(this); - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as SelectGameAccountRequest); - } - - public bool Equals(SelectGameAccountRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccountId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccountId); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - return size; - } - - public void MergeFrom(SelectGameAccountRequest other) - { - if (other == null) - { - return; - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountSelectedRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountSelectedRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[16]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountSelectedRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountSelectedRequest(GameAccountSelectedRequest other) : this() - { - result_ = other.result_; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - } - - public GameAccountSelectedRequest Clone() - { - return new GameAccountSelectedRequest(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 1; - private uint result_; - public uint Result - { - get { return result_; } - set - { - result_ = value; - } - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountSelectedRequest); - } - - public bool Equals(GameAccountSelectedRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Result != other.Result) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Result != 0) hash ^= Result.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Result != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Result); - } - if (gameAccountId_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(GameAccountId); - } - } - - public int CalculateSize() - { - int size = 0; - if (Result != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Result); - } - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - return size; - } - - public void MergeFrom(GameAccountSelectedRequest other) - { - if (other == null) - { - return; - } - if (other.Result != 0) - { - Result = other.Result; - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Result = input.ReadUInt32(); - break; - } - case 18: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GenerateWebCredentialsRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateWebCredentialsRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[17]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GenerateWebCredentialsRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GenerateWebCredentialsRequest(GenerateWebCredentialsRequest other) : this() - { - program_ = other.program_; - } - - public GenerateWebCredentialsRequest Clone() - { - return new GenerateWebCredentialsRequest(this); - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 1; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GenerateWebCredentialsRequest); - } - - public bool Equals(GenerateWebCredentialsRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Program != other.Program) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Program != 0) hash ^= Program.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Program != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Program); - } - } - - public int CalculateSize() - { - int size = 0; - if (Program != 0) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(GenerateWebCredentialsRequest other) - { - if (other == null) - { - return; - } - if (other.Program != 0) - { - Program = other.Program; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Program = input.ReadFixed32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GenerateWebCredentialsResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateWebCredentialsResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[18]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GenerateWebCredentialsResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GenerateWebCredentialsResponse(GenerateWebCredentialsResponse other) : this() - { - webCredentials_ = other.webCredentials_; - } - - public GenerateWebCredentialsResponse Clone() - { - return new GenerateWebCredentialsResponse(this); - } - - /// Field number for the "web_credentials" field. - public const int WebCredentialsFieldNumber = 1; - private pb::ByteString webCredentials_ = pb::ByteString.Empty; - public pb::ByteString WebCredentials - { - get { return webCredentials_; } - set - { - webCredentials_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as GenerateWebCredentialsResponse); - } - - public bool Equals(GenerateWebCredentialsResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (WebCredentials != other.WebCredentials) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (WebCredentials.Length != 0) hash ^= WebCredentials.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (WebCredentials.Length != 0) - { - output.WriteRawTag(10); - output.WriteBytes(WebCredentials); - } - } - - public int CalculateSize() - { - int size = 0; - if (WebCredentials.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(WebCredentials); - } - return size; - } - - public void MergeFrom(GenerateWebCredentialsResponse other) - { - if (other == null) - { - return; - } - if (other.WebCredentials.Length != 0) - { - WebCredentials = other.WebCredentials; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - WebCredentials = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class VerifyWebCredentialsRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VerifyWebCredentialsRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[19]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public VerifyWebCredentialsRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public VerifyWebCredentialsRequest(VerifyWebCredentialsRequest other) : this() - { - webCredentials_ = other.webCredentials_; - } - - public VerifyWebCredentialsRequest Clone() - { - return new VerifyWebCredentialsRequest(this); - } - - /// Field number for the "web_credentials" field. - public const int WebCredentialsFieldNumber = 1; - private pb::ByteString webCredentials_ = pb::ByteString.Empty; - public pb::ByteString WebCredentials - { - get { return webCredentials_; } - set - { - webCredentials_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as VerifyWebCredentialsRequest); - } - - public bool Equals(VerifyWebCredentialsRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (WebCredentials != other.WebCredentials) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (WebCredentials.Length != 0) hash ^= WebCredentials.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (WebCredentials.Length != 0) - { - output.WriteRawTag(10); - output.WriteBytes(WebCredentials); - } - } - - public int CalculateSize() - { - int size = 0; - if (WebCredentials.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(WebCredentials); - } - return size; - } - - public void MergeFrom(VerifyWebCredentialsRequest other) - { - if (other == null) - { - return; - } - if (other.WebCredentials.Length != 0) - { - WebCredentials = other.WebCredentials; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - WebCredentials = input.ReadBytes(); - break; - } - } - } - } - - } - #endregion + + } + #region Messages + public sealed partial class ModuleLoadRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModuleLoadRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleLoadRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleLoadRequest(ModuleLoadRequest other) : this() { + moduleHandle_ = other.HasModuleHandle ? other.moduleHandle_.Clone() : null; + message_ = other.message_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleLoadRequest Clone() { + return new ModuleLoadRequest(this); + } + + /// Field number for the "module_handle" field. + public const int ModuleHandleFieldNumber = 1; + private global::Bgs.Protocol.ContentHandle moduleHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ContentHandle ModuleHandle { + get { return moduleHandle_; } + set { + moduleHandle_ = value; + } + } + /// Gets whether the module_handle field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasModuleHandle { + get { return moduleHandle_ != null; } + } + /// Clears the value of the module_handle field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearModuleHandle() { + moduleHandle_ = null; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 2; + private readonly static pb::ByteString MessageDefaultValue = pb::ByteString.Empty; + + private pb::ByteString message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Message { + get { return message_ ?? MessageDefaultValue; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ModuleLoadRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ModuleLoadRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ModuleHandle, other.ModuleHandle)) return false; + if (Message != other.Message) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasModuleHandle) hash ^= ModuleHandle.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasModuleHandle) { + output.WriteRawTag(10); + output.WriteMessage(ModuleHandle); + } + if (HasMessage) { + output.WriteRawTag(18); + output.WriteBytes(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasModuleHandle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModuleHandle); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ModuleLoadRequest other) { + if (other == null) { + return; + } + if (other.HasModuleHandle) { + if (!HasModuleHandle) { + ModuleHandle = new global::Bgs.Protocol.ContentHandle(); + } + ModuleHandle.MergeFrom(other.ModuleHandle); + } + if (other.HasMessage) { + Message = other.Message; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasModuleHandle) { + ModuleHandle = new global::Bgs.Protocol.ContentHandle(); + } + input.ReadMessage(ModuleHandle); + break; + } + case 18: { + Message = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class ModuleNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModuleNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleNotification(ModuleNotification other) : this() { + _hasBits0 = other._hasBits0; + moduleId_ = other.moduleId_; + result_ = other.result_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleNotification Clone() { + return new ModuleNotification(this); + } + + /// Field number for the "module_id" field. + public const int ModuleIdFieldNumber = 2; + private readonly static int ModuleIdDefaultValue = 0; + + private int moduleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ModuleId { + get { if ((_hasBits0 & 1) != 0) { return moduleId_; } else { return ModuleIdDefaultValue; } } + set { + _hasBits0 |= 1; + moduleId_ = value; + } + } + /// Gets whether the "module_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasModuleId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "module_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearModuleId() { + _hasBits0 &= ~1; + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 3; + private readonly static uint ResultDefaultValue = 0; + + private uint result_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Result { + get { if ((_hasBits0 & 2) != 0) { return result_; } else { return ResultDefaultValue; } } + set { + _hasBits0 |= 2; + result_ = value; + } + } + /// Gets whether the "result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasResult { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearResult() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ModuleNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ModuleNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ModuleId != other.ModuleId) return false; + if (Result != other.Result) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasModuleId) hash ^= ModuleId.GetHashCode(); + if (HasResult) hash ^= Result.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasModuleId) { + output.WriteRawTag(16); + output.WriteInt32(ModuleId); + } + if (HasResult) { + output.WriteRawTag(24); + output.WriteUInt32(Result); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasModuleId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModuleId); + } + if (HasResult) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Result); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ModuleNotification other) { + if (other == null) { + return; + } + if (other.HasModuleId) { + ModuleId = other.ModuleId; + } + if (other.HasResult) { + Result = other.Result; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + ModuleId = input.ReadInt32(); + break; + } + case 24: { + Result = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class ModuleMessageRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModuleMessageRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleMessageRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleMessageRequest(ModuleMessageRequest other) : this() { + _hasBits0 = other._hasBits0; + moduleId_ = other.moduleId_; + message_ = other.message_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ModuleMessageRequest Clone() { + return new ModuleMessageRequest(this); + } + + /// Field number for the "module_id" field. + public const int ModuleIdFieldNumber = 1; + private readonly static int ModuleIdDefaultValue = 0; + + private int moduleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ModuleId { + get { if ((_hasBits0 & 1) != 0) { return moduleId_; } else { return ModuleIdDefaultValue; } } + set { + _hasBits0 |= 1; + moduleId_ = value; + } + } + /// Gets whether the "module_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasModuleId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "module_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearModuleId() { + _hasBits0 &= ~1; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 2; + private readonly static pb::ByteString MessageDefaultValue = pb::ByteString.Empty; + + private pb::ByteString message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Message { + get { return message_ ?? MessageDefaultValue; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ModuleMessageRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ModuleMessageRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ModuleId != other.ModuleId) return false; + if (Message != other.Message) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasModuleId) hash ^= ModuleId.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasModuleId) { + output.WriteRawTag(8); + output.WriteInt32(ModuleId); + } + if (HasMessage) { + output.WriteRawTag(18); + output.WriteBytes(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasModuleId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModuleId); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ModuleMessageRequest other) { + if (other == null) { + return; + } + if (other.HasModuleId) { + ModuleId = other.ModuleId; + } + if (other.HasMessage) { + Message = other.Message; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ModuleId = input.ReadInt32(); + break; + } + case 18: { + Message = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class LogonRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogonRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonRequest(LogonRequest other) : this() { + _hasBits0 = other._hasBits0; + program_ = other.program_; + platform_ = other.platform_; + locale_ = other.locale_; + email_ = other.email_; + version_ = other.version_; + applicationVersion_ = other.applicationVersion_; + publicComputer_ = other.publicComputer_; + allowLogonQueueNotifications_ = other.allowLogonQueueNotifications_; + cachedWebCredentials_ = other.cachedWebCredentials_; + userAgent_ = other.userAgent_; + deviceId_ = other.deviceId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonRequest Clone() { + return new LogonRequest(this); + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 1; + private readonly static string ProgramDefaultValue = ""; + + private string program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Program { + get { return program_ ?? ProgramDefaultValue; } + set { + program_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return program_ != null; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + program_ = null; + } + + /// Field number for the "platform" field. + public const int PlatformFieldNumber = 2; + private readonly static string PlatformDefaultValue = ""; + + private string platform_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Platform { + get { return platform_ ?? PlatformDefaultValue; } + set { + platform_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "platform" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPlatform { + get { return platform_ != null; } + } + /// Clears the value of the "platform" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPlatform() { + platform_ = null; + } + + /// Field number for the "locale" field. + public const int LocaleFieldNumber = 3; + private readonly static string LocaleDefaultValue = ""; + + private string locale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Locale { + get { return locale_ ?? LocaleDefaultValue; } + set { + locale_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "locale" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLocale { + get { return locale_ != null; } + } + /// Clears the value of the "locale" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLocale() { + locale_ = null; + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 4; + private readonly static string EmailDefaultValue = ""; + + private string email_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Email { + get { return email_ ?? EmailDefaultValue; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "email" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEmail { + get { return email_ != null; } + } + /// Clears the value of the "email" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEmail() { + email_ = null; + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 5; + private readonly static string VersionDefaultValue = ""; + + private string version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Version { + get { return version_ ?? VersionDefaultValue; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "version" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVersion { + get { return version_ != null; } + } + /// Clears the value of the "version" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVersion() { + version_ = null; + } + + /// Field number for the "application_version" field. + public const int ApplicationVersionFieldNumber = 6; + private readonly static int ApplicationVersionDefaultValue = 0; + + private int applicationVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ApplicationVersion { + get { if ((_hasBits0 & 1) != 0) { return applicationVersion_; } else { return ApplicationVersionDefaultValue; } } + set { + _hasBits0 |= 1; + applicationVersion_ = value; + } + } + /// Gets whether the "application_version" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasApplicationVersion { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "application_version" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearApplicationVersion() { + _hasBits0 &= ~1; + } + + /// Field number for the "public_computer" field. + public const int PublicComputerFieldNumber = 7; + private readonly static bool PublicComputerDefaultValue = false; + + private bool publicComputer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool PublicComputer { + get { if ((_hasBits0 & 2) != 0) { return publicComputer_; } else { return PublicComputerDefaultValue; } } + set { + _hasBits0 |= 2; + publicComputer_ = value; + } + } + /// Gets whether the "public_computer" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPublicComputer { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "public_computer" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPublicComputer() { + _hasBits0 &= ~2; + } + + /// Field number for the "allow_logon_queue_notifications" field. + public const int AllowLogonQueueNotificationsFieldNumber = 10; + private readonly static bool AllowLogonQueueNotificationsDefaultValue = false; + + private bool allowLogonQueueNotifications_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AllowLogonQueueNotifications { + get { if ((_hasBits0 & 4) != 0) { return allowLogonQueueNotifications_; } else { return AllowLogonQueueNotificationsDefaultValue; } } + set { + _hasBits0 |= 4; + allowLogonQueueNotifications_ = value; + } + } + /// Gets whether the "allow_logon_queue_notifications" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAllowLogonQueueNotifications { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "allow_logon_queue_notifications" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAllowLogonQueueNotifications() { + _hasBits0 &= ~4; + } + + /// Field number for the "cached_web_credentials" field. + public const int CachedWebCredentialsFieldNumber = 12; + private readonly static pb::ByteString CachedWebCredentialsDefaultValue = pb::ByteString.Empty; + + private pb::ByteString cachedWebCredentials_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString CachedWebCredentials { + get { return cachedWebCredentials_ ?? CachedWebCredentialsDefaultValue; } + set { + cachedWebCredentials_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "cached_web_credentials" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCachedWebCredentials { + get { return cachedWebCredentials_ != null; } + } + /// Clears the value of the "cached_web_credentials" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCachedWebCredentials() { + cachedWebCredentials_ = null; + } + + /// Field number for the "user_agent" field. + public const int UserAgentFieldNumber = 14; + private readonly static string UserAgentDefaultValue = ""; + + private string userAgent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string UserAgent { + get { return userAgent_ ?? UserAgentDefaultValue; } + set { + userAgent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "user_agent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUserAgent { + get { return userAgent_ != null; } + } + /// Clears the value of the "user_agent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUserAgent() { + userAgent_ = null; + } + + /// Field number for the "device_id" field. + public const int DeviceIdFieldNumber = 15; + private readonly static string DeviceIdDefaultValue = ""; + + private string deviceId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DeviceId { + get { return deviceId_ ?? DeviceIdDefaultValue; } + set { + deviceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "device_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeviceId { + get { return deviceId_ != null; } + } + /// Clears the value of the "device_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeviceId() { + deviceId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as LogonRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(LogonRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Program != other.Program) return false; + if (Platform != other.Platform) return false; + if (Locale != other.Locale) return false; + if (Email != other.Email) return false; + if (Version != other.Version) return false; + if (ApplicationVersion != other.ApplicationVersion) return false; + if (PublicComputer != other.PublicComputer) return false; + if (AllowLogonQueueNotifications != other.AllowLogonQueueNotifications) return false; + if (CachedWebCredentials != other.CachedWebCredentials) return false; + if (UserAgent != other.UserAgent) return false; + if (DeviceId != other.DeviceId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasPlatform) hash ^= Platform.GetHashCode(); + if (HasLocale) hash ^= Locale.GetHashCode(); + if (HasEmail) hash ^= Email.GetHashCode(); + if (HasVersion) hash ^= Version.GetHashCode(); + if (HasApplicationVersion) hash ^= ApplicationVersion.GetHashCode(); + if (HasPublicComputer) hash ^= PublicComputer.GetHashCode(); + if (HasAllowLogonQueueNotifications) hash ^= AllowLogonQueueNotifications.GetHashCode(); + if (HasCachedWebCredentials) hash ^= CachedWebCredentials.GetHashCode(); + if (HasUserAgent) hash ^= UserAgent.GetHashCode(); + if (HasDeviceId) hash ^= DeviceId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasProgram) { + output.WriteRawTag(10); + output.WriteString(Program); + } + if (HasPlatform) { + output.WriteRawTag(18); + output.WriteString(Platform); + } + if (HasLocale) { + output.WriteRawTag(26); + output.WriteString(Locale); + } + if (HasEmail) { + output.WriteRawTag(34); + output.WriteString(Email); + } + if (HasVersion) { + output.WriteRawTag(42); + output.WriteString(Version); + } + if (HasApplicationVersion) { + output.WriteRawTag(48); + output.WriteInt32(ApplicationVersion); + } + if (HasPublicComputer) { + output.WriteRawTag(56); + output.WriteBool(PublicComputer); + } + if (HasAllowLogonQueueNotifications) { + output.WriteRawTag(80); + output.WriteBool(AllowLogonQueueNotifications); + } + if (HasCachedWebCredentials) { + output.WriteRawTag(98); + output.WriteBytes(CachedWebCredentials); + } + if (HasUserAgent) { + output.WriteRawTag(114); + output.WriteString(UserAgent); + } + if (HasDeviceId) { + output.WriteRawTag(122); + output.WriteString(DeviceId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasProgram) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Program); + } + if (HasPlatform) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Platform); + } + if (HasLocale) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Locale); + } + if (HasEmail) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (HasVersion) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (HasApplicationVersion) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationVersion); + } + if (HasPublicComputer) { + size += 1 + 1; + } + if (HasAllowLogonQueueNotifications) { + size += 1 + 1; + } + if (HasCachedWebCredentials) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(CachedWebCredentials); + } + if (HasUserAgent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserAgent); + } + if (HasDeviceId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(LogonRequest other) { + if (other == null) { + return; + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasPlatform) { + Platform = other.Platform; + } + if (other.HasLocale) { + Locale = other.Locale; + } + if (other.HasEmail) { + Email = other.Email; + } + if (other.HasVersion) { + Version = other.Version; + } + if (other.HasApplicationVersion) { + ApplicationVersion = other.ApplicationVersion; + } + if (other.HasPublicComputer) { + PublicComputer = other.PublicComputer; + } + if (other.HasAllowLogonQueueNotifications) { + AllowLogonQueueNotifications = other.AllowLogonQueueNotifications; + } + if (other.HasCachedWebCredentials) { + CachedWebCredentials = other.CachedWebCredentials; + } + if (other.HasUserAgent) { + UserAgent = other.UserAgent; + } + if (other.HasDeviceId) { + DeviceId = other.DeviceId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Program = input.ReadString(); + break; + } + case 18: { + Platform = input.ReadString(); + break; + } + case 26: { + Locale = input.ReadString(); + break; + } + case 34: { + Email = input.ReadString(); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 48: { + ApplicationVersion = input.ReadInt32(); + break; + } + case 56: { + PublicComputer = input.ReadBool(); + break; + } + case 80: { + AllowLogonQueueNotifications = input.ReadBool(); + break; + } + case 98: { + CachedWebCredentials = input.ReadBytes(); + break; + } + case 114: { + UserAgent = input.ReadString(); + break; + } + case 122: { + DeviceId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class LogonResult : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogonResult()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonResult(LogonResult other) : this() { + _hasBits0 = other._hasBits0; + errorCode_ = other.errorCode_; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + gameAccountId_ = other.gameAccountId_.Clone(); + email_ = other.email_; + availableRegion_ = other.availableRegion_.Clone(); + connectedRegion_ = other.connectedRegion_; + battleTag_ = other.battleTag_; + geoipCountry_ = other.geoipCountry_; + sessionKey_ = other.sessionKey_; + restrictedMode_ = other.restrictedMode_; + clientId_ = other.clientId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonResult Clone() { + return new LogonResult(this); + } + + /// Field number for the "error_code" field. + public const int ErrorCodeFieldNumber = 1; + private readonly static uint ErrorCodeDefaultValue = 0; + + private uint errorCode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ErrorCode { + get { if ((_hasBits0 & 1) != 0) { return errorCode_; } else { return ErrorCodeDefaultValue; } } + set { + _hasBits0 |= 1; + errorCode_ = value; + } + } + /// Gets whether the "error_code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasErrorCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "error_code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearErrorCode() { + _hasBits0 &= ~1; + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_gameAccountId_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.EntityId.Parser); + private readonly pbc::RepeatedField gameAccountId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField GameAccountId { + get { return gameAccountId_; } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 4; + private readonly static string EmailDefaultValue = ""; + + private string email_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Email { + get { return email_ ?? EmailDefaultValue; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "email" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEmail { + get { return email_ != null; } + } + /// Clears the value of the "email" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEmail() { + email_ = null; + } + + /// Field number for the "available_region" field. + public const int AvailableRegionFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_availableRegion_codec + = pb::FieldCodec.ForUInt32(40); + private readonly pbc::RepeatedField availableRegion_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField AvailableRegion { + get { return availableRegion_; } + } + + /// Field number for the "connected_region" field. + public const int ConnectedRegionFieldNumber = 6; + private readonly static uint ConnectedRegionDefaultValue = 0; + + private uint connectedRegion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ConnectedRegion { + get { if ((_hasBits0 & 2) != 0) { return connectedRegion_; } else { return ConnectedRegionDefaultValue; } } + set { + _hasBits0 |= 2; + connectedRegion_ = value; + } + } + /// Gets whether the "connected_region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasConnectedRegion { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "connected_region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearConnectedRegion() { + _hasBits0 &= ~2; + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 7; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + /// Field number for the "geoip_country" field. + public const int GeoipCountryFieldNumber = 8; + private readonly static string GeoipCountryDefaultValue = ""; + + private string geoipCountry_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string GeoipCountry { + get { return geoipCountry_ ?? GeoipCountryDefaultValue; } + set { + geoipCountry_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "geoip_country" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGeoipCountry { + get { return geoipCountry_ != null; } + } + /// Clears the value of the "geoip_country" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGeoipCountry() { + geoipCountry_ = null; + } + + /// Field number for the "session_key" field. + public const int SessionKeyFieldNumber = 9; + private readonly static pb::ByteString SessionKeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString sessionKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString SessionKey { + get { return sessionKey_ ?? SessionKeyDefaultValue; } + set { + sessionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "session_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSessionKey { + get { return sessionKey_ != null; } + } + /// Clears the value of the "session_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSessionKey() { + sessionKey_ = null; + } + + /// Field number for the "restricted_mode" field. + public const int RestrictedModeFieldNumber = 10; + private readonly static bool RestrictedModeDefaultValue = false; + + private bool restrictedMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool RestrictedMode { + get { if ((_hasBits0 & 4) != 0) { return restrictedMode_; } else { return RestrictedModeDefaultValue; } } + set { + _hasBits0 |= 4; + restrictedMode_ = value; + } + } + /// Gets whether the "restricted_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRestrictedMode { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "restricted_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRestrictedMode() { + _hasBits0 &= ~4; + } + + /// Field number for the "client_id" field. + public const int ClientIdFieldNumber = 11; + private readonly static string ClientIdDefaultValue = ""; + + private string clientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ClientId { + get { return clientId_ ?? ClientIdDefaultValue; } + set { + clientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "client_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientId { + get { return clientId_ != null; } + } + /// Clears the value of the "client_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientId() { + clientId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as LogonResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(LogonResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ErrorCode != other.ErrorCode) return false; + if (!object.Equals(AccountId, other.AccountId)) return false; + if(!gameAccountId_.Equals(other.gameAccountId_)) return false; + if (Email != other.Email) return false; + if(!availableRegion_.Equals(other.availableRegion_)) return false; + if (ConnectedRegion != other.ConnectedRegion) return false; + if (BattleTag != other.BattleTag) return false; + if (GeoipCountry != other.GeoipCountry) return false; + if (SessionKey != other.SessionKey) return false; + if (RestrictedMode != other.RestrictedMode) return false; + if (ClientId != other.ClientId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasErrorCode) hash ^= ErrorCode.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + hash ^= gameAccountId_.GetHashCode(); + if (HasEmail) hash ^= Email.GetHashCode(); + hash ^= availableRegion_.GetHashCode(); + if (HasConnectedRegion) hash ^= ConnectedRegion.GetHashCode(); + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + if (HasGeoipCountry) hash ^= GeoipCountry.GetHashCode(); + if (HasSessionKey) hash ^= SessionKey.GetHashCode(); + if (HasRestrictedMode) hash ^= RestrictedMode.GetHashCode(); + if (HasClientId) hash ^= ClientId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasErrorCode) { + output.WriteRawTag(8); + output.WriteUInt32(ErrorCode); + } + if (HasAccountId) { + output.WriteRawTag(18); + output.WriteMessage(AccountId); + } + gameAccountId_.WriteTo(output, _repeated_gameAccountId_codec); + if (HasEmail) { + output.WriteRawTag(34); + output.WriteString(Email); + } + availableRegion_.WriteTo(output, _repeated_availableRegion_codec); + if (HasConnectedRegion) { + output.WriteRawTag(48); + output.WriteUInt32(ConnectedRegion); + } + if (HasBattleTag) { + output.WriteRawTag(58); + output.WriteString(BattleTag); + } + if (HasGeoipCountry) { + output.WriteRawTag(66); + output.WriteString(GeoipCountry); + } + if (HasSessionKey) { + output.WriteRawTag(74); + output.WriteBytes(SessionKey); + } + if (HasRestrictedMode) { + output.WriteRawTag(80); + output.WriteBool(RestrictedMode); + } + if (HasClientId) { + output.WriteRawTag(90); + output.WriteString(ClientId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasErrorCode) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode); + } + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + size += gameAccountId_.CalculateSize(_repeated_gameAccountId_codec); + if (HasEmail) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + size += availableRegion_.CalculateSize(_repeated_availableRegion_codec); + if (HasConnectedRegion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ConnectedRegion); + } + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + if (HasGeoipCountry) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GeoipCountry); + } + if (HasSessionKey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(SessionKey); + } + if (HasRestrictedMode) { + size += 1 + 1; + } + if (HasClientId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(LogonResult other) { + if (other == null) { + return; + } + if (other.HasErrorCode) { + ErrorCode = other.ErrorCode; + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + AccountId.MergeFrom(other.AccountId); + } + gameAccountId_.Add(other.gameAccountId_); + if (other.HasEmail) { + Email = other.Email; + } + availableRegion_.Add(other.availableRegion_); + if (other.HasConnectedRegion) { + ConnectedRegion = other.ConnectedRegion; + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + if (other.HasGeoipCountry) { + GeoipCountry = other.GeoipCountry; + } + if (other.HasSessionKey) { + SessionKey = other.SessionKey; + } + if (other.HasRestrictedMode) { + RestrictedMode = other.RestrictedMode; + } + if (other.HasClientId) { + ClientId = other.ClientId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ErrorCode = input.ReadUInt32(); + break; + } + case 18: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); + break; + } + case 26: { + gameAccountId_.AddEntriesFrom(input, _repeated_gameAccountId_codec); + break; + } + case 34: { + Email = input.ReadString(); + break; + } + case 42: + case 40: { + availableRegion_.AddEntriesFrom(input, _repeated_availableRegion_codec); + break; + } + case 48: { + ConnectedRegion = input.ReadUInt32(); + break; + } + case 58: { + BattleTag = input.ReadString(); + break; + } + case 66: { + GeoipCountry = input.ReadString(); + break; + } + case 74: { + SessionKey = input.ReadBytes(); + break; + } + case 80: { + RestrictedMode = input.ReadBool(); + break; + } + case 90: { + ClientId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class GenerateSSOTokenRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateSSOTokenRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateSSOTokenRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateSSOTokenRequest(GenerateSSOTokenRequest other) : this() { + _hasBits0 = other._hasBits0; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateSSOTokenRequest Clone() { + return new GenerateSSOTokenRequest(this); + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 1; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GenerateSSOTokenRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GenerateSSOTokenRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasProgram) { + output.WriteRawTag(13); + output.WriteFixed32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasProgram) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GenerateSSOTokenRequest other) { + if (other == null) { + return; + } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Program = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class GenerateSSOTokenResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateSSOTokenResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateSSOTokenResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateSSOTokenResponse(GenerateSSOTokenResponse other) : this() { + ssoId_ = other.ssoId_; + ssoSecret_ = other.ssoSecret_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateSSOTokenResponse Clone() { + return new GenerateSSOTokenResponse(this); + } + + /// Field number for the "sso_id" field. + public const int SsoIdFieldNumber = 1; + private readonly static pb::ByteString SsoIdDefaultValue = pb::ByteString.Empty; + + private pb::ByteString ssoId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString SsoId { + get { return ssoId_ ?? SsoIdDefaultValue; } + set { + ssoId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sso_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSsoId { + get { return ssoId_ != null; } + } + /// Clears the value of the "sso_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSsoId() { + ssoId_ = null; + } + + /// Field number for the "sso_secret" field. + public const int SsoSecretFieldNumber = 2; + private readonly static pb::ByteString SsoSecretDefaultValue = pb::ByteString.Empty; + + private pb::ByteString ssoSecret_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString SsoSecret { + get { return ssoSecret_ ?? SsoSecretDefaultValue; } + set { + ssoSecret_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sso_secret" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSsoSecret { + get { return ssoSecret_ != null; } + } + /// Clears the value of the "sso_secret" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSsoSecret() { + ssoSecret_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GenerateSSOTokenResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GenerateSSOTokenResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SsoId != other.SsoId) return false; + if (SsoSecret != other.SsoSecret) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSsoId) hash ^= SsoId.GetHashCode(); + if (HasSsoSecret) hash ^= SsoSecret.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSsoId) { + output.WriteRawTag(10); + output.WriteBytes(SsoId); + } + if (HasSsoSecret) { + output.WriteRawTag(18); + output.WriteBytes(SsoSecret); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSsoId) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(SsoId); + } + if (HasSsoSecret) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(SsoSecret); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GenerateSSOTokenResponse other) { + if (other == null) { + return; + } + if (other.HasSsoId) { + SsoId = other.SsoId; + } + if (other.HasSsoSecret) { + SsoSecret = other.SsoSecret; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SsoId = input.ReadBytes(); + break; + } + case 18: { + SsoSecret = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class LogonUpdateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogonUpdateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonUpdateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonUpdateRequest(LogonUpdateRequest other) : this() { + _hasBits0 = other._hasBits0; + errorCode_ = other.errorCode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonUpdateRequest Clone() { + return new LogonUpdateRequest(this); + } + + /// Field number for the "error_code" field. + public const int ErrorCodeFieldNumber = 1; + private readonly static uint ErrorCodeDefaultValue = 0; + + private uint errorCode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ErrorCode { + get { if ((_hasBits0 & 1) != 0) { return errorCode_; } else { return ErrorCodeDefaultValue; } } + set { + _hasBits0 |= 1; + errorCode_ = value; + } + } + /// Gets whether the "error_code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasErrorCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "error_code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearErrorCode() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as LogonUpdateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(LogonUpdateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ErrorCode != other.ErrorCode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasErrorCode) hash ^= ErrorCode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasErrorCode) { + output.WriteRawTag(8); + output.WriteUInt32(ErrorCode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasErrorCode) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(LogonUpdateRequest other) { + if (other == null) { + return; + } + if (other.HasErrorCode) { + ErrorCode = other.ErrorCode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ErrorCode = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class LogonQueueUpdateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogonQueueUpdateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonQueueUpdateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonQueueUpdateRequest(LogonQueueUpdateRequest other) : this() { + _hasBits0 = other._hasBits0; + position_ = other.position_; + estimatedTime_ = other.estimatedTime_; + etaDeviationInSec_ = other.etaDeviationInSec_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LogonQueueUpdateRequest Clone() { + return new LogonQueueUpdateRequest(this); + } + + /// Field number for the "position" field. + public const int PositionFieldNumber = 1; + private readonly static uint PositionDefaultValue = 0; + + private uint position_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Position { + get { if ((_hasBits0 & 1) != 0) { return position_; } else { return PositionDefaultValue; } } + set { + _hasBits0 |= 1; + position_ = value; + } + } + /// Gets whether the "position" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPosition { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "position" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPosition() { + _hasBits0 &= ~1; + } + + /// Field number for the "estimated_time" field. + public const int EstimatedTimeFieldNumber = 2; + private readonly static ulong EstimatedTimeDefaultValue = 0UL; + + private ulong estimatedTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong EstimatedTime { + get { if ((_hasBits0 & 2) != 0) { return estimatedTime_; } else { return EstimatedTimeDefaultValue; } } + set { + _hasBits0 |= 2; + estimatedTime_ = value; + } + } + /// Gets whether the "estimated_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEstimatedTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "estimated_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEstimatedTime() { + _hasBits0 &= ~2; + } + + /// Field number for the "eta_deviation_in_sec" field. + public const int EtaDeviationInSecFieldNumber = 3; + private readonly static ulong EtaDeviationInSecDefaultValue = 0UL; + + private ulong etaDeviationInSec_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong EtaDeviationInSec { + get { if ((_hasBits0 & 4) != 0) { return etaDeviationInSec_; } else { return EtaDeviationInSecDefaultValue; } } + set { + _hasBits0 |= 4; + etaDeviationInSec_ = value; + } + } + /// Gets whether the "eta_deviation_in_sec" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEtaDeviationInSec { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "eta_deviation_in_sec" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEtaDeviationInSec() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as LogonQueueUpdateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(LogonQueueUpdateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Position != other.Position) return false; + if (EstimatedTime != other.EstimatedTime) return false; + if (EtaDeviationInSec != other.EtaDeviationInSec) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasPosition) hash ^= Position.GetHashCode(); + if (HasEstimatedTime) hash ^= EstimatedTime.GetHashCode(); + if (HasEtaDeviationInSec) hash ^= EtaDeviationInSec.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasPosition) { + output.WriteRawTag(8); + output.WriteUInt32(Position); + } + if (HasEstimatedTime) { + output.WriteRawTag(16); + output.WriteUInt64(EstimatedTime); + } + if (HasEtaDeviationInSec) { + output.WriteRawTag(24); + output.WriteUInt64(EtaDeviationInSec); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasPosition) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Position); + } + if (HasEstimatedTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EstimatedTime); + } + if (HasEtaDeviationInSec) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EtaDeviationInSec); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(LogonQueueUpdateRequest other) { + if (other == null) { + return; + } + if (other.HasPosition) { + Position = other.Position; + } + if (other.HasEstimatedTime) { + EstimatedTime = other.EstimatedTime; + } + if (other.HasEtaDeviationInSec) { + EtaDeviationInSec = other.EtaDeviationInSec; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Position = input.ReadUInt32(); + break; + } + case 16: { + EstimatedTime = input.ReadUInt64(); + break; + } + case 24: { + EtaDeviationInSec = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class AccountSettingsNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountSettingsNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountSettingsNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountSettingsNotification(AccountSettingsNotification other) : this() { + _hasBits0 = other._hasBits0; + licenses_ = other.licenses_.Clone(); + isUsingRid_ = other.isUsingRid_; + isPlayingFromIgr_ = other.isPlayingFromIgr_; + canReceiveVoice_ = other.canReceiveVoice_; + canSendVoice_ = other.canSendVoice_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AccountSettingsNotification Clone() { + return new AccountSettingsNotification(this); + } + + /// Field number for the "licenses" field. + public const int LicensesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_licenses_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Account.V1.AccountLicense.Parser); + private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Licenses { + get { return licenses_; } + } + + /// Field number for the "is_using_rid" field. + public const int IsUsingRidFieldNumber = 2; + private readonly static bool IsUsingRidDefaultValue = false; + + private bool isUsingRid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsUsingRid { + get { if ((_hasBits0 & 1) != 0) { return isUsingRid_; } else { return IsUsingRidDefaultValue; } } + set { + _hasBits0 |= 1; + isUsingRid_ = value; + } + } + /// Gets whether the "is_using_rid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsUsingRid { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_using_rid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsUsingRid() { + _hasBits0 &= ~1; + } + + /// Field number for the "is_playing_from_igr" field. + public const int IsPlayingFromIgrFieldNumber = 3; + private readonly static bool IsPlayingFromIgrDefaultValue = false; + + private bool isPlayingFromIgr_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsPlayingFromIgr { + get { if ((_hasBits0 & 2) != 0) { return isPlayingFromIgr_; } else { return IsPlayingFromIgrDefaultValue; } } + set { + _hasBits0 |= 2; + isPlayingFromIgr_ = value; + } + } + /// Gets whether the "is_playing_from_igr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsPlayingFromIgr { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "is_playing_from_igr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsPlayingFromIgr() { + _hasBits0 &= ~2; + } + + /// Field number for the "can_receive_voice" field. + public const int CanReceiveVoiceFieldNumber = 4; + private readonly static bool CanReceiveVoiceDefaultValue = false; + + private bool canReceiveVoice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanReceiveVoice { + get { if ((_hasBits0 & 4) != 0) { return canReceiveVoice_; } else { return CanReceiveVoiceDefaultValue; } } + set { + _hasBits0 |= 4; + canReceiveVoice_ = value; + } + } + /// Gets whether the "can_receive_voice" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanReceiveVoice { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "can_receive_voice" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanReceiveVoice() { + _hasBits0 &= ~4; + } + + /// Field number for the "can_send_voice" field. + public const int CanSendVoiceFieldNumber = 5; + private readonly static bool CanSendVoiceDefaultValue = false; + + private bool canSendVoice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSendVoice { + get { if ((_hasBits0 & 8) != 0) { return canSendVoice_; } else { return CanSendVoiceDefaultValue; } } + set { + _hasBits0 |= 8; + canSendVoice_ = value; + } + } + /// Gets whether the "can_send_voice" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSendVoice { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "can_send_voice" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSendVoice() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AccountSettingsNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AccountSettingsNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!licenses_.Equals(other.licenses_)) return false; + if (IsUsingRid != other.IsUsingRid) return false; + if (IsPlayingFromIgr != other.IsPlayingFromIgr) return false; + if (CanReceiveVoice != other.CanReceiveVoice) return false; + if (CanSendVoice != other.CanSendVoice) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= licenses_.GetHashCode(); + if (HasIsUsingRid) hash ^= IsUsingRid.GetHashCode(); + if (HasIsPlayingFromIgr) hash ^= IsPlayingFromIgr.GetHashCode(); + if (HasCanReceiveVoice) hash ^= CanReceiveVoice.GetHashCode(); + if (HasCanSendVoice) hash ^= CanSendVoice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + licenses_.WriteTo(output, _repeated_licenses_codec); + if (HasIsUsingRid) { + output.WriteRawTag(16); + output.WriteBool(IsUsingRid); + } + if (HasIsPlayingFromIgr) { + output.WriteRawTag(24); + output.WriteBool(IsPlayingFromIgr); + } + if (HasCanReceiveVoice) { + output.WriteRawTag(32); + output.WriteBool(CanReceiveVoice); + } + if (HasCanSendVoice) { + output.WriteRawTag(40); + output.WriteBool(CanSendVoice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += licenses_.CalculateSize(_repeated_licenses_codec); + if (HasIsUsingRid) { + size += 1 + 1; + } + if (HasIsPlayingFromIgr) { + size += 1 + 1; + } + if (HasCanReceiveVoice) { + size += 1 + 1; + } + if (HasCanSendVoice) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AccountSettingsNotification other) { + if (other == null) { + return; + } + licenses_.Add(other.licenses_); + if (other.HasIsUsingRid) { + IsUsingRid = other.IsUsingRid; + } + if (other.HasIsPlayingFromIgr) { + IsPlayingFromIgr = other.IsPlayingFromIgr; + } + if (other.HasCanReceiveVoice) { + CanReceiveVoice = other.CanReceiveVoice; + } + if (other.HasCanSendVoice) { + CanSendVoice = other.CanSendVoice; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + licenses_.AddEntriesFrom(input, _repeated_licenses_codec); + break; + } + case 16: { + IsUsingRid = input.ReadBool(); + break; + } + case 24: { + IsPlayingFromIgr = input.ReadBool(); + break; + } + case 32: { + CanReceiveVoice = input.ReadBool(); + break; + } + case 40: { + CanSendVoice = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class ServerStateChangeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServerStateChangeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerStateChangeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerStateChangeRequest(ServerStateChangeRequest other) : this() { + _hasBits0 = other._hasBits0; + state_ = other.state_; + eventTime_ = other.eventTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerStateChangeRequest Clone() { + return new ServerStateChangeRequest(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private readonly static uint StateDefaultValue = 0; + + private uint state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint State { + get { if ((_hasBits0 & 1) != 0) { return state_; } else { return StateDefaultValue; } } + set { + _hasBits0 |= 1; + state_ = value; + } + } + /// Gets whether the "state" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasState { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "state" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearState() { + _hasBits0 &= ~1; + } + + /// Field number for the "event_time" field. + public const int EventTimeFieldNumber = 2; + private readonly static ulong EventTimeDefaultValue = 0UL; + + private ulong eventTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong EventTime { + get { if ((_hasBits0 & 2) != 0) { return eventTime_; } else { return EventTimeDefaultValue; } } + set { + _hasBits0 |= 2; + eventTime_ = value; + } + } + /// Gets whether the "event_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEventTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "event_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEventTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ServerStateChangeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ServerStateChangeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) return false; + if (EventTime != other.EventTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasState) hash ^= State.GetHashCode(); + if (HasEventTime) hash ^= EventTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasState) { + output.WriteRawTag(8); + output.WriteUInt32(State); + } + if (HasEventTime) { + output.WriteRawTag(16); + output.WriteUInt64(EventTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(State); + } + if (HasEventTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EventTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ServerStateChangeRequest other) { + if (other == null) { + return; + } + if (other.HasState) { + State = other.State; + } + if (other.HasEventTime) { + EventTime = other.EventTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + State = input.ReadUInt32(); + break; + } + case 16: { + EventTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class VersionInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VersionInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VersionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VersionInfo(VersionInfo other) : this() { + _hasBits0 = other._hasBits0; + number_ = other.number_; + patch_ = other.patch_; + isOptional_ = other.isOptional_; + kickTime_ = other.kickTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VersionInfo Clone() { + return new VersionInfo(this); + } + + /// Field number for the "number" field. + public const int NumberFieldNumber = 1; + private readonly static uint NumberDefaultValue = 0; + + private uint number_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Number { + get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } } + set { + _hasBits0 |= 1; + number_ = value; + } + } + /// Gets whether the "number" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNumber { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "number" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNumber() { + _hasBits0 &= ~1; + } + + /// Field number for the "patch" field. + public const int PatchFieldNumber = 2; + private readonly static string PatchDefaultValue = ""; + + private string patch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Patch { + get { return patch_ ?? PatchDefaultValue; } + set { + patch_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "patch" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatch { + get { return patch_ != null; } + } + /// Clears the value of the "patch" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatch() { + patch_ = null; + } + + /// Field number for the "is_optional" field. + public const int IsOptionalFieldNumber = 3; + private readonly static bool IsOptionalDefaultValue = false; + + private bool isOptional_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsOptional { + get { if ((_hasBits0 & 2) != 0) { return isOptional_; } else { return IsOptionalDefaultValue; } } + set { + _hasBits0 |= 2; + isOptional_ = value; + } + } + /// Gets whether the "is_optional" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsOptional { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "is_optional" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsOptional() { + _hasBits0 &= ~2; + } + + /// Field number for the "kick_time" field. + public const int KickTimeFieldNumber = 4; + private readonly static ulong KickTimeDefaultValue = 0UL; + + private ulong kickTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong KickTime { + get { if ((_hasBits0 & 4) != 0) { return kickTime_; } else { return KickTimeDefaultValue; } } + set { + _hasBits0 |= 4; + kickTime_ = value; + } + } + /// Gets whether the "kick_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasKickTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "kick_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearKickTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as VersionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(VersionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Number != other.Number) return false; + if (Patch != other.Patch) return false; + if (IsOptional != other.IsOptional) return false; + if (KickTime != other.KickTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasNumber) hash ^= Number.GetHashCode(); + if (HasPatch) hash ^= Patch.GetHashCode(); + if (HasIsOptional) hash ^= IsOptional.GetHashCode(); + if (HasKickTime) hash ^= KickTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasNumber) { + output.WriteRawTag(8); + output.WriteUInt32(Number); + } + if (HasPatch) { + output.WriteRawTag(18); + output.WriteString(Patch); + } + if (HasIsOptional) { + output.WriteRawTag(24); + output.WriteBool(IsOptional); + } + if (HasKickTime) { + output.WriteRawTag(32); + output.WriteUInt64(KickTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasNumber) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Number); + } + if (HasPatch) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Patch); + } + if (HasIsOptional) { + size += 1 + 1; + } + if (HasKickTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(KickTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(VersionInfo other) { + if (other == null) { + return; + } + if (other.HasNumber) { + Number = other.Number; + } + if (other.HasPatch) { + Patch = other.Patch; + } + if (other.HasIsOptional) { + IsOptional = other.IsOptional; + } + if (other.HasKickTime) { + KickTime = other.KickTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Number = input.ReadUInt32(); + break; + } + case 18: { + Patch = input.ReadString(); + break; + } + case 24: { + IsOptional = input.ReadBool(); + break; + } + case 32: { + KickTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class VersionInfoNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VersionInfoNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VersionInfoNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VersionInfoNotification(VersionInfoNotification other) : this() { + versionInfo_ = other.HasVersionInfo ? other.versionInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VersionInfoNotification Clone() { + return new VersionInfoNotification(this); + } + + /// Field number for the "version_info" field. + public const int VersionInfoFieldNumber = 1; + private global::Bgs.Protocol.Authentication.V1.VersionInfo versionInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Authentication.V1.VersionInfo VersionInfo { + get { return versionInfo_; } + set { + versionInfo_ = value; + } + } + /// Gets whether the version_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVersionInfo { + get { return versionInfo_ != null; } + } + /// Clears the value of the version_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVersionInfo() { + versionInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as VersionInfoNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(VersionInfoNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(VersionInfo, other.VersionInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasVersionInfo) hash ^= VersionInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasVersionInfo) { + output.WriteRawTag(10); + output.WriteMessage(VersionInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasVersionInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VersionInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(VersionInfoNotification other) { + if (other == null) { + return; + } + if (other.HasVersionInfo) { + if (!HasVersionInfo) { + VersionInfo = new global::Bgs.Protocol.Authentication.V1.VersionInfo(); + } + VersionInfo.MergeFrom(other.VersionInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasVersionInfo) { + VersionInfo = new global::Bgs.Protocol.Authentication.V1.VersionInfo(); + } + input.ReadMessage(VersionInfo); + break; + } + } + } + } + + } + + public sealed partial class MemModuleLoadRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemModuleLoadRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemModuleLoadRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemModuleLoadRequest(MemModuleLoadRequest other) : this() { + handle_ = other.HasHandle ? other.handle_.Clone() : null; + key_ = other.key_; + input_ = other.input_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemModuleLoadRequest Clone() { + return new MemModuleLoadRequest(this); + } + + /// Field number for the "handle" field. + public const int HandleFieldNumber = 1; + private global::Bgs.Protocol.ContentHandle handle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ContentHandle Handle { + get { return handle_; } + set { + handle_ = value; + } + } + /// Gets whether the handle field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHandle { + get { return handle_ != null; } + } + /// Clears the value of the handle field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHandle() { + handle_ = null; + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 2; + private readonly static pb::ByteString KeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Key { + get { return key_ ?? KeyDefaultValue; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasKey { + get { return key_ != null; } + } + /// Clears the value of the "key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearKey() { + key_ = null; + } + + /// Field number for the "input" field. + public const int InputFieldNumber = 3; + private readonly static pb::ByteString InputDefaultValue = pb::ByteString.Empty; + + private pb::ByteString input_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Input { + get { return input_ ?? InputDefaultValue; } + set { + input_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "input" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInput { + get { return input_ != null; } + } + /// Clears the value of the "input" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInput() { + input_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemModuleLoadRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemModuleLoadRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Handle, other.Handle)) return false; + if (Key != other.Key) return false; + if (Input != other.Input) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasHandle) hash ^= Handle.GetHashCode(); + if (HasKey) hash ^= Key.GetHashCode(); + if (HasInput) hash ^= Input.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasHandle) { + output.WriteRawTag(10); + output.WriteMessage(Handle); + } + if (HasKey) { + output.WriteRawTag(18); + output.WriteBytes(Key); + } + if (HasInput) { + output.WriteRawTag(26); + output.WriteBytes(Input); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasHandle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); + } + if (HasKey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); + } + if (HasInput) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Input); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemModuleLoadRequest other) { + if (other == null) { + return; + } + if (other.HasHandle) { + if (!HasHandle) { + Handle = new global::Bgs.Protocol.ContentHandle(); + } + Handle.MergeFrom(other.Handle); + } + if (other.HasKey) { + Key = other.Key; + } + if (other.HasInput) { + Input = other.Input; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasHandle) { + Handle = new global::Bgs.Protocol.ContentHandle(); + } + input.ReadMessage(Handle); + break; + } + case 18: { + Key = input.ReadBytes(); + break; + } + case 26: { + Input = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class MemModuleLoadResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemModuleLoadResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemModuleLoadResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemModuleLoadResponse(MemModuleLoadResponse other) : this() { + data_ = other.data_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemModuleLoadResponse Clone() { + return new MemModuleLoadResponse(this); + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 1; + private readonly static pb::ByteString DataDefaultValue = pb::ByteString.Empty; + + private pb::ByteString data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Data { + get { return data_ ?? DataDefaultValue; } + set { + data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "data" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasData { + get { return data_ != null; } + } + /// Clears the value of the "data" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearData() { + data_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemModuleLoadResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemModuleLoadResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Data != other.Data) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasData) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasData) { + output.WriteRawTag(10); + output.WriteBytes(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasData) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemModuleLoadResponse other) { + if (other == null) { + return; + } + if (other.HasData) { + Data = other.Data; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Data = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class SelectGameAccountRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectGameAccountRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SelectGameAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SelectGameAccountRequest(SelectGameAccountRequest other) : this() { + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SelectGameAccountRequest Clone() { + return new SelectGameAccountRequest(this); + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { + get { return gameAccountId_; } + set { + gameAccountId_ = value; + } + } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SelectGameAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SelectGameAccountRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccountId, other.GameAccountId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccountId) { + output.WriteRawTag(10); + output.WriteMessage(GameAccountId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SelectGameAccountRequest other) { + if (other == null) { + return; + } + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + GameAccountId.MergeFrom(other.GameAccountId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(GameAccountId); + break; + } + } + } + } + + } + + public sealed partial class GameAccountSelectedRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountSelectedRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountSelectedRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountSelectedRequest(GameAccountSelectedRequest other) : this() { + _hasBits0 = other._hasBits0; + result_ = other.result_; + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountSelectedRequest Clone() { + return new GameAccountSelectedRequest(this); + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 1; + private readonly static uint ResultDefaultValue = 0; + + private uint result_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Result { + get { if ((_hasBits0 & 1) != 0) { return result_; } else { return ResultDefaultValue; } } + set { + _hasBits0 |= 1; + result_ = value; + } + } + /// Gets whether the "result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasResult { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearResult() { + _hasBits0 &= ~1; + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { + get { return gameAccountId_; } + set { + gameAccountId_ = value; + } + } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountSelectedRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountSelectedRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Result != other.Result) return false; + if (!object.Equals(GameAccountId, other.GameAccountId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasResult) hash ^= Result.GetHashCode(); + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasResult) { + output.WriteRawTag(8); + output.WriteUInt32(Result); + } + if (HasGameAccountId) { + output.WriteRawTag(18); + output.WriteMessage(GameAccountId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasResult) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Result); + } + if (HasGameAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountSelectedRequest other) { + if (other == null) { + return; + } + if (other.HasResult) { + Result = other.Result; + } + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + GameAccountId.MergeFrom(other.GameAccountId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Result = input.ReadUInt32(); + break; + } + case 18: { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(GameAccountId); + break; + } + } + } + } + + } + + public sealed partial class GenerateWebCredentialsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateWebCredentialsRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateWebCredentialsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateWebCredentialsRequest(GenerateWebCredentialsRequest other) : this() { + _hasBits0 = other._hasBits0; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateWebCredentialsRequest Clone() { + return new GenerateWebCredentialsRequest(this); + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 1; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GenerateWebCredentialsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GenerateWebCredentialsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasProgram) { + output.WriteRawTag(13); + output.WriteFixed32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasProgram) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GenerateWebCredentialsRequest other) { + if (other == null) { + return; + } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Program = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class GenerateWebCredentialsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateWebCredentialsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateWebCredentialsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateWebCredentialsResponse(GenerateWebCredentialsResponse other) : this() { + webCredentials_ = other.webCredentials_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GenerateWebCredentialsResponse Clone() { + return new GenerateWebCredentialsResponse(this); + } + + /// Field number for the "web_credentials" field. + public const int WebCredentialsFieldNumber = 1; + private readonly static pb::ByteString WebCredentialsDefaultValue = pb::ByteString.Empty; + + private pb::ByteString webCredentials_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString WebCredentials { + get { return webCredentials_ ?? WebCredentialsDefaultValue; } + set { + webCredentials_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "web_credentials" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWebCredentials { + get { return webCredentials_ != null; } + } + /// Clears the value of the "web_credentials" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWebCredentials() { + webCredentials_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GenerateWebCredentialsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GenerateWebCredentialsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WebCredentials != other.WebCredentials) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasWebCredentials) hash ^= WebCredentials.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasWebCredentials) { + output.WriteRawTag(10); + output.WriteBytes(WebCredentials); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasWebCredentials) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(WebCredentials); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GenerateWebCredentialsResponse other) { + if (other == null) { + return; + } + if (other.HasWebCredentials) { + WebCredentials = other.WebCredentials; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + WebCredentials = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class VerifyWebCredentialsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VerifyWebCredentialsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Authentication.V1.AuthenticationServiceReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VerifyWebCredentialsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VerifyWebCredentialsRequest(VerifyWebCredentialsRequest other) : this() { + webCredentials_ = other.webCredentials_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VerifyWebCredentialsRequest Clone() { + return new VerifyWebCredentialsRequest(this); + } + + /// Field number for the "web_credentials" field. + public const int WebCredentialsFieldNumber = 1; + private readonly static pb::ByteString WebCredentialsDefaultValue = pb::ByteString.Empty; + + private pb::ByteString webCredentials_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString WebCredentials { + get { return webCredentials_ ?? WebCredentialsDefaultValue; } + set { + webCredentials_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "web_credentials" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWebCredentials { + get { return webCredentials_ != null; } + } + /// Clears the value of the "web_credentials" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWebCredentials() { + webCredentials_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as VerifyWebCredentialsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(VerifyWebCredentialsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WebCredentials != other.WebCredentials) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasWebCredentials) hash ^= WebCredentials.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasWebCredentials) { + output.WriteRawTag(10); + output.WriteBytes(WebCredentials); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasWebCredentials) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(WebCredentials); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(VerifyWebCredentialsRequest other) { + if (other == null) { + return; + } + if (other.HasWebCredentials) { + WebCredentials = other.WebCredentials; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + WebCredentials = input.ReadBytes(); + break; + } + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/ChallengeService.cs b/Source/Framework/Proto/ChallengeService.cs index 7abf7dafe..7a458c7f6 100644 --- a/Source/Framework/Proto/ChallengeService.cs +++ b/Source/Framework/Proto/ChallengeService.cs @@ -1,2524 +1,465 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/challenge_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/challenge_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Challenge.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Challenge.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/challenge_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class ChallengeServiceReflection - { - #region Descriptor - /// File descriptor for bgs/low/pb/client/challenge_service.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; + /// Holder for reflection information generated from bgs/low/pb/client/challenge_service.proto + public static partial class ChallengeServiceReflection { - static ChallengeServiceReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "CiliZ3MvbG93L3BiL2NsaWVudC9jaGFsbGVuZ2Vfc2VydmljZS5wcm90bxIZ", - "YmdzLnByb3RvY29sLmNoYWxsZW5nZS52MRonYmdzL2xvdy9wYi9jbGllbnQv", - "YXR0cmlidXRlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRp", - "dHlfdHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5w", - "cm90byJICglDaGFsbGVuZ2USDAoEdHlwZRgBIAEoBxIMCgRpbmZvGAIgASgJ", - "Eg4KBmFuc3dlchgDIAEoCRIPCgdyZXRyaWVzGAQgASgNIlcKFkNoYWxsZW5n", - "ZVBpY2tlZFJlcXVlc3QSEQoJY2hhbGxlbmdlGAEgASgHEgoKAmlkGAIgASgN", - "Eh4KFm5ld19jaGFsbGVuZ2VfcHJvdG9jb2wYAyABKAgiJwoXQ2hhbGxlbmdl", - "UGlja2VkUmVzcG9uc2USDAoEZGF0YRgBIAEoDCJEChhDaGFsbGVuZ2VBbnN3", - "ZXJlZFJlcXVlc3QSDgoGYW5zd2VyGAEgASgJEgwKBGRhdGEYAiABKAwSCgoC", - "aWQYAyABKA0iVQoZQ2hhbGxlbmdlQW5zd2VyZWRSZXNwb25zZRIMCgRkYXRh", - "GAEgASgMEhAKCGRvX3JldHJ5GAIgASgIEhgKEHJlY29yZF9ub3RfZm91bmQY", - "AyABKAgiJwoZQ2hhbGxlbmdlQ2FuY2VsbGVkUmVxdWVzdBIKCgJpZBgBIAEo", - "DSLTAgoaU2VuZENoYWxsZW5nZVRvVXNlclJlcXVlc3QSKAoHcGVlcl9pZBgB", - "IAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQSLwoPZ2FtZV9hY2NvdW50", - "X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEjgKCmNoYWxsZW5n", - "ZXMYAyADKAsyJC5iZ3MucHJvdG9jb2wuY2hhbGxlbmdlLnYxLkNoYWxsZW5n", - "ZRIPCgdjb250ZXh0GAQgASgHEg8KB3RpbWVvdXQYBSABKAQSKwoKYXR0cmli", - "dXRlcxgGIAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUSJQoEaG9zdBgH", - "IAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQSKgoKYWNjb3VudF9pZBgI", - "IAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCIpChtTZW5kQ2hhbGxlbmdl", - "VG9Vc2VyUmVzcG9uc2USCgoCaWQYASABKA0i3QEKFENoYWxsZW5nZVVzZXJS", - "ZXF1ZXN0EjgKCmNoYWxsZW5nZXMYASADKAsyJC5iZ3MucHJvdG9jb2wuY2hh", - "bGxlbmdlLnYxLkNoYWxsZW5nZRIPCgdjb250ZXh0GAIgASgHEgoKAmlkGAMg", - "ASgNEhAKCGRlYWRsaW5lGAQgASgEEisKCmF0dHJpYnV0ZXMYBSADKAsyFy5i", - "Z3MucHJvdG9jb2wuQXR0cmlidXRlEi8KD2dhbWVfYWNjb3VudF9pZBgGIAEo", - "CzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCJUChZDaGFsbGVuZ2VSZXN1bHRS", - "ZXF1ZXN0EgoKAmlkGAEgASgNEgwKBHR5cGUYAiABKAcSEAoIZXJyb3JfaWQY", - "AyABKA0SDgoGYW5zd2VyGAQgASgMIlgKGENoYWxsZW5nZUV4dGVybmFsUmVx", - "dWVzdBIVCg1yZXF1ZXN0X3Rva2VuGAEgASgJEhQKDHBheWxvYWRfdHlwZRgC", - "IAEoCRIPCgdwYXlsb2FkGAMgASgMIkAKF0NoYWxsZW5nZUV4dGVybmFsUmVz", - "dWx0EhUKDXJlcXVlc3RfdG9rZW4YASABKAkSDgoGcGFzc2VkGAIgASgIMvUD", - "ChBDaGFsbGVuZ2VTZXJ2aWNlEngKD0NoYWxsZW5nZVBpY2tlZBIxLmJncy5w", - "cm90b2NvbC5jaGFsbGVuZ2UudjEuQ2hhbGxlbmdlUGlja2VkUmVxdWVzdBoy", - "LmJncy5wcm90b2NvbC5jaGFsbGVuZ2UudjEuQ2hhbGxlbmdlUGlja2VkUmVz", - "cG9uc2USfgoRQ2hhbGxlbmdlQW5zd2VyZWQSMy5iZ3MucHJvdG9jb2wuY2hh", - "bGxlbmdlLnYxLkNoYWxsZW5nZUFuc3dlcmVkUmVxdWVzdBo0LmJncy5wcm90", - "b2NvbC5jaGFsbGVuZ2UudjEuQ2hhbGxlbmdlQW5zd2VyZWRSZXNwb25zZRJg", - "ChJDaGFsbGVuZ2VDYW5jZWxsZWQSNC5iZ3MucHJvdG9jb2wuY2hhbGxlbmdl", - "LnYxLkNoYWxsZW5nZUNhbmNlbGxlZFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wu", - "Tm9EYXRhEoQBChNTZW5kQ2hhbGxlbmdlVG9Vc2VyEjUuYmdzLnByb3RvY29s", - "LmNoYWxsZW5nZS52MS5TZW5kQ2hhbGxlbmdlVG9Vc2VyUmVxdWVzdBo2LmJn", - "cy5wcm90b2NvbC5jaGFsbGVuZ2UudjEuU2VuZENoYWxsZW5nZVRvVXNlclJl", - "c3BvbnNlMqgDChFDaGFsbGVuZ2VMaXN0ZW5lchJdCg9PbkNoYWxsZW5nZVVz", - "ZXISLy5iZ3MucHJvdG9jb2wuY2hhbGxlbmdlLnYxLkNoYWxsZW5nZVVzZXJS", - "ZXF1ZXN0GhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFEmEKEU9uQ2hhbGxl", - "bmdlUmVzdWx0EjEuYmdzLnByb3RvY29sLmNoYWxsZW5nZS52MS5DaGFsbGVu", - "Z2VSZXN1bHRSZXF1ZXN0GhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFEmUK", - "E09uRXh0ZXJuYWxDaGFsbGVuZ2USMy5iZ3MucHJvdG9jb2wuY2hhbGxlbmdl", - "LnYxLkNoYWxsZW5nZUV4dGVybmFsUmVxdWVzdBoZLmJncy5wcm90b2NvbC5O", - "T19SRVNQT05TRRJqChlPbkV4dGVybmFsQ2hhbGxlbmdlUmVzdWx0EjIuYmdz", - "LnByb3RvY29sLmNoYWxsZW5nZS52MS5DaGFsbGVuZ2VFeHRlcm5hbFJlc3Vs", - "dBoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRUIFSAKAAQBiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.Challenge), Bgs.Protocol.Challenge.V1.Challenge.Parser, new[]{ "Type", "Info", "Answer", "Retries" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengePickedRequest), Bgs.Protocol.Challenge.V1.ChallengePickedRequest.Parser, new[]{ "Challenge", "Id", "NewChallengeProtocol" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengePickedResponse), Bgs.Protocol.Challenge.V1.ChallengePickedResponse.Parser, new[]{ "Data" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengeAnsweredRequest), Bgs.Protocol.Challenge.V1.ChallengeAnsweredRequest.Parser, new[]{ "Answer", "Data", "Id" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengeAnsweredResponse), Bgs.Protocol.Challenge.V1.ChallengeAnsweredResponse.Parser, new[]{ "Data", "DoRetry", "RecordNotFound" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengeCancelledRequest), Bgs.Protocol.Challenge.V1.ChallengeCancelledRequest.Parser, new[]{ "Id" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.SendChallengeToUserRequest), Bgs.Protocol.Challenge.V1.SendChallengeToUserRequest.Parser, new[]{ "PeerId", "GameAccountId", "Challenges", "Context", "Timeout", "Attributes", "Host", "AccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.SendChallengeToUserResponse), Bgs.Protocol.Challenge.V1.SendChallengeToUserResponse.Parser, new[]{ "Id" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengeUserRequest), Bgs.Protocol.Challenge.V1.ChallengeUserRequest.Parser, new[]{ "Challenges", "Context", "Id", "Deadline", "Attributes", "GameAccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengeResultRequest), Bgs.Protocol.Challenge.V1.ChallengeResultRequest.Parser, new[]{ "Id", "Type", "ErrorId", "Answer" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengeExternalRequest), Bgs.Protocol.Challenge.V1.ChallengeExternalRequest.Parser, new[]{ "RequestToken", "PayloadType", "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Challenge.V1.ChallengeExternalResult), Bgs.Protocol.Challenge.V1.ChallengeExternalResult.Parser, new[]{ "RequestToken", "Passed" }, null, null, null) - })); - } - #endregion + #region Descriptor + /// File descriptor for bgs/low/pb/client/challenge_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } + private static pbr::FileDescriptor descriptor; - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Challenge : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Challenge()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public Challenge() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public Challenge(Challenge other) : this() - { - type_ = other.type_; - info_ = other.info_; - answer_ = other.answer_; - retries_ = other.retries_; - } - - public Challenge Clone() - { - return new Challenge(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private uint type_; - public uint Type - { - get { return type_; } - set - { - type_ = value; - } - } - - /// Field number for the "info" field. - public const int InfoFieldNumber = 2; - private string info_ = ""; - public string Info - { - get { return info_; } - set - { - info_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "answer" field. - public const int AnswerFieldNumber = 3; - private string answer_ = ""; - public string Answer - { - get { return answer_; } - set - { - answer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "retries" field. - public const int RetriesFieldNumber = 4; - private uint retries_; - public uint Retries - { - get { return retries_; } - set - { - retries_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as Challenge); - } - - public bool Equals(Challenge other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Type != other.Type) return false; - if (Info != other.Info) return false; - if (Answer != other.Answer) return false; - if (Retries != other.Retries) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Type != 0) hash ^= Type.GetHashCode(); - if (Info.Length != 0) hash ^= Info.GetHashCode(); - if (Answer.Length != 0) hash ^= Answer.GetHashCode(); - if (Retries != 0) hash ^= Retries.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Type != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Type); - } - if (Info.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(Info); - } - if (Answer.Length != 0) - { - output.WriteRawTag(26); - output.WriteString(Answer); - } - if (Retries != 0) - { - output.WriteRawTag(32); - output.WriteUInt32(Retries); - } - } - - public int CalculateSize() - { - int size = 0; - if (Type != 0) - { - size += 1 + 4; - } - if (Info.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Info); - } - if (Answer.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Answer); - } - if (Retries != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retries); - } - return size; - } - - public void MergeFrom(Challenge other) - { - if (other == null) - { - return; - } - if (other.Type != 0) - { - Type = other.Type; - } - if (other.Info.Length != 0) - { - Info = other.Info; - } - if (other.Answer.Length != 0) - { - Answer = other.Answer; - } - if (other.Retries != 0) - { - Retries = other.Retries; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Type = input.ReadFixed32(); - break; - } - case 18: - { - Info = input.ReadString(); - break; - } - case 26: - { - Answer = input.ReadString(); - break; - } - case 32: - { - Retries = input.ReadUInt32(); - break; - } - } - } - } - + static ChallengeServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiliZ3MvbG93L3BiL2NsaWVudC9jaGFsbGVuZ2Vfc2VydmljZS5wcm90bxIZ", + "YmdzLnByb3RvY29sLmNoYWxsZW5nZS52MRohYmdzL2xvdy9wYi9jbGllbnQv", + "cnBjX3R5cGVzLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0", + "ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIvY2xp", + "ZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOGJn", + "cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRp", + "b25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u", + "cy9zZXJ2aWNlX29wdGlvbnMucHJvdG8iWAoYQ2hhbGxlbmdlRXh0ZXJuYWxS", + "ZXF1ZXN0EhUKDXJlcXVlc3RfdG9rZW4YASABKAkSFAoMcGF5bG9hZF90eXBl", + "GAIgASgJEg8KB3BheWxvYWQYAyABKAwiRgoXQ2hhbGxlbmdlRXh0ZXJuYWxS", + "ZXN1bHQSFQoNcmVxdWVzdF90b2tlbhgBIAEoCRIUCgZwYXNzZWQYAiABKAg6", + "BHRydWUyqwIKEUNoYWxsZW5nZUxpc3RlbmVyEm0KE09uRXh0ZXJuYWxDaGFs", + "bGVuZ2USMy5iZ3MucHJvdG9jb2wuY2hhbGxlbmdlLnYxLkNoYWxsZW5nZUV4", + "dGVybmFsUmVxdWVzdBoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkr", + "AggDEnIKGU9uRXh0ZXJuYWxDaGFsbGVuZ2VSZXN1bHQSMi5iZ3MucHJvdG9j", + "b2wuY2hhbGxlbmdlLnYxLkNoYWxsZW5nZUV4dGVybmFsUmVzdWx0GhkuYmdz", + "LnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAQaM4L5KykKJ2JuZXQucHJv", + "dG9jb2wuY2hhbGxlbmdlLkNoYWxsZW5nZU5vdGlmeYr5KwIIAUIDgAEA")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Challenge.V1.ChallengeExternalRequest), global::Bgs.Protocol.Challenge.V1.ChallengeExternalRequest.Parser, new[]{ "RequestToken", "PayloadType", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Challenge.V1.ChallengeExternalResult), global::Bgs.Protocol.Challenge.V1.ChallengeExternalResult.Parser, new[]{ "RequestToken", "Passed" }, null, null, null, null) + })); } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengePickedRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengePickedRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengePickedRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengePickedRequest(ChallengePickedRequest other) : this() - { - challenge_ = other.challenge_; - id_ = other.id_; - newChallengeProtocol_ = other.newChallengeProtocol_; - } - - public ChallengePickedRequest Clone() - { - return new ChallengePickedRequest(this); - } - - /// Field number for the "challenge" field. - public const int ChallengeFieldNumber = 1; - private uint challenge_; - public uint Challenge - { - get { return challenge_; } - set - { - challenge_ = value; - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "new_challenge_protocol" field. - public const int NewChallengeProtocolFieldNumber = 3; - private bool newChallengeProtocol_; - public bool NewChallengeProtocol - { - get { return newChallengeProtocol_; } - set - { - newChallengeProtocol_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengePickedRequest); - } - - public bool Equals(ChallengePickedRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Challenge != other.Challenge) return false; - if (Id != other.Id) return false; - if (NewChallengeProtocol != other.NewChallengeProtocol) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Challenge != 0) hash ^= Challenge.GetHashCode(); - if (Id != 0) hash ^= Id.GetHashCode(); - if (NewChallengeProtocol != false) hash ^= NewChallengeProtocol.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Challenge != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Challenge); - } - if (Id != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Id); - } - if (NewChallengeProtocol != false) - { - output.WriteRawTag(24); - output.WriteBool(NewChallengeProtocol); - } - } - - public int CalculateSize() - { - int size = 0; - if (Challenge != 0) - { - size += 1 + 4; - } - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (NewChallengeProtocol != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(ChallengePickedRequest other) - { - if (other == null) - { - return; - } - if (other.Challenge != 0) - { - Challenge = other.Challenge; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.NewChallengeProtocol != false) - { - NewChallengeProtocol = other.NewChallengeProtocol; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Challenge = input.ReadFixed32(); - break; - } - case 16: - { - Id = input.ReadUInt32(); - break; - } - case 24: - { - NewChallengeProtocol = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengePickedResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengePickedResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengePickedResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengePickedResponse(ChallengePickedResponse other) : this() - { - data_ = other.data_; - } - - public ChallengePickedResponse Clone() - { - return new ChallengePickedResponse(this); - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 1; - private pb::ByteString data_ = pb::ByteString.Empty; - public pb::ByteString Data - { - get { return data_; } - set - { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengePickedResponse); - } - - public bool Equals(ChallengePickedResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Data != other.Data) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Data.Length != 0) hash ^= Data.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Data.Length != 0) - { - output.WriteRawTag(10); - output.WriteBytes(Data); - } - } - - public int CalculateSize() - { - int size = 0; - if (Data.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - return size; - } - - public void MergeFrom(ChallengePickedResponse other) - { - if (other == null) - { - return; - } - if (other.Data.Length != 0) - { - Data = other.Data; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Data = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengeAnsweredRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeAnsweredRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[3]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengeAnsweredRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengeAnsweredRequest(ChallengeAnsweredRequest other) : this() - { - answer_ = other.answer_; - data_ = other.data_; - id_ = other.id_; - } - - public ChallengeAnsweredRequest Clone() - { - return new ChallengeAnsweredRequest(this); - } - - /// Field number for the "answer" field. - public const int AnswerFieldNumber = 1; - private string answer_ = ""; - public string Answer - { - get { return answer_; } - set - { - answer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 2; - private pb::ByteString data_ = pb::ByteString.Empty; - public pb::ByteString Data - { - get { return data_; } - set - { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 3; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengeAnsweredRequest); - } - - public bool Equals(ChallengeAnsweredRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Answer != other.Answer) return false; - if (Data != other.Data) return false; - if (Id != other.Id) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Answer.Length != 0) hash ^= Answer.GetHashCode(); - if (Data.Length != 0) hash ^= Data.GetHashCode(); - if (Id != 0) hash ^= Id.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Answer.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(Answer); - } - if (Data.Length != 0) - { - output.WriteRawTag(18); - output.WriteBytes(Data); - } - if (Id != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(Id); - } - } - - public int CalculateSize() - { - int size = 0; - if (Answer.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Answer); - } - if (Data.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - return size; - } - - public void MergeFrom(ChallengeAnsweredRequest other) - { - if (other == null) - { - return; - } - if (other.Answer.Length != 0) - { - Answer = other.Answer; - } - if (other.Data.Length != 0) - { - Data = other.Data; - } - if (other.Id != 0) - { - Id = other.Id; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Answer = input.ReadString(); - break; - } - case 18: - { - Data = input.ReadBytes(); - break; - } - case 24: - { - Id = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengeAnsweredResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeAnsweredResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengeAnsweredResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengeAnsweredResponse(ChallengeAnsweredResponse other) : this() - { - data_ = other.data_; - doRetry_ = other.doRetry_; - recordNotFound_ = other.recordNotFound_; - } - - public ChallengeAnsweredResponse Clone() - { - return new ChallengeAnsweredResponse(this); - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 1; - private pb::ByteString data_ = pb::ByteString.Empty; - public pb::ByteString Data - { - get { return data_; } - set - { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "do_retry" field. - public const int DoRetryFieldNumber = 2; - private bool doRetry_; - public bool DoRetry - { - get { return doRetry_; } - set - { - doRetry_ = value; - } - } - - /// Field number for the "record_not_found" field. - public const int RecordNotFoundFieldNumber = 3; - private bool recordNotFound_; - public bool RecordNotFound - { - get { return recordNotFound_; } - set - { - recordNotFound_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengeAnsweredResponse); - } - - public bool Equals(ChallengeAnsweredResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Data != other.Data) return false; - if (DoRetry != other.DoRetry) return false; - if (RecordNotFound != other.RecordNotFound) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Data.Length != 0) hash ^= Data.GetHashCode(); - if (DoRetry != false) hash ^= DoRetry.GetHashCode(); - if (RecordNotFound != false) hash ^= RecordNotFound.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Data.Length != 0) - { - output.WriteRawTag(10); - output.WriteBytes(Data); - } - if (DoRetry != false) - { - output.WriteRawTag(16); - output.WriteBool(DoRetry); - } - if (RecordNotFound != false) - { - output.WriteRawTag(24); - output.WriteBool(RecordNotFound); - } - } - - public int CalculateSize() - { - int size = 0; - if (Data.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (DoRetry != false) - { - size += 1 + 1; - } - if (RecordNotFound != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(ChallengeAnsweredResponse other) - { - if (other == null) - { - return; - } - if (other.Data.Length != 0) - { - Data = other.Data; - } - if (other.DoRetry != false) - { - DoRetry = other.DoRetry; - } - if (other.RecordNotFound != false) - { - RecordNotFound = other.RecordNotFound; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Data = input.ReadBytes(); - break; - } - case 16: - { - DoRetry = input.ReadBool(); - break; - } - case 24: - { - RecordNotFound = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengeCancelledRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeCancelledRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengeCancelledRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengeCancelledRequest(ChallengeCancelledRequest other) : this() - { - id_ = other.id_; - } - - public ChallengeCancelledRequest Clone() - { - return new ChallengeCancelledRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengeCancelledRequest); - } - - public bool Equals(ChallengeCancelledRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - return size; - } - - public void MergeFrom(ChallengeCancelledRequest other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Id = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SendChallengeToUserRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendChallengeToUserRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public SendChallengeToUserRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public SendChallengeToUserRequest(SendChallengeToUserRequest other) : this() - { - PeerId = other.peerId_ != null ? other.PeerId.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - challenges_ = other.challenges_.Clone(); - context_ = other.context_; - timeout_ = other.timeout_; - attributes_ = other.attributes_.Clone(); - Host = other.host_ != null ? other.Host.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; - } - - public SendChallengeToUserRequest Clone() - { - return new SendChallengeToUserRequest(this); - } - - /// Field number for the "peer_id" field. - public const int PeerIdFieldNumber = 1; - private Bgs.Protocol.ProcessId peerId_; - public Bgs.Protocol.ProcessId PeerId - { - get { return peerId_; } - set - { - peerId_ = value; - } - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - /// Field number for the "challenges" field. - public const int ChallengesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_challenges_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.Challenge.V1.Challenge.Parser); - private readonly pbc::RepeatedField challenges_ = new pbc::RepeatedField(); - public pbc::RepeatedField Challenges - { - get { return challenges_; } - } - - /// Field number for the "context" field. - public const int ContextFieldNumber = 4; - private uint context_; - public uint Context - { - get { return context_; } - set - { - context_ = value; - } - } - - /// Field number for the "timeout" field. - public const int TimeoutFieldNumber = 5; - private ulong timeout_; - public ulong Timeout - { - get { return timeout_; } - set - { - timeout_ = value; - } - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(50, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attributes - { - get { return attributes_; } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 7; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - /// Field number for the "account_id" field. - public const int AccountIdFieldNumber = 8; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId - { - get { return accountId_; } - set - { - accountId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as SendChallengeToUserRequest); - } - - public bool Equals(SendChallengeToUserRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(PeerId, other.PeerId)) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (!challenges_.Equals(other.challenges_)) return false; - if (Context != other.Context) return false; - if (Timeout != other.Timeout) return false; - if (!attributes_.Equals(other.attributes_)) return false; - if (!object.Equals(Host, other.Host)) return false; - if (!object.Equals(AccountId, other.AccountId)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (peerId_ != null) hash ^= PeerId.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - hash ^= challenges_.GetHashCode(); - if (Context != 0) hash ^= Context.GetHashCode(); - if (Timeout != 0UL) hash ^= Timeout.GetHashCode(); - hash ^= attributes_.GetHashCode(); - if (host_ != null) hash ^= Host.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (peerId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(PeerId); - } - if (gameAccountId_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(GameAccountId); - } - challenges_.WriteTo(output, _repeated_challenges_codec); - if (Context != 0) - { - output.WriteRawTag(37); - output.WriteFixed32(Context); - } - if (Timeout != 0UL) - { - output.WriteRawTag(40); - output.WriteUInt64(Timeout); - } - attributes_.WriteTo(output, _repeated_attributes_codec); - if (host_ != null) - { - output.WriteRawTag(58); - output.WriteMessage(Host); - } - if (accountId_ != null) - { - output.WriteRawTag(66); - output.WriteMessage(AccountId); - } - } - - public int CalculateSize() - { - int size = 0; - if (peerId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PeerId); - } - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - size += challenges_.CalculateSize(_repeated_challenges_codec); - if (Context != 0) - { - size += 1 + 4; - } - if (Timeout != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timeout); - } - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - if (accountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); - } - return size; - } - - public void MergeFrom(SendChallengeToUserRequest other) - { - if (other == null) - { - return; - } - if (other.peerId_ != null) - { - if (peerId_ == null) - { - peerId_ = new Bgs.Protocol.ProcessId(); - } - PeerId.MergeFrom(other.PeerId); - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - challenges_.Add(other.challenges_); - if (other.Context != 0) - { - Context = other.Context; - } - if (other.Timeout != 0UL) - { - Timeout = other.Timeout; - } - attributes_.Add(other.attributes_); - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - if (other.accountId_ != null) - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - AccountId.MergeFrom(other.AccountId); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (peerId_ == null) - { - peerId_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(peerId_); - break; - } - case 18: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 26: - { - challenges_.AddEntriesFrom(input, _repeated_challenges_codec); - break; - } - case 37: - { - Context = input.ReadFixed32(); - break; - } - case 40: - { - Timeout = input.ReadUInt64(); - break; - } - case 50: - { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - case 58: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - case 66: - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(accountId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SendChallengeToUserResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendChallengeToUserResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[7]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public SendChallengeToUserResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public SendChallengeToUserResponse(SendChallengeToUserResponse other) : this() - { - id_ = other.id_; - } - - public SendChallengeToUserResponse Clone() - { - return new SendChallengeToUserResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as SendChallengeToUserResponse); - } - - public bool Equals(SendChallengeToUserResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - return size; - } - - public void MergeFrom(SendChallengeToUserResponse other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Id = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengeUserRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeUserRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[8]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengeUserRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengeUserRequest(ChallengeUserRequest other) : this() - { - challenges_ = other.challenges_.Clone(); - context_ = other.context_; - id_ = other.id_; - deadline_ = other.deadline_; - attributes_ = other.attributes_.Clone(); - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - } - - public ChallengeUserRequest Clone() - { - return new ChallengeUserRequest(this); - } - - /// Field number for the "challenges" field. - public const int ChallengesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_challenges_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Challenge.V1.Challenge.Parser); - private readonly pbc::RepeatedField challenges_ = new pbc::RepeatedField(); - public pbc::RepeatedField Challenges - { - get { return challenges_; } - } - - /// Field number for the "context" field. - public const int ContextFieldNumber = 2; - private uint context_; - public uint Context - { - get { return context_; } - set - { - context_ = value; - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 3; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "deadline" field. - public const int DeadlineFieldNumber = 4; - private ulong deadline_; - public ulong Deadline - { - get { return deadline_; } - set - { - deadline_ = value; - } - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(42, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attributes - { - get { return attributes_; } - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 6; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengeUserRequest); - } - - public bool Equals(ChallengeUserRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!challenges_.Equals(other.challenges_)) return false; - if (Context != other.Context) return false; - if (Id != other.Id) return false; - if (Deadline != other.Deadline) return false; - if (!attributes_.Equals(other.attributes_)) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= challenges_.GetHashCode(); - if (Context != 0) hash ^= Context.GetHashCode(); - if (Id != 0) hash ^= Id.GetHashCode(); - if (Deadline != 0UL) hash ^= Deadline.GetHashCode(); - hash ^= attributes_.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - challenges_.WriteTo(output, _repeated_challenges_codec); - if (Context != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(Context); - } - if (Id != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(Id); - } - if (Deadline != 0UL) - { - output.WriteRawTag(32); - output.WriteUInt64(Deadline); - } - attributes_.WriteTo(output, _repeated_attributes_codec); - if (gameAccountId_ != null) - { - output.WriteRawTag(50); - output.WriteMessage(GameAccountId); - } - } - - public int CalculateSize() - { - int size = 0; - size += challenges_.CalculateSize(_repeated_challenges_codec); - if (Context != 0) - { - size += 1 + 4; - } - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (Deadline != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Deadline); - } - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - return size; - } - - public void MergeFrom(ChallengeUserRequest other) - { - if (other == null) - { - return; - } - challenges_.Add(other.challenges_); - if (other.Context != 0) - { - Context = other.Context; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.Deadline != 0UL) - { - Deadline = other.Deadline; - } - attributes_.Add(other.attributes_); - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - challenges_.AddEntriesFrom(input, _repeated_challenges_codec); - break; - } - case 21: - { - Context = input.ReadFixed32(); - break; - } - case 24: - { - Id = input.ReadUInt32(); - break; - } - case 32: - { - Deadline = input.ReadUInt64(); - break; - } - case 42: - { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - case 50: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengeResultRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeResultRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[9]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengeResultRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengeResultRequest(ChallengeResultRequest other) : this() - { - id_ = other.id_; - type_ = other.type_; - errorId_ = other.errorId_; - answer_ = other.answer_; - } - - public ChallengeResultRequest Clone() - { - return new ChallengeResultRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - private uint type_; - public uint Type - { - get { return type_; } - set - { - type_ = value; - } - } - - /// Field number for the "error_id" field. - public const int ErrorIdFieldNumber = 3; - private uint errorId_; - public uint ErrorId - { - get { return errorId_; } - set - { - errorId_ = value; - } - } - - /// Field number for the "answer" field. - public const int AnswerFieldNumber = 4; - private pb::ByteString answer_ = pb::ByteString.Empty; - public pb::ByteString Answer - { - get { return answer_; } - set - { - answer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengeResultRequest); - } - - public bool Equals(ChallengeResultRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - if (Type != other.Type) return false; - if (ErrorId != other.ErrorId) return false; - if (Answer != other.Answer) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - if (Type != 0) hash ^= Type.GetHashCode(); - if (ErrorId != 0) hash ^= ErrorId.GetHashCode(); - if (Answer.Length != 0) hash ^= Answer.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Id != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - if (Type != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(Type); - } - if (ErrorId != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(ErrorId); - } - if (Answer.Length != 0) - { - output.WriteRawTag(34); - output.WriteBytes(Answer); - } - } - - public int CalculateSize() - { - int size = 0; - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (Type != 0) - { - size += 1 + 4; - } - if (ErrorId != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorId); - } - if (Answer.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Answer); - } - return size; - } - - public void MergeFrom(ChallengeResultRequest other) - { - if (other == null) - { - return; - } - if (other.Id != 0) - { - Id = other.Id; - } - if (other.Type != 0) - { - Type = other.Type; - } - if (other.ErrorId != 0) - { - ErrorId = other.ErrorId; - } - if (other.Answer.Length != 0) - { - Answer = other.Answer; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Id = input.ReadUInt32(); - break; - } - case 21: - { - Type = input.ReadFixed32(); - break; - } - case 24: - { - ErrorId = input.ReadUInt32(); - break; - } - case 34: - { - Answer = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengeExternalRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeExternalRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[10]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengeExternalRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengeExternalRequest(ChallengeExternalRequest other) : this() - { - requestToken_ = other.requestToken_; - payloadType_ = other.payloadType_; - payload_ = other.payload_; - } - - public ChallengeExternalRequest Clone() - { - return new ChallengeExternalRequest(this); - } - - /// Field number for the "request_token" field. - public const int RequestTokenFieldNumber = 1; - private string requestToken_ = ""; - public string RequestToken - { - get { return requestToken_; } - set - { - requestToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "payload_type" field. - public const int PayloadTypeFieldNumber = 2; - private string payloadType_ = ""; - public string PayloadType - { - get { return payloadType_; } - set - { - payloadType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "payload" field. - public const int PayloadFieldNumber = 3; - private pb::ByteString payload_ = pb::ByteString.Empty; - public pb::ByteString Payload - { - get { return payload_; } - set - { - payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengeExternalRequest); - } - - public bool Equals(ChallengeExternalRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (RequestToken != other.RequestToken) return false; - if (PayloadType != other.PayloadType) return false; - if (Payload != other.Payload) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (RequestToken.Length != 0) hash ^= RequestToken.GetHashCode(); - if (PayloadType.Length != 0) hash ^= PayloadType.GetHashCode(); - if (Payload.Length != 0) hash ^= Payload.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (RequestToken.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(RequestToken); - } - if (PayloadType.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(PayloadType); - } - if (Payload.Length != 0) - { - output.WriteRawTag(26); - output.WriteBytes(Payload); - } - } - - public int CalculateSize() - { - int size = 0; - if (RequestToken.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestToken); - } - if (PayloadType.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadType); - } - if (Payload.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); - } - return size; - } - - public void MergeFrom(ChallengeExternalRequest other) - { - if (other == null) - { - return; - } - if (other.RequestToken.Length != 0) - { - RequestToken = other.RequestToken; - } - if (other.PayloadType.Length != 0) - { - PayloadType = other.PayloadType; - } - if (other.Payload.Length != 0) - { - Payload = other.Payload; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - RequestToken = input.ReadString(); - break; - } - case 18: - { - PayloadType = input.ReadString(); - break; - } - case 26: - { - Payload = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChallengeExternalResult : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeExternalResult()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[11]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ChallengeExternalResult() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChallengeExternalResult(ChallengeExternalResult other) : this() - { - requestToken_ = other.requestToken_; - passed_ = other.passed_; - } - - public ChallengeExternalResult Clone() - { - return new ChallengeExternalResult(this); - } - - /// Field number for the "request_token" field. - public const int RequestTokenFieldNumber = 1; - private string requestToken_ = ""; - public string RequestToken - { - get { return requestToken_; } - set - { - requestToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "passed" field. - public const int PassedFieldNumber = 2; - private bool passed_; - public bool Passed - { - get { return passed_; } - set - { - passed_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ChallengeExternalResult); - } - - public bool Equals(ChallengeExternalResult other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (RequestToken != other.RequestToken) return false; - if (Passed != other.Passed) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (RequestToken.Length != 0) hash ^= RequestToken.GetHashCode(); - if (Passed != false) hash ^= Passed.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (RequestToken.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(RequestToken); - } - if (Passed != false) - { - output.WriteRawTag(16); - output.WriteBool(Passed); - } - } - - public int CalculateSize() - { - int size = 0; - if (RequestToken.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestToken); - } - if (Passed != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(ChallengeExternalResult other) - { - if (other == null) - { - return; - } - if (other.RequestToken.Length != 0) - { - RequestToken = other.RequestToken; - } - if (other.Passed != false) - { - Passed = other.Passed; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - RequestToken = input.ReadString(); - break; - } - case 16: - { - Passed = input.ReadBool(); - break; - } - } - } - } - - } - #endregion + + } + #region Messages + public sealed partial class ChallengeExternalRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeExternalRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChallengeExternalRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChallengeExternalRequest(ChallengeExternalRequest other) : this() { + requestToken_ = other.requestToken_; + payloadType_ = other.payloadType_; + payload_ = other.payload_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChallengeExternalRequest Clone() { + return new ChallengeExternalRequest(this); + } + + /// Field number for the "request_token" field. + public const int RequestTokenFieldNumber = 1; + private readonly static string RequestTokenDefaultValue = ""; + + private string requestToken_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string RequestToken { + get { return requestToken_ ?? RequestTokenDefaultValue; } + set { + requestToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "request_token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRequestToken { + get { return requestToken_ != null; } + } + /// Clears the value of the "request_token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRequestToken() { + requestToken_ = null; + } + + /// Field number for the "payload_type" field. + public const int PayloadTypeFieldNumber = 2; + private readonly static string PayloadTypeDefaultValue = ""; + + private string payloadType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string PayloadType { + get { return payloadType_ ?? PayloadTypeDefaultValue; } + set { + payloadType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "payload_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPayloadType { + get { return payloadType_ != null; } + } + /// Clears the value of the "payload_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPayloadType() { + payloadType_ = null; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 3; + private readonly static pb::ByteString PayloadDefaultValue = pb::ByteString.Empty; + + private pb::ByteString payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Payload { + get { return payload_ ?? PayloadDefaultValue; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "payload" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPayload { + get { return payload_ != null; } + } + /// Clears the value of the "payload" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPayload() { + payload_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChallengeExternalRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChallengeExternalRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RequestToken != other.RequestToken) return false; + if (PayloadType != other.PayloadType) return false; + if (Payload != other.Payload) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasRequestToken) hash ^= RequestToken.GetHashCode(); + if (HasPayloadType) hash ^= PayloadType.GetHashCode(); + if (HasPayload) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasRequestToken) { + output.WriteRawTag(10); + output.WriteString(RequestToken); + } + if (HasPayloadType) { + output.WriteRawTag(18); + output.WriteString(PayloadType); + } + if (HasPayload) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasRequestToken) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestToken); + } + if (HasPayloadType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadType); + } + if (HasPayload) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChallengeExternalRequest other) { + if (other == null) { + return; + } + if (other.HasRequestToken) { + RequestToken = other.RequestToken; + } + if (other.HasPayloadType) { + PayloadType = other.PayloadType; + } + if (other.HasPayload) { + Payload = other.Payload; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RequestToken = input.ReadString(); + break; + } + case 18: { + PayloadType = input.ReadString(); + break; + } + case 26: { + Payload = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class ChallengeExternalResult : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeExternalResult()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Challenge.V1.ChallengeServiceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChallengeExternalResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChallengeExternalResult(ChallengeExternalResult other) : this() { + _hasBits0 = other._hasBits0; + requestToken_ = other.requestToken_; + passed_ = other.passed_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ChallengeExternalResult Clone() { + return new ChallengeExternalResult(this); + } + + /// Field number for the "request_token" field. + public const int RequestTokenFieldNumber = 1; + private readonly static string RequestTokenDefaultValue = ""; + + private string requestToken_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string RequestToken { + get { return requestToken_ ?? RequestTokenDefaultValue; } + set { + requestToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "request_token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRequestToken { + get { return requestToken_ != null; } + } + /// Clears the value of the "request_token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRequestToken() { + requestToken_ = null; + } + + /// Field number for the "passed" field. + public const int PassedFieldNumber = 2; + private readonly static bool PassedDefaultValue = true; + + private bool passed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Passed { + get { if ((_hasBits0 & 1) != 0) { return passed_; } else { return PassedDefaultValue; } } + set { + _hasBits0 |= 1; + passed_ = value; + } + } + /// Gets whether the "passed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPassed { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "passed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPassed() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ChallengeExternalResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ChallengeExternalResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RequestToken != other.RequestToken) return false; + if (Passed != other.Passed) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasRequestToken) hash ^= RequestToken.GetHashCode(); + if (HasPassed) hash ^= Passed.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasRequestToken) { + output.WriteRawTag(10); + output.WriteString(RequestToken); + } + if (HasPassed) { + output.WriteRawTag(16); + output.WriteBool(Passed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasRequestToken) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestToken); + } + if (HasPassed) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ChallengeExternalResult other) { + if (other == null) { + return; + } + if (other.HasRequestToken) { + RequestToken = other.RequestToken; + } + if (other.HasPassed) { + Passed = other.Passed; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RequestToken = input.ReadString(); + break; + } + case 16: { + Passed = input.ReadBool(); + break; + } + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/ChannelService.cs b/Source/Framework/Proto/ChannelService.cs deleted file mode 100644 index 57445a76d..000000000 --- a/Source/Framework/Proto/ChannelService.cs +++ /dev/null @@ -1,2992 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/channel_service.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Channel.V1 -{ - - /// Holder for reflection information generated from bgs/low/pb/client/channel_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class ChannelServiceReflection { - - #region Descriptor - /// File descriptor for bgs/low/pb/client/channel_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChannelServiceReflection() { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "CidiZ3MvbG93L3BiL2NsaWVudC9jaGFubmVsX3NlcnZpY2UucHJvdG8SF2Jn", - "cy5wcm90b2NvbC5jaGFubmVsLnYxGiViZ3MvbG93L3BiL2NsaWVudC9hY2Nv", - "dW50X3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw", - "ZXMucHJvdG8aJWJncy9sb3cvcGIvY2xpZW50L2NoYW5uZWxfdHlwZXMucHJv", - "dG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90byLPAQoQQWRk", - "TWVtYmVyUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2Nv", - "bC5FbnRpdHlJZBIvCg9tZW1iZXJfaWRlbnRpdHkYAiABKAsyFi5iZ3MucHJv", - "dG9jb2wuSWRlbnRpdHkSOgoMbWVtYmVyX3N0YXRlGAMgASgLMiQuYmdzLnBy", - "b3RvY29sLmNoYW5uZWwudjEuTWVtYmVyU3RhdGUSEQoJb2JqZWN0X2lkGAQg", - "ASgEEhEKCXN1YnNjcmliZRgFIAEoCCJ6ChNSZW1vdmVNZW1iZXJSZXF1ZXN0", - "EigKCGFnZW50X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEikK", - "CW1lbWJlcl9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIOCgZy", - "ZWFzb24YAyABKA0ibwoYVW5zdWJzY3JpYmVNZW1iZXJSZXF1ZXN0EigKCGFn", - "ZW50X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEikKCW1lbWJl", - "cl9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCKOAQoSU2VuZE1l", - "c3NhZ2VSZXF1ZXN0EigKCGFnZW50X2lkGAEgASgLMhYuYmdzLnByb3RvY29s", - "LkVudGl0eUlkEjEKB21lc3NhZ2UYAiABKAsyIC5iZ3MucHJvdG9jb2wuY2hh", - "bm5lbC52MS5NZXNzYWdlEhsKE3JlcXVpcmVkX3ByaXZpbGVnZXMYAyABKAQi", - "ggEKGVVwZGF0ZUNoYW5uZWxTdGF0ZVJlcXVlc3QSKAoIYWdlbnRfaWQYASAB", - "KAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSOwoMc3RhdGVfY2hhbmdlGAIg", - "ASgLMiUuYmdzLnByb3RvY29sLmNoYW5uZWwudjEuQ2hhbm5lbFN0YXRlIpUB", - "ChhVcGRhdGVNZW1iZXJTdGF0ZVJlcXVlc3QSKAoIYWdlbnRfaWQYASABKAsy", - "Fi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSNQoMc3RhdGVfY2hhbmdlGAIgAygL", - "Mh8uYmdzLnByb3RvY29sLmNoYW5uZWwudjEuTWVtYmVyEhgKDHJlbW92ZWRf", - "cm9sZRgDIAMoDUICEAEiSwoPRGlzc29sdmVSZXF1ZXN0EigKCGFnZW50X2lk", - "GAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEg4KBnJlYXNvbhgCIAEo", - "DSJ4Cg9TZXRSb2xlc1JlcXVlc3QSKAoIYWdlbnRfaWQYASABKAsyFi5iZ3Mu", - "cHJvdG9jb2wuRW50aXR5SWQSEAoEcm9sZRgCIAMoDUICEAESKQoJbWVtYmVy", - "X2lkGAMgAygLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkIp8CChBKb2luTm90", - "aWZpY2F0aW9uEi0KBHNlbGYYASABKAsyHy5iZ3MucHJvdG9jb2wuY2hhbm5l", - "bC52MS5NZW1iZXISLwoGbWVtYmVyGAIgAygLMh8uYmdzLnByb3RvY29sLmNo", - "YW5uZWwudjEuTWVtYmVyEjwKDWNoYW5uZWxfc3RhdGUYAyABKAsyJS5iZ3Mu", - "cHJvdG9jb2wuY2hhbm5lbC52MS5DaGFubmVsU3RhdGUSNgoKY2hhbm5lbF9p", - "ZBgEIAEoCzIiLmJncy5wcm90b2NvbC5jaGFubmVsLnYxLkNoYW5uZWxJZBI1", - "CgpzdWJzY3JpYmVyGAUgASgLMiEuYmdzLnByb3RvY29sLmFjY291bnQudjEu", - "SWRlbnRpdHkiuQEKF01lbWJlckFkZGVkTm90aWZpY2F0aW9uEi8KBm1lbWJl", - "chgBIAEoCzIfLmJncy5wcm90b2NvbC5jaGFubmVsLnYxLk1lbWJlchI2Cgpj", - "aGFubmVsX2lkGAIgASgLMiIuYmdzLnByb3RvY29sLmNoYW5uZWwudjEuQ2hh", - "bm5lbElkEjUKCnN1YnNjcmliZXIYAyABKAsyIS5iZ3MucHJvdG9jb2wuYWNj", - "b3VudC52MS5JZGVudGl0eSLnAQoRTGVhdmVOb3RpZmljYXRpb24SKAoIYWdl", - "bnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSKQoJbWVtYmVy", - "X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEg4KBnJlYXNvbhgD", - "IAEoDRI2CgpjaGFubmVsX2lkGAQgASgLMiIuYmdzLnByb3RvY29sLmNoYW5u", - "ZWwudjEuQ2hhbm5lbElkEjUKCnN1YnNjcmliZXIYBSABKAsyIS5iZ3MucHJv", - "dG9jb2wuYWNjb3VudC52MS5JZGVudGl0eSLvAQoZTWVtYmVyUmVtb3ZlZE5v", - "dGlmaWNhdGlvbhIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5F", - "bnRpdHlJZBIpCgltZW1iZXJfaWQYAiABKAsyFi5iZ3MucHJvdG9jb2wuRW50", - "aXR5SWQSDgoGcmVhc29uGAMgASgNEjYKCmNoYW5uZWxfaWQYBCABKAsyIi5i", - "Z3MucHJvdG9jb2wuY2hhbm5lbC52MS5DaGFubmVsSWQSNQoKc3Vic2NyaWJl", - "chgFIAEoCzIhLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLklkZW50aXR5IpQC", - "ChdTZW5kTWVzc2FnZU5vdGlmaWNhdGlvbhIoCghhZ2VudF9pZBgBIAEoCzIW", - "LmJncy5wcm90b2NvbC5FbnRpdHlJZBIxCgdtZXNzYWdlGAIgASgLMiAuYmdz", - "LnByb3RvY29sLmNoYW5uZWwudjEuTWVzc2FnZRIbChNyZXF1aXJlZF9wcml2", - "aWxlZ2VzGAMgASgEEhAKCGlkZW50aXR5GAQgASgJEjYKCmNoYW5uZWxfaWQY", - "BSABKAsyIi5iZ3MucHJvdG9jb2wuY2hhbm5lbC52MS5DaGFubmVsSWQSNQoK", - "c3Vic2NyaWJlchgGIAEoCzIhLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLklk", - "ZW50aXR5IvYBCh5VcGRhdGVDaGFubmVsU3RhdGVOb3RpZmljYXRpb24SKAoI", - "YWdlbnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSOwoMc3Rh", - "dGVfY2hhbmdlGAIgASgLMiUuYmdzLnByb3RvY29sLmNoYW5uZWwudjEuQ2hh", - "bm5lbFN0YXRlEjYKCmNoYW5uZWxfaWQYAyABKAsyIi5iZ3MucHJvdG9jb2wu", - "Y2hhbm5lbC52MS5DaGFubmVsSWQSNQoKc3Vic2NyaWJlchgEIAEoCzIhLmJn", - "cy5wcm90b2NvbC5hY2NvdW50LnYxLklkZW50aXR5IokCCh1VcGRhdGVNZW1i", - "ZXJTdGF0ZU5vdGlmaWNhdGlvbhIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5w", - "cm90b2NvbC5FbnRpdHlJZBI1CgxzdGF0ZV9jaGFuZ2UYAiADKAsyHy5iZ3Mu", - "cHJvdG9jb2wuY2hhbm5lbC52MS5NZW1iZXISGAoMcmVtb3ZlZF9yb2xlGAMg", - "AygNQgIQARI2CgpjaGFubmVsX2lkGAQgASgLMiIuYmdzLnByb3RvY29sLmNo", - "YW5uZWwudjEuQ2hhbm5lbElkEjUKCnN1YnNjcmliZXIYBSABKAsyIS5iZ3Mu", - "cHJvdG9jb2wuYWNjb3VudC52MS5JZGVudGl0eTK4BQoOQ2hhbm5lbFNlcnZp", - "Y2USTAoJQWRkTWVtYmVyEikuYmdzLnByb3RvY29sLmNoYW5uZWwudjEuQWRk", - "TWVtYmVyUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGESUgoMUmVtb3Zl", - "TWVtYmVyEiwuYmdzLnByb3RvY29sLmNoYW5uZWwudjEuUmVtb3ZlTWVtYmVy", - "UmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGESUAoLU2VuZE1lc3NhZ2US", - "Ky5iZ3MucHJvdG9jb2wuY2hhbm5lbC52MS5TZW5kTWVzc2FnZVJlcXVlc3Qa", - "FC5iZ3MucHJvdG9jb2wuTm9EYXRhEl4KElVwZGF0ZUNoYW5uZWxTdGF0ZRIy", - "LmJncy5wcm90b2NvbC5jaGFubmVsLnYxLlVwZGF0ZUNoYW5uZWxTdGF0ZVJl", - "cXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhElwKEVVwZGF0ZU1lbWJlclN0", - "YXRlEjEuYmdzLnByb3RvY29sLmNoYW5uZWwudjEuVXBkYXRlTWVtYmVyU3Rh", - "dGVSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YRJKCghEaXNzb2x2ZRIo", - "LmJncy5wcm90b2NvbC5jaGFubmVsLnYxLkRpc3NvbHZlUmVxdWVzdBoULmJn", - "cy5wcm90b2NvbC5Ob0RhdGESSgoIU2V0Um9sZXMSKC5iZ3MucHJvdG9jb2wu", - "Y2hhbm5lbC52MS5TZXRSb2xlc1JlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9E", - "YXRhElwKEVVuc3Vic2NyaWJlTWVtYmVyEjEuYmdzLnByb3RvY29sLmNoYW5u", - "ZWwudjEuVW5zdWJzY3JpYmVNZW1iZXJSZXF1ZXN0GhQuYmdzLnByb3RvY29s", - "Lk5vRGF0YTKnBQoPQ2hhbm5lbExpc3RlbmVyEk4KBk9uSm9pbhIpLmJncy5w", - "cm90b2NvbC5jaGFubmVsLnYxLkpvaW5Ob3RpZmljYXRpb24aGS5iZ3MucHJv", - "dG9jb2wuTk9fUkVTUE9OU0USXAoNT25NZW1iZXJBZGRlZBIwLmJncy5wcm90", - "b2NvbC5jaGFubmVsLnYxLk1lbWJlckFkZGVkTm90aWZpY2F0aW9uGhkuYmdz", - "LnByb3RvY29sLk5PX1JFU1BPTlNFElAKB09uTGVhdmUSKi5iZ3MucHJvdG9j", - "b2wuY2hhbm5lbC52MS5MZWF2ZU5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2Nv", - "bC5OT19SRVNQT05TRRJgCg9Pbk1lbWJlclJlbW92ZWQSMi5iZ3MucHJvdG9j", - "b2wuY2hhbm5lbC52MS5NZW1iZXJSZW1vdmVkTm90aWZpY2F0aW9uGhkuYmdz", - "LnByb3RvY29sLk5PX1JFU1BPTlNFElwKDU9uU2VuZE1lc3NhZ2USMC5iZ3Mu", - "cHJvdG9jb2wuY2hhbm5lbC52MS5TZW5kTWVzc2FnZU5vdGlmaWNhdGlvbhoZ", - "LmJncy5wcm90b2NvbC5OT19SRVNQT05TRRJqChRPblVwZGF0ZUNoYW5uZWxT", - "dGF0ZRI3LmJncy5wcm90b2NvbC5jaGFubmVsLnYxLlVwZGF0ZUNoYW5uZWxT", - "dGF0ZU5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRRJo", - "ChNPblVwZGF0ZU1lbWJlclN0YXRlEjYuYmdzLnByb3RvY29sLmNoYW5uZWwu", - "djEuVXBkYXRlTWVtYmVyU3RhdGVOb3RpZmljYXRpb24aGS5iZ3MucHJvdG9j", - "b2wuTk9fUkVTUE9OU0VCBUgCgAEAYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.AddMemberRequest), Bgs.Protocol.Channel.V1.AddMemberRequest.Parser, new[]{ "AgentId", "MemberIdentity", "MemberState", "ObjectId", "Subscribe" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.RemoveMemberRequest), Bgs.Protocol.Channel.V1.RemoveMemberRequest.Parser, new[]{ "AgentId", "MemberId", "Reason" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.UnsubscribeMemberRequest), Bgs.Protocol.Channel.V1.UnsubscribeMemberRequest.Parser, new[]{ "AgentId", "MemberId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.SendMessageRequest), Bgs.Protocol.Channel.V1.SendMessageRequest.Parser, new[]{ "AgentId", "Message", "RequiredPrivileges" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.UpdateChannelStateRequest), Bgs.Protocol.Channel.V1.UpdateChannelStateRequest.Parser, new[]{ "AgentId", "StateChange" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.UpdateMemberStateRequest), Bgs.Protocol.Channel.V1.UpdateMemberStateRequest.Parser, new[]{ "AgentId", "StateChange", "RemovedRole" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.DissolveRequest), Bgs.Protocol.Channel.V1.DissolveRequest.Parser, new[]{ "AgentId", "Reason" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.SetRolesRequest), Bgs.Protocol.Channel.V1.SetRolesRequest.Parser, new[]{ "AgentId", "Role", "MemberId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.JoinNotification), Bgs.Protocol.Channel.V1.JoinNotification.Parser, new[]{ "Self", "Member", "ChannelState", "ChannelId", "Subscriber" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.MemberAddedNotification), Bgs.Protocol.Channel.V1.MemberAddedNotification.Parser, new[]{ "Member", "ChannelId", "Subscriber" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.LeaveNotification), Bgs.Protocol.Channel.V1.LeaveNotification.Parser, new[]{ "AgentId", "MemberId", "Reason", "ChannelId", "Subscriber" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.MemberRemovedNotification), Bgs.Protocol.Channel.V1.MemberRemovedNotification.Parser, new[]{ "AgentId", "MemberId", "Reason", "ChannelId", "Subscriber" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.SendMessageNotification), Bgs.Protocol.Channel.V1.SendMessageNotification.Parser, new[]{ "AgentId", "Message", "RequiredPrivileges", "Identity", "ChannelId", "Subscriber" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.UpdateChannelStateNotification), Bgs.Protocol.Channel.V1.UpdateChannelStateNotification.Parser, new[]{ "AgentId", "StateChange", "ChannelId", "Subscriber" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.UpdateMemberStateNotification), Bgs.Protocol.Channel.V1.UpdateMemberStateNotification.Parser, new[]{ "AgentId", "StateChange", "RemovedRole", "ChannelId", "Subscriber" }, null, null, null) - })); - } - #endregion - - } - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AddMemberRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddMemberRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public AddMemberRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public AddMemberRequest(AddMemberRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - MemberIdentity = other.memberIdentity_ != null ? other.MemberIdentity.Clone() : null; - MemberState = other.memberState_ != null ? other.MemberState.Clone() : null; - objectId_ = other.objectId_; - subscribe_ = other.subscribe_; - } - - public AddMemberRequest Clone() { - return new AddMemberRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "member_identity" field. - public const int MemberIdentityFieldNumber = 2; - private Bgs.Protocol.Identity memberIdentity_; - public Bgs.Protocol.Identity MemberIdentity { - get { return memberIdentity_; } - set { - memberIdentity_ = value; - } - } - - /// Field number for the "member_state" field. - public const int MemberStateFieldNumber = 3; - private Bgs.Protocol.Channel.V1.MemberState memberState_; - public Bgs.Protocol.Channel.V1.MemberState MemberState { - get { return memberState_; } - set { - memberState_ = value; - } - } - - /// Field number for the "object_id" field. - public const int ObjectIdFieldNumber = 4; - private ulong objectId_; - public ulong ObjectId { - get { return objectId_; } - set { - objectId_ = value; - } - } - - /// Field number for the "subscribe" field. - public const int SubscribeFieldNumber = 5; - private bool subscribe_; - public bool Subscribe { - get { return subscribe_; } - set { - subscribe_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as AddMemberRequest); - } - - public bool Equals(AddMemberRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(MemberIdentity, other.MemberIdentity)) return false; - if (!object.Equals(MemberState, other.MemberState)) return false; - if (ObjectId != other.ObjectId) return false; - if (Subscribe != other.Subscribe) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (memberIdentity_ != null) hash ^= MemberIdentity.GetHashCode(); - if (memberState_ != null) hash ^= MemberState.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); - if (Subscribe != false) hash ^= Subscribe.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (memberIdentity_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MemberIdentity); - } - if (memberState_ != null) { - output.WriteRawTag(26); - output.WriteMessage(MemberState); - } - if (ObjectId != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(ObjectId); - } - if (Subscribe != false) { - output.WriteRawTag(40); - output.WriteBool(Subscribe); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (memberIdentity_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberIdentity); - } - if (memberState_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberState); - } - if (ObjectId != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); - } - if (Subscribe != false) { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(AddMemberRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.memberIdentity_ != null) { - if (memberIdentity_ == null) { - memberIdentity_ = new Bgs.Protocol.Identity(); - } - MemberIdentity.MergeFrom(other.MemberIdentity); - } - if (other.memberState_ != null) { - if (memberState_ == null) { - memberState_ = new Bgs.Protocol.Channel.V1.MemberState(); - } - MemberState.MergeFrom(other.MemberState); - } - if (other.ObjectId != 0UL) { - ObjectId = other.ObjectId; - } - if (other.Subscribe != false) { - Subscribe = other.Subscribe; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (memberIdentity_ == null) { - memberIdentity_ = new Bgs.Protocol.Identity(); - } - input.ReadMessage(memberIdentity_); - break; - } - case 26: { - if (memberState_ == null) { - memberState_ = new Bgs.Protocol.Channel.V1.MemberState(); - } - input.ReadMessage(memberState_); - break; - } - case 32: { - ObjectId = input.ReadUInt64(); - break; - } - case 40: { - Subscribe = input.ReadBool(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class RemoveMemberRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveMemberRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public RemoveMemberRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public RemoveMemberRequest(RemoveMemberRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - MemberId = other.memberId_ != null ? other.MemberId.Clone() : null; - reason_ = other.reason_; - } - - public RemoveMemberRequest Clone() { - return new RemoveMemberRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "member_id" field. - public const int MemberIdFieldNumber = 2; - private Bgs.Protocol.EntityId memberId_; - public Bgs.Protocol.EntityId MemberId { - get { return memberId_; } - set { - memberId_ = value; - } - } - - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 3; - private uint reason_; - public uint Reason { - get { return reason_; } - set { - reason_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as RemoveMemberRequest); - } - - public bool Equals(RemoveMemberRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(MemberId, other.MemberId)) return false; - if (Reason != other.Reason) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (memberId_ != null) hash ^= MemberId.GetHashCode(); - if (Reason != 0) hash ^= Reason.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (memberId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MemberId); - } - if (Reason != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Reason); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (memberId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); - } - if (Reason != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason); - } - return size; - } - - public void MergeFrom(RemoveMemberRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.memberId_ != null) { - if (memberId_ == null) { - memberId_ = new Bgs.Protocol.EntityId(); - } - MemberId.MergeFrom(other.MemberId); - } - if (other.Reason != 0) { - Reason = other.Reason; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (memberId_ == null) { - memberId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(memberId_); - break; - } - case 24: { - Reason = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class UnsubscribeMemberRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsubscribeMemberRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public UnsubscribeMemberRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public UnsubscribeMemberRequest(UnsubscribeMemberRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - MemberId = other.memberId_ != null ? other.MemberId.Clone() : null; - } - - public UnsubscribeMemberRequest Clone() { - return new UnsubscribeMemberRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "member_id" field. - public const int MemberIdFieldNumber = 2; - private Bgs.Protocol.EntityId memberId_; - public Bgs.Protocol.EntityId MemberId { - get { return memberId_; } - set { - memberId_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as UnsubscribeMemberRequest); - } - - public bool Equals(UnsubscribeMemberRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(MemberId, other.MemberId)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (memberId_ != null) hash ^= MemberId.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (memberId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MemberId); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (memberId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); - } - return size; - } - - public void MergeFrom(UnsubscribeMemberRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.memberId_ != null) { - if (memberId_ == null) { - memberId_ = new Bgs.Protocol.EntityId(); - } - MemberId.MergeFrom(other.MemberId); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (memberId_ == null) { - memberId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(memberId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SendMessageRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendMessageRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[3]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public SendMessageRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public SendMessageRequest(SendMessageRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - Message = other.message_ != null ? other.Message.Clone() : null; - requiredPrivileges_ = other.requiredPrivileges_; - } - - public SendMessageRequest Clone() { - return new SendMessageRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 2; - private Bgs.Protocol.Channel.V1.Message message_; - public Bgs.Protocol.Channel.V1.Message Message { - get { return message_; } - set { - message_ = value; - } - } - - /// Field number for the "required_privileges" field. - public const int RequiredPrivilegesFieldNumber = 3; - private ulong requiredPrivileges_; - public ulong RequiredPrivileges { - get { return requiredPrivileges_; } - set { - requiredPrivileges_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as SendMessageRequest); - } - - public bool Equals(SendMessageRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(Message, other.Message)) return false; - if (RequiredPrivileges != other.RequiredPrivileges) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (message_ != null) hash ^= Message.GetHashCode(); - if (RequiredPrivileges != 0UL) hash ^= RequiredPrivileges.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (message_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Message); - } - if (RequiredPrivileges != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(RequiredPrivileges); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (message_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); - } - if (RequiredPrivileges != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RequiredPrivileges); - } - return size; - } - - public void MergeFrom(SendMessageRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.message_ != null) { - if (message_ == null) { - message_ = new Bgs.Protocol.Channel.V1.Message(); - } - Message.MergeFrom(other.Message); - } - if (other.RequiredPrivileges != 0UL) { - RequiredPrivileges = other.RequiredPrivileges; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (message_ == null) { - message_ = new Bgs.Protocol.Channel.V1.Message(); - } - input.ReadMessage(message_); - break; - } - case 24: { - RequiredPrivileges = input.ReadUInt64(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class UpdateChannelStateRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateChannelStateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public UpdateChannelStateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public UpdateChannelStateRequest(UpdateChannelStateRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - StateChange = other.stateChange_ != null ? other.StateChange.Clone() : null; - } - - public UpdateChannelStateRequest Clone() { - return new UpdateChannelStateRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "state_change" field. - public const int StateChangeFieldNumber = 2; - private Bgs.Protocol.Channel.V1.ChannelState stateChange_; - public Bgs.Protocol.Channel.V1.ChannelState StateChange { - get { return stateChange_; } - set { - stateChange_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as UpdateChannelStateRequest); - } - - public bool Equals(UpdateChannelStateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(StateChange, other.StateChange)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (stateChange_ != null) hash ^= StateChange.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (stateChange_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StateChange); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (stateChange_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StateChange); - } - return size; - } - - public void MergeFrom(UpdateChannelStateRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.stateChange_ != null) { - if (stateChange_ == null) { - stateChange_ = new Bgs.Protocol.Channel.V1.ChannelState(); - } - StateChange.MergeFrom(other.StateChange); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (stateChange_ == null) { - stateChange_ = new Bgs.Protocol.Channel.V1.ChannelState(); - } - input.ReadMessage(stateChange_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class UpdateMemberStateRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMemberStateRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public UpdateMemberStateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public UpdateMemberStateRequest(UpdateMemberStateRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - stateChange_ = other.stateChange_.Clone(); - removedRole_ = other.removedRole_.Clone(); - } - - public UpdateMemberStateRequest Clone() { - return new UpdateMemberStateRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "state_change" field. - public const int StateChangeFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_stateChange_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Channel.V1.Member.Parser); - private readonly pbc::RepeatedField stateChange_ = new pbc::RepeatedField(); - public pbc::RepeatedField StateChange { - get { return stateChange_; } - } - - /// Field number for the "removed_role" field. - public const int RemovedRoleFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_removedRole_codec - = pb::FieldCodec.ForUInt32(26); - private readonly pbc::RepeatedField removedRole_ = new pbc::RepeatedField(); - public pbc::RepeatedField RemovedRole { - get { return removedRole_; } - } - - public override bool Equals(object other) { - return Equals(other as UpdateMemberStateRequest); - } - - public bool Equals(UpdateMemberStateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if(!stateChange_.Equals(other.stateChange_)) return false; - if(!removedRole_.Equals(other.removedRole_)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - hash ^= stateChange_.GetHashCode(); - hash ^= removedRole_.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - stateChange_.WriteTo(output, _repeated_stateChange_codec); - removedRole_.WriteTo(output, _repeated_removedRole_codec); - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - size += stateChange_.CalculateSize(_repeated_stateChange_codec); - size += removedRole_.CalculateSize(_repeated_removedRole_codec); - return size; - } - - public void MergeFrom(UpdateMemberStateRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - stateChange_.Add(other.stateChange_); - removedRole_.Add(other.removedRole_); - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - stateChange_.AddEntriesFrom(input, _repeated_stateChange_codec); - break; - } - case 26: - case 24: { - removedRole_.AddEntriesFrom(input, _repeated_removedRole_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class DissolveRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DissolveRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public DissolveRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public DissolveRequest(DissolveRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - reason_ = other.reason_; - } - - public DissolveRequest Clone() { - return new DissolveRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 2; - private uint reason_; - public uint Reason { - get { return reason_; } - set { - reason_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as DissolveRequest); - } - - public bool Equals(DissolveRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (Reason != other.Reason) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (Reason != 0) hash ^= Reason.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (Reason != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Reason); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (Reason != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason); - } - return size; - } - - public void MergeFrom(DissolveRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.Reason != 0) { - Reason = other.Reason; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 16: { - Reason = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SetRolesRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetRolesRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[7]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public SetRolesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public SetRolesRequest(SetRolesRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - role_ = other.role_.Clone(); - memberId_ = other.memberId_.Clone(); - } - - public SetRolesRequest Clone() { - return new SetRolesRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "role" field. - public const int RoleFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_role_codec - = pb::FieldCodec.ForUInt32(18); - private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); - public pbc::RepeatedField Role { - get { return role_; } - } - - /// Field number for the "member_id" field. - public const int MemberIdFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_memberId_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.EntityId.Parser); - private readonly pbc::RepeatedField memberId_ = new pbc::RepeatedField(); - public pbc::RepeatedField MemberId { - get { return memberId_; } - } - - public override bool Equals(object other) { - return Equals(other as SetRolesRequest); - } - - public bool Equals(SetRolesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if(!role_.Equals(other.role_)) return false; - if(!memberId_.Equals(other.memberId_)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - hash ^= role_.GetHashCode(); - hash ^= memberId_.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - role_.WriteTo(output, _repeated_role_codec); - memberId_.WriteTo(output, _repeated_memberId_codec); - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - size += role_.CalculateSize(_repeated_role_codec); - size += memberId_.CalculateSize(_repeated_memberId_codec); - return size; - } - - public void MergeFrom(SetRolesRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - role_.Add(other.role_); - memberId_.Add(other.memberId_); - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: - case 16: { - role_.AddEntriesFrom(input, _repeated_role_codec); - break; - } - case 26: { - memberId_.AddEntriesFrom(input, _repeated_memberId_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class JoinNotification : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[8]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public JoinNotification() { - OnConstruction(); - } - - partial void OnConstruction(); - - public JoinNotification(JoinNotification other) : this() { - Self = other.self_ != null ? other.Self.Clone() : null; - member_ = other.member_.Clone(); - ChannelState = other.channelState_ != null ? other.ChannelState.Clone() : null; - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; - Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null; - } - - public JoinNotification Clone() { - return new JoinNotification(this); - } - - /// Field number for the "self" field. - public const int SelfFieldNumber = 1; - private Bgs.Protocol.Channel.V1.Member self_; - public Bgs.Protocol.Channel.V1.Member Self { - get { return self_; } - set { - self_ = value; - } - } - - /// Field number for the "member" field. - public const int MemberFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_member_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Channel.V1.Member.Parser); - private readonly pbc::RepeatedField member_ = new pbc::RepeatedField(); - public pbc::RepeatedField Member { - get { return member_; } - } - - /// Field number for the "channel_state" field. - public const int ChannelStateFieldNumber = 3; - private Bgs.Protocol.Channel.V1.ChannelState channelState_; - public Bgs.Protocol.Channel.V1.ChannelState ChannelState { - get { return channelState_; } - set { - channelState_ = value; - } - } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 4; - private Bgs.Protocol.Channel.V1.ChannelId channelId_; - public Bgs.Protocol.Channel.V1.ChannelId ChannelId { - get { return channelId_; } - set { - channelId_ = value; - } - } - - /// Field number for the "subscriber" field. - public const int SubscriberFieldNumber = 5; - private Bgs.Protocol.Account.V1.Identity subscriber_; - public Bgs.Protocol.Account.V1.Identity Subscriber { - get { return subscriber_; } - set { - subscriber_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as JoinNotification); - } - - public bool Equals(JoinNotification other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Self, other.Self)) return false; - if(!member_.Equals(other.member_)) return false; - if (!object.Equals(ChannelState, other.ChannelState)) return false; - if (!object.Equals(ChannelId, other.ChannelId)) return false; - if (!object.Equals(Subscriber, other.Subscriber)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (self_ != null) hash ^= Self.GetHashCode(); - hash ^= member_.GetHashCode(); - if (channelState_ != null) hash ^= ChannelState.GetHashCode(); - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (subscriber_ != null) hash ^= Subscriber.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (self_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Self); - } - member_.WriteTo(output, _repeated_member_codec); - if (channelState_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ChannelState); - } - if (channelId_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ChannelId); - } - if (subscriber_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Subscriber); - } - } - - public int CalculateSize() { - int size = 0; - if (self_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Self); - } - size += member_.CalculateSize(_repeated_member_codec); - if (channelState_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelState); - } - if (channelId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); - } - if (subscriber_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber); - } - return size; - } - - public void MergeFrom(JoinNotification other) { - if (other == null) { - return; - } - if (other.self_ != null) { - if (self_ == null) { - self_ = new Bgs.Protocol.Channel.V1.Member(); - } - Self.MergeFrom(other.Self); - } - member_.Add(other.member_); - if (other.channelState_ != null) { - if (channelState_ == null) { - channelState_ = new Bgs.Protocol.Channel.V1.ChannelState(); - } - ChannelState.MergeFrom(other.ChannelState); - } - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - ChannelId.MergeFrom(other.ChannelId); - } - if (other.subscriber_ != null) { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - Subscriber.MergeFrom(other.Subscriber); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (self_ == null) { - self_ = new Bgs.Protocol.Channel.V1.Member(); - } - input.ReadMessage(self_); - break; - } - case 18: { - member_.AddEntriesFrom(input, _repeated_member_codec); - break; - } - case 26: { - if (channelState_ == null) { - channelState_ = new Bgs.Protocol.Channel.V1.ChannelState(); - } - input.ReadMessage(channelState_); - break; - } - case 34: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - input.ReadMessage(channelId_); - break; - } - case 42: { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - input.ReadMessage(subscriber_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class MemberAddedNotification : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberAddedNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[9]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public MemberAddedNotification() { - OnConstruction(); - } - - partial void OnConstruction(); - - public MemberAddedNotification(MemberAddedNotification other) : this() { - Member = other.member_ != null ? other.Member.Clone() : null; - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; - Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null; - } - - public MemberAddedNotification Clone() { - return new MemberAddedNotification(this); - } - - /// Field number for the "member" field. - public const int MemberFieldNumber = 1; - private Bgs.Protocol.Channel.V1.Member member_; - public Bgs.Protocol.Channel.V1.Member Member { - get { return member_; } - set { - member_ = value; - } - } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 2; - private Bgs.Protocol.Channel.V1.ChannelId channelId_; - public Bgs.Protocol.Channel.V1.ChannelId ChannelId { - get { return channelId_; } - set { - channelId_ = value; - } - } - - /// Field number for the "subscriber" field. - public const int SubscriberFieldNumber = 3; - private Bgs.Protocol.Account.V1.Identity subscriber_; - public Bgs.Protocol.Account.V1.Identity Subscriber { - get { return subscriber_; } - set { - subscriber_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as MemberAddedNotification); - } - - public bool Equals(MemberAddedNotification other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Member, other.Member)) return false; - if (!object.Equals(ChannelId, other.ChannelId)) return false; - if (!object.Equals(Subscriber, other.Subscriber)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (member_ != null) hash ^= Member.GetHashCode(); - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (subscriber_ != null) hash ^= Subscriber.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (member_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Member); - } - if (channelId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ChannelId); - } - if (subscriber_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Subscriber); - } - } - - public int CalculateSize() { - int size = 0; - if (member_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Member); - } - if (channelId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); - } - if (subscriber_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber); - } - return size; - } - - public void MergeFrom(MemberAddedNotification other) { - if (other == null) { - return; - } - if (other.member_ != null) { - if (member_ == null) { - member_ = new Bgs.Protocol.Channel.V1.Member(); - } - Member.MergeFrom(other.Member); - } - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - ChannelId.MergeFrom(other.ChannelId); - } - if (other.subscriber_ != null) { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - Subscriber.MergeFrom(other.Subscriber); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (member_ == null) { - member_ = new Bgs.Protocol.Channel.V1.Member(); - } - input.ReadMessage(member_); - break; - } - case 18: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - input.ReadMessage(channelId_); - break; - } - case 26: { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - input.ReadMessage(subscriber_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class LeaveNotification : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeaveNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[10]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public LeaveNotification() { - OnConstruction(); - } - - partial void OnConstruction(); - - public LeaveNotification(LeaveNotification other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - MemberId = other.memberId_ != null ? other.MemberId.Clone() : null; - reason_ = other.reason_; - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; - Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null; - } - - public LeaveNotification Clone() { - return new LeaveNotification(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "member_id" field. - public const int MemberIdFieldNumber = 2; - private Bgs.Protocol.EntityId memberId_; - public Bgs.Protocol.EntityId MemberId { - get { return memberId_; } - set { - memberId_ = value; - } - } - - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 3; - private uint reason_; - public uint Reason { - get { return reason_; } - set { - reason_ = value; - } - } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 4; - private Bgs.Protocol.Channel.V1.ChannelId channelId_; - public Bgs.Protocol.Channel.V1.ChannelId ChannelId { - get { return channelId_; } - set { - channelId_ = value; - } - } - - /// Field number for the "subscriber" field. - public const int SubscriberFieldNumber = 5; - private Bgs.Protocol.Account.V1.Identity subscriber_; - public Bgs.Protocol.Account.V1.Identity Subscriber { - get { return subscriber_; } - set { - subscriber_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as LeaveNotification); - } - - public bool Equals(LeaveNotification other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(MemberId, other.MemberId)) return false; - if (Reason != other.Reason) return false; - if (!object.Equals(ChannelId, other.ChannelId)) return false; - if (!object.Equals(Subscriber, other.Subscriber)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (memberId_ != null) hash ^= MemberId.GetHashCode(); - if (Reason != 0) hash ^= Reason.GetHashCode(); - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (subscriber_ != null) hash ^= Subscriber.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (memberId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MemberId); - } - if (Reason != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Reason); - } - if (channelId_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ChannelId); - } - if (subscriber_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Subscriber); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (memberId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); - } - if (Reason != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason); - } - if (channelId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); - } - if (subscriber_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber); - } - return size; - } - - public void MergeFrom(LeaveNotification other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.memberId_ != null) { - if (memberId_ == null) { - memberId_ = new Bgs.Protocol.EntityId(); - } - MemberId.MergeFrom(other.MemberId); - } - if (other.Reason != 0) { - Reason = other.Reason; - } - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - ChannelId.MergeFrom(other.ChannelId); - } - if (other.subscriber_ != null) { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - Subscriber.MergeFrom(other.Subscriber); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (memberId_ == null) { - memberId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(memberId_); - break; - } - case 24: { - Reason = input.ReadUInt32(); - break; - } - case 34: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - input.ReadMessage(channelId_); - break; - } - case 42: { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - input.ReadMessage(subscriber_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class MemberRemovedNotification : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberRemovedNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[11]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public MemberRemovedNotification() { - OnConstruction(); - } - - partial void OnConstruction(); - - public MemberRemovedNotification(MemberRemovedNotification other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - MemberId = other.memberId_ != null ? other.MemberId.Clone() : null; - reason_ = other.reason_; - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; - Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null; - } - - public MemberRemovedNotification Clone() { - return new MemberRemovedNotification(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "member_id" field. - public const int MemberIdFieldNumber = 2; - private Bgs.Protocol.EntityId memberId_; - public Bgs.Protocol.EntityId MemberId { - get { return memberId_; } - set { - memberId_ = value; - } - } - - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 3; - private uint reason_; - public uint Reason { - get { return reason_; } - set { - reason_ = value; - } - } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 4; - private Bgs.Protocol.Channel.V1.ChannelId channelId_; - public Bgs.Protocol.Channel.V1.ChannelId ChannelId { - get { return channelId_; } - set { - channelId_ = value; - } - } - - /// Field number for the "subscriber" field. - public const int SubscriberFieldNumber = 5; - private Bgs.Protocol.Account.V1.Identity subscriber_; - public Bgs.Protocol.Account.V1.Identity Subscriber { - get { return subscriber_; } - set { - subscriber_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as MemberRemovedNotification); - } - - public bool Equals(MemberRemovedNotification other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(MemberId, other.MemberId)) return false; - if (Reason != other.Reason) return false; - if (!object.Equals(ChannelId, other.ChannelId)) return false; - if (!object.Equals(Subscriber, other.Subscriber)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (memberId_ != null) hash ^= MemberId.GetHashCode(); - if (Reason != 0) hash ^= Reason.GetHashCode(); - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (subscriber_ != null) hash ^= Subscriber.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (memberId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MemberId); - } - if (Reason != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Reason); - } - if (channelId_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ChannelId); - } - if (subscriber_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Subscriber); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (memberId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); - } - if (Reason != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason); - } - if (channelId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); - } - if (subscriber_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber); - } - return size; - } - - public void MergeFrom(MemberRemovedNotification other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.memberId_ != null) { - if (memberId_ == null) { - memberId_ = new Bgs.Protocol.EntityId(); - } - MemberId.MergeFrom(other.MemberId); - } - if (other.Reason != 0) { - Reason = other.Reason; - } - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - ChannelId.MergeFrom(other.ChannelId); - } - if (other.subscriber_ != null) { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - Subscriber.MergeFrom(other.Subscriber); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (memberId_ == null) { - memberId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(memberId_); - break; - } - case 24: { - Reason = input.ReadUInt32(); - break; - } - case 34: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - input.ReadMessage(channelId_); - break; - } - case 42: { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - input.ReadMessage(subscriber_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SendMessageNotification : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendMessageNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[12]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public SendMessageNotification() { - OnConstruction(); - } - - partial void OnConstruction(); - - public SendMessageNotification(SendMessageNotification other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - Message = other.message_ != null ? other.Message.Clone() : null; - requiredPrivileges_ = other.requiredPrivileges_; - identity_ = other.identity_; - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; - Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null; - } - - public SendMessageNotification Clone() { - return new SendMessageNotification(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 2; - private Bgs.Protocol.Channel.V1.Message message_; - public Bgs.Protocol.Channel.V1.Message Message { - get { return message_; } - set { - message_ = value; - } - } - - /// Field number for the "required_privileges" field. - public const int RequiredPrivilegesFieldNumber = 3; - private ulong requiredPrivileges_; - public ulong RequiredPrivileges { - get { return requiredPrivileges_; } - set { - requiredPrivileges_ = value; - } - } - - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 4; - private string identity_ = ""; - public string Identity { - get { return identity_; } - set { - identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 5; - private Bgs.Protocol.Channel.V1.ChannelId channelId_; - public Bgs.Protocol.Channel.V1.ChannelId ChannelId { - get { return channelId_; } - set { - channelId_ = value; - } - } - - /// Field number for the "subscriber" field. - public const int SubscriberFieldNumber = 6; - private Bgs.Protocol.Account.V1.Identity subscriber_; - public Bgs.Protocol.Account.V1.Identity Subscriber { - get { return subscriber_; } - set { - subscriber_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as SendMessageNotification); - } - - public bool Equals(SendMessageNotification other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(Message, other.Message)) return false; - if (RequiredPrivileges != other.RequiredPrivileges) return false; - if (Identity != other.Identity) return false; - if (!object.Equals(ChannelId, other.ChannelId)) return false; - if (!object.Equals(Subscriber, other.Subscriber)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (message_ != null) hash ^= Message.GetHashCode(); - if (RequiredPrivileges != 0UL) hash ^= RequiredPrivileges.GetHashCode(); - if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (subscriber_ != null) hash ^= Subscriber.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (message_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Message); - } - if (RequiredPrivileges != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(RequiredPrivileges); - } - if (Identity.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Identity); - } - if (channelId_ != null) { - output.WriteRawTag(42); - output.WriteMessage(ChannelId); - } - if (subscriber_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Subscriber); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (message_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); - } - if (RequiredPrivileges != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RequiredPrivileges); - } - if (Identity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); - } - if (channelId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); - } - if (subscriber_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber); - } - return size; - } - - public void MergeFrom(SendMessageNotification other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.message_ != null) { - if (message_ == null) { - message_ = new Bgs.Protocol.Channel.V1.Message(); - } - Message.MergeFrom(other.Message); - } - if (other.RequiredPrivileges != 0UL) { - RequiredPrivileges = other.RequiredPrivileges; - } - if (other.Identity.Length != 0) { - Identity = other.Identity; - } - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - ChannelId.MergeFrom(other.ChannelId); - } - if (other.subscriber_ != null) { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - Subscriber.MergeFrom(other.Subscriber); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (message_ == null) { - message_ = new Bgs.Protocol.Channel.V1.Message(); - } - input.ReadMessage(message_); - break; - } - case 24: { - RequiredPrivileges = input.ReadUInt64(); - break; - } - case 34: { - Identity = input.ReadString(); - break; - } - case 42: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - input.ReadMessage(channelId_); - break; - } - case 50: { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - input.ReadMessage(subscriber_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class UpdateChannelStateNotification : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateChannelStateNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[13]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public UpdateChannelStateNotification() { - OnConstruction(); - } - - partial void OnConstruction(); - - public UpdateChannelStateNotification(UpdateChannelStateNotification other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - StateChange = other.stateChange_ != null ? other.StateChange.Clone() : null; - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; - Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null; - } - - public UpdateChannelStateNotification Clone() { - return new UpdateChannelStateNotification(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "state_change" field. - public const int StateChangeFieldNumber = 2; - private Bgs.Protocol.Channel.V1.ChannelState stateChange_; - public Bgs.Protocol.Channel.V1.ChannelState StateChange { - get { return stateChange_; } - set { - stateChange_ = value; - } - } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 3; - private Bgs.Protocol.Channel.V1.ChannelId channelId_; - public Bgs.Protocol.Channel.V1.ChannelId ChannelId { - get { return channelId_; } - set { - channelId_ = value; - } - } - - /// Field number for the "subscriber" field. - public const int SubscriberFieldNumber = 4; - private Bgs.Protocol.Account.V1.Identity subscriber_; - public Bgs.Protocol.Account.V1.Identity Subscriber { - get { return subscriber_; } - set { - subscriber_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as UpdateChannelStateNotification); - } - - public bool Equals(UpdateChannelStateNotification other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(StateChange, other.StateChange)) return false; - if (!object.Equals(ChannelId, other.ChannelId)) return false; - if (!object.Equals(Subscriber, other.Subscriber)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (stateChange_ != null) hash ^= StateChange.GetHashCode(); - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (subscriber_ != null) hash ^= Subscriber.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (stateChange_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StateChange); - } - if (channelId_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ChannelId); - } - if (subscriber_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Subscriber); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (stateChange_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StateChange); - } - if (channelId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); - } - if (subscriber_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber); - } - return size; - } - - public void MergeFrom(UpdateChannelStateNotification other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.stateChange_ != null) { - if (stateChange_ == null) { - stateChange_ = new Bgs.Protocol.Channel.V1.ChannelState(); - } - StateChange.MergeFrom(other.StateChange); - } - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - ChannelId.MergeFrom(other.ChannelId); - } - if (other.subscriber_ != null) { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - Subscriber.MergeFrom(other.Subscriber); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (stateChange_ == null) { - stateChange_ = new Bgs.Protocol.Channel.V1.ChannelState(); - } - input.ReadMessage(stateChange_); - break; - } - case 26: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - input.ReadMessage(channelId_); - break; - } - case 34: { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - input.ReadMessage(subscriber_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class UpdateMemberStateNotification : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMemberStateNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelServiceReflection.Descriptor.MessageTypes[14]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public UpdateMemberStateNotification() { - OnConstruction(); - } - - partial void OnConstruction(); - - public UpdateMemberStateNotification(UpdateMemberStateNotification other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - stateChange_ = other.stateChange_.Clone(); - removedRole_ = other.removedRole_.Clone(); - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; - Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null; - } - - public UpdateMemberStateNotification Clone() { - return new UpdateMemberStateNotification(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "state_change" field. - public const int StateChangeFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_stateChange_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Channel.V1.Member.Parser); - private readonly pbc::RepeatedField stateChange_ = new pbc::RepeatedField(); - public pbc::RepeatedField StateChange { - get { return stateChange_; } - } - - /// Field number for the "removed_role" field. - public const int RemovedRoleFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_removedRole_codec - = pb::FieldCodec.ForUInt32(26); - private readonly pbc::RepeatedField removedRole_ = new pbc::RepeatedField(); - public pbc::RepeatedField RemovedRole { - get { return removedRole_; } - } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 4; - private Bgs.Protocol.Channel.V1.ChannelId channelId_; - public Bgs.Protocol.Channel.V1.ChannelId ChannelId { - get { return channelId_; } - set { - channelId_ = value; - } - } - - /// Field number for the "subscriber" field. - public const int SubscriberFieldNumber = 5; - private Bgs.Protocol.Account.V1.Identity subscriber_; - public Bgs.Protocol.Account.V1.Identity Subscriber { - get { return subscriber_; } - set { - subscriber_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as UpdateMemberStateNotification); - } - - public bool Equals(UpdateMemberStateNotification other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if(!stateChange_.Equals(other.stateChange_)) return false; - if(!removedRole_.Equals(other.removedRole_)) return false; - if (!object.Equals(ChannelId, other.ChannelId)) return false; - if (!object.Equals(Subscriber, other.Subscriber)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - hash ^= stateChange_.GetHashCode(); - hash ^= removedRole_.GetHashCode(); - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (subscriber_ != null) hash ^= Subscriber.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - stateChange_.WriteTo(output, _repeated_stateChange_codec); - removedRole_.WriteTo(output, _repeated_removedRole_codec); - if (channelId_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ChannelId); - } - if (subscriber_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Subscriber); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - size += stateChange_.CalculateSize(_repeated_stateChange_codec); - size += removedRole_.CalculateSize(_repeated_removedRole_codec); - if (channelId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); - } - if (subscriber_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber); - } - return size; - } - - public void MergeFrom(UpdateMemberStateNotification other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - stateChange_.Add(other.stateChange_); - removedRole_.Add(other.removedRole_); - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - ChannelId.MergeFrom(other.ChannelId); - } - if (other.subscriber_ != null) { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - Subscriber.MergeFrom(other.Subscriber); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - stateChange_.AddEntriesFrom(input, _repeated_stateChange_codec); - break; - } - case 26: - case 24: { - removedRole_.AddEntriesFrom(input, _repeated_removedRole_codec); - break; - } - case 34: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.Channel.V1.ChannelId(); - } - input.ReadMessage(channelId_); - break; - } - case 42: { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); - } - input.ReadMessage(subscriber_); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Source/Framework/Proto/ChannelTypes.cs b/Source/Framework/Proto/ChannelTypes.cs index 31e1ba855..7a9662c45 100644 --- a/Source/Framework/Proto/ChannelTypes.cs +++ b/Source/Framework/Proto/ChannelTypes.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/channel_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/channel_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Channel.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Channel.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/channel_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/channel_types.proto public static partial class ChannelTypesReflection { #region Descriptor @@ -21,278 +22,126 @@ namespace Bgs.Protocol.Channel.V1 private static pbr::FileDescriptor descriptor; static ChannelTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiViZ3MvbG93L3BiL2NsaWVudC9jaGFubmVsX3R5cGVzLnByb3RvEhdiZ3Mu", - "cHJvdG9jb2wuY2hhbm5lbC52MRonYmdzL2xvdy9wYi9jbGllbnQvYXR0cmli", - "dXRlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw", - "ZXMucHJvdG8aKGJncy9sb3cvcGIvY2xpZW50L2ludml0YXRpb25fdHlwZXMu", - "cHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90byJMCglD", - "aGFubmVsSWQSDAoEdHlwZRgBIAEoDRIlCgRob3N0GAIgASgLMhcuYmdzLnBy", - "b3RvY29sLlByb2Nlc3NJZBIKCgJpZBgDIAEoByJDCgdNZXNzYWdlEioKCWF0", - "dHJpYnV0ZRgBIAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUSDAoEcm9s", - "ZRgCIAEoDSLUAQoTTGlzdENoYW5uZWxzT3B0aW9ucxITCgtzdGFydF9pbmRl", - "eBgBIAEoDRITCgttYXhfcmVzdWx0cxgCIAEoDRIMCgRuYW1lGAMgASgJEg8K", - "B3Byb2dyYW0YBCABKAcSDgoGbG9jYWxlGAUgASgHEhUKDWNhcGFjaXR5X2Z1", - "bGwYBiABKA0SNwoQYXR0cmlidXRlX2ZpbHRlchgHIAEoCzIdLmJncy5wcm90", - "b2NvbC5BdHRyaWJ1dGVGaWx0ZXISFAoMY2hhbm5lbF90eXBlGAggASgJIo8B", - "ChJDaGFubmVsRGVzY3JpcHRpb24SKgoKY2hhbm5lbF9pZBgBIAEoCzIWLmJn", - "cy5wcm90b2NvbC5FbnRpdHlJZBIXCg9jdXJyZW50X21lbWJlcnMYAiABKA0S", - "NAoFc3RhdGUYAyABKAsyJS5iZ3MucHJvdG9jb2wuY2hhbm5lbC52MS5DaGFu", - "bmVsU3RhdGUigAEKC0NoYW5uZWxJbmZvEkAKC2Rlc2NyaXB0aW9uGAEgASgL", - "MisuYmdzLnByb3RvY29sLmNoYW5uZWwudjEuQ2hhbm5lbERlc2NyaXB0aW9u", - "Ei8KBm1lbWJlchgCIAMoCzIfLmJncy5wcm90b2NvbC5jaGFubmVsLnYxLk1l", - "bWJlciLeBAoMQ2hhbm5lbFN0YXRlEhMKC21heF9tZW1iZXJzGAEgASgNEhMK", - "C21pbl9tZW1iZXJzGAIgASgNEioKCWF0dHJpYnV0ZRgDIAMoCzIXLmJncy5w", - "cm90b2NvbC5BdHRyaWJ1dGUSLAoKaW52aXRhdGlvbhgEIAMoCzIYLmJncy5w", - "cm90b2NvbC5JbnZpdGF0aW9uEhcKD21heF9pbnZpdGF0aW9ucxgFIAEoDRIO", - "CgZyZWFzb24YBiABKA0SSQoNcHJpdmFjeV9sZXZlbBgHIAEoDjIyLmJncy5w", - "cm90b2NvbC5jaGFubmVsLnYxLkNoYW5uZWxTdGF0ZS5Qcml2YWN5TGV2ZWwS", - "DAoEbmFtZRgIIAEoCRIVCg1kZWxlZ2F0ZV9uYW1lGAkgASgJEhQKDGNoYW5u", - "ZWxfdHlwZRgKIAEoCRIPCgdwcm9ncmFtGAsgASgHEh0KFWFsbG93X29mZmxp", - "bmVfbWVtYmVycxgMIAEoCBIdChVzdWJzY3JpYmVfdG9fcHJlc2VuY2UYDSAB", - "KAgSIAoYZGVzdHJveV9vbl9mb3VuZGVyX2xlYXZlGA4gASgIIqkBCgxQcml2", - "YWN5TGV2ZWwSFgoSUFJJVkFDWV9MRVZFTF9OT05FEAASFgoSUFJJVkFDWV9M", - "RVZFTF9PUEVOEAESLAooUFJJVkFDWV9MRVZFTF9PUEVOX0lOVklUQVRJT05f", - "QU5EX0ZSSUVORBACEiEKHVBSSVZBQ1lfTEVWRUxfT1BFTl9JTlZJVEFUSU9O", - "EAMSGAoUUFJJVkFDWV9MRVZFTF9DTE9TRUQQBCKnAQoLTWVtYmVyU3RhdGUS", - "KgoJYXR0cmlidXRlGAEgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0ZRIQ", - "CgRyb2xlGAIgAygNQgIQARISCgpwcml2aWxlZ2VzGAMgASgEEicKBGluZm8Y", - "BCABKAsyGS5iZ3MucHJvdG9jb2wuQWNjb3VudEluZm8SHQoRREVQUkVDQVRF", - "RF9oaWRkZW4YBSABKAhCAhgBImcKBk1lbWJlchIoCghpZGVudGl0eRgBIAEo", - "CzIWLmJncy5wcm90b2NvbC5JZGVudGl0eRIzCgVzdGF0ZRgCIAEoCzIkLmJn", - "cy5wcm90b2NvbC5jaGFubmVsLnYxLk1lbWJlclN0YXRlQgJIAmIGcHJvdG8z")); + "cHJvdG9jb2wuY2hhbm5lbC52MRowYmdzL2xvdy9wYi9jbGllbnQvYXBpL2Ns", + "aWVudC92MS9jaGFubmVsX2lkLnByb3RvGidiZ3MvbG93L3BiL2NsaWVudC9h", + "dHRyaWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xpZW50L2VudGl0", + "eV90eXBlcy5wcm90bxolYmdzL2xvdy9wYi9jbGllbnQvYWNjb3VudF90eXBl", + "cy5wcm90bxooYmdzL2xvdy9wYi9jbGllbnQvaW52aXRhdGlvbl90eXBlcy5w", + "cm90bxohYmdzL2xvdy9wYi9jbGllbnQvcnBjX3R5cGVzLnByb3RvGjliZ3Mv", + "bG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlv", + "bnMucHJvdG8aN2Jncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25z", + "L2ZpZWxkX29wdGlvbnMucHJvdG8aOGJncy9sb3cvcGIvY2xpZW50L2dsb2Jh", + "bF9leHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3Bi", + "L2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNlX29wdGlvbnMucHJv", + "dG8iPAoHTWVzc2FnZRIqCglhdHRyaWJ1dGUYASADKAsyFy5iZ3MucHJvdG9j", + "b2wuQXR0cmlidXRlKgUIZBCRTiLbAQoTTGlzdENoYW5uZWxzT3B0aW9ucxIW", + "CgtzdGFydF9pbmRleBgBIAEoDToBMBIXCgttYXhfcmVzdWx0cxgCIAEoDToC", + "MTYSDAoEbmFtZRgDIAEoCRIPCgdwcm9ncmFtGAQgASgHEg4KBmxvY2FsZRgF", + "IAEoBxIVCg1jYXBhY2l0eV9mdWxsGAYgASgNEjcKEGF0dHJpYnV0ZV9maWx0", + "ZXIYByACKAsyHS5iZ3MucHJvdG9jb2wuQXR0cmlidXRlRmlsdGVyEhQKDGNo", + "YW5uZWxfdHlwZRgIIAEoCSKPAQoSQ2hhbm5lbERlc2NyaXB0aW9uEioKCmNo", + "YW5uZWxfaWQYASACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSFwoPY3Vy", + "cmVudF9tZW1iZXJzGAIgASgNEjQKBXN0YXRlGAMgASgLMiUuYmdzLnByb3Rv", + "Y29sLmNoYW5uZWwudjEuQ2hhbm5lbFN0YXRlIoABCgtDaGFubmVsSW5mbxJA", + "CgtkZXNjcmlwdGlvbhgBIAIoCzIrLmJncy5wcm90b2NvbC5jaGFubmVsLnYx", + "LkNoYW5uZWxEZXNjcmlwdGlvbhIvCgZtZW1iZXIYAiADKAsyHy5iZ3MucHJv", + "dG9jb2wuY2hhbm5lbC52MS5NZW1iZXIi/wMKDENoYW5uZWxTdGF0ZRITCgtt", + "YXhfbWVtYmVycxgBIAEoDRITCgttaW5fbWVtYmVycxgCIAEoDRIqCglhdHRy", + "aWJ1dGUYAyADKAsyFy5iZ3MucHJvdG9jb2wuQXR0cmlidXRlEiwKCmludml0", + "YXRpb24YBCADKAsyGC5iZ3MucHJvdG9jb2wuSW52aXRhdGlvbhIOCgZyZWFz", + "b24YBiABKA0SXQoNcHJpdmFjeV9sZXZlbBgHIAEoDjIyLmJncy5wcm90b2Nv", + "bC5jaGFubmVsLnYxLkNoYW5uZWxTdGF0ZS5Qcml2YWN5TGV2ZWw6ElBSSVZB", + "Q1lfTEVWRUxfT1BFThIMCgRuYW1lGAggASgJEh0KDGNoYW5uZWxfdHlwZRgK", + "IAEoCToHZGVmYXVsdBIPCgdwcm9ncmFtGAsgASgHEiMKFXN1YnNjcmliZV90", + "b19wcmVzZW5jZRgNIAEoCDoEdHJ1ZSKRAQoMUHJpdmFjeUxldmVsEhYKElBS", + "SVZBQ1lfTEVWRUxfT1BFThABEiwKKFBSSVZBQ1lfTEVWRUxfT1BFTl9JTlZJ", + "VEFUSU9OX0FORF9GUklFTkQQAhIhCh1QUklWQUNZX0xFVkVMX09QRU5fSU5W", + "SVRBVElPThADEhgKFFBSSVZBQ1lfTEVWRUxfQ0xPU0VEEAQqBQhkEJFOIicK", + "EU1lbWJlckFjY291bnRJbmZvEhIKCmJhdHRsZV90YWcYAyABKAkinAEKC01l", + "bWJlclN0YXRlEioKCWF0dHJpYnV0ZRgBIAMoCzIXLmJncy5wcm90b2NvbC5B", + "dHRyaWJ1dGUSEAoEcm9sZRgCIAMoDUICEAESFQoKcHJpdmlsZWdlcxgDIAEo", + "BDoBMBI4CgRpbmZvGAQgASgLMiouYmdzLnByb3RvY29sLmNoYW5uZWwudjEu", + "TWVtYmVyQWNjb3VudEluZm8iZwoGTWVtYmVyEigKCGlkZW50aXR5GAEgAigL", + "MhYuYmdzLnByb3RvY29sLklkZW50aXR5EjMKBXN0YXRlGAIgAigLMiQuYmdz", + "LnByb3RvY29sLmNoYW5uZWwudjEuTWVtYmVyU3RhdGUiuwEKDFN1YnNjcmli", + "ZXJJZBI3CgdhY2NvdW50GAEgASgLMiIuYmdzLnByb3RvY29sLmFjY291bnQu", + "djEuQWNjb3VudElkQgIYARJACgxnYW1lX2FjY291bnQYAiABKAsyKi5iZ3Mu", + "cHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEhhbmRsZRIoCgdwcm9j", + "ZXNzGAMgASgLMhcuYmdzLnByb3RvY29sLlByb2Nlc3NJZDoGgvkrAhABUAA=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.InvitationTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.ChannelId), Bgs.Protocol.Channel.V1.ChannelId.Parser, new[]{ "Type", "Host", "Id" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.Message), Bgs.Protocol.Channel.V1.Message.Parser, new[]{ "Attribute", "Role" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.ListChannelsOptions), Bgs.Protocol.Channel.V1.ListChannelsOptions.Parser, new[]{ "StartIndex", "MaxResults", "Name", "Program", "Locale", "CapacityFull", "AttributeFilter", "ChannelType" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.ChannelDescription), Bgs.Protocol.Channel.V1.ChannelDescription.Parser, new[]{ "ChannelId", "CurrentMembers", "State" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.ChannelInfo), Bgs.Protocol.Channel.V1.ChannelInfo.Parser, new[]{ "Description", "Member" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.ChannelState), Bgs.Protocol.Channel.V1.ChannelState.Parser, new[]{ "MaxMembers", "MinMembers", "Attribute", "Invitation", "MaxInvitations", "Reason", "PrivacyLevel", "Name", "DelegateName", "ChannelType", "Program", "AllowOfflineMembers", "SubscribeToPresence", "DestroyOnFounderLeave" }, null, new[]{ typeof(Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel) }, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.MemberState), Bgs.Protocol.Channel.V1.MemberState.Parser, new[]{ "Attribute", "Role", "Privileges", "Info", "DEPRECATEDHidden" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Channel.V1.Member), Bgs.Protocol.Channel.V1.Member.Parser, new[]{ "Identity", "State" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.Channel.V1.ChannelIdReflection.Descriptor, global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.InvitationTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.Message), global::Bgs.Protocol.Channel.V1.Message.Parser, new[]{ "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.ListChannelsOptions), global::Bgs.Protocol.Channel.V1.ListChannelsOptions.Parser, new[]{ "StartIndex", "MaxResults", "Name", "Program", "Locale", "CapacityFull", "AttributeFilter", "ChannelType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.ChannelDescription), global::Bgs.Protocol.Channel.V1.ChannelDescription.Parser, new[]{ "ChannelId", "CurrentMembers", "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.ChannelInfo), global::Bgs.Protocol.Channel.V1.ChannelInfo.Parser, new[]{ "Description", "Member" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.ChannelState), global::Bgs.Protocol.Channel.V1.ChannelState.Parser, new[]{ "MaxMembers", "MinMembers", "Attribute", "Invitation", "Reason", "PrivacyLevel", "Name", "ChannelType", "Program", "SubscribeToPresence" }, null, new[]{ typeof(global::Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.MemberAccountInfo), global::Bgs.Protocol.Channel.V1.MemberAccountInfo.Parser, new[]{ "BattleTag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.MemberState), global::Bgs.Protocol.Channel.V1.MemberState.Parser, new[]{ "Attribute", "Role", "Privileges", "Info" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.Member), global::Bgs.Protocol.Channel.V1.Member.Parser, new[]{ "Identity", "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.SubscriberId), global::Bgs.Protocol.Channel.V1.SubscriberId.Parser, new[]{ "Account", "GameAccount", "Process" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChannelId : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelId()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public ChannelId() { - OnConstruction(); - } - - partial void OnConstruction(); - - public ChannelId(ChannelId other) : this() { - type_ = other.type_; - Host = other.host_ != null ? other.Host.Clone() : null; - id_ = other.id_; - } - - public ChannelId Clone() { - return new ChannelId(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private uint type_; - public uint Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 2; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host { - get { return host_; } - set { - host_ = value; - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 3; - private uint id_; - public uint Id { - get { return id_; } - set { - id_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as ChannelId); - } - - public bool Equals(ChannelId other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (!object.Equals(Host, other.Host)) return false; - if (Id != other.Id) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (Type != 0) hash ^= Type.GetHashCode(); - if (host_ != null) hash ^= Host.GetHashCode(); - if (Id != 0) hash ^= Id.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (Type != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Type); - } - if (host_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Host); - } - if (Id != 0) { - output.WriteRawTag(29); - output.WriteFixed32(Id); - } - } - - public int CalculateSize() { - int size = 0; - if (Type != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Type); - } - if (host_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - if (Id != 0) { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(ChannelId other) { - if (other == null) { - return; - } - if (other.Type != 0) { - Type = other.Type; - } - if (other.host_ != null) { - if (host_ == null) { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - if (other.Id != 0) { - Id = other.Id; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - Type = input.ReadUInt32(); - break; - } - case 18: { - if (host_ == null) { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - case 29: { - Id = input.ReadFixed32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Message : pb::IMessage { + public sealed partial class Message : pb::IExtendableMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Message()); + private pb::UnknownFieldSet _unknownFields; + private pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Message() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Message(Message other) : this() { attribute_ = other.attribute_.Clone(); - role_ = other.role_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Message Clone() { return new Message(this); } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { get { return attribute_; } } - /// Field number for the "role" field. - public const int RoleFieldNumber = 2; - private uint role_; - public uint Role { - get { return role_; } - set { - role_ = value; - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Message); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Message other) { if (ReferenceEquals(other, null)) { return false; @@ -301,187 +150,342 @@ namespace Bgs.Protocol.Channel.V1 return true; } if(!attribute_.Equals(other.attribute_)) return false; - if (Role != other.Role) return false; - return true; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= attribute_.GetHashCode(); - if (Role != 0) hash ^= Role.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { attribute_.WriteTo(output, _repeated_attribute_codec); - if (Role != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Role); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += attribute_.CalculateSize(_repeated_attribute_codec); - if (Role != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Role); + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Message other) { if (other == null) { return; } attribute_.Add(other.attribute_); - if (other.Role != 0) { - Role = other.Role; - } + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } break; case 10: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } - case 16: { - Role = input.ReadUInt32(); - break; - } } } } - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ListChannelsOptions : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListChannelsOptions()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[2]; } + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); } + } + + public sealed partial class ListChannelsOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListChannelsOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ListChannelsOptions() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ListChannelsOptions(ListChannelsOptions other) : this() { + _hasBits0 = other._hasBits0; startIndex_ = other.startIndex_; maxResults_ = other.maxResults_; name_ = other.name_; program_ = other.program_; locale_ = other.locale_; capacityFull_ = other.capacityFull_; - AttributeFilter = other.attributeFilter_ != null ? other.AttributeFilter.Clone() : null; + attributeFilter_ = other.HasAttributeFilter ? other.attributeFilter_.Clone() : null; channelType_ = other.channelType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ListChannelsOptions Clone() { return new ListChannelsOptions(this); } /// Field number for the "start_index" field. public const int StartIndexFieldNumber = 1; + private readonly static uint StartIndexDefaultValue = 0; + private uint startIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint StartIndex { - get { return startIndex_; } + get { if ((_hasBits0 & 1) != 0) { return startIndex_; } else { return StartIndexDefaultValue; } } set { + _hasBits0 |= 1; startIndex_ = value; } } + /// Gets whether the "start_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStartIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStartIndex() { + _hasBits0 &= ~1; + } /// Field number for the "max_results" field. public const int MaxResultsFieldNumber = 2; + private readonly static uint MaxResultsDefaultValue = 16; + private uint maxResults_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MaxResults { - get { return maxResults_; } + get { if ((_hasBits0 & 2) != 0) { return maxResults_; } else { return MaxResultsDefaultValue; } } set { + _hasBits0 |= 2; maxResults_ = value; } } + /// Gets whether the "max_results" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxResults { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max_results" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxResults() { + _hasBits0 &= ~2; + } /// Field number for the "name" field. public const int NameFieldNumber = 3; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } /// Field number for the "program" field. public const int ProgramFieldNumber = 4; + private readonly static uint ProgramDefaultValue = 0; + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Program { - get { return program_; } + get { if ((_hasBits0 & 4) != 0) { return program_; } else { return ProgramDefaultValue; } } set { + _hasBits0 |= 4; program_ = value; } } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~4; + } /// Field number for the "locale" field. public const int LocaleFieldNumber = 5; + private readonly static uint LocaleDefaultValue = 0; + private uint locale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Locale { - get { return locale_; } + get { if ((_hasBits0 & 8) != 0) { return locale_; } else { return LocaleDefaultValue; } } set { + _hasBits0 |= 8; locale_ = value; } } + /// Gets whether the "locale" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLocale { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "locale" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLocale() { + _hasBits0 &= ~8; + } /// Field number for the "capacity_full" field. public const int CapacityFullFieldNumber = 6; + private readonly static uint CapacityFullDefaultValue = 0; + private uint capacityFull_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint CapacityFull { - get { return capacityFull_; } + get { if ((_hasBits0 & 16) != 0) { return capacityFull_; } else { return CapacityFullDefaultValue; } } set { + _hasBits0 |= 16; capacityFull_ = value; } } + /// Gets whether the "capacity_full" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCapacityFull { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "capacity_full" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCapacityFull() { + _hasBits0 &= ~16; + } /// Field number for the "attribute_filter" field. public const int AttributeFilterFieldNumber = 7; - private Bgs.Protocol.AttributeFilter attributeFilter_; - public Bgs.Protocol.AttributeFilter AttributeFilter { + private global::Bgs.Protocol.AttributeFilter attributeFilter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.AttributeFilter AttributeFilter { get { return attributeFilter_; } set { attributeFilter_ = value; } } + /// Gets whether the attribute_filter field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAttributeFilter { + get { return attributeFilter_ != null; } + } + /// Clears the value of the attribute_filter field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAttributeFilter() { + attributeFilter_ = null; + } /// Field number for the "channel_type" field. public const int ChannelTypeFieldNumber = 8; - private string channelType_ = ""; + private readonly static string ChannelTypeDefaultValue = ""; + + private string channelType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ChannelType { - get { return channelType_; } + get { return channelType_ ?? ChannelTypeDefaultValue; } set { channelType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "channel_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasChannelType { + get { return channelType_ != null; } + } + /// Clears the value of the "channel_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearChannelType() { + channelType_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ListChannelsOptions); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ListChannelsOptions other) { if (ReferenceEquals(other, null)) { return false; @@ -497,129 +501,145 @@ namespace Bgs.Protocol.Channel.V1 if (CapacityFull != other.CapacityFull) return false; if (!object.Equals(AttributeFilter, other.AttributeFilter)) return false; if (ChannelType != other.ChannelType) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (StartIndex != 0) hash ^= StartIndex.GetHashCode(); - if (MaxResults != 0) hash ^= MaxResults.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (Locale != 0) hash ^= Locale.GetHashCode(); - if (CapacityFull != 0) hash ^= CapacityFull.GetHashCode(); - if (attributeFilter_ != null) hash ^= AttributeFilter.GetHashCode(); - if (ChannelType.Length != 0) hash ^= ChannelType.GetHashCode(); + if (HasStartIndex) hash ^= StartIndex.GetHashCode(); + if (HasMaxResults) hash ^= MaxResults.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasLocale) hash ^= Locale.GetHashCode(); + if (HasCapacityFull) hash ^= CapacityFull.GetHashCode(); + if (HasAttributeFilter) hash ^= AttributeFilter.GetHashCode(); + if (HasChannelType) hash ^= ChannelType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (StartIndex != 0) { + if (HasStartIndex) { output.WriteRawTag(8); output.WriteUInt32(StartIndex); } - if (MaxResults != 0) { + if (HasMaxResults) { output.WriteRawTag(16); output.WriteUInt32(MaxResults); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(26); output.WriteString(Name); } - if (Program != 0) { + if (HasProgram) { output.WriteRawTag(37); output.WriteFixed32(Program); } - if (Locale != 0) { + if (HasLocale) { output.WriteRawTag(45); output.WriteFixed32(Locale); } - if (CapacityFull != 0) { + if (HasCapacityFull) { output.WriteRawTag(48); output.WriteUInt32(CapacityFull); } - if (attributeFilter_ != null) { + if (HasAttributeFilter) { output.WriteRawTag(58); output.WriteMessage(AttributeFilter); } - if (ChannelType.Length != 0) { + if (HasChannelType) { output.WriteRawTag(66); output.WriteString(ChannelType); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (StartIndex != 0) { + if (HasStartIndex) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StartIndex); } - if (MaxResults != 0) { + if (HasMaxResults) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxResults); } - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Program != 0) { + if (HasProgram) { size += 1 + 4; } - if (Locale != 0) { + if (HasLocale) { size += 1 + 4; } - if (CapacityFull != 0) { + if (HasCapacityFull) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CapacityFull); } - if (attributeFilter_ != null) { + if (HasAttributeFilter) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AttributeFilter); } - if (ChannelType.Length != 0) { + if (HasChannelType) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelType); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ListChannelsOptions other) { if (other == null) { return; } - if (other.StartIndex != 0) { + if (other.HasStartIndex) { StartIndex = other.StartIndex; } - if (other.MaxResults != 0) { + if (other.HasMaxResults) { MaxResults = other.MaxResults; } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } - if (other.Program != 0) { + if (other.HasProgram) { Program = other.Program; } - if (other.Locale != 0) { + if (other.HasLocale) { Locale = other.Locale; } - if (other.CapacityFull != 0) { + if (other.HasCapacityFull) { CapacityFull = other.CapacityFull; } - if (other.attributeFilter_ != null) { - if (attributeFilter_ == null) { - attributeFilter_ = new Bgs.Protocol.AttributeFilter(); + if (other.HasAttributeFilter) { + if (!HasAttributeFilter) { + AttributeFilter = new global::Bgs.Protocol.AttributeFilter(); } AttributeFilter.MergeFrom(other.AttributeFilter); } - if (other.ChannelType.Length != 0) { + if (other.HasChannelType) { ChannelType = other.ChannelType; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { StartIndex = input.ReadUInt32(); @@ -646,10 +666,10 @@ namespace Bgs.Protocol.Channel.V1 break; } case 58: { - if (attributeFilter_ == null) { - attributeFilter_ = new Bgs.Protocol.AttributeFilter(); + if (!HasAttributeFilter) { + AttributeFilter = new global::Bgs.Protocol.AttributeFilter(); } - input.ReadMessage(attributeFilter_); + input.ReadMessage(AttributeFilter); break; } case 66: { @@ -662,69 +682,116 @@ namespace Bgs.Protocol.Channel.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ChannelDescription : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelDescription()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[3]; } + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[2]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelDescription() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelDescription(ChannelDescription other) : this() { - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; + _hasBits0 = other._hasBits0; + channelId_ = other.HasChannelId ? other.channelId_.Clone() : null; currentMembers_ = other.currentMembers_; - State = other.state_ != null ? other.State.Clone() : null; + state_ = other.HasState ? other.state_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelDescription Clone() { return new ChannelDescription(this); } /// Field number for the "channel_id" field. public const int ChannelIdFieldNumber = 1; - private Bgs.Protocol.EntityId channelId_; - public Bgs.Protocol.EntityId ChannelId { + private global::Bgs.Protocol.EntityId channelId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId ChannelId { get { return channelId_; } set { channelId_ = value; } } + /// Gets whether the channel_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasChannelId { + get { return channelId_ != null; } + } + /// Clears the value of the channel_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearChannelId() { + channelId_ = null; + } /// Field number for the "current_members" field. public const int CurrentMembersFieldNumber = 2; + private readonly static uint CurrentMembersDefaultValue = 0; + private uint currentMembers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint CurrentMembers { - get { return currentMembers_; } + get { if ((_hasBits0 & 1) != 0) { return currentMembers_; } else { return CurrentMembersDefaultValue; } } set { + _hasBits0 |= 1; currentMembers_ = value; } } + /// Gets whether the "current_members" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCurrentMembers { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "current_members" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCurrentMembers() { + _hasBits0 &= ~1; + } /// Field number for the "state" field. public const int StateFieldNumber = 3; - private Bgs.Protocol.Channel.V1.ChannelState state_; - public Bgs.Protocol.Channel.V1.ChannelState State { + private global::Bgs.Protocol.Channel.V1.ChannelState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Channel.V1.ChannelState State { get { return state_; } set { state_ = value; } } + /// Gets whether the state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasState { + get { return state_ != null; } + } + /// Clears the value of the state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearState() { + state_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ChannelDescription); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ChannelDescription other) { if (ReferenceEquals(other, null)) { return false; @@ -735,83 +802,99 @@ namespace Bgs.Protocol.Channel.V1 if (!object.Equals(ChannelId, other.ChannelId)) return false; if (CurrentMembers != other.CurrentMembers) return false; if (!object.Equals(State, other.State)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (CurrentMembers != 0) hash ^= CurrentMembers.GetHashCode(); - if (state_ != null) hash ^= State.GetHashCode(); + if (HasChannelId) hash ^= ChannelId.GetHashCode(); + if (HasCurrentMembers) hash ^= CurrentMembers.GetHashCode(); + if (HasState) hash ^= State.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (channelId_ != null) { + if (HasChannelId) { output.WriteRawTag(10); output.WriteMessage(ChannelId); } - if (CurrentMembers != 0) { + if (HasCurrentMembers) { output.WriteRawTag(16); output.WriteUInt32(CurrentMembers); } - if (state_ != null) { + if (HasState) { output.WriteRawTag(26); output.WriteMessage(State); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (channelId_ != null) { + if (HasChannelId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); } - if (CurrentMembers != 0) { + if (HasCurrentMembers) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrentMembers); } - if (state_ != null) { + if (HasState) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ChannelDescription other) { if (other == null) { return; } - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.EntityId(); + if (other.HasChannelId) { + if (!HasChannelId) { + ChannelId = new global::Bgs.Protocol.EntityId(); } ChannelId.MergeFrom(other.ChannelId); } - if (other.CurrentMembers != 0) { + if (other.HasCurrentMembers) { CurrentMembers = other.CurrentMembers; } - if (other.state_ != null) { - if (state_ == null) { - state_ = new Bgs.Protocol.Channel.V1.ChannelState(); + if (other.HasState) { + if (!HasState) { + State = new global::Bgs.Protocol.Channel.V1.ChannelState(); } State.MergeFrom(other.State); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.EntityId(); + if (!HasChannelId) { + ChannelId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(channelId_); + input.ReadMessage(ChannelId); break; } case 16: { @@ -819,10 +902,10 @@ namespace Bgs.Protocol.Channel.V1 break; } case 26: { - if (state_ == null) { - state_ = new Bgs.Protocol.Channel.V1.ChannelState(); + if (!HasState) { + State = new global::Bgs.Protocol.Channel.V1.ChannelState(); } - input.ReadMessage(state_); + input.ReadMessage(State); break; } } @@ -831,57 +914,78 @@ namespace Bgs.Protocol.Channel.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ChannelInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[4]; } + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[3]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelInfo() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelInfo(ChannelInfo other) : this() { - Description = other.description_ != null ? other.Description.Clone() : null; + description_ = other.HasDescription ? other.description_.Clone() : null; member_ = other.member_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelInfo Clone() { return new ChannelInfo(this); } /// Field number for the "description" field. public const int DescriptionFieldNumber = 1; - private Bgs.Protocol.Channel.V1.ChannelDescription description_; - public Bgs.Protocol.Channel.V1.ChannelDescription Description { + private global::Bgs.Protocol.Channel.V1.ChannelDescription description_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Channel.V1.ChannelDescription Description { get { return description_; } set { description_ = value; } } + /// Gets whether the description field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the description field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescription() { + description_ = null; + } /// Field number for the "member" field. public const int MemberFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_member_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Channel.V1.Member.Parser); - private readonly pbc::RepeatedField member_ = new pbc::RepeatedField(); - public pbc::RepeatedField Member { + private static readonly pb::FieldCodec _repeated_member_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Channel.V1.Member.Parser); + private readonly pbc::RepeatedField member_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Member { get { return member_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ChannelInfo); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ChannelInfo other) { if (ReferenceEquals(other, null)) { return false; @@ -891,62 +995,78 @@ namespace Bgs.Protocol.Channel.V1 } if (!object.Equals(Description, other.Description)) return false; if(!member_.Equals(other.member_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (description_ != null) hash ^= Description.GetHashCode(); + if (HasDescription) hash ^= Description.GetHashCode(); hash ^= member_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (description_ != null) { + if (HasDescription) { output.WriteRawTag(10); output.WriteMessage(Description); } member_.WriteTo(output, _repeated_member_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (description_ != null) { + if (HasDescription) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Description); } size += member_.CalculateSize(_repeated_member_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ChannelInfo other) { if (other == null) { return; } - if (other.description_ != null) { - if (description_ == null) { - description_ = new Bgs.Protocol.Channel.V1.ChannelDescription(); + if (other.HasDescription) { + if (!HasDescription) { + Description = new global::Bgs.Protocol.Channel.V1.ChannelDescription(); } Description.MergeFrom(other.Description); } member_.Add(other.member_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (description_ == null) { - description_ = new Bgs.Protocol.Channel.V1.ChannelDescription(); + if (!HasDescription) { + Description = new global::Bgs.Protocol.Channel.V1.ChannelDescription(); } - input.ReadMessage(description_); + input.ReadMessage(Description); break; } case 18: { @@ -959,188 +1079,270 @@ namespace Bgs.Protocol.Channel.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChannelState : pb::IMessage { + public sealed partial class ChannelState : pb::IExtendableMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelState()); + private pb::UnknownFieldSet _unknownFields; + private pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[5]; } + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[4]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelState() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelState(ChannelState other) : this() { + _hasBits0 = other._hasBits0; maxMembers_ = other.maxMembers_; minMembers_ = other.minMembers_; attribute_ = other.attribute_.Clone(); invitation_ = other.invitation_.Clone(); - maxInvitations_ = other.maxInvitations_; reason_ = other.reason_; privacyLevel_ = other.privacyLevel_; name_ = other.name_; - delegateName_ = other.delegateName_; channelType_ = other.channelType_; program_ = other.program_; - allowOfflineMembers_ = other.allowOfflineMembers_; subscribeToPresence_ = other.subscribeToPresence_; - destroyOnFounderLeave_ = other.destroyOnFounderLeave_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelState Clone() { return new ChannelState(this); } /// Field number for the "max_members" field. public const int MaxMembersFieldNumber = 1; + private readonly static uint MaxMembersDefaultValue = 0; + private uint maxMembers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MaxMembers { - get { return maxMembers_; } + get { if ((_hasBits0 & 1) != 0) { return maxMembers_; } else { return MaxMembersDefaultValue; } } set { + _hasBits0 |= 1; maxMembers_ = value; } } + /// Gets whether the "max_members" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxMembers { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "max_members" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxMembers() { + _hasBits0 &= ~1; + } /// Field number for the "min_members" field. public const int MinMembersFieldNumber = 2; + private readonly static uint MinMembersDefaultValue = 0; + private uint minMembers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MinMembers { - get { return minMembers_; } + get { if ((_hasBits0 & 2) != 0) { return minMembers_; } else { return MinMembersDefaultValue; } } set { + _hasBits0 |= 2; minMembers_ = value; } } + /// Gets whether the "min_members" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMinMembers { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "min_members" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMinMembers() { + _hasBits0 &= ~2; + } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { get { return attribute_; } } /// Field number for the "invitation" field. public const int InvitationFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_invitation_codec - = pb::FieldCodec.ForMessage(34, Bgs.Protocol.Invitation.Parser); - private readonly pbc::RepeatedField invitation_ = new pbc::RepeatedField(); - public pbc::RepeatedField Invitation { + private static readonly pb::FieldCodec _repeated_invitation_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Invitation.Parser); + private readonly pbc::RepeatedField invitation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Invitation { get { return invitation_; } } - /// Field number for the "max_invitations" field. - public const int MaxInvitationsFieldNumber = 5; - private uint maxInvitations_; - public uint MaxInvitations { - get { return maxInvitations_; } - set { - maxInvitations_ = value; - } - } - /// Field number for the "reason" field. public const int ReasonFieldNumber = 6; + private readonly static uint ReasonDefaultValue = 0; + private uint reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Reason { - get { return reason_; } + get { if ((_hasBits0 & 4) != 0) { return reason_; } else { return ReasonDefaultValue; } } set { + _hasBits0 |= 4; reason_ = value; } } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~4; + } /// Field number for the "privacy_level" field. public const int PrivacyLevelFieldNumber = 7; - private Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel privacyLevel_ = Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel.PRIVACY_LEVEL_NONE; - public Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel PrivacyLevel { - get { return privacyLevel_; } + private readonly static global::Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel PrivacyLevelDefaultValue = global::Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel.Open; + + private global::Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel privacyLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel PrivacyLevel { + get { if ((_hasBits0 & 8) != 0) { return privacyLevel_; } else { return PrivacyLevelDefaultValue; } } set { + _hasBits0 |= 8; privacyLevel_ = value; } } + /// Gets whether the "privacy_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivacyLevel { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "privacy_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivacyLevel() { + _hasBits0 &= ~8; + } /// Field number for the "name" field. public const int NameFieldNumber = 8; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "delegate_name" field. - public const int DelegateNameFieldNumber = 9; - private string delegateName_ = ""; - public string DelegateName { - get { return delegateName_; } - set { - delegateName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; } /// Field number for the "channel_type" field. public const int ChannelTypeFieldNumber = 10; - private string channelType_ = ""; + private readonly static string ChannelTypeDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("ZGVmYXVsdA==")); + + private string channelType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ChannelType { - get { return channelType_; } + get { return channelType_ ?? ChannelTypeDefaultValue; } set { channelType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "channel_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasChannelType { + get { return channelType_ != null; } + } + /// Clears the value of the "channel_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearChannelType() { + channelType_ = null; + } /// Field number for the "program" field. public const int ProgramFieldNumber = 11; + private readonly static uint ProgramDefaultValue = 0; + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Program { - get { return program_; } + get { if ((_hasBits0 & 16) != 0) { return program_; } else { return ProgramDefaultValue; } } set { + _hasBits0 |= 16; program_ = value; } } - - /// Field number for the "allow_offline_members" field. - public const int AllowOfflineMembersFieldNumber = 12; - private bool allowOfflineMembers_; - public bool AllowOfflineMembers { - get { return allowOfflineMembers_; } - set { - allowOfflineMembers_ = value; - } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~16; } /// Field number for the "subscribe_to_presence" field. public const int SubscribeToPresenceFieldNumber = 13; + private readonly static bool SubscribeToPresenceDefaultValue = true; + private bool subscribeToPresence_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SubscribeToPresence { - get { return subscribeToPresence_; } + get { if ((_hasBits0 & 32) != 0) { return subscribeToPresence_; } else { return SubscribeToPresenceDefaultValue; } } set { + _hasBits0 |= 32; subscribeToPresence_ = value; } } - - /// Field number for the "destroy_on_founder_leave" field. - public const int DestroyOnFounderLeaveFieldNumber = 14; - private bool destroyOnFounderLeave_; - public bool DestroyOnFounderLeave { - get { return destroyOnFounderLeave_; } - set { - destroyOnFounderLeave_ = value; - } + /// Gets whether the "subscribe_to_presence" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscribeToPresence { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "subscribe_to_presence" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscribeToPresence() { + _hasBits0 &= ~32; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ChannelState); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ChannelState other) { if (ReferenceEquals(other, null)) { return false; @@ -1152,188 +1354,171 @@ namespace Bgs.Protocol.Channel.V1 if (MinMembers != other.MinMembers) return false; if(!attribute_.Equals(other.attribute_)) return false; if(!invitation_.Equals(other.invitation_)) return false; - if (MaxInvitations != other.MaxInvitations) return false; if (Reason != other.Reason) return false; if (PrivacyLevel != other.PrivacyLevel) return false; if (Name != other.Name) return false; - if (DelegateName != other.DelegateName) return false; if (ChannelType != other.ChannelType) return false; if (Program != other.Program) return false; - if (AllowOfflineMembers != other.AllowOfflineMembers) return false; if (SubscribeToPresence != other.SubscribeToPresence) return false; - if (DestroyOnFounderLeave != other.DestroyOnFounderLeave) return false; - return true; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (MaxMembers != 0) hash ^= MaxMembers.GetHashCode(); - if (MinMembers != 0) hash ^= MinMembers.GetHashCode(); + if (HasMaxMembers) hash ^= MaxMembers.GetHashCode(); + if (HasMinMembers) hash ^= MinMembers.GetHashCode(); hash ^= attribute_.GetHashCode(); hash ^= invitation_.GetHashCode(); - if (MaxInvitations != 0) hash ^= MaxInvitations.GetHashCode(); - if (Reason != 0) hash ^= Reason.GetHashCode(); - if (PrivacyLevel != Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel.PRIVACY_LEVEL_NONE) hash ^= PrivacyLevel.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (DelegateName.Length != 0) hash ^= DelegateName.GetHashCode(); - if (ChannelType.Length != 0) hash ^= ChannelType.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (AllowOfflineMembers != false) hash ^= AllowOfflineMembers.GetHashCode(); - if (SubscribeToPresence != false) hash ^= SubscribeToPresence.GetHashCode(); - if (DestroyOnFounderLeave != false) hash ^= DestroyOnFounderLeave.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (HasPrivacyLevel) hash ^= PrivacyLevel.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasChannelType) hash ^= ChannelType.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasSubscribeToPresence) hash ^= SubscribeToPresence.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (MaxMembers != 0) { + if (HasMaxMembers) { output.WriteRawTag(8); output.WriteUInt32(MaxMembers); } - if (MinMembers != 0) { + if (HasMinMembers) { output.WriteRawTag(16); output.WriteUInt32(MinMembers); } attribute_.WriteTo(output, _repeated_attribute_codec); invitation_.WriteTo(output, _repeated_invitation_codec); - if (MaxInvitations != 0) { - output.WriteRawTag(40); - output.WriteUInt32(MaxInvitations); - } - if (Reason != 0) { + if (HasReason) { output.WriteRawTag(48); output.WriteUInt32(Reason); } - if (PrivacyLevel != Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel.PRIVACY_LEVEL_NONE) { + if (HasPrivacyLevel) { output.WriteRawTag(56); output.WriteEnum((int) PrivacyLevel); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(66); output.WriteString(Name); } - if (DelegateName.Length != 0) { - output.WriteRawTag(74); - output.WriteString(DelegateName); - } - if (ChannelType.Length != 0) { + if (HasChannelType) { output.WriteRawTag(82); output.WriteString(ChannelType); } - if (Program != 0) { + if (HasProgram) { output.WriteRawTag(93); output.WriteFixed32(Program); } - if (AllowOfflineMembers != false) { - output.WriteRawTag(96); - output.WriteBool(AllowOfflineMembers); - } - if (SubscribeToPresence != false) { + if (HasSubscribeToPresence) { output.WriteRawTag(104); output.WriteBool(SubscribeToPresence); } - if (DestroyOnFounderLeave != false) { - output.WriteRawTag(112); - output.WriteBool(DestroyOnFounderLeave); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (MaxMembers != 0) { + if (HasMaxMembers) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxMembers); } - if (MinMembers != 0) { + if (HasMinMembers) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinMembers); } size += attribute_.CalculateSize(_repeated_attribute_codec); size += invitation_.CalculateSize(_repeated_invitation_codec); - if (MaxInvitations != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxInvitations); - } - if (Reason != 0) { + if (HasReason) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason); } - if (PrivacyLevel != Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel.PRIVACY_LEVEL_NONE) { + if (HasPrivacyLevel) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivacyLevel); } - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (DelegateName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DelegateName); - } - if (ChannelType.Length != 0) { + if (HasChannelType) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelType); } - if (Program != 0) { + if (HasProgram) { size += 1 + 4; } - if (AllowOfflineMembers != false) { + if (HasSubscribeToPresence) { size += 1 + 1; } - if (SubscribeToPresence != false) { - size += 1 + 1; + if (_extensions != null) { + size += _extensions.CalculateSize(); } - if (DestroyOnFounderLeave != false) { - size += 1 + 1; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ChannelState other) { if (other == null) { return; } - if (other.MaxMembers != 0) { + if (other.HasMaxMembers) { MaxMembers = other.MaxMembers; } - if (other.MinMembers != 0) { + if (other.HasMinMembers) { MinMembers = other.MinMembers; } attribute_.Add(other.attribute_); invitation_.Add(other.invitation_); - if (other.MaxInvitations != 0) { - MaxInvitations = other.MaxInvitations; - } - if (other.Reason != 0) { + if (other.HasReason) { Reason = other.Reason; } - if (other.PrivacyLevel != Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel.PRIVACY_LEVEL_NONE) { + if (other.HasPrivacyLevel) { PrivacyLevel = other.PrivacyLevel; } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } - if (other.DelegateName.Length != 0) { - DelegateName = other.DelegateName; - } - if (other.ChannelType.Length != 0) { + if (other.HasChannelType) { ChannelType = other.ChannelType; } - if (other.Program != 0) { + if (other.HasProgram) { Program = other.Program; } - if (other.AllowOfflineMembers != false) { - AllowOfflineMembers = other.AllowOfflineMembers; - } - if (other.SubscribeToPresence != false) { + if (other.HasSubscribeToPresence) { SubscribeToPresence = other.SubscribeToPresence; } - if (other.DestroyOnFounderLeave != false) { - DestroyOnFounderLeave = other.DestroyOnFounderLeave; - } + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } break; case 8: { MaxMembers = input.ReadUInt32(); @@ -1351,26 +1536,18 @@ namespace Bgs.Protocol.Channel.V1 invitation_.AddEntriesFrom(input, _repeated_invitation_codec); break; } - case 40: { - MaxInvitations = input.ReadUInt32(); - break; - } case 48: { Reason = input.ReadUInt32(); break; } case 56: { - privacyLevel_ = (Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel) input.ReadEnum(); + PrivacyLevel = (global::Bgs.Protocol.Channel.V1.ChannelState.Types.PrivacyLevel) input.ReadEnum(); break; } case 66: { Name = input.ReadString(); break; } - case 74: { - DelegateName = input.ReadString(); - break; - } case 82: { ChannelType = input.ReadString(); break; @@ -1379,32 +1556,45 @@ namespace Bgs.Protocol.Channel.V1 Program = input.ReadFixed32(); break; } - case 96: { - AllowOfflineMembers = input.ReadBool(); - break; - } case 104: { SubscribeToPresence = input.ReadBool(); break; } - case 112: { - DestroyOnFounderLeave = input.ReadBool(); - break; - } } } } + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + #region Nested types /// Container for nested types declared in the ChannelState message type. - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public enum PrivacyLevel { - PRIVACY_LEVEL_NONE = 0, - PRIVACY_LEVEL_OPEN = 1, - PRIVACY_LEVEL_OPEN_INVITATION_AND_FRIEND = 2, - PRIVACY_LEVEL_OPEN_INVITATION = 3, - PRIVACY_LEVEL_CLOSED = 4, + [pbr::OriginalName("PRIVACY_LEVEL_OPEN")] Open = 1, + [pbr::OriginalName("PRIVACY_LEVEL_OPEN_INVITATION_AND_FRIEND")] OpenInvitationAndFriend = 2, + [pbr::OriginalName("PRIVACY_LEVEL_OPEN_INVITATION")] OpenInvitation = 3, + [pbr::OriginalName("PRIVACY_LEVEL_CLOSED")] Closed = 4, } } @@ -1412,43 +1602,193 @@ namespace Bgs.Protocol.Channel.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class MemberState : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberState()); - public static pb::MessageParser Parser { get { return _parser; } } + public sealed partial class MemberAccountInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberAccountInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[6]; } + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[5]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAccountInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAccountInfo(MemberAccountInfo other) : this() { + battleTag_ = other.battleTag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAccountInfo Clone() { + return new MemberAccountInfo(this); + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 3; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberAccountInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberAccountInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BattleTag != other.BattleTag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasBattleTag) { + output.WriteRawTag(26); + output.WriteString(BattleTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberAccountInfo other) { + if (other == null) { + return; + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + BattleTag = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class MemberState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberState()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MemberState() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MemberState(MemberState other) : this() { + _hasBits0 = other._hasBits0; attribute_ = other.attribute_.Clone(); role_ = other.role_.Clone(); privileges_ = other.privileges_; - Info = other.info_ != null ? other.Info.Clone() : null; - dEPRECATEDHidden_ = other.dEPRECATEDHidden_; + info_ = other.HasInfo ? other.info_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MemberState Clone() { return new MemberState(this); } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { get { return attribute_; } } @@ -1457,45 +1797,62 @@ namespace Bgs.Protocol.Channel.V1 private static readonly pb::FieldCodec _repeated_role_codec = pb::FieldCodec.ForUInt32(18); private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Role { get { return role_; } } /// Field number for the "privileges" field. public const int PrivilegesFieldNumber = 3; + private readonly static ulong PrivilegesDefaultValue = 0UL; + private ulong privileges_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong Privileges { - get { return privileges_; } + get { if ((_hasBits0 & 1) != 0) { return privileges_; } else { return PrivilegesDefaultValue; } } set { + _hasBits0 |= 1; privileges_ = value; } } + /// Gets whether the "privileges" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivileges { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "privileges" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivileges() { + _hasBits0 &= ~1; + } /// Field number for the "info" field. public const int InfoFieldNumber = 4; - private Bgs.Protocol.AccountInfo info_; - public Bgs.Protocol.AccountInfo Info { + private global::Bgs.Protocol.Channel.V1.MemberAccountInfo info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Channel.V1.MemberAccountInfo Info { get { return info_; } set { info_ = value; } } - - /// Field number for the "DEPRECATED_hidden" field. - public const int DEPRECATEDHiddenFieldNumber = 5; - private bool dEPRECATEDHidden_; - [System.ObsoleteAttribute()] - public bool DEPRECATEDHidden { - get { return dEPRECATEDHidden_; } - set { - dEPRECATEDHidden_ = value; - } + /// Gets whether the info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInfo { + get { return info_ != null; } + } + /// Clears the value of the info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInfo() { + info_ = null; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MemberState); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MemberState other) { if (ReferenceEquals(other, null)) { return false; @@ -1507,83 +1864,87 @@ namespace Bgs.Protocol.Channel.V1 if(!role_.Equals(other.role_)) return false; if (Privileges != other.Privileges) return false; if (!object.Equals(Info, other.Info)) return false; - if (DEPRECATEDHidden != other.DEPRECATEDHidden) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= attribute_.GetHashCode(); hash ^= role_.GetHashCode(); - if (Privileges != 0UL) hash ^= Privileges.GetHashCode(); - if (info_ != null) hash ^= Info.GetHashCode(); - if (DEPRECATEDHidden != false) hash ^= DEPRECATEDHidden.GetHashCode(); + if (HasPrivileges) hash ^= Privileges.GetHashCode(); + if (HasInfo) hash ^= Info.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { attribute_.WriteTo(output, _repeated_attribute_codec); role_.WriteTo(output, _repeated_role_codec); - if (Privileges != 0UL) { + if (HasPrivileges) { output.WriteRawTag(24); output.WriteUInt64(Privileges); } - if (info_ != null) { + if (HasInfo) { output.WriteRawTag(34); output.WriteMessage(Info); } - if (DEPRECATEDHidden != false) { - output.WriteRawTag(40); - output.WriteBool(DEPRECATEDHidden); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += attribute_.CalculateSize(_repeated_attribute_codec); size += role_.CalculateSize(_repeated_role_codec); - if (Privileges != 0UL) { + if (HasPrivileges) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Privileges); } - if (info_ != null) { + if (HasInfo) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); } - if (DEPRECATEDHidden != false) { - size += 1 + 1; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MemberState other) { if (other == null) { return; } attribute_.Add(other.attribute_); role_.Add(other.role_); - if (other.Privileges != 0UL) { + if (other.HasPrivileges) { Privileges = other.Privileges; } - if (other.info_ != null) { - if (info_ == null) { - info_ = new Bgs.Protocol.AccountInfo(); + if (other.HasInfo) { + if (!HasInfo) { + Info = new global::Bgs.Protocol.Channel.V1.MemberAccountInfo(); } Info.MergeFrom(other.Info); } - if (other.DEPRECATEDHidden != false) { - DEPRECATEDHidden = other.DEPRECATEDHidden; - } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); @@ -1599,14 +1960,10 @@ namespace Bgs.Protocol.Channel.V1 break; } case 34: { - if (info_ == null) { - info_ = new Bgs.Protocol.AccountInfo(); + if (!HasInfo) { + Info = new global::Bgs.Protocol.Channel.V1.MemberAccountInfo(); } - input.ReadMessage(info_); - break; - } - case 40: { - DEPRECATEDHidden = input.ReadBool(); + input.ReadMessage(Info); break; } } @@ -1615,58 +1972,89 @@ namespace Bgs.Protocol.Channel.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class Member : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Member()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[7]; } + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[7]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Member() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Member(Member other) : this() { - Identity = other.identity_ != null ? other.Identity.Clone() : null; - State = other.state_ != null ? other.State.Clone() : null; + identity_ = other.HasIdentity ? other.identity_.Clone() : null; + state_ = other.HasState ? other.state_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Member Clone() { return new Member(this); } /// Field number for the "identity" field. public const int IdentityFieldNumber = 1; - private Bgs.Protocol.Identity identity_; - public Bgs.Protocol.Identity Identity { + private global::Bgs.Protocol.Identity identity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Identity Identity { get { return identity_; } set { identity_ = value; } } + /// Gets whether the identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIdentity { + get { return identity_ != null; } + } + /// Clears the value of the identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIdentity() { + identity_ = null; + } /// Field number for the "state" field. public const int StateFieldNumber = 2; - private Bgs.Protocol.Channel.V1.MemberState state_; - public Bgs.Protocol.Channel.V1.MemberState State { + private global::Bgs.Protocol.Channel.V1.MemberState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Channel.V1.MemberState State { get { return state_; } set { state_ = value; } } + /// Gets whether the state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasState { + get { return state_ != null; } + } + /// Clears the value of the state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearState() { + state_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Member); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Member other) { if (ReferenceEquals(other, null)) { return false; @@ -1676,79 +2064,331 @@ namespace Bgs.Protocol.Channel.V1 } if (!object.Equals(Identity, other.Identity)) return false; if (!object.Equals(State, other.State)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (identity_ != null) hash ^= Identity.GetHashCode(); - if (state_ != null) hash ^= State.GetHashCode(); + if (HasIdentity) hash ^= Identity.GetHashCode(); + if (HasState) hash ^= State.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (identity_ != null) { + if (HasIdentity) { output.WriteRawTag(10); output.WriteMessage(Identity); } - if (state_ != null) { + if (HasState) { output.WriteRawTag(18); output.WriteMessage(State); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (identity_ != null) { + if (HasIdentity) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity); } - if (state_ != null) { + if (HasState) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Member other) { if (other == null) { return; } - if (other.identity_ != null) { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Identity(); + if (other.HasIdentity) { + if (!HasIdentity) { + Identity = new global::Bgs.Protocol.Identity(); } Identity.MergeFrom(other.Identity); } - if (other.state_ != null) { - if (state_ == null) { - state_ = new Bgs.Protocol.Channel.V1.MemberState(); + if (other.HasState) { + if (!HasState) { + State = new global::Bgs.Protocol.Channel.V1.MemberState(); } State.MergeFrom(other.State); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Identity(); + if (!HasIdentity) { + Identity = new global::Bgs.Protocol.Identity(); } - input.ReadMessage(identity_); + input.ReadMessage(Identity); break; } case 18: { - if (state_ == null) { - state_ = new Bgs.Protocol.Channel.V1.MemberState(); + if (!HasState) { + State = new global::Bgs.Protocol.Channel.V1.MemberState(); } - input.ReadMessage(state_); + input.ReadMessage(State); + break; + } + } + } + } + + } + + public sealed partial class SubscriberId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriberId()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberId(SubscriberId other) : this() { + account_ = other.HasAccount ? other.account_.Clone() : null; + gameAccount_ = other.HasGameAccount ? other.gameAccount_.Clone() : null; + process_ = other.HasProcess ? other.process_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberId Clone() { + return new SubscriberId(this); + } + + /// Field number for the "account" field. + public const int AccountFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId account_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId Account { + get { return account_; } + set { + account_ = value; + } + } + /// Gets whether the account field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccount { + get { return account_ != null; } + } + /// Clears the value of the account field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccount() { + account_ = null; + } + + /// Field number for the "game_account" field. + public const int GameAccountFieldNumber = 2; + private global::Bgs.Protocol.Account.V1.GameAccountHandle gameAccount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle GameAccount { + get { return gameAccount_; } + set { + gameAccount_ = value; + } + } + /// Gets whether the game_account field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccount { + get { return gameAccount_ != null; } + } + /// Clears the value of the game_account field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccount() { + gameAccount_ = null; + } + + /// Field number for the "process" field. + public const int ProcessFieldNumber = 3; + private global::Bgs.Protocol.ProcessId process_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Process { + get { return process_; } + set { + process_ = value; + } + } + /// Gets whether the process field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProcess { + get { return process_ != null; } + } + /// Clears the value of the process field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProcess() { + process_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscriberId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscriberId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Account, other.Account)) return false; + if (!object.Equals(GameAccount, other.GameAccount)) return false; + if (!object.Equals(Process, other.Process)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccount) hash ^= Account.GetHashCode(); + if (HasGameAccount) hash ^= GameAccount.GetHashCode(); + if (HasProcess) hash ^= Process.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccount) { + output.WriteRawTag(10); + output.WriteMessage(Account); + } + if (HasGameAccount) { + output.WriteRawTag(18); + output.WriteMessage(GameAccount); + } + if (HasProcess) { + output.WriteRawTag(26); + output.WriteMessage(Process); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Account); + } + if (HasGameAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccount); + } + if (HasProcess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Process); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscriberId other) { + if (other == null) { + return; + } + if (other.HasAccount) { + if (!HasAccount) { + Account = new global::Bgs.Protocol.Account.V1.AccountId(); + } + Account.MergeFrom(other.Account); + } + if (other.HasGameAccount) { + if (!HasGameAccount) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + GameAccount.MergeFrom(other.GameAccount); + } + if (other.HasProcess) { + if (!HasProcess) { + Process = new global::Bgs.Protocol.ProcessId(); + } + Process.MergeFrom(other.Process); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccount) { + Account = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(Account); + break; + } + case 18: { + if (!HasGameAccount) { + GameAccount = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(GameAccount); + break; + } + case 26: { + if (!HasProcess) { + Process = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Process); break; } } diff --git a/Source/Framework/Proto/ClubBan.cs b/Source/Framework/Proto/ClubBan.cs new file mode 100644 index 000000000..252c45a22 --- /dev/null +++ b/Source/Framework/Proto/ClubBan.cs @@ -0,0 +1,591 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_ban.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_ban.proto + public static partial class ClubBanReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_ban.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubBanReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBiZ3MvbG93L3BiL2NsaWVudC9jbHViX2Jhbi5wcm90bxIUYmdzLnByb3Rv", + "Y29sLmNsdWIudjEaI2Jncy9sb3cvcGIvY2xpZW50L2NsdWJfbWVtYmVyLnBy", + "b3RvGjViZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL2F0dHJpYnV0", + "ZV90eXBlcy5wcm90byKBAQoNQWRkQmFuT3B0aW9ucxIxCgl0YXJnZXRfaWQY", + "ASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBItCglhdHRy", + "aWJ1dGUYAiADKAsyGi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlEg4KBnJl", + "YXNvbhgDIAEoCSLZAQoHQ2x1YkJhbhIqCgJpZBgBIAEoCzIeLmJncy5wcm90", + "b2NvbC5jbHViLnYxLk1lbWJlcklkEhIKCmJhdHRsZV90YWcYAiABKAkSOAoH", + "Y3JlYXRvchgDIAEoCzInLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlckRl", + "c2NyaXB0aW9uEi0KCWF0dHJpYnV0ZRgEIAMoCzIaLmJncy5wcm90b2NvbC52", + "Mi5BdHRyaWJ1dGUSDgoGcmVhc29uGAUgASgJEhUKDWNyZWF0aW9uX3RpbWUY", + "BiABKAQ=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor, global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AddBanOptions), global::Bgs.Protocol.Club.V1.AddBanOptions.Parser, new[]{ "TargetId", "Attribute", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubBan), global::Bgs.Protocol.Club.V1.ClubBan.Parser, new[]{ "Id", "BattleTag", "Creator", "Attribute", "Reason", "CreationTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class AddBanOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddBanOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubBanReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AddBanOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AddBanOptions(AddBanOptions other) : this() { + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + attribute_ = other.attribute_.Clone(); + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AddBanOptions Clone() { + return new AddBanOptions(this); + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 3; + private readonly static string ReasonDefaultValue = ""; + + private string reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Reason { + get { return reason_ ?? ReasonDefaultValue; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return reason_ != null; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + reason_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AddBanOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AddBanOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TargetId, other.TargetId)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTargetId) hash ^= TargetId.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTargetId) { + output.WriteRawTag(10); + output.WriteMessage(TargetId); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasReason) { + output.WriteRawTag(26); + output.WriteString(Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AddBanOptions other) { + if (other == null) { + return; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + TargetId.MergeFrom(other.TargetId); + } + attribute_.Add(other.attribute_); + if (other.HasReason) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(TargetId); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 26: { + Reason = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class ClubBan : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubBan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubBanReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubBan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubBan(ClubBan other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.HasId ? other.id_.Clone() : null; + battleTag_ = other.battleTag_; + creator_ = other.HasCreator ? other.creator_.Clone() : null; + attribute_ = other.attribute_.Clone(); + reason_ = other.reason_; + creationTime_ = other.creationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubBan Clone() { + return new ClubBan(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 2; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + /// Field number for the "creator" field. + public const int CreatorFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberDescription creator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Creator { + get { return creator_; } + set { + creator_ = value; + } + } + /// Gets whether the creator field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreator { + get { return creator_ != null; } + } + /// Clears the value of the creator field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreator() { + creator_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 5; + private readonly static string ReasonDefaultValue = ""; + + private string reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Reason { + get { return reason_ ?? ReasonDefaultValue; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return reason_ != null; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + reason_ = null; + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 6; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 1) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 1; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubBan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubBan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + if (BattleTag != other.BattleTag) return false; + if (!object.Equals(Creator, other.Creator)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (Reason != other.Reason) return false; + if (CreationTime != other.CreationTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + if (HasCreator) hash ^= Creator.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteMessage(Id); + } + if (HasBattleTag) { + output.WriteRawTag(18); + output.WriteString(BattleTag); + } + if (HasCreator) { + output.WriteRawTag(26); + output.WriteMessage(Creator); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasReason) { + output.WriteRawTag(42); + output.WriteString(Reason); + } + if (HasCreationTime) { + output.WriteRawTag(48); + output.WriteUInt64(CreationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + if (HasCreator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubBan other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + Id.MergeFrom(other.Id); + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + if (other.HasCreator) { + if (!HasCreator) { + Creator = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Creator.MergeFrom(other.Creator); + } + attribute_.Add(other.attribute_); + if (other.HasReason) { + Reason = other.Reason; + } + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(Id); + break; + } + case 18: { + BattleTag = input.ReadString(); + break; + } + case 26: { + if (!HasCreator) { + Creator = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Creator); + break; + } + case 34: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 42: { + Reason = input.ReadString(); + break; + } + case 48: { + CreationTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubCore.cs b/Source/Framework/Proto/ClubCore.cs new file mode 100644 index 000000000..c5c7f9aa1 --- /dev/null +++ b/Source/Framework/Proto/ClubCore.cs @@ -0,0 +1,4278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_core.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_core.proto + public static partial class ClubCoreReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_core.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubCoreReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFiZ3MvbG93L3BiL2NsaWVudC9jbHViX2NvcmUucHJvdG8SFGJncy5wcm90", + "b2NvbC5jbHViLnYxGiFiZ3MvbG93L3BiL2NsaWVudC9jbHViX2VudW0ucHJv", + "dG8aIWJncy9sb3cvcGIvY2xpZW50L2NsdWJfcm9sZS5wcm90bxojYmdzL2xv", + "dy9wYi9jbGllbnQvY2x1Yl9tZW1iZXIucHJvdG8aI2Jncy9sb3cvcGIvY2xp", + "ZW50L2NsdWJfc3RyZWFtLnByb3RvGjViZ3MvbG93L3BiL2NsaWVudC9hcGkv", + "Y2xpZW50L3YyL2F0dHJpYnV0ZV90eXBlcy5wcm90bxooYmdzL2xvdy9wYi9j", + "bGllbnQvZXZlbnRfdmlld190eXBlcy5wcm90byIWCghBdmF0YXJJZBIKCgJp", + "ZBgBIAEoDSImChNTZXRCcm9hZGNhc3RPcHRpb25zEg8KB2NvbnRlbnQYASAB", + "KAkibQoJQnJvYWRjYXN0Eg8KB2NvbnRlbnQYASABKAkSOAoHY3JlYXRvchgC", + "IAEoCzInLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlckRlc2NyaXB0aW9u", + "EhUKDWNyZWF0aW9uX3RpbWUYAyABKAQiLwoOVW5pcXVlQ2x1YlR5cGUSDwoH", + "cHJvZ3JhbRgBIAEoBxIMCgRuYW1lGAIgASgJIqQDChFDbHViQ3JlYXRlT3B0", + "aW9ucxIyCgR0eXBlGAEgASgLMiQuYmdzLnByb3RvY29sLmNsdWIudjEuVW5p", + "cXVlQ2x1YlR5cGUSLQoJYXR0cmlidXRlGAIgAygLMhouYmdzLnByb3RvY29s", + "LnYyLkF0dHJpYnV0ZRIMCgRuYW1lGAMgASgJEhMKC2Rlc2NyaXB0aW9uGAQg", + "ASgJEi4KBmF2YXRhchgFIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLkF2", + "YXRhcklkEk8KDXByaXZhY3lfbGV2ZWwYBiABKA4yIi5iZ3MucHJvdG9jb2wu", + "Y2x1Yi52MS5Qcml2YWN5TGV2ZWw6FFBSSVZBQ1lfTEVWRUxfQ0xPU0VEEhIK", + "CnNob3J0X25hbWUYByABKAkSOQoGbWVtYmVyGAogASgLMikuYmdzLnByb3Rv", + "Y29sLmNsdWIudjEuQ3JlYXRlTWVtYmVyT3B0aW9ucxI5CgZzdHJlYW0YCyAB", + "KAsyKS5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DcmVhdGVTdHJlYW1PcHRpb25z", + "IpYFCgRDbHViEgoKAmlkGAEgASgEEjIKBHR5cGUYAiABKAsyJC5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5VbmlxdWVDbHViVHlwZRItCglhdHRyaWJ1dGUYAyAD", + "KAsyGi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlEgwKBG5hbWUYBCABKAkS", + "EwoLZGVzY3JpcHRpb24YBSABKAkSMgoJYnJvYWRjYXN0GAYgASgLMh8uYmdz", + "LnByb3RvY29sLmNsdWIudjEuQnJvYWRjYXN0Ei4KBmF2YXRhchgHIAEoCzIe", + "LmJncy5wcm90b2NvbC5jbHViLnYxLkF2YXRhcklkEk8KDXByaXZhY3lfbGV2", + "ZWwYCCABKA4yIi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5Qcml2YWN5TGV2ZWw6", + "FFBSSVZBQ1lfTEVWRUxfQ0xPU0VEElkKEHZpc2liaWxpdHlfbGV2ZWwYCSAB", + "KA4yJS5iZ3MucHJvdG9jb2wuY2x1Yi52MS5WaXNpYmlsaXR5TGV2ZWw6GFZJ", + "U0lCSUxJVFlfTEVWRUxfUFJJVkFURRIUCgxtZW1iZXJfY291bnQYCiABKA0S", + "FQoNY3JlYXRpb25fdGltZRgLIAEoBBI9Cg9zdHJlYW1fcG9zaXRpb24YDCAB", + "KAsyJC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1Qb3NpdGlvbhIzCghy", + "b2xlX3NldBgNIAEoCzIhLmJncy5wcm90b2NvbC5jbHViLnYxLkNsdWJSb2xl", + "U2V0EjcKBmxlYWRlchgOIAMoCzInLmJncy5wcm90b2NvbC5jbHViLnYxLk1l", + "bWJlckRlc2NyaXB0aW9uEhIKCnNob3J0X25hbWUYDyABKAkitgMKD0NsdWJE", + "ZXNjcmlwdGlvbhIKCgJpZBgBIAEoBBIyCgR0eXBlGAIgASgLMiQuYmdzLnBy", + "b3RvY29sLmNsdWIudjEuVW5pcXVlQ2x1YlR5cGUSDAoEbmFtZRgDIAEoCRIT", + "CgtkZXNjcmlwdGlvbhgEIAEoCRIuCgZhdmF0YXIYBSABKAsyHi5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5BdmF0YXJJZBJPCg1wcml2YWN5X2xldmVsGAYgASgO", + "MiIuYmdzLnByb3RvY29sLmNsdWIudjEuUHJpdmFjeUxldmVsOhRQUklWQUNZ", + "X0xFVkVMX0NMT1NFRBJZChB2aXNpYmlsaXR5X2xldmVsGAcgASgOMiUuYmdz", + "LnByb3RvY29sLmNsdWIudjEuVmlzaWJpbGl0eUxldmVsOhhWSVNJQklMSVRZ", + "X0xFVkVMX1BSSVZBVEUSFAoMbWVtYmVyX2NvdW50GAggASgNEjcKBmxlYWRl", + "chgJIAMoCzInLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlckRlc2NyaXB0", + "aW9uEhUKDWNyZWF0aW9uX3RpbWUYCiABKAQiRQoIQ2x1YlZpZXcSDwoHY2x1", + "Yl9pZBgBIAEoBBIoCgZtYXJrZXIYAiABKAsyGC5iZ3MucHJvdG9jb2wuVmll", + "d01hcmtlciL2AgoQQ2x1YlN0YXRlT3B0aW9ucxItCglhdHRyaWJ1dGUYASAD", + "KAsyGi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlEgwKBG5hbWUYAiABKAkS", + "EwoLZGVzY3JpcHRpb24YAyABKAkSPAoJYnJvYWRjYXN0GAQgASgLMikuYmdz", + "LnByb3RvY29sLmNsdWIudjEuU2V0QnJvYWRjYXN0T3B0aW9ucxIuCgZhdmF0", + "YXIYBSABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5BdmF0YXJJZBJPCg1w", + "cml2YWN5X2xldmVsGAYgASgOMiIuYmdzLnByb3RvY29sLmNsdWIudjEuUHJp", + "dmFjeUxldmVsOhRQUklWQUNZX0xFVkVMX0NMT1NFRBI9Cg9zdHJlYW1fcG9z", + "aXRpb24YByABKAsyJC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1Qb3Np", + "dGlvbhISCgpzaG9ydF9uYW1lGAggASgJIoADChNDbHViU3RhdGVBc3NpZ25t", + "ZW50Eg8KB2NsdWJfaWQYASABKAQSLQoJYXR0cmlidXRlGAIgAygLMhouYmdz", + "LnByb3RvY29sLnYyLkF0dHJpYnV0ZRIMCgRuYW1lGAMgASgJEhMKC2Rlc2Ny", + "aXB0aW9uGAQgASgJEjIKCWJyb2FkY2FzdBgFIAEoCzIfLmJncy5wcm90b2Nv", + "bC5jbHViLnYxLkJyb2FkY2FzdBIuCgZhdmF0YXIYBiABKAsyHi5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5BdmF0YXJJZBJPCg1wcml2YWN5X2xldmVsGAcgASgO", + "MiIuYmdzLnByb3RvY29sLmNsdWIudjEuUHJpdmFjeUxldmVsOhRQUklWQUNZ", + "X0xFVkVMX0NMT1NFRBI9Cg9zdHJlYW1fcG9zaXRpb24YCCABKAsyJC5iZ3Mu", + "cHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1Qb3NpdGlvbhISCgpzaG9ydF9uYW1l", + "GAkgASgJIoQBCg5TdHJlYW1TZXR0aW5ncxIRCglzdHJlYW1faWQYASABKAQS", + "XwoGZmlsdGVyGAIgASgOMi4uYmdzLnByb3RvY29sLmNsdWIudjEuU3RyZWFt", + "Tm90aWZpY2F0aW9uRmlsdGVyOh9TVFJFQU1fTk9USUZJQ0FUSU9OX0ZJTFRF", + "Ul9OT05FIpsBCgxDbHViU2V0dGluZ3MSNAoGc3RyZWFtGAEgAygLMiQuYmdz", + "LnByb3RvY29sLmNsdWIudjEuU3RyZWFtU2V0dGluZ3MSJgoec3RyZWFtX25v", + "dGlmaWNhdGlvbl9maWx0ZXJfYWxsGAIgASgIEi0KCWF0dHJpYnV0ZRgDIAMo", + "CzIaLmJncy5wcm90b2NvbC52Mi5BdHRyaWJ1dGUilgEKE0NsdWJTZXR0aW5n", + "c09wdGlvbnMSOAoGc3RyZWFtGAEgAygLMiQuYmdzLnByb3RvY29sLmNsdWIu", + "djEuU3RyZWFtU2V0dGluZ3NCAhgBEjQKCHNldHRpbmdzGAIgASgLMiIuYmdz", + "LnByb3RvY29sLmNsdWIudjEuQ2x1YlNldHRpbmdzEg8KB3ZlcnNpb24YAyAB", + "KA0iiAEKFkNsdWJTZXR0aW5nc0Fzc2lnbm1lbnQSOAoGc3RyZWFtGAEgAygL", + "MiQuYmdzLnByb3RvY29sLmNsdWIudjEuU3RyZWFtU2V0dGluZ3NCAhgBEjQK", + "CHNldHRpbmdzGAIgASgLMiIuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YlNl", + "dHRpbmdz")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubEnumReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubRoleReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor, global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EventViewTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AvatarId), global::Bgs.Protocol.Club.V1.AvatarId.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SetBroadcastOptions), global::Bgs.Protocol.Club.V1.SetBroadcastOptions.Parser, new[]{ "Content" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Broadcast), global::Bgs.Protocol.Club.V1.Broadcast.Parser, new[]{ "Content", "Creator", "CreationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UniqueClubType), global::Bgs.Protocol.Club.V1.UniqueClubType.Parser, new[]{ "Program", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubCreateOptions), global::Bgs.Protocol.Club.V1.ClubCreateOptions.Parser, new[]{ "Type", "Attribute", "Name", "Description", "Avatar", "PrivacyLevel", "ShortName", "Member", "Stream" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Club), global::Bgs.Protocol.Club.V1.Club.Parser, new[]{ "Id", "Type", "Attribute", "Name", "Description", "Broadcast", "Avatar", "PrivacyLevel", "VisibilityLevel", "MemberCount", "CreationTime", "StreamPosition", "RoleSet", "Leader", "ShortName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubDescription), global::Bgs.Protocol.Club.V1.ClubDescription.Parser, new[]{ "Id", "Type", "Name", "Description", "Avatar", "PrivacyLevel", "VisibilityLevel", "MemberCount", "Leader", "CreationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubView), global::Bgs.Protocol.Club.V1.ClubView.Parser, new[]{ "ClubId", "Marker" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubStateOptions), global::Bgs.Protocol.Club.V1.ClubStateOptions.Parser, new[]{ "Attribute", "Name", "Description", "Broadcast", "Avatar", "PrivacyLevel", "StreamPosition", "ShortName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubStateAssignment), global::Bgs.Protocol.Club.V1.ClubStateAssignment.Parser, new[]{ "ClubId", "Attribute", "Name", "Description", "Broadcast", "Avatar", "PrivacyLevel", "StreamPosition", "ShortName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamSettings), global::Bgs.Protocol.Club.V1.StreamSettings.Parser, new[]{ "StreamId", "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSettings), global::Bgs.Protocol.Club.V1.ClubSettings.Parser, new[]{ "Stream", "StreamNotificationFilterAll", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSettingsOptions), global::Bgs.Protocol.Club.V1.ClubSettingsOptions.Parser, new[]{ "Stream", "Settings", "Version" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSettingsAssignment), global::Bgs.Protocol.Club.V1.ClubSettingsAssignment.Parser, new[]{ "Stream", "Settings" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class AvatarId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AvatarId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AvatarId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AvatarId(AvatarId other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AvatarId Clone() { + return new AvatarId(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; + + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AvatarId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AvatarId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AvatarId other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class SetBroadcastOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetBroadcastOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBroadcastOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBroadcastOptions(SetBroadcastOptions other) : this() { + content_ = other.content_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBroadcastOptions Clone() { + return new SetBroadcastOptions(this); + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 1; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContent() { + content_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetBroadcastOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetBroadcastOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Content != other.Content) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasContent) hash ^= Content.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasContent) { + output.WriteRawTag(10); + output.WriteString(Content); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetBroadcastOptions other) { + if (other == null) { + return; + } + if (other.HasContent) { + Content = other.Content; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Content = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class Broadcast : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Broadcast()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Broadcast() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Broadcast(Broadcast other) : this() { + _hasBits0 = other._hasBits0; + content_ = other.content_; + creator_ = other.HasCreator ? other.creator_.Clone() : null; + creationTime_ = other.creationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Broadcast Clone() { + return new Broadcast(this); + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 1; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "creator" field. + public const int CreatorFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.MemberDescription creator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Creator { + get { return creator_; } + set { + creator_ = value; + } + } + /// Gets whether the creator field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreator { + get { return creator_ != null; } + } + /// Clears the value of the creator field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreator() { + creator_ = null; + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 3; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 1) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 1; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Broadcast); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Broadcast other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Content != other.Content) return false; + if (!object.Equals(Creator, other.Creator)) return false; + if (CreationTime != other.CreationTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasContent) hash ^= Content.GetHashCode(); + if (HasCreator) hash ^= Creator.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasContent) { + output.WriteRawTag(10); + output.WriteString(Content); + } + if (HasCreator) { + output.WriteRawTag(18); + output.WriteMessage(Creator); + } + if (HasCreationTime) { + output.WriteRawTag(24); + output.WriteUInt64(CreationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (HasCreator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator); + } + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Broadcast other) { + if (other == null) { + return; + } + if (other.HasContent) { + Content = other.Content; + } + if (other.HasCreator) { + if (!HasCreator) { + Creator = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Creator.MergeFrom(other.Creator); + } + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Content = input.ReadString(); + break; + } + case 18: { + if (!HasCreator) { + Creator = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Creator); + break; + } + case 24: { + CreationTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class UniqueClubType : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UniqueClubType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UniqueClubType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UniqueClubType(UniqueClubType other) : this() { + _hasBits0 = other._hasBits0; + program_ = other.program_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UniqueClubType Clone() { + return new UniqueClubType(this); + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 1; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UniqueClubType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UniqueClubType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Program != other.Program) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasProgram) { + output.WriteRawTag(13); + output.WriteFixed32(Program); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasProgram) { + size += 1 + 4; + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UniqueClubType other) { + if (other == null) { + return; + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Program = input.ReadFixed32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class ClubCreateOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubCreateOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubCreateOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubCreateOptions(ClubCreateOptions other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.HasType ? other.type_.Clone() : null; + attribute_ = other.attribute_.Clone(); + name_ = other.name_; + description_ = other.description_; + avatar_ = other.HasAvatar ? other.avatar_.Clone() : null; + privacyLevel_ = other.privacyLevel_; + shortName_ = other.shortName_; + member_ = other.HasMember ? other.member_.Clone() : null; + stream_ = other.HasStream ? other.stream_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubCreateOptions Clone() { + return new ClubCreateOptions(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.UniqueClubType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.UniqueClubType Type { + get { return type_; } + set { + type_ = value; + } + } + /// Gets whether the type field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the type field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private readonly static string DescriptionDefaultValue = ""; + + private string description_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Description { + get { return description_ ?? DescriptionDefaultValue; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the "description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescription() { + description_ = null; + } + + /// Field number for the "avatar" field. + public const int AvatarFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.AvatarId avatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.AvatarId Avatar { + get { return avatar_; } + set { + avatar_ = value; + } + } + /// Gets whether the avatar field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAvatar { + get { return avatar_ != null; } + } + /// Clears the value of the avatar field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAvatar() { + avatar_ = null; + } + + /// Field number for the "privacy_level" field. + public const int PrivacyLevelFieldNumber = 6; + private readonly static global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevelDefaultValue = global::Bgs.Protocol.Club.V1.PrivacyLevel.Closed; + + private global::Bgs.Protocol.Club.V1.PrivacyLevel privacyLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevel { + get { if ((_hasBits0 & 1) != 0) { return privacyLevel_; } else { return PrivacyLevelDefaultValue; } } + set { + _hasBits0 |= 1; + privacyLevel_ = value; + } + } + /// Gets whether the "privacy_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivacyLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "privacy_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivacyLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "short_name" field. + public const int ShortNameFieldNumber = 7; + private readonly static string ShortNameDefaultValue = ""; + + private string shortName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ShortName { + get { return shortName_ ?? ShortNameDefaultValue; } + set { + shortName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "short_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShortName { + get { return shortName_ != null; } + } + /// Clears the value of the "short_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShortName() { + shortName_ = null; + } + + /// Field number for the "member" field. + public const int MemberFieldNumber = 10; + private global::Bgs.Protocol.Club.V1.CreateMemberOptions member_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.CreateMemberOptions Member { + get { return member_; } + set { + member_ = value; + } + } + /// Gets whether the member field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMember { + get { return member_ != null; } + } + /// Clears the value of the member field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMember() { + member_ = null; + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 11; + private global::Bgs.Protocol.Club.V1.CreateStreamOptions stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.CreateStreamOptions Stream { + get { return stream_; } + set { + stream_ = value; + } + } + /// Gets whether the stream field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStream { + get { return stream_ != null; } + } + /// Clears the value of the stream field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStream() { + stream_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubCreateOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubCreateOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Type, other.Type)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Avatar, other.Avatar)) return false; + if (PrivacyLevel != other.PrivacyLevel) return false; + if (ShortName != other.ShortName) return false; + if (!object.Equals(Member, other.Member)) return false; + if (!object.Equals(Stream, other.Stream)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDescription) hash ^= Description.GetHashCode(); + if (HasAvatar) hash ^= Avatar.GetHashCode(); + if (HasPrivacyLevel) hash ^= PrivacyLevel.GetHashCode(); + if (HasShortName) hash ^= ShortName.GetHashCode(); + if (HasMember) hash ^= Member.GetHashCode(); + if (HasStream) hash ^= Stream.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasType) { + output.WriteRawTag(10); + output.WriteMessage(Type); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasName) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (HasDescription) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (HasAvatar) { + output.WriteRawTag(42); + output.WriteMessage(Avatar); + } + if (HasPrivacyLevel) { + output.WriteRawTag(48); + output.WriteEnum((int) PrivacyLevel); + } + if (HasShortName) { + output.WriteRawTag(58); + output.WriteString(ShortName); + } + if (HasMember) { + output.WriteRawTag(82); + output.WriteMessage(Member); + } + if (HasStream) { + output.WriteRawTag(90); + output.WriteMessage(Stream); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Type); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (HasAvatar) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Avatar); + } + if (HasPrivacyLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivacyLevel); + } + if (HasShortName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ShortName); + } + if (HasMember) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Member); + } + if (HasStream) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubCreateOptions other) { + if (other == null) { + return; + } + if (other.HasType) { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + Type.MergeFrom(other.Type); + } + attribute_.Add(other.attribute_); + if (other.HasName) { + Name = other.Name; + } + if (other.HasDescription) { + Description = other.Description; + } + if (other.HasAvatar) { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + Avatar.MergeFrom(other.Avatar); + } + if (other.HasPrivacyLevel) { + PrivacyLevel = other.PrivacyLevel; + } + if (other.HasShortName) { + ShortName = other.ShortName; + } + if (other.HasMember) { + if (!HasMember) { + Member = new global::Bgs.Protocol.Club.V1.CreateMemberOptions(); + } + Member.MergeFrom(other.Member); + } + if (other.HasStream) { + if (!HasStream) { + Stream = new global::Bgs.Protocol.Club.V1.CreateStreamOptions(); + } + Stream.MergeFrom(other.Stream); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + input.ReadMessage(Type); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + input.ReadMessage(Avatar); + break; + } + case 48: { + PrivacyLevel = (global::Bgs.Protocol.Club.V1.PrivacyLevel) input.ReadEnum(); + break; + } + case 58: { + ShortName = input.ReadString(); + break; + } + case 82: { + if (!HasMember) { + Member = new global::Bgs.Protocol.Club.V1.CreateMemberOptions(); + } + input.ReadMessage(Member); + break; + } + case 90: { + if (!HasStream) { + Stream = new global::Bgs.Protocol.Club.V1.CreateStreamOptions(); + } + input.ReadMessage(Stream); + break; + } + } + } + } + + } + + public sealed partial class Club : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Club()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Club() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Club(Club other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + type_ = other.HasType ? other.type_.Clone() : null; + attribute_ = other.attribute_.Clone(); + name_ = other.name_; + description_ = other.description_; + broadcast_ = other.HasBroadcast ? other.broadcast_.Clone() : null; + avatar_ = other.HasAvatar ? other.avatar_.Clone() : null; + privacyLevel_ = other.privacyLevel_; + visibilityLevel_ = other.visibilityLevel_; + memberCount_ = other.memberCount_; + creationTime_ = other.creationTime_; + streamPosition_ = other.HasStreamPosition ? other.streamPosition_.Clone() : null; + roleSet_ = other.HasRoleSet ? other.roleSet_.Clone() : null; + leader_ = other.leader_.Clone(); + shortName_ = other.shortName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Club Clone() { + return new Club(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static ulong IdDefaultValue = 0UL; + + private ulong id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.UniqueClubType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.UniqueClubType Type { + get { return type_; } + set { + type_ = value; + } + } + /// Gets whether the type field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the type field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private readonly static string DescriptionDefaultValue = ""; + + private string description_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Description { + get { return description_ ?? DescriptionDefaultValue; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the "description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescription() { + description_ = null; + } + + /// Field number for the "broadcast" field. + public const int BroadcastFieldNumber = 6; + private global::Bgs.Protocol.Club.V1.Broadcast broadcast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.Broadcast Broadcast { + get { return broadcast_; } + set { + broadcast_ = value; + } + } + /// Gets whether the broadcast field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBroadcast { + get { return broadcast_ != null; } + } + /// Clears the value of the broadcast field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBroadcast() { + broadcast_ = null; + } + + /// Field number for the "avatar" field. + public const int AvatarFieldNumber = 7; + private global::Bgs.Protocol.Club.V1.AvatarId avatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.AvatarId Avatar { + get { return avatar_; } + set { + avatar_ = value; + } + } + /// Gets whether the avatar field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAvatar { + get { return avatar_ != null; } + } + /// Clears the value of the avatar field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAvatar() { + avatar_ = null; + } + + /// Field number for the "privacy_level" field. + public const int PrivacyLevelFieldNumber = 8; + private readonly static global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevelDefaultValue = global::Bgs.Protocol.Club.V1.PrivacyLevel.Closed; + + private global::Bgs.Protocol.Club.V1.PrivacyLevel privacyLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevel { + get { if ((_hasBits0 & 2) != 0) { return privacyLevel_; } else { return PrivacyLevelDefaultValue; } } + set { + _hasBits0 |= 2; + privacyLevel_ = value; + } + } + /// Gets whether the "privacy_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivacyLevel { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "privacy_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivacyLevel() { + _hasBits0 &= ~2; + } + + /// Field number for the "visibility_level" field. + public const int VisibilityLevelFieldNumber = 9; + private readonly static global::Bgs.Protocol.Club.V1.VisibilityLevel VisibilityLevelDefaultValue = global::Bgs.Protocol.Club.V1.VisibilityLevel.Private; + + private global::Bgs.Protocol.Club.V1.VisibilityLevel visibilityLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.VisibilityLevel VisibilityLevel { + get { if ((_hasBits0 & 4) != 0) { return visibilityLevel_; } else { return VisibilityLevelDefaultValue; } } + set { + _hasBits0 |= 4; + visibilityLevel_ = value; + } + } + /// Gets whether the "visibility_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVisibilityLevel { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "visibility_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVisibilityLevel() { + _hasBits0 &= ~4; + } + + /// Field number for the "member_count" field. + public const int MemberCountFieldNumber = 10; + private readonly static uint MemberCountDefaultValue = 0; + + private uint memberCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MemberCount { + get { if ((_hasBits0 & 8) != 0) { return memberCount_; } else { return MemberCountDefaultValue; } } + set { + _hasBits0 |= 8; + memberCount_ = value; + } + } + /// Gets whether the "member_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberCount { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "member_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberCount() { + _hasBits0 &= ~8; + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 11; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 16) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 16; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~16; + } + + /// Field number for the "stream_position" field. + public const int StreamPositionFieldNumber = 12; + private global::Bgs.Protocol.Club.V1.StreamPosition streamPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamPosition StreamPosition { + get { return streamPosition_; } + set { + streamPosition_ = value; + } + } + /// Gets whether the stream_position field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamPosition { + get { return streamPosition_ != null; } + } + /// Clears the value of the stream_position field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamPosition() { + streamPosition_ = null; + } + + /// Field number for the "role_set" field. + public const int RoleSetFieldNumber = 13; + private global::Bgs.Protocol.Club.V1.ClubRoleSet roleSet_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubRoleSet RoleSet { + get { return roleSet_; } + set { + roleSet_ = value; + } + } + /// Gets whether the role_set field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRoleSet { + get { return roleSet_ != null; } + } + /// Clears the value of the role_set field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRoleSet() { + roleSet_ = null; + } + + /// Field number for the "leader" field. + public const int LeaderFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_leader_codec + = pb::FieldCodec.ForMessage(114, global::Bgs.Protocol.Club.V1.MemberDescription.Parser); + private readonly pbc::RepeatedField leader_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Leader { + get { return leader_; } + } + + /// Field number for the "short_name" field. + public const int ShortNameFieldNumber = 15; + private readonly static string ShortNameDefaultValue = ""; + + private string shortName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ShortName { + get { return shortName_ ?? ShortNameDefaultValue; } + set { + shortName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "short_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShortName { + get { return shortName_ != null; } + } + /// Clears the value of the "short_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShortName() { + shortName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Club); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Club other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Type, other.Type)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Broadcast, other.Broadcast)) return false; + if (!object.Equals(Avatar, other.Avatar)) return false; + if (PrivacyLevel != other.PrivacyLevel) return false; + if (VisibilityLevel != other.VisibilityLevel) return false; + if (MemberCount != other.MemberCount) return false; + if (CreationTime != other.CreationTime) return false; + if (!object.Equals(StreamPosition, other.StreamPosition)) return false; + if (!object.Equals(RoleSet, other.RoleSet)) return false; + if(!leader_.Equals(other.leader_)) return false; + if (ShortName != other.ShortName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDescription) hash ^= Description.GetHashCode(); + if (HasBroadcast) hash ^= Broadcast.GetHashCode(); + if (HasAvatar) hash ^= Avatar.GetHashCode(); + if (HasPrivacyLevel) hash ^= PrivacyLevel.GetHashCode(); + if (HasVisibilityLevel) hash ^= VisibilityLevel.GetHashCode(); + if (HasMemberCount) hash ^= MemberCount.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (HasStreamPosition) hash ^= StreamPosition.GetHashCode(); + if (HasRoleSet) hash ^= RoleSet.GetHashCode(); + hash ^= leader_.GetHashCode(); + if (HasShortName) hash ^= ShortName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt64(Id); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteMessage(Type); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasName) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (HasDescription) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (HasBroadcast) { + output.WriteRawTag(50); + output.WriteMessage(Broadcast); + } + if (HasAvatar) { + output.WriteRawTag(58); + output.WriteMessage(Avatar); + } + if (HasPrivacyLevel) { + output.WriteRawTag(64); + output.WriteEnum((int) PrivacyLevel); + } + if (HasVisibilityLevel) { + output.WriteRawTag(72); + output.WriteEnum((int) VisibilityLevel); + } + if (HasMemberCount) { + output.WriteRawTag(80); + output.WriteUInt32(MemberCount); + } + if (HasCreationTime) { + output.WriteRawTag(88); + output.WriteUInt64(CreationTime); + } + if (HasStreamPosition) { + output.WriteRawTag(98); + output.WriteMessage(StreamPosition); + } + if (HasRoleSet) { + output.WriteRawTag(106); + output.WriteMessage(RoleSet); + } + leader_.WriteTo(output, _repeated_leader_codec); + if (HasShortName) { + output.WriteRawTag(122); + output.WriteString(ShortName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Type); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (HasBroadcast) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Broadcast); + } + if (HasAvatar) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Avatar); + } + if (HasPrivacyLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivacyLevel); + } + if (HasVisibilityLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VisibilityLevel); + } + if (HasMemberCount) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MemberCount); + } + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (HasStreamPosition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StreamPosition); + } + if (HasRoleSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoleSet); + } + size += leader_.CalculateSize(_repeated_leader_codec); + if (HasShortName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ShortName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Club other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasType) { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + Type.MergeFrom(other.Type); + } + attribute_.Add(other.attribute_); + if (other.HasName) { + Name = other.Name; + } + if (other.HasDescription) { + Description = other.Description; + } + if (other.HasBroadcast) { + if (!HasBroadcast) { + Broadcast = new global::Bgs.Protocol.Club.V1.Broadcast(); + } + Broadcast.MergeFrom(other.Broadcast); + } + if (other.HasAvatar) { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + Avatar.MergeFrom(other.Avatar); + } + if (other.HasPrivacyLevel) { + PrivacyLevel = other.PrivacyLevel; + } + if (other.HasVisibilityLevel) { + VisibilityLevel = other.VisibilityLevel; + } + if (other.HasMemberCount) { + MemberCount = other.MemberCount; + } + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + if (other.HasStreamPosition) { + if (!HasStreamPosition) { + StreamPosition = new global::Bgs.Protocol.Club.V1.StreamPosition(); + } + StreamPosition.MergeFrom(other.StreamPosition); + } + if (other.HasRoleSet) { + if (!HasRoleSet) { + RoleSet = new global::Bgs.Protocol.Club.V1.ClubRoleSet(); + } + RoleSet.MergeFrom(other.RoleSet); + } + leader_.Add(other.leader_); + if (other.HasShortName) { + ShortName = other.ShortName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt64(); + break; + } + case 18: { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + input.ReadMessage(Type); + break; + } + case 26: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + if (!HasBroadcast) { + Broadcast = new global::Bgs.Protocol.Club.V1.Broadcast(); + } + input.ReadMessage(Broadcast); + break; + } + case 58: { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + input.ReadMessage(Avatar); + break; + } + case 64: { + PrivacyLevel = (global::Bgs.Protocol.Club.V1.PrivacyLevel) input.ReadEnum(); + break; + } + case 72: { + VisibilityLevel = (global::Bgs.Protocol.Club.V1.VisibilityLevel) input.ReadEnum(); + break; + } + case 80: { + MemberCount = input.ReadUInt32(); + break; + } + case 88: { + CreationTime = input.ReadUInt64(); + break; + } + case 98: { + if (!HasStreamPosition) { + StreamPosition = new global::Bgs.Protocol.Club.V1.StreamPosition(); + } + input.ReadMessage(StreamPosition); + break; + } + case 106: { + if (!HasRoleSet) { + RoleSet = new global::Bgs.Protocol.Club.V1.ClubRoleSet(); + } + input.ReadMessage(RoleSet); + break; + } + case 114: { + leader_.AddEntriesFrom(input, _repeated_leader_codec); + break; + } + case 122: { + ShortName = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class ClubDescription : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubDescription()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubDescription() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubDescription(ClubDescription other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + type_ = other.HasType ? other.type_.Clone() : null; + name_ = other.name_; + description_ = other.description_; + avatar_ = other.HasAvatar ? other.avatar_.Clone() : null; + privacyLevel_ = other.privacyLevel_; + visibilityLevel_ = other.visibilityLevel_; + memberCount_ = other.memberCount_; + leader_ = other.leader_.Clone(); + creationTime_ = other.creationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubDescription Clone() { + return new ClubDescription(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static ulong IdDefaultValue = 0UL; + + private ulong id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.UniqueClubType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.UniqueClubType Type { + get { return type_; } + set { + type_ = value; + } + } + /// Gets whether the type field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the type field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private readonly static string DescriptionDefaultValue = ""; + + private string description_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Description { + get { return description_ ?? DescriptionDefaultValue; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the "description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescription() { + description_ = null; + } + + /// Field number for the "avatar" field. + public const int AvatarFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.AvatarId avatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.AvatarId Avatar { + get { return avatar_; } + set { + avatar_ = value; + } + } + /// Gets whether the avatar field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAvatar { + get { return avatar_ != null; } + } + /// Clears the value of the avatar field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAvatar() { + avatar_ = null; + } + + /// Field number for the "privacy_level" field. + public const int PrivacyLevelFieldNumber = 6; + private readonly static global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevelDefaultValue = global::Bgs.Protocol.Club.V1.PrivacyLevel.Closed; + + private global::Bgs.Protocol.Club.V1.PrivacyLevel privacyLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevel { + get { if ((_hasBits0 & 2) != 0) { return privacyLevel_; } else { return PrivacyLevelDefaultValue; } } + set { + _hasBits0 |= 2; + privacyLevel_ = value; + } + } + /// Gets whether the "privacy_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivacyLevel { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "privacy_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivacyLevel() { + _hasBits0 &= ~2; + } + + /// Field number for the "visibility_level" field. + public const int VisibilityLevelFieldNumber = 7; + private readonly static global::Bgs.Protocol.Club.V1.VisibilityLevel VisibilityLevelDefaultValue = global::Bgs.Protocol.Club.V1.VisibilityLevel.Private; + + private global::Bgs.Protocol.Club.V1.VisibilityLevel visibilityLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.VisibilityLevel VisibilityLevel { + get { if ((_hasBits0 & 4) != 0) { return visibilityLevel_; } else { return VisibilityLevelDefaultValue; } } + set { + _hasBits0 |= 4; + visibilityLevel_ = value; + } + } + /// Gets whether the "visibility_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVisibilityLevel { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "visibility_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVisibilityLevel() { + _hasBits0 &= ~4; + } + + /// Field number for the "member_count" field. + public const int MemberCountFieldNumber = 8; + private readonly static uint MemberCountDefaultValue = 0; + + private uint memberCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MemberCount { + get { if ((_hasBits0 & 8) != 0) { return memberCount_; } else { return MemberCountDefaultValue; } } + set { + _hasBits0 |= 8; + memberCount_ = value; + } + } + /// Gets whether the "member_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberCount { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "member_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberCount() { + _hasBits0 &= ~8; + } + + /// Field number for the "leader" field. + public const int LeaderFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_leader_codec + = pb::FieldCodec.ForMessage(74, global::Bgs.Protocol.Club.V1.MemberDescription.Parser); + private readonly pbc::RepeatedField leader_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Leader { + get { return leader_; } + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 10; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 16) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 16; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubDescription); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubDescription other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Type, other.Type)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Avatar, other.Avatar)) return false; + if (PrivacyLevel != other.PrivacyLevel) return false; + if (VisibilityLevel != other.VisibilityLevel) return false; + if (MemberCount != other.MemberCount) return false; + if(!leader_.Equals(other.leader_)) return false; + if (CreationTime != other.CreationTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDescription) hash ^= Description.GetHashCode(); + if (HasAvatar) hash ^= Avatar.GetHashCode(); + if (HasPrivacyLevel) hash ^= PrivacyLevel.GetHashCode(); + if (HasVisibilityLevel) hash ^= VisibilityLevel.GetHashCode(); + if (HasMemberCount) hash ^= MemberCount.GetHashCode(); + hash ^= leader_.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt64(Id); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteMessage(Type); + } + if (HasName) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (HasDescription) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (HasAvatar) { + output.WriteRawTag(42); + output.WriteMessage(Avatar); + } + if (HasPrivacyLevel) { + output.WriteRawTag(48); + output.WriteEnum((int) PrivacyLevel); + } + if (HasVisibilityLevel) { + output.WriteRawTag(56); + output.WriteEnum((int) VisibilityLevel); + } + if (HasMemberCount) { + output.WriteRawTag(64); + output.WriteUInt32(MemberCount); + } + leader_.WriteTo(output, _repeated_leader_codec); + if (HasCreationTime) { + output.WriteRawTag(80); + output.WriteUInt64(CreationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Type); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (HasAvatar) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Avatar); + } + if (HasPrivacyLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivacyLevel); + } + if (HasVisibilityLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VisibilityLevel); + } + if (HasMemberCount) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MemberCount); + } + size += leader_.CalculateSize(_repeated_leader_codec); + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubDescription other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasType) { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + Type.MergeFrom(other.Type); + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDescription) { + Description = other.Description; + } + if (other.HasAvatar) { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + Avatar.MergeFrom(other.Avatar); + } + if (other.HasPrivacyLevel) { + PrivacyLevel = other.PrivacyLevel; + } + if (other.HasVisibilityLevel) { + VisibilityLevel = other.VisibilityLevel; + } + if (other.HasMemberCount) { + MemberCount = other.MemberCount; + } + leader_.Add(other.leader_); + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt64(); + break; + } + case 18: { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + input.ReadMessage(Type); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + input.ReadMessage(Avatar); + break; + } + case 48: { + PrivacyLevel = (global::Bgs.Protocol.Club.V1.PrivacyLevel) input.ReadEnum(); + break; + } + case 56: { + VisibilityLevel = (global::Bgs.Protocol.Club.V1.VisibilityLevel) input.ReadEnum(); + break; + } + case 64: { + MemberCount = input.ReadUInt32(); + break; + } + case 74: { + leader_.AddEntriesFrom(input, _repeated_leader_codec); + break; + } + case 80: { + CreationTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class ClubView : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubView()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubView() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubView(ClubView other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + marker_ = other.HasMarker ? other.marker_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubView Clone() { + return new ClubView(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "marker" field. + public const int MarkerFieldNumber = 2; + private global::Bgs.Protocol.ViewMarker marker_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ViewMarker Marker { + get { return marker_; } + set { + marker_ = value; + } + } + /// Gets whether the marker field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMarker { + get { return marker_ != null; } + } + /// Clears the value of the marker field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMarker() { + marker_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubView); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubView other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + if (!object.Equals(Marker, other.Marker)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasMarker) hash ^= Marker.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + if (HasMarker) { + output.WriteRawTag(18); + output.WriteMessage(Marker); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasMarker) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Marker); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubView other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasMarker) { + if (!HasMarker) { + Marker = new global::Bgs.Protocol.ViewMarker(); + } + Marker.MergeFrom(other.Marker); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + case 18: { + if (!HasMarker) { + Marker = new global::Bgs.Protocol.ViewMarker(); + } + input.ReadMessage(Marker); + break; + } + } + } + } + + } + + public sealed partial class ClubStateOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubStateOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStateOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStateOptions(ClubStateOptions other) : this() { + _hasBits0 = other._hasBits0; + attribute_ = other.attribute_.Clone(); + name_ = other.name_; + description_ = other.description_; + broadcast_ = other.HasBroadcast ? other.broadcast_.Clone() : null; + avatar_ = other.HasAvatar ? other.avatar_.Clone() : null; + privacyLevel_ = other.privacyLevel_; + streamPosition_ = other.HasStreamPosition ? other.streamPosition_.Clone() : null; + shortName_ = other.shortName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStateOptions Clone() { + return new ClubStateOptions(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private readonly static string DescriptionDefaultValue = ""; + + private string description_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Description { + get { return description_ ?? DescriptionDefaultValue; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the "description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescription() { + description_ = null; + } + + /// Field number for the "broadcast" field. + public const int BroadcastFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.SetBroadcastOptions broadcast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.SetBroadcastOptions Broadcast { + get { return broadcast_; } + set { + broadcast_ = value; + } + } + /// Gets whether the broadcast field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBroadcast { + get { return broadcast_ != null; } + } + /// Clears the value of the broadcast field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBroadcast() { + broadcast_ = null; + } + + /// Field number for the "avatar" field. + public const int AvatarFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.AvatarId avatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.AvatarId Avatar { + get { return avatar_; } + set { + avatar_ = value; + } + } + /// Gets whether the avatar field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAvatar { + get { return avatar_ != null; } + } + /// Clears the value of the avatar field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAvatar() { + avatar_ = null; + } + + /// Field number for the "privacy_level" field. + public const int PrivacyLevelFieldNumber = 6; + private readonly static global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevelDefaultValue = global::Bgs.Protocol.Club.V1.PrivacyLevel.Closed; + + private global::Bgs.Protocol.Club.V1.PrivacyLevel privacyLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevel { + get { if ((_hasBits0 & 1) != 0) { return privacyLevel_; } else { return PrivacyLevelDefaultValue; } } + set { + _hasBits0 |= 1; + privacyLevel_ = value; + } + } + /// Gets whether the "privacy_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivacyLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "privacy_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivacyLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_position" field. + public const int StreamPositionFieldNumber = 7; + private global::Bgs.Protocol.Club.V1.StreamPosition streamPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamPosition StreamPosition { + get { return streamPosition_; } + set { + streamPosition_ = value; + } + } + /// Gets whether the stream_position field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamPosition { + get { return streamPosition_ != null; } + } + /// Clears the value of the stream_position field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamPosition() { + streamPosition_ = null; + } + + /// Field number for the "short_name" field. + public const int ShortNameFieldNumber = 8; + private readonly static string ShortNameDefaultValue = ""; + + private string shortName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ShortName { + get { return shortName_ ?? ShortNameDefaultValue; } + set { + shortName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "short_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShortName { + get { return shortName_ != null; } + } + /// Clears the value of the "short_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShortName() { + shortName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubStateOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubStateOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Broadcast, other.Broadcast)) return false; + if (!object.Equals(Avatar, other.Avatar)) return false; + if (PrivacyLevel != other.PrivacyLevel) return false; + if (!object.Equals(StreamPosition, other.StreamPosition)) return false; + if (ShortName != other.ShortName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDescription) hash ^= Description.GetHashCode(); + if (HasBroadcast) hash ^= Broadcast.GetHashCode(); + if (HasAvatar) hash ^= Avatar.GetHashCode(); + if (HasPrivacyLevel) hash ^= PrivacyLevel.GetHashCode(); + if (HasStreamPosition) hash ^= StreamPosition.GetHashCode(); + if (HasShortName) hash ^= ShortName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDescription) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (HasBroadcast) { + output.WriteRawTag(34); + output.WriteMessage(Broadcast); + } + if (HasAvatar) { + output.WriteRawTag(42); + output.WriteMessage(Avatar); + } + if (HasPrivacyLevel) { + output.WriteRawTag(48); + output.WriteEnum((int) PrivacyLevel); + } + if (HasStreamPosition) { + output.WriteRawTag(58); + output.WriteMessage(StreamPosition); + } + if (HasShortName) { + output.WriteRawTag(66); + output.WriteString(ShortName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (HasBroadcast) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Broadcast); + } + if (HasAvatar) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Avatar); + } + if (HasPrivacyLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivacyLevel); + } + if (HasStreamPosition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StreamPosition); + } + if (HasShortName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ShortName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubStateOptions other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + if (other.HasName) { + Name = other.Name; + } + if (other.HasDescription) { + Description = other.Description; + } + if (other.HasBroadcast) { + if (!HasBroadcast) { + Broadcast = new global::Bgs.Protocol.Club.V1.SetBroadcastOptions(); + } + Broadcast.MergeFrom(other.Broadcast); + } + if (other.HasAvatar) { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + Avatar.MergeFrom(other.Avatar); + } + if (other.HasPrivacyLevel) { + PrivacyLevel = other.PrivacyLevel; + } + if (other.HasStreamPosition) { + if (!HasStreamPosition) { + StreamPosition = new global::Bgs.Protocol.Club.V1.StreamPosition(); + } + StreamPosition.MergeFrom(other.StreamPosition); + } + if (other.HasShortName) { + ShortName = other.ShortName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + if (!HasBroadcast) { + Broadcast = new global::Bgs.Protocol.Club.V1.SetBroadcastOptions(); + } + input.ReadMessage(Broadcast); + break; + } + case 42: { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + input.ReadMessage(Avatar); + break; + } + case 48: { + PrivacyLevel = (global::Bgs.Protocol.Club.V1.PrivacyLevel) input.ReadEnum(); + break; + } + case 58: { + if (!HasStreamPosition) { + StreamPosition = new global::Bgs.Protocol.Club.V1.StreamPosition(); + } + input.ReadMessage(StreamPosition); + break; + } + case 66: { + ShortName = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class ClubStateAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubStateAssignment()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStateAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStateAssignment(ClubStateAssignment other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + attribute_ = other.attribute_.Clone(); + name_ = other.name_; + description_ = other.description_; + broadcast_ = other.HasBroadcast ? other.broadcast_.Clone() : null; + avatar_ = other.HasAvatar ? other.avatar_.Clone() : null; + privacyLevel_ = other.privacyLevel_; + streamPosition_ = other.HasStreamPosition ? other.streamPosition_.Clone() : null; + shortName_ = other.shortName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStateAssignment Clone() { + return new ClubStateAssignment(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private readonly static string DescriptionDefaultValue = ""; + + private string description_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Description { + get { return description_ ?? DescriptionDefaultValue; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the "description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescription() { + description_ = null; + } + + /// Field number for the "broadcast" field. + public const int BroadcastFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.Broadcast broadcast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.Broadcast Broadcast { + get { return broadcast_; } + set { + broadcast_ = value; + } + } + /// Gets whether the broadcast field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBroadcast { + get { return broadcast_ != null; } + } + /// Clears the value of the broadcast field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBroadcast() { + broadcast_ = null; + } + + /// Field number for the "avatar" field. + public const int AvatarFieldNumber = 6; + private global::Bgs.Protocol.Club.V1.AvatarId avatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.AvatarId Avatar { + get { return avatar_; } + set { + avatar_ = value; + } + } + /// Gets whether the avatar field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAvatar { + get { return avatar_ != null; } + } + /// Clears the value of the avatar field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAvatar() { + avatar_ = null; + } + + /// Field number for the "privacy_level" field. + public const int PrivacyLevelFieldNumber = 7; + private readonly static global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevelDefaultValue = global::Bgs.Protocol.Club.V1.PrivacyLevel.Closed; + + private global::Bgs.Protocol.Club.V1.PrivacyLevel privacyLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevel { + get { if ((_hasBits0 & 2) != 0) { return privacyLevel_; } else { return PrivacyLevelDefaultValue; } } + set { + _hasBits0 |= 2; + privacyLevel_ = value; + } + } + /// Gets whether the "privacy_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivacyLevel { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "privacy_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivacyLevel() { + _hasBits0 &= ~2; + } + + /// Field number for the "stream_position" field. + public const int StreamPositionFieldNumber = 8; + private global::Bgs.Protocol.Club.V1.StreamPosition streamPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamPosition StreamPosition { + get { return streamPosition_; } + set { + streamPosition_ = value; + } + } + /// Gets whether the stream_position field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamPosition { + get { return streamPosition_ != null; } + } + /// Clears the value of the stream_position field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamPosition() { + streamPosition_ = null; + } + + /// Field number for the "short_name" field. + public const int ShortNameFieldNumber = 9; + private readonly static string ShortNameDefaultValue = ""; + + private string shortName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ShortName { + get { return shortName_ ?? ShortNameDefaultValue; } + set { + shortName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "short_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShortName { + get { return shortName_ != null; } + } + /// Clears the value of the "short_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShortName() { + shortName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubStateAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubStateAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Broadcast, other.Broadcast)) return false; + if (!object.Equals(Avatar, other.Avatar)) return false; + if (PrivacyLevel != other.PrivacyLevel) return false; + if (!object.Equals(StreamPosition, other.StreamPosition)) return false; + if (ShortName != other.ShortName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDescription) hash ^= Description.GetHashCode(); + if (HasBroadcast) hash ^= Broadcast.GetHashCode(); + if (HasAvatar) hash ^= Avatar.GetHashCode(); + if (HasPrivacyLevel) hash ^= PrivacyLevel.GetHashCode(); + if (HasStreamPosition) hash ^= StreamPosition.GetHashCode(); + if (HasShortName) hash ^= ShortName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasName) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (HasDescription) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (HasBroadcast) { + output.WriteRawTag(42); + output.WriteMessage(Broadcast); + } + if (HasAvatar) { + output.WriteRawTag(50); + output.WriteMessage(Avatar); + } + if (HasPrivacyLevel) { + output.WriteRawTag(56); + output.WriteEnum((int) PrivacyLevel); + } + if (HasStreamPosition) { + output.WriteRawTag(66); + output.WriteMessage(StreamPosition); + } + if (HasShortName) { + output.WriteRawTag(74); + output.WriteString(ShortName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (HasBroadcast) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Broadcast); + } + if (HasAvatar) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Avatar); + } + if (HasPrivacyLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivacyLevel); + } + if (HasStreamPosition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StreamPosition); + } + if (HasShortName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ShortName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubStateAssignment other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + attribute_.Add(other.attribute_); + if (other.HasName) { + Name = other.Name; + } + if (other.HasDescription) { + Description = other.Description; + } + if (other.HasBroadcast) { + if (!HasBroadcast) { + Broadcast = new global::Bgs.Protocol.Club.V1.Broadcast(); + } + Broadcast.MergeFrom(other.Broadcast); + } + if (other.HasAvatar) { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + Avatar.MergeFrom(other.Avatar); + } + if (other.HasPrivacyLevel) { + PrivacyLevel = other.PrivacyLevel; + } + if (other.HasStreamPosition) { + if (!HasStreamPosition) { + StreamPosition = new global::Bgs.Protocol.Club.V1.StreamPosition(); + } + StreamPosition.MergeFrom(other.StreamPosition); + } + if (other.HasShortName) { + ShortName = other.ShortName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (!HasBroadcast) { + Broadcast = new global::Bgs.Protocol.Club.V1.Broadcast(); + } + input.ReadMessage(Broadcast); + break; + } + case 50: { + if (!HasAvatar) { + Avatar = new global::Bgs.Protocol.Club.V1.AvatarId(); + } + input.ReadMessage(Avatar); + break; + } + case 56: { + PrivacyLevel = (global::Bgs.Protocol.Club.V1.PrivacyLevel) input.ReadEnum(); + break; + } + case 66: { + if (!HasStreamPosition) { + StreamPosition = new global::Bgs.Protocol.Club.V1.StreamPosition(); + } + input.ReadMessage(StreamPosition); + break; + } + case 74: { + ShortName = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class StreamSettings : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamSettings()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamSettings(StreamSettings other) : this() { + _hasBits0 = other._hasBits0; + streamId_ = other.streamId_; + filter_ = other.filter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamSettings Clone() { + return new StreamSettings(this); + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 1; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 1) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 1; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 2; + private readonly static global::Bgs.Protocol.Club.V1.StreamNotificationFilter FilterDefaultValue = global::Bgs.Protocol.Club.V1.StreamNotificationFilter.None; + + private global::Bgs.Protocol.Club.V1.StreamNotificationFilter filter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamNotificationFilter Filter { + get { if ((_hasBits0 & 2) != 0) { return filter_; } else { return FilterDefaultValue; } } + set { + _hasBits0 |= 2; + filter_ = value; + } + } + /// Gets whether the "filter" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFilter { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "filter" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFilter() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StreamId != other.StreamId) return false; + if (Filter != other.Filter) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasFilter) hash ^= Filter.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasStreamId) { + output.WriteRawTag(8); + output.WriteUInt64(StreamId); + } + if (HasFilter) { + output.WriteRawTag(16); + output.WriteEnum((int) Filter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasFilter) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Filter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamSettings other) { + if (other == null) { + return; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasFilter) { + Filter = other.Filter; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StreamId = input.ReadUInt64(); + break; + } + case 16: { + Filter = (global::Bgs.Protocol.Club.V1.StreamNotificationFilter) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class ClubSettings : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSettings()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettings(ClubSettings other) : this() { + _hasBits0 = other._hasBits0; + stream_ = other.stream_.Clone(); + streamNotificationFilterAll_ = other.streamNotificationFilterAll_; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettings Clone() { + return new ClubSettings(this); + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_stream_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.StreamSettings.Parser); + private readonly pbc::RepeatedField stream_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Stream { + get { return stream_; } + } + + /// Field number for the "stream_notification_filter_all" field. + public const int StreamNotificationFilterAllFieldNumber = 2; + private readonly static bool StreamNotificationFilterAllDefaultValue = false; + + private bool streamNotificationFilterAll_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool StreamNotificationFilterAll { + get { if ((_hasBits0 & 1) != 0) { return streamNotificationFilterAll_; } else { return StreamNotificationFilterAllDefaultValue; } } + set { + _hasBits0 |= 1; + streamNotificationFilterAll_ = value; + } + } + /// Gets whether the "stream_notification_filter_all" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamNotificationFilterAll { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_notification_filter_all" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamNotificationFilterAll() { + _hasBits0 &= ~1; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!stream_.Equals(other.stream_)) return false; + if (StreamNotificationFilterAll != other.StreamNotificationFilterAll) return false; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= stream_.GetHashCode(); + if (HasStreamNotificationFilterAll) hash ^= StreamNotificationFilterAll.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + stream_.WriteTo(output, _repeated_stream_codec); + if (HasStreamNotificationFilterAll) { + output.WriteRawTag(16); + output.WriteBool(StreamNotificationFilterAll); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += stream_.CalculateSize(_repeated_stream_codec); + if (HasStreamNotificationFilterAll) { + size += 1 + 1; + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSettings other) { + if (other == null) { + return; + } + stream_.Add(other.stream_); + if (other.HasStreamNotificationFilterAll) { + StreamNotificationFilterAll = other.StreamNotificationFilterAll; + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + stream_.AddEntriesFrom(input, _repeated_stream_codec); + break; + } + case 16: { + StreamNotificationFilterAll = input.ReadBool(); + break; + } + case 26: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + } + + public sealed partial class ClubSettingsOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSettingsOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettingsOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettingsOptions(ClubSettingsOptions other) : this() { + _hasBits0 = other._hasBits0; + stream_ = other.stream_.Clone(); + settings_ = other.HasSettings ? other.settings_.Clone() : null; + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettingsOptions Clone() { + return new ClubSettingsOptions(this); + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_stream_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.StreamSettings.Parser); + private readonly pbc::RepeatedField stream_ = new pbc::RepeatedField(); + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Stream { + get { return stream_; } + } + + /// Field number for the "settings" field. + public const int SettingsFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubSettings settings_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSettings Settings { + get { return settings_; } + set { + settings_ = value; + } + } + /// Gets whether the settings field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSettings { + get { return settings_ != null; } + } + /// Clears the value of the settings field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSettings() { + settings_ = null; + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 3; + private readonly static uint VersionDefaultValue = 0; + + private uint version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Version { + get { if ((_hasBits0 & 1) != 0) { return version_; } else { return VersionDefaultValue; } } + set { + _hasBits0 |= 1; + version_ = value; + } + } + /// Gets whether the "version" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVersion { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "version" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVersion() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSettingsOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSettingsOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!stream_.Equals(other.stream_)) return false; + if (!object.Equals(Settings, other.Settings)) return false; + if (Version != other.Version) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= stream_.GetHashCode(); + if (HasSettings) hash ^= Settings.GetHashCode(); + if (HasVersion) hash ^= Version.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + stream_.WriteTo(output, _repeated_stream_codec); + if (HasSettings) { + output.WriteRawTag(18); + output.WriteMessage(Settings); + } + if (HasVersion) { + output.WriteRawTag(24); + output.WriteUInt32(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += stream_.CalculateSize(_repeated_stream_codec); + if (HasSettings) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings); + } + if (HasVersion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Version); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSettingsOptions other) { + if (other == null) { + return; + } + stream_.Add(other.stream_); + if (other.HasSettings) { + if (!HasSettings) { + Settings = new global::Bgs.Protocol.Club.V1.ClubSettings(); + } + Settings.MergeFrom(other.Settings); + } + if (other.HasVersion) { + Version = other.Version; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + stream_.AddEntriesFrom(input, _repeated_stream_codec); + break; + } + case 18: { + if (!HasSettings) { + Settings = new global::Bgs.Protocol.Club.V1.ClubSettings(); + } + input.ReadMessage(Settings); + break; + } + case 24: { + Version = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class ClubSettingsAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSettingsAssignment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettingsAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettingsAssignment(ClubSettingsAssignment other) : this() { + stream_ = other.stream_.Clone(); + settings_ = other.HasSettings ? other.settings_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSettingsAssignment Clone() { + return new ClubSettingsAssignment(this); + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_stream_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.StreamSettings.Parser); + private readonly pbc::RepeatedField stream_ = new pbc::RepeatedField(); + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Stream { + get { return stream_; } + } + + /// Field number for the "settings" field. + public const int SettingsFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubSettings settings_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSettings Settings { + get { return settings_; } + set { + settings_ = value; + } + } + /// Gets whether the settings field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSettings { + get { return settings_ != null; } + } + /// Clears the value of the settings field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSettings() { + settings_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSettingsAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSettingsAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!stream_.Equals(other.stream_)) return false; + if (!object.Equals(Settings, other.Settings)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= stream_.GetHashCode(); + if (HasSettings) hash ^= Settings.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + stream_.WriteTo(output, _repeated_stream_codec); + if (HasSettings) { + output.WriteRawTag(18); + output.WriteMessage(Settings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += stream_.CalculateSize(_repeated_stream_codec); + if (HasSettings) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSettingsAssignment other) { + if (other == null) { + return; + } + stream_.Add(other.stream_); + if (other.HasSettings) { + if (!HasSettings) { + Settings = new global::Bgs.Protocol.Club.V1.ClubSettings(); + } + Settings.MergeFrom(other.Settings); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + stream_.AddEntriesFrom(input, _repeated_stream_codec); + break; + } + case 18: { + if (!HasSettings) { + Settings = new global::Bgs.Protocol.Club.V1.ClubSettings(); + } + input.ReadMessage(Settings); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubEnum.cs b/Source/Framework/Proto/ClubEnum.cs new file mode 100644 index 000000000..deaf97e5e --- /dev/null +++ b/Source/Framework/Proto/ClubEnum.cs @@ -0,0 +1,115 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_enum.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_enum.proto + public static partial class ClubEnumReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_enum.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubEnumReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFiZ3MvbG93L3BiL2NsaWVudC9jbHViX2VudW0ucHJvdG8SFGJncy5wcm90", + "b2NvbC5jbHViLnYxKoIBCgxQcml2YWN5TGV2ZWwSGAoUUFJJVkFDWV9MRVZF", + "TF9DTE9TRUQQABIhCh1QUklWQUNZX0xFVkVMX09QRU5fSU5WSVRBVElPThAB", + "Eh0KGVBSSVZBQ1lfTEVWRUxfT1BFTl9USUNLRVQQAhIWChJQUklWQUNZX0xF", + "VkVMX09QRU4QAypMCg9WaXNpYmlsaXR5TGV2ZWwSHAoYVklTSUJJTElUWV9M", + "RVZFTF9QUklWQVRFEAASGwoXVklTSUJJTElUWV9MRVZFTF9QVUJMSUMQASqy", + "AgoRQ2x1YlJlbW92ZWRSZWFzb24SHAoYQ0xVQl9SRU1PVkVEX1JFQVNPTl9O", + "T05FEAASIwofQ0xVQl9SRU1PVkVEX1JFQVNPTl9NRU1CRVJfTEVGVBABEiUK", + "IUNMVUJfUkVNT1ZFRF9SRUFTT05fTUVNQkVSX0tJQ0tFRBACEiUKIUNMVUJf", + "UkVNT1ZFRF9SRUFTT05fTUVNQkVSX0JBTk5FRBADEjEKLUNMVUJfUkVNT1ZF", + "RF9SRUFTT05fTUVNQkVSX1JFTU9WRURfQllfU0VSVklDRRAEEisKJ0NMVUJf", + "UkVNT1ZFRF9SRUFTT05fREVTVFJPWUVEX0JZX01FTUJFUhAFEiwKKENMVUJf", + "UkVNT1ZFRF9SRUFTT05fREVTVFJPWUVEX0JZX1NFUlZJQ0UQBipkChBTdHJl", + "YW1Wb2ljZUxldmVsEhgKFFZPSUNFX0xFVkVMX0RJU0FCTEVEEAASHAoYVk9J", + "Q0VfTEVWRUxfUFVTSF9UT19UQUxLEAESGAoUVk9JQ0VfTEVWRUxfT1BFTl9N", + "SUMQAipzChRWb2ljZU1pY3JvcGhvbmVTdGF0ZRIbChdNSUNST1BIT05FX1NU", + "QVRFX05PUk1BTBAAEh4KGk1JQ1JPUEhPTkVfU1RBVEVfU0VMRl9NVVRFEAES", + "HgoaTUlDUk9QSE9ORV9TVEFURV9TRUxGX0RFQUYQAipbCg1QcmVzZW5jZUxl", + "dmVsEhcKE1BSRVNFTkNFX0xFVkVMX05PTkUQABIYChRQUkVTRU5DRV9MRVZF", + "TF9CQVNJQxABEhcKE1BSRVNFTkNFX0xFVkVMX1JJQ0gQAipECgxXaGlzcGVy", + "TGV2ZWwSFgoSV0hJU1BFUl9MRVZFTF9PUEVOEAASHAoYV0hJU1BFUl9MRVZF", + "TF9SRVNUUklDVEVEEAEqiwEKGFN0cmVhbU5vdGlmaWNhdGlvbkZpbHRlchIj", + "Ch9TVFJFQU1fTk9USUZJQ0FUSU9OX0ZJTFRFUl9OT05FEAASJgoiU1RSRUFN", + "X05PVElGSUNBVElPTl9GSUxURVJfTUVOVElPThABEiIKHlNUUkVBTV9OT1RJ", + "RklDQVRJT05fRklMVEVSX0FMTBAC")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.Club.V1.PrivacyLevel), typeof(global::Bgs.Protocol.Club.V1.VisibilityLevel), typeof(global::Bgs.Protocol.Club.V1.ClubRemovedReason), typeof(global::Bgs.Protocol.Club.V1.StreamVoiceLevel), typeof(global::Bgs.Protocol.Club.V1.VoiceMicrophoneState), typeof(global::Bgs.Protocol.Club.V1.PresenceLevel), typeof(global::Bgs.Protocol.Club.V1.WhisperLevel), typeof(global::Bgs.Protocol.Club.V1.StreamNotificationFilter), }, null, null)); + } + #endregion + + } + #region Enums + public enum PrivacyLevel { + [pbr::OriginalName("PRIVACY_LEVEL_CLOSED")] Closed = 0, + [pbr::OriginalName("PRIVACY_LEVEL_OPEN_INVITATION")] OpenInvitation = 1, + [pbr::OriginalName("PRIVACY_LEVEL_OPEN_TICKET")] OpenTicket = 2, + [pbr::OriginalName("PRIVACY_LEVEL_OPEN")] Open = 3, + } + + public enum VisibilityLevel { + [pbr::OriginalName("VISIBILITY_LEVEL_PRIVATE")] Private = 0, + [pbr::OriginalName("VISIBILITY_LEVEL_PUBLIC")] Public = 1, + } + + public enum ClubRemovedReason { + [pbr::OriginalName("CLUB_REMOVED_REASON_NONE")] None = 0, + [pbr::OriginalName("CLUB_REMOVED_REASON_MEMBER_LEFT")] MemberLeft = 1, + [pbr::OriginalName("CLUB_REMOVED_REASON_MEMBER_KICKED")] MemberKicked = 2, + [pbr::OriginalName("CLUB_REMOVED_REASON_MEMBER_BANNED")] MemberBanned = 3, + [pbr::OriginalName("CLUB_REMOVED_REASON_MEMBER_REMOVED_BY_SERVICE")] MemberRemovedByService = 4, + [pbr::OriginalName("CLUB_REMOVED_REASON_DESTROYED_BY_MEMBER")] DestroyedByMember = 5, + [pbr::OriginalName("CLUB_REMOVED_REASON_DESTROYED_BY_SERVICE")] DestroyedByService = 6, + } + + public enum StreamVoiceLevel { + [pbr::OriginalName("VOICE_LEVEL_DISABLED")] VoiceLevelDisabled = 0, + [pbr::OriginalName("VOICE_LEVEL_PUSH_TO_TALK")] VoiceLevelPushToTalk = 1, + [pbr::OriginalName("VOICE_LEVEL_OPEN_MIC")] VoiceLevelOpenMic = 2, + } + + public enum VoiceMicrophoneState { + [pbr::OriginalName("MICROPHONE_STATE_NORMAL")] MicrophoneStateNormal = 0, + [pbr::OriginalName("MICROPHONE_STATE_SELF_MUTE")] MicrophoneStateSelfMute = 1, + [pbr::OriginalName("MICROPHONE_STATE_SELF_DEAF")] MicrophoneStateSelfDeaf = 2, + } + + public enum PresenceLevel { + [pbr::OriginalName("PRESENCE_LEVEL_NONE")] None = 0, + [pbr::OriginalName("PRESENCE_LEVEL_BASIC")] Basic = 1, + [pbr::OriginalName("PRESENCE_LEVEL_RICH")] Rich = 2, + } + + public enum WhisperLevel { + [pbr::OriginalName("WHISPER_LEVEL_OPEN")] Open = 0, + [pbr::OriginalName("WHISPER_LEVEL_RESTRICTED")] Restricted = 1, + } + + public enum StreamNotificationFilter { + [pbr::OriginalName("STREAM_NOTIFICATION_FILTER_NONE")] None = 0, + [pbr::OriginalName("STREAM_NOTIFICATION_FILTER_MENTION")] Mention = 1, + [pbr::OriginalName("STREAM_NOTIFICATION_FILTER_ALL")] All = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubInvitation.cs b/Source/Framework/Proto/ClubInvitation.cs new file mode 100644 index 000000000..42270c64d --- /dev/null +++ b/Source/Framework/Proto/ClubInvitation.cs @@ -0,0 +1,2284 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_invitation.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_invitation.proto + public static partial class ClubInvitationReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_invitation.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubInvitationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CidiZ3MvbG93L3BiL2NsaWVudC9jbHViX2ludml0YXRpb24ucHJvdG8SFGJn", + "cy5wcm90b2NvbC5jbHViLnYxGiFiZ3MvbG93L3BiL2NsaWVudC9jbHViX2Nv", + "cmUucHJvdG8aI2Jncy9sb3cvcGIvY2xpZW50L2NsdWJfbWVtYmVyLnByb3Rv", + "GjViZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL2F0dHJpYnV0ZV90", + "eXBlcy5wcm90byIzCghDbHViU2xvdBIMCgRyb2xlGAEgASgNEhkKEWRlZmF1", + "bHRfc3RyZWFtX2lkGAIgASgEIqcBChVTZW5kSW52aXRhdGlvbk9wdGlvbnMS", + "MQoJdGFyZ2V0X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVt", + "YmVySWQSLAoEc2xvdBgCIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLkNs", + "dWJTbG90Ei0KCWF0dHJpYnV0ZRgDIAMoCzIaLmJncy5wcm90b2NvbC52Mi5B", + "dHRyaWJ1dGUijgMKDkNsdWJJbnZpdGF0aW9uEgoKAmlkGAEgASgGEjgKB2lu", + "dml0ZXIYAiABKAsyJy5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJEZXNj", + "cmlwdGlvbhI4CgdpbnZpdGVlGAMgASgLMicuYmdzLnByb3RvY29sLmNsdWIu", + "djEuTWVtYmVyRGVzY3JpcHRpb24SMwoEY2x1YhgEIAEoCzIlLmJncy5wcm90", + "b2NvbC5jbHViLnYxLkNsdWJEZXNjcmlwdGlvbhIsCgRzbG90GAUgASgLMh4u", + "YmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YlNsb3QSLQoJYXR0cmlidXRlGAYg", + "AygLMhouYmdzLnByb3RvY29sLnYyLkF0dHJpYnV0ZRIVCg1jcmVhdGlvbl90", + "aW1lGAcgASgEEhcKD2V4cGlyYXRpb25fdGltZRgIIAEoBBI6CglzdWdnZXN0", + "ZXIYCSABKAsyJy5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJEZXNjcmlw", + "dGlvbiKnAQoVU2VuZFN1Z2dlc3Rpb25PcHRpb25zEjEKCXRhcmdldF9pZBgB", + "IAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEiwKBHNsb3QY", + "AiABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViU2xvdBItCglhdHRy", + "aWJ1dGUYAyADKAsyGi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlIrICCg5D", + "bHViU3VnZ2VzdGlvbhIKCgJpZBgBIAEoBhIPCgdjbHViX2lkGAIgASgEEjoK", + "CXN1Z2dlc3RlchgDIAEoCzInLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJl", + "ckRlc2NyaXB0aW9uEjoKCXN1Z2dlc3RlZRgEIAEoCzInLmJncy5wcm90b2Nv", + "bC5jbHViLnYxLk1lbWJlckRlc2NyaXB0aW9uEiwKBHNsb3QYBSABKAsyHi5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5DbHViU2xvdBItCglhdHRyaWJ1dGUYBiAD", + "KAsyGi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlEhUKDWNyZWF0aW9uX3Rp", + "bWUYByABKAQSFwoPZXhwaXJhdGlvbl90aW1lGAggASgEIqkBChNDcmVhdGVU", + "aWNrZXRPcHRpb25zEiwKBHNsb3QYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5DbHViU2xvdBItCglhdHRyaWJ1dGUYAiADKAsyGi5iZ3MucHJvdG9j", + "b2wudjIuQXR0cmlidXRlEhwKFGFsbG93ZWRfcmVkZWVtX2NvdW50GAMgASgN", + "EhcKD2V4cGlyYXRpb25fdGltZRgEIAEoBCLQAgoKQ2x1YlRpY2tldBIKCgJp", + "ZBgBIAEoCRI4CgdjcmVhdG9yGAIgASgLMicuYmdzLnByb3RvY29sLmNsdWIu", + "djEuTWVtYmVyRGVzY3JpcHRpb24SMwoEY2x1YhgDIAEoCzIlLmJncy5wcm90", + "b2NvbC5jbHViLnYxLkNsdWJEZXNjcmlwdGlvbhIsCgRzbG90GAQgASgLMh4u", + "YmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YlNsb3QSLQoJYXR0cmlidXRlGAUg", + "AygLMhouYmdzLnByb3RvY29sLnYyLkF0dHJpYnV0ZRIcChRjdXJyZW50X3Jl", + "ZGVlbV9jb3VudBgGIAEoDRIcChRhbGxvd2VkX3JlZGVlbV9jb3VudBgHIAEo", + "DRIVCg1jcmVhdGlvbl90aW1lGAggASgEEhcKD2V4cGlyYXRpb25fdGltZRgJ", + "IAEoBA==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor, global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSlot), global::Bgs.Protocol.Club.V1.ClubSlot.Parser, new[]{ "Role", "DefaultStreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SendInvitationOptions), global::Bgs.Protocol.Club.V1.SendInvitationOptions.Parser, new[]{ "TargetId", "Slot", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubInvitation), global::Bgs.Protocol.Club.V1.ClubInvitation.Parser, new[]{ "Id", "Inviter", "Invitee", "Club", "Slot", "Attribute", "CreationTime", "ExpirationTime", "Suggester" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SendSuggestionOptions), global::Bgs.Protocol.Club.V1.SendSuggestionOptions.Parser, new[]{ "TargetId", "Slot", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSuggestion), global::Bgs.Protocol.Club.V1.ClubSuggestion.Parser, new[]{ "Id", "ClubId", "Suggester", "Suggestee", "Slot", "Attribute", "CreationTime", "ExpirationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateTicketOptions), global::Bgs.Protocol.Club.V1.CreateTicketOptions.Parser, new[]{ "Slot", "Attribute", "AllowedRedeemCount", "ExpirationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubTicket), global::Bgs.Protocol.Club.V1.ClubTicket.Parser, new[]{ "Id", "Creator", "Club", "Slot", "Attribute", "CurrentRedeemCount", "AllowedRedeemCount", "CreationTime", "ExpirationTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ClubSlot : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSlot()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSlot() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSlot(ClubSlot other) : this() { + _hasBits0 = other._hasBits0; + role_ = other.role_; + defaultStreamId_ = other.defaultStreamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSlot Clone() { + return new ClubSlot(this); + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 1; + private readonly static uint RoleDefaultValue = 0; + + private uint role_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Role { + get { if ((_hasBits0 & 1) != 0) { return role_; } else { return RoleDefaultValue; } } + set { + _hasBits0 |= 1; + role_ = value; + } + } + /// Gets whether the "role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRole { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRole() { + _hasBits0 &= ~1; + } + + /// Field number for the "default_stream_id" field. + public const int DefaultStreamIdFieldNumber = 2; + private readonly static ulong DefaultStreamIdDefaultValue = 0UL; + + private ulong defaultStreamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong DefaultStreamId { + get { if ((_hasBits0 & 2) != 0) { return defaultStreamId_; } else { return DefaultStreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + defaultStreamId_ = value; + } + } + /// Gets whether the "default_stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDefaultStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "default_stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDefaultStreamId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSlot); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSlot other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Role != other.Role) return false; + if (DefaultStreamId != other.DefaultStreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasRole) hash ^= Role.GetHashCode(); + if (HasDefaultStreamId) hash ^= DefaultStreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasRole) { + output.WriteRawTag(8); + output.WriteUInt32(Role); + } + if (HasDefaultStreamId) { + output.WriteRawTag(16); + output.WriteUInt64(DefaultStreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasRole) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Role); + } + if (HasDefaultStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DefaultStreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSlot other) { + if (other == null) { + return; + } + if (other.HasRole) { + Role = other.Role; + } + if (other.HasDefaultStreamId) { + DefaultStreamId = other.DefaultStreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Role = input.ReadUInt32(); + break; + } + case 16: { + DefaultStreamId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class SendInvitationOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendInvitationOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationOptions(SendInvitationOptions other) : this() { + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + slot_ = other.HasSlot ? other.slot_.Clone() : null; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationOptions Clone() { + return new SendInvitationOptions(this); + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubSlot slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSlot Slot { + get { return slot_; } + set { + slot_ = value; + } + } + /// Gets whether the slot field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSlot { + get { return slot_ != null; } + } + /// Clears the value of the slot field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSlot() { + slot_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SendInvitationOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SendInvitationOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TargetId, other.TargetId)) return false; + if (!object.Equals(Slot, other.Slot)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (HasSlot) hash ^= Slot.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTargetId) { + output.WriteRawTag(10); + output.WriteMessage(TargetId); + } + if (HasSlot) { + output.WriteRawTag(18); + output.WriteMessage(Slot); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (HasSlot) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SendInvitationOptions other) { + if (other == null) { + return; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + TargetId.MergeFrom(other.TargetId); + } + if (other.HasSlot) { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + Slot.MergeFrom(other.Slot); + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(TargetId); + break; + } + case 18: { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + input.ReadMessage(Slot); + break; + } + case 26: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + } + + public sealed partial class ClubInvitation : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubInvitation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubInvitation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubInvitation(ClubInvitation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + inviter_ = other.HasInviter ? other.inviter_.Clone() : null; + invitee_ = other.HasInvitee ? other.invitee_.Clone() : null; + club_ = other.HasClub ? other.club_.Clone() : null; + slot_ = other.HasSlot ? other.slot_.Clone() : null; + attribute_ = other.attribute_.Clone(); + creationTime_ = other.creationTime_; + expirationTime_ = other.expirationTime_; + suggester_ = other.HasSuggester ? other.suggester_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubInvitation Clone() { + return new ClubInvitation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static ulong IdDefaultValue = 0UL; + + private ulong id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "inviter" field. + public const int InviterFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.MemberDescription inviter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Inviter { + get { return inviter_; } + set { + inviter_ = value; + } + } + /// Gets whether the inviter field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviter { + get { return inviter_ != null; } + } + /// Clears the value of the inviter field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviter() { + inviter_ = null; + } + + /// Field number for the "invitee" field. + public const int InviteeFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberDescription invitee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Invitee { + get { return invitee_; } + set { + invitee_ = value; + } + } + /// Gets whether the invitee field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitee { + get { return invitee_ != null; } + } + /// Clears the value of the invitee field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitee() { + invitee_ = null; + } + + /// Field number for the "club" field. + public const int ClubFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.ClubDescription club_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubDescription Club { + get { return club_; } + set { + club_ = value; + } + } + /// Gets whether the club field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClub { + get { return club_ != null; } + } + /// Clears the value of the club field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClub() { + club_ = null; + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.ClubSlot slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSlot Slot { + get { return slot_; } + set { + slot_ = value; + } + } + /// Gets whether the slot field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSlot { + get { return slot_ != null; } + } + /// Clears the value of the slot field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSlot() { + slot_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 7; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 2) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 2; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~2; + } + + /// Field number for the "expiration_time" field. + public const int ExpirationTimeFieldNumber = 8; + private readonly static ulong ExpirationTimeDefaultValue = 0UL; + + private ulong expirationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ExpirationTime { + get { if ((_hasBits0 & 4) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } + set { + _hasBits0 |= 4; + expirationTime_ = value; + } + } + /// Gets whether the "expiration_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpirationTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "expiration_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpirationTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "suggester" field. + public const int SuggesterFieldNumber = 9; + private global::Bgs.Protocol.Club.V1.MemberDescription suggester_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Suggester { + get { return suggester_; } + set { + suggester_ = value; + } + } + /// Gets whether the suggester field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggester { + get { return suggester_ != null; } + } + /// Clears the value of the suggester field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggester() { + suggester_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubInvitation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubInvitation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Inviter, other.Inviter)) return false; + if (!object.Equals(Invitee, other.Invitee)) return false; + if (!object.Equals(Club, other.Club)) return false; + if (!object.Equals(Slot, other.Slot)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (CreationTime != other.CreationTime) return false; + if (ExpirationTime != other.ExpirationTime) return false; + if (!object.Equals(Suggester, other.Suggester)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasInviter) hash ^= Inviter.GetHashCode(); + if (HasInvitee) hash ^= Invitee.GetHashCode(); + if (HasClub) hash ^= Club.GetHashCode(); + if (HasSlot) hash ^= Slot.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); + if (HasSuggester) hash ^= Suggester.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(9); + output.WriteFixed64(Id); + } + if (HasInviter) { + output.WriteRawTag(18); + output.WriteMessage(Inviter); + } + if (HasInvitee) { + output.WriteRawTag(26); + output.WriteMessage(Invitee); + } + if (HasClub) { + output.WriteRawTag(34); + output.WriteMessage(Club); + } + if (HasSlot) { + output.WriteRawTag(42); + output.WriteMessage(Slot); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasCreationTime) { + output.WriteRawTag(56); + output.WriteUInt64(CreationTime); + } + if (HasExpirationTime) { + output.WriteRawTag(64); + output.WriteUInt64(ExpirationTime); + } + if (HasSuggester) { + output.WriteRawTag(74); + output.WriteMessage(Suggester); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + 8; + } + if (HasInviter) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Inviter); + } + if (HasInvitee) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitee); + } + if (HasClub) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Club); + } + if (HasSlot) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (HasExpirationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); + } + if (HasSuggester) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggester); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubInvitation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasInviter) { + if (!HasInviter) { + Inviter = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Inviter.MergeFrom(other.Inviter); + } + if (other.HasInvitee) { + if (!HasInvitee) { + Invitee = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Invitee.MergeFrom(other.Invitee); + } + if (other.HasClub) { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); + } + Club.MergeFrom(other.Club); + } + if (other.HasSlot) { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + Slot.MergeFrom(other.Slot); + } + attribute_.Add(other.attribute_); + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + if (other.HasExpirationTime) { + ExpirationTime = other.ExpirationTime; + } + if (other.HasSuggester) { + if (!HasSuggester) { + Suggester = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Suggester.MergeFrom(other.Suggester); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + Id = input.ReadFixed64(); + break; + } + case 18: { + if (!HasInviter) { + Inviter = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Inviter); + break; + } + case 26: { + if (!HasInvitee) { + Invitee = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Invitee); + break; + } + case 34: { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); + } + input.ReadMessage(Club); + break; + } + case 42: { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + input.ReadMessage(Slot); + break; + } + case 50: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 56: { + CreationTime = input.ReadUInt64(); + break; + } + case 64: { + ExpirationTime = input.ReadUInt64(); + break; + } + case 74: { + if (!HasSuggester) { + Suggester = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Suggester); + break; + } + } + } + } + + } + + public sealed partial class SendSuggestionOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendSuggestionOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendSuggestionOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendSuggestionOptions(SendSuggestionOptions other) : this() { + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + slot_ = other.HasSlot ? other.slot_.Clone() : null; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendSuggestionOptions Clone() { + return new SendSuggestionOptions(this); + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubSlot slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSlot Slot { + get { return slot_; } + set { + slot_ = value; + } + } + /// Gets whether the slot field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSlot { + get { return slot_ != null; } + } + /// Clears the value of the slot field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSlot() { + slot_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SendSuggestionOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SendSuggestionOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TargetId, other.TargetId)) return false; + if (!object.Equals(Slot, other.Slot)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (HasSlot) hash ^= Slot.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTargetId) { + output.WriteRawTag(10); + output.WriteMessage(TargetId); + } + if (HasSlot) { + output.WriteRawTag(18); + output.WriteMessage(Slot); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (HasSlot) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SendSuggestionOptions other) { + if (other == null) { + return; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + TargetId.MergeFrom(other.TargetId); + } + if (other.HasSlot) { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + Slot.MergeFrom(other.Slot); + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(TargetId); + break; + } + case 18: { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + input.ReadMessage(Slot); + break; + } + case 26: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + } + + public sealed partial class ClubSuggestion : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSuggestion()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSuggestion() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSuggestion(ClubSuggestion other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + clubId_ = other.clubId_; + suggester_ = other.HasSuggester ? other.suggester_.Clone() : null; + suggestee_ = other.HasSuggestee ? other.suggestee_.Clone() : null; + slot_ = other.HasSlot ? other.slot_.Clone() : null; + attribute_ = other.attribute_.Clone(); + creationTime_ = other.creationTime_; + expirationTime_ = other.expirationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSuggestion Clone() { + return new ClubSuggestion(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static ulong IdDefaultValue = 0UL; + + private ulong id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 2) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 2; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~2; + } + + /// Field number for the "suggester" field. + public const int SuggesterFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberDescription suggester_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Suggester { + get { return suggester_; } + set { + suggester_ = value; + } + } + /// Gets whether the suggester field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggester { + get { return suggester_ != null; } + } + /// Clears the value of the suggester field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggester() { + suggester_ = null; + } + + /// Field number for the "suggestee" field. + public const int SuggesteeFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.MemberDescription suggestee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Suggestee { + get { return suggestee_; } + set { + suggestee_ = value; + } + } + /// Gets whether the suggestee field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggestee { + get { return suggestee_ != null; } + } + /// Clears the value of the suggestee field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggestee() { + suggestee_ = null; + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.ClubSlot slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSlot Slot { + get { return slot_; } + set { + slot_ = value; + } + } + /// Gets whether the slot field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSlot { + get { return slot_ != null; } + } + /// Clears the value of the slot field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSlot() { + slot_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 7; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 4) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 4; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "expiration_time" field. + public const int ExpirationTimeFieldNumber = 8; + private readonly static ulong ExpirationTimeDefaultValue = 0UL; + + private ulong expirationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ExpirationTime { + get { if ((_hasBits0 & 8) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } + set { + _hasBits0 |= 8; + expirationTime_ = value; + } + } + /// Gets whether the "expiration_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpirationTime { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "expiration_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpirationTime() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSuggestion); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSuggestion other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Suggester, other.Suggester)) return false; + if (!object.Equals(Suggestee, other.Suggestee)) return false; + if (!object.Equals(Slot, other.Slot)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (CreationTime != other.CreationTime) return false; + if (ExpirationTime != other.ExpirationTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasSuggester) hash ^= Suggester.GetHashCode(); + if (HasSuggestee) hash ^= Suggestee.GetHashCode(); + if (HasSlot) hash ^= Slot.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(9); + output.WriteFixed64(Id); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasSuggester) { + output.WriteRawTag(26); + output.WriteMessage(Suggester); + } + if (HasSuggestee) { + output.WriteRawTag(34); + output.WriteMessage(Suggestee); + } + if (HasSlot) { + output.WriteRawTag(42); + output.WriteMessage(Slot); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasCreationTime) { + output.WriteRawTag(56); + output.WriteUInt64(CreationTime); + } + if (HasExpirationTime) { + output.WriteRawTag(64); + output.WriteUInt64(ExpirationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + 8; + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasSuggester) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggester); + } + if (HasSuggestee) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggestee); + } + if (HasSlot) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (HasExpirationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSuggestion other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasSuggester) { + if (!HasSuggester) { + Suggester = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Suggester.MergeFrom(other.Suggester); + } + if (other.HasSuggestee) { + if (!HasSuggestee) { + Suggestee = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Suggestee.MergeFrom(other.Suggestee); + } + if (other.HasSlot) { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + Slot.MergeFrom(other.Slot); + } + attribute_.Add(other.attribute_); + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + if (other.HasExpirationTime) { + ExpirationTime = other.ExpirationTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + Id = input.ReadFixed64(); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasSuggester) { + Suggester = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Suggester); + break; + } + case 34: { + if (!HasSuggestee) { + Suggestee = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Suggestee); + break; + } + case 42: { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + input.ReadMessage(Slot); + break; + } + case 50: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 56: { + CreationTime = input.ReadUInt64(); + break; + } + case 64: { + ExpirationTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class CreateTicketOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTicketOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketOptions(CreateTicketOptions other) : this() { + _hasBits0 = other._hasBits0; + slot_ = other.HasSlot ? other.slot_.Clone() : null; + attribute_ = other.attribute_.Clone(); + allowedRedeemCount_ = other.allowedRedeemCount_; + expirationTime_ = other.expirationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketOptions Clone() { + return new CreateTicketOptions(this); + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubSlot slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSlot Slot { + get { return slot_; } + set { + slot_ = value; + } + } + /// Gets whether the slot field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSlot { + get { return slot_ != null; } + } + /// Clears the value of the slot field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSlot() { + slot_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "allowed_redeem_count" field. + public const int AllowedRedeemCountFieldNumber = 3; + private readonly static uint AllowedRedeemCountDefaultValue = 0; + + private uint allowedRedeemCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint AllowedRedeemCount { + get { if ((_hasBits0 & 1) != 0) { return allowedRedeemCount_; } else { return AllowedRedeemCountDefaultValue; } } + set { + _hasBits0 |= 1; + allowedRedeemCount_ = value; + } + } + /// Gets whether the "allowed_redeem_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAllowedRedeemCount { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "allowed_redeem_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAllowedRedeemCount() { + _hasBits0 &= ~1; + } + + /// Field number for the "expiration_time" field. + public const int ExpirationTimeFieldNumber = 4; + private readonly static ulong ExpirationTimeDefaultValue = 0UL; + + private ulong expirationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ExpirationTime { + get { if ((_hasBits0 & 2) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } + set { + _hasBits0 |= 2; + expirationTime_ = value; + } + } + /// Gets whether the "expiration_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpirationTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "expiration_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpirationTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateTicketOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateTicketOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Slot, other.Slot)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (AllowedRedeemCount != other.AllowedRedeemCount) return false; + if (ExpirationTime != other.ExpirationTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSlot) hash ^= Slot.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasAllowedRedeemCount) hash ^= AllowedRedeemCount.GetHashCode(); + if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSlot) { + output.WriteRawTag(10); + output.WriteMessage(Slot); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasAllowedRedeemCount) { + output.WriteRawTag(24); + output.WriteUInt32(AllowedRedeemCount); + } + if (HasExpirationTime) { + output.WriteRawTag(32); + output.WriteUInt64(ExpirationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSlot) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasAllowedRedeemCount) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AllowedRedeemCount); + } + if (HasExpirationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateTicketOptions other) { + if (other == null) { + return; + } + if (other.HasSlot) { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + Slot.MergeFrom(other.Slot); + } + attribute_.Add(other.attribute_); + if (other.HasAllowedRedeemCount) { + AllowedRedeemCount = other.AllowedRedeemCount; + } + if (other.HasExpirationTime) { + ExpirationTime = other.ExpirationTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + input.ReadMessage(Slot); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 24: { + AllowedRedeemCount = input.ReadUInt32(); + break; + } + case 32: { + ExpirationTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class ClubTicket : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubTicket()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTicket() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTicket(ClubTicket other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + creator_ = other.HasCreator ? other.creator_.Clone() : null; + club_ = other.HasClub ? other.club_.Clone() : null; + slot_ = other.HasSlot ? other.slot_.Clone() : null; + attribute_ = other.attribute_.Clone(); + currentRedeemCount_ = other.currentRedeemCount_; + allowedRedeemCount_ = other.allowedRedeemCount_; + creationTime_ = other.creationTime_; + expirationTime_ = other.expirationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTicket Clone() { + return new ClubTicket(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static string IdDefaultValue = ""; + + private string id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Id { + get { return id_ ?? IdDefaultValue; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "creator" field. + public const int CreatorFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.MemberDescription creator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Creator { + get { return creator_; } + set { + creator_ = value; + } + } + /// Gets whether the creator field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreator { + get { return creator_ != null; } + } + /// Clears the value of the creator field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreator() { + creator_ = null; + } + + /// Field number for the "club" field. + public const int ClubFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.ClubDescription club_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubDescription Club { + get { return club_; } + set { + club_ = value; + } + } + /// Gets whether the club field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClub { + get { return club_ != null; } + } + /// Clears the value of the club field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClub() { + club_ = null; + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.ClubSlot slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSlot Slot { + get { return slot_; } + set { + slot_ = value; + } + } + /// Gets whether the slot field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSlot { + get { return slot_ != null; } + } + /// Clears the value of the slot field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSlot() { + slot_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(42, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "current_redeem_count" field. + public const int CurrentRedeemCountFieldNumber = 6; + private readonly static uint CurrentRedeemCountDefaultValue = 0; + + private uint currentRedeemCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint CurrentRedeemCount { + get { if ((_hasBits0 & 1) != 0) { return currentRedeemCount_; } else { return CurrentRedeemCountDefaultValue; } } + set { + _hasBits0 |= 1; + currentRedeemCount_ = value; + } + } + /// Gets whether the "current_redeem_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCurrentRedeemCount { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "current_redeem_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCurrentRedeemCount() { + _hasBits0 &= ~1; + } + + /// Field number for the "allowed_redeem_count" field. + public const int AllowedRedeemCountFieldNumber = 7; + private readonly static uint AllowedRedeemCountDefaultValue = 0; + + private uint allowedRedeemCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint AllowedRedeemCount { + get { if ((_hasBits0 & 2) != 0) { return allowedRedeemCount_; } else { return AllowedRedeemCountDefaultValue; } } + set { + _hasBits0 |= 2; + allowedRedeemCount_ = value; + } + } + /// Gets whether the "allowed_redeem_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAllowedRedeemCount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "allowed_redeem_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAllowedRedeemCount() { + _hasBits0 &= ~2; + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 8; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 4) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 4; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "expiration_time" field. + public const int ExpirationTimeFieldNumber = 9; + private readonly static ulong ExpirationTimeDefaultValue = 0UL; + + private ulong expirationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ExpirationTime { + get { if ((_hasBits0 & 8) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } + set { + _hasBits0 |= 8; + expirationTime_ = value; + } + } + /// Gets whether the "expiration_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpirationTime { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "expiration_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpirationTime() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubTicket); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubTicket other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Creator, other.Creator)) return false; + if (!object.Equals(Club, other.Club)) return false; + if (!object.Equals(Slot, other.Slot)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (CurrentRedeemCount != other.CurrentRedeemCount) return false; + if (AllowedRedeemCount != other.AllowedRedeemCount) return false; + if (CreationTime != other.CreationTime) return false; + if (ExpirationTime != other.ExpirationTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasCreator) hash ^= Creator.GetHashCode(); + if (HasClub) hash ^= Club.GetHashCode(); + if (HasSlot) hash ^= Slot.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasCurrentRedeemCount) hash ^= CurrentRedeemCount.GetHashCode(); + if (HasAllowedRedeemCount) hash ^= AllowedRedeemCount.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (HasCreator) { + output.WriteRawTag(18); + output.WriteMessage(Creator); + } + if (HasClub) { + output.WriteRawTag(26); + output.WriteMessage(Club); + } + if (HasSlot) { + output.WriteRawTag(34); + output.WriteMessage(Slot); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasCurrentRedeemCount) { + output.WriteRawTag(48); + output.WriteUInt32(CurrentRedeemCount); + } + if (HasAllowedRedeemCount) { + output.WriteRawTag(56); + output.WriteUInt32(AllowedRedeemCount); + } + if (HasCreationTime) { + output.WriteRawTag(64); + output.WriteUInt64(CreationTime); + } + if (HasExpirationTime) { + output.WriteRawTag(72); + output.WriteUInt64(ExpirationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (HasCreator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator); + } + if (HasClub) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Club); + } + if (HasSlot) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasCurrentRedeemCount) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrentRedeemCount); + } + if (HasAllowedRedeemCount) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AllowedRedeemCount); + } + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (HasExpirationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubTicket other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasCreator) { + if (!HasCreator) { + Creator = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Creator.MergeFrom(other.Creator); + } + if (other.HasClub) { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); + } + Club.MergeFrom(other.Club); + } + if (other.HasSlot) { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + Slot.MergeFrom(other.Slot); + } + attribute_.Add(other.attribute_); + if (other.HasCurrentRedeemCount) { + CurrentRedeemCount = other.CurrentRedeemCount; + } + if (other.HasAllowedRedeemCount) { + AllowedRedeemCount = other.AllowedRedeemCount; + } + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + if (other.HasExpirationTime) { + ExpirationTime = other.ExpirationTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + if (!HasCreator) { + Creator = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Creator); + break; + } + case 26: { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); + } + input.ReadMessage(Club); + break; + } + case 34: { + if (!HasSlot) { + Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); + } + input.ReadMessage(Slot); + break; + } + case 42: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 48: { + CurrentRedeemCount = input.ReadUInt32(); + break; + } + case 56: { + AllowedRedeemCount = input.ReadUInt32(); + break; + } + case 64: { + CreationTime = input.ReadUInt64(); + break; + } + case 72: { + ExpirationTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubMember.cs b/Source/Framework/Proto/ClubMember.cs new file mode 100644 index 000000000..354e2daab --- /dev/null +++ b/Source/Framework/Proto/ClubMember.cs @@ -0,0 +1,3616 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_member.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_member.proto + public static partial class ClubMemberReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_member.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubMemberReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNiZ3MvbG93L3BiL2NsaWVudC9jbHViX21lbWJlci5wcm90bxIUYmdzLnBy", + "b3RvY29sLmNsdWIudjEaJmJncy9sb3cvcGIvY2xpZW50L2NsdWJfbWVtYmVy", + "X2lkLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u", + "cy9tZXNzYWdlX29wdGlvbnMucHJvdG8aNWJncy9sb3cvcGIvY2xpZW50L2Fw", + "aS9jbGllbnQvdjIvYXR0cmlidXRlX3R5cGVzLnByb3RvGiFiZ3MvbG93L3Bi", + "L2NsaWVudC9jbHViX2VudW0ucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3Jw", + "Y190eXBlcy5wcm90bxo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVu", + "c2lvbnMvZmllbGRfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQv", + "Z2xvYmFsX2V4dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9s", + "b3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9u", + "cy5wcm90byKqAwoGTWVtYmVyEioKAmlkGAEgASgLMh4uYmdzLnByb3RvY29s", + "LmNsdWIudjEuTWVtYmVySWQSEgoKYmF0dGxlX3RhZxgCIAEoCRIQCgRyb2xl", + "GAMgAygNQgIQARItCglhdHRyaWJ1dGUYBCADKAsyGi5iZ3MucHJvdG9jb2wu", + "djIuQXR0cmlidXRlEhEKCWpvaW5fdGltZRgFIAEoBBJQCg5wcmVzZW5jZV9s", + "ZXZlbBgGIAEoDjIjLmJncy5wcm90b2NvbC5jbHViLnYxLlByZXNlbmNlTGV2", + "ZWw6E1BSRVNFTkNFX0xFVkVMX05PTkUSFgoObW9kZXJhdG9yX211dGUYByAB", + "KAgSTQoNd2hpc3Blcl9sZXZlbBgIIAEoDjIiLmJncy5wcm90b2NvbC5jbHVi", + "LnYxLldoaXNwZXJMZXZlbDoSV0hJU1BFUl9MRVZFTF9PUEVOEgwKBG5vdGUY", + "CSABKAkSDgoGYWN0aXZlGDIgASgIEjUKBXZvaWNlGDMgASgLMiYuYmdzLnBy", + "b3RvY29sLmNsdWIudjEuTWVtYmVyVm9pY2VTdGF0ZSJRCgxNZW1iZXJSZXN1", + "bHQSMQoJbWVtYmVyX2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEu", + "TWVtYmVySWQSDgoGc3RhdHVzGAIgASgNIpQBChNSZW1vdmVNZW1iZXJPcHRp", + "b25zEioKAmlkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVy", + "SWQSUQoGcmVhc29uGAIgASgOMicuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1", + "YlJlbW92ZWRSZWFzb246GENMVUJfUkVNT1ZFRF9SRUFTT05fTk9ORSKYAQoX", + "TWVtYmVyUmVtb3ZlZEFzc2lnbm1lbnQSKgoCaWQYASABKAsyHi5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5NZW1iZXJJZBJRCgZyZWFzb24YAiABKA4yJy5iZ3Mu", + "cHJvdG9jb2wuY2x1Yi52MS5DbHViUmVtb3ZlZFJlYXNvbjoYQ0xVQl9SRU1P", + "VkVEX1JFQVNPTl9OT05FIqABChJNZW1iZXJWb2ljZU9wdGlvbnMSEQoJc3Ry", + "ZWFtX2lkGAEgASgEEg4KBmpvaW5lZBgCIAEoCBJXCgptaWNyb3Bob25lGAMg", + "ASgOMiouYmdzLnByb3RvY29sLmNsdWIudjEuVm9pY2VNaWNyb3Bob25lU3Rh", + "dGU6F01JQ1JPUEhPTkVfU1RBVEVfTk9STUFMEg4KBmFjdGl2ZRgEIAEoCCKq", + "AQoQTWVtYmVyVm9pY2VTdGF0ZRIKCgJpZBgBIAEoCRIRCglzdHJlYW1faWQY", + "AiABKAQSDgoGam9pbmVkGAMgASgIElcKCm1pY3JvcGhvbmUYBCABKA4yKi5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5Wb2ljZU1pY3JvcGhvbmVTdGF0ZToXTUlD", + "Uk9QSE9ORV9TVEFURV9OT1JNQUwSDgoGYWN0aXZlGAUgASgIInAKE0NyZWF0", + "ZU1lbWJlck9wdGlvbnMSKgoCaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5NZW1iZXJJZBItCglhdHRyaWJ1dGUYAiADKAsyGi5iZ3MucHJvdG9j", + "b2wudjIuQXR0cmlidXRlIlMKEU1lbWJlckRlc2NyaXB0aW9uEioKAmlkGAEg", + "ASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSEgoKYmF0dGxl", + "X3RhZxgCIAEoCSJmCgtSb2xlT3B0aW9ucxIxCgltZW1iZXJfaWQYASABKAsy", + "Hi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIkCgRyb2xlGAIgAygN", + "QhYQAYr5KwYqBAoCCAGK+SsGKgQKAhABIlUKDlJvbGVBc3NpZ25tZW50EjEK", + "CW1lbWJlcl9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJl", + "cklkEhAKBHJvbGUYAiADKA1CAhABIn0KGU1lbWJlckF0dHJpYnV0ZUFzc2ln", + "bm1lbnQSMQoJbWVtYmVyX2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIu", + "djEuTWVtYmVySWQSLQoJYXR0cmlidXRlGAIgAygLMhouYmdzLnByb3RvY29s", + "LnYyLkF0dHJpYnV0ZSJRChZTdWJzY3JpYmVyU3RhdGVPcHRpb25zEjcKBXZv", + "aWNlGAEgASgLMiguYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVyVm9pY2VP", + "cHRpb25zIpUBChlTdWJzY3JpYmVyU3RhdGVBc3NpZ25tZW50EjEKCW1lbWJl", + "cl9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg4K", + "BmFjdGl2ZRgCIAEoCBI1CgV2b2ljZRgDIAEoCzImLmJncy5wcm90b2NvbC5j", + "bHViLnYxLk1lbWJlclZvaWNlU3RhdGUiigIKEk1lbWJlclN0YXRlT3B0aW9u", + "cxItCglhdHRyaWJ1dGUYASADKAsyGi5iZ3MucHJvdG9jb2wudjIuQXR0cmli", + "dXRlElAKDnByZXNlbmNlX2xldmVsGAIgASgOMiMuYmdzLnByb3RvY29sLmNs", + "dWIudjEuUHJlc2VuY2VMZXZlbDoTUFJFU0VOQ0VfTEVWRUxfTk9ORRIWCg5t", + "b2RlcmF0b3JfbXV0ZRgDIAEoCBJNCg13aGlzcGVyX2xldmVsGAQgASgOMiIu", + "YmdzLnByb3RvY29sLmNsdWIudjEuV2hpc3BlckxldmVsOhJXSElTUEVSX0xF", + "VkVMX09QRU4SDAoEbm90ZRgFIAEoCSLAAgoVTWVtYmVyU3RhdGVBc3NpZ25t", + "ZW50EjEKCW1lbWJlcl9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYx", + "Lk1lbWJlcklkEi0KCWF0dHJpYnV0ZRgCIAMoCzIaLmJncy5wcm90b2NvbC52", + "Mi5BdHRyaWJ1dGUSUAoOcHJlc2VuY2VfbGV2ZWwYAyABKA4yIy5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5QcmVzZW5jZUxldmVsOhNQUkVTRU5DRV9MRVZFTF9O", + "T05FEhYKDm1vZGVyYXRvcl9tdXRlGAQgASgIEk0KDXdoaXNwZXJfbGV2ZWwY", + "BSABKA4yIi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5XaGlzcGVyTGV2ZWw6EldI", + "SVNQRVJfTEVWRUxfT1BFThIMCgRub3RlGAYgASgJUAA=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubMemberIdReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubEnumReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Member), global::Bgs.Protocol.Club.V1.Member.Parser, new[]{ "Id", "BattleTag", "Role", "Attribute", "JoinTime", "PresenceLevel", "ModeratorMute", "WhisperLevel", "Note", "Active", "Voice" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberResult), global::Bgs.Protocol.Club.V1.MemberResult.Parser, new[]{ "MemberId", "Status" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RemoveMemberOptions), global::Bgs.Protocol.Club.V1.RemoveMemberOptions.Parser, new[]{ "Id", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberRemovedAssignment), global::Bgs.Protocol.Club.V1.MemberRemovedAssignment.Parser, new[]{ "Id", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberVoiceOptions), global::Bgs.Protocol.Club.V1.MemberVoiceOptions.Parser, new[]{ "StreamId", "Joined", "Microphone", "Active" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberVoiceState), global::Bgs.Protocol.Club.V1.MemberVoiceState.Parser, new[]{ "Id", "StreamId", "Joined", "Microphone", "Active" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateMemberOptions), global::Bgs.Protocol.Club.V1.CreateMemberOptions.Parser, new[]{ "Id", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberDescription), global::Bgs.Protocol.Club.V1.MemberDescription.Parser, new[]{ "Id", "BattleTag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RoleOptions), global::Bgs.Protocol.Club.V1.RoleOptions.Parser, new[]{ "MemberId", "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RoleAssignment), global::Bgs.Protocol.Club.V1.RoleAssignment.Parser, new[]{ "MemberId", "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberAttributeAssignment), global::Bgs.Protocol.Club.V1.MemberAttributeAssignment.Parser, new[]{ "MemberId", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscriberStateOptions), global::Bgs.Protocol.Club.V1.SubscriberStateOptions.Parser, new[]{ "Voice" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscriberStateAssignment), global::Bgs.Protocol.Club.V1.SubscriberStateAssignment.Parser, new[]{ "MemberId", "Active", "Voice" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberStateOptions), global::Bgs.Protocol.Club.V1.MemberStateOptions.Parser, new[]{ "Attribute", "PresenceLevel", "ModeratorMute", "WhisperLevel", "Note" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberStateAssignment), global::Bgs.Protocol.Club.V1.MemberStateAssignment.Parser, new[]{ "MemberId", "Attribute", "PresenceLevel", "ModeratorMute", "WhisperLevel", "Note" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class Member : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Member()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Member() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Member(Member other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.HasId ? other.id_.Clone() : null; + battleTag_ = other.battleTag_; + role_ = other.role_.Clone(); + attribute_ = other.attribute_.Clone(); + joinTime_ = other.joinTime_; + presenceLevel_ = other.presenceLevel_; + moderatorMute_ = other.moderatorMute_; + whisperLevel_ = other.whisperLevel_; + note_ = other.note_; + active_ = other.active_; + voice_ = other.HasVoice ? other.voice_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Member Clone() { + return new Member(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 2; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForUInt32(26); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "join_time" field. + public const int JoinTimeFieldNumber = 5; + private readonly static ulong JoinTimeDefaultValue = 0UL; + + private ulong joinTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong JoinTime { + get { if ((_hasBits0 & 1) != 0) { return joinTime_; } else { return JoinTimeDefaultValue; } } + set { + _hasBits0 |= 1; + joinTime_ = value; + } + } + /// Gets whether the "join_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJoinTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "join_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJoinTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "presence_level" field. + public const int PresenceLevelFieldNumber = 6; + private readonly static global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevelDefaultValue = global::Bgs.Protocol.Club.V1.PresenceLevel.None; + + private global::Bgs.Protocol.Club.V1.PresenceLevel presenceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevel { + get { if ((_hasBits0 & 2) != 0) { return presenceLevel_; } else { return PresenceLevelDefaultValue; } } + set { + _hasBits0 |= 2; + presenceLevel_ = value; + } + } + /// Gets whether the "presence_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPresenceLevel { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "presence_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPresenceLevel() { + _hasBits0 &= ~2; + } + + /// Field number for the "moderator_mute" field. + public const int ModeratorMuteFieldNumber = 7; + private readonly static bool ModeratorMuteDefaultValue = false; + + private bool moderatorMute_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ModeratorMute { + get { if ((_hasBits0 & 4) != 0) { return moderatorMute_; } else { return ModeratorMuteDefaultValue; } } + set { + _hasBits0 |= 4; + moderatorMute_ = value; + } + } + /// Gets whether the "moderator_mute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasModeratorMute { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "moderator_mute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearModeratorMute() { + _hasBits0 &= ~4; + } + + /// Field number for the "whisper_level" field. + public const int WhisperLevelFieldNumber = 8; + private readonly static global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevelDefaultValue = global::Bgs.Protocol.Club.V1.WhisperLevel.Open; + + private global::Bgs.Protocol.Club.V1.WhisperLevel whisperLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevel { + get { if ((_hasBits0 & 8) != 0) { return whisperLevel_; } else { return WhisperLevelDefaultValue; } } + set { + _hasBits0 |= 8; + whisperLevel_ = value; + } + } + /// Gets whether the "whisper_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWhisperLevel { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "whisper_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWhisperLevel() { + _hasBits0 &= ~8; + } + + /// Field number for the "note" field. + public const int NoteFieldNumber = 9; + private readonly static string NoteDefaultValue = ""; + + private string note_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Note { + get { return note_ ?? NoteDefaultValue; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "note" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNote { + get { return note_ != null; } + } + /// Clears the value of the "note" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNote() { + note_ = null; + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 50; + private readonly static bool ActiveDefaultValue = false; + + private bool active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Active { + get { if ((_hasBits0 & 16) != 0) { return active_; } else { return ActiveDefaultValue; } } + set { + _hasBits0 |= 16; + active_ = value; + } + } + /// Gets whether the "active" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasActive { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "active" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearActive() { + _hasBits0 &= ~16; + } + + /// Field number for the "voice" field. + public const int VoiceFieldNumber = 51; + private global::Bgs.Protocol.Club.V1.MemberVoiceState voice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberVoiceState Voice { + get { return voice_; } + set { + voice_ = value; + } + } + /// Gets whether the voice field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoice { + get { return voice_ != null; } + } + /// Clears the value of the voice field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoice() { + voice_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Member); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Member other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + if (BattleTag != other.BattleTag) return false; + if(!role_.Equals(other.role_)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (JoinTime != other.JoinTime) return false; + if (PresenceLevel != other.PresenceLevel) return false; + if (ModeratorMute != other.ModeratorMute) return false; + if (WhisperLevel != other.WhisperLevel) return false; + if (Note != other.Note) return false; + if (Active != other.Active) return false; + if (!object.Equals(Voice, other.Voice)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + hash ^= role_.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasJoinTime) hash ^= JoinTime.GetHashCode(); + if (HasPresenceLevel) hash ^= PresenceLevel.GetHashCode(); + if (HasModeratorMute) hash ^= ModeratorMute.GetHashCode(); + if (HasWhisperLevel) hash ^= WhisperLevel.GetHashCode(); + if (HasNote) hash ^= Note.GetHashCode(); + if (HasActive) hash ^= Active.GetHashCode(); + if (HasVoice) hash ^= Voice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteMessage(Id); + } + if (HasBattleTag) { + output.WriteRawTag(18); + output.WriteString(BattleTag); + } + role_.WriteTo(output, _repeated_role_codec); + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasJoinTime) { + output.WriteRawTag(40); + output.WriteUInt64(JoinTime); + } + if (HasPresenceLevel) { + output.WriteRawTag(48); + output.WriteEnum((int) PresenceLevel); + } + if (HasModeratorMute) { + output.WriteRawTag(56); + output.WriteBool(ModeratorMute); + } + if (HasWhisperLevel) { + output.WriteRawTag(64); + output.WriteEnum((int) WhisperLevel); + } + if (HasNote) { + output.WriteRawTag(74); + output.WriteString(Note); + } + if (HasActive) { + output.WriteRawTag(144, 3); + output.WriteBool(Active); + } + if (HasVoice) { + output.WriteRawTag(154, 3); + output.WriteMessage(Voice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + size += role_.CalculateSize(_repeated_role_codec); + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasJoinTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(JoinTime); + } + if (HasPresenceLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresenceLevel); + } + if (HasModeratorMute) { + size += 1 + 1; + } + if (HasWhisperLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WhisperLevel); + } + if (HasNote) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (HasActive) { + size += 2 + 1; + } + if (HasVoice) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Voice); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Member other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + Id.MergeFrom(other.Id); + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + role_.Add(other.role_); + attribute_.Add(other.attribute_); + if (other.HasJoinTime) { + JoinTime = other.JoinTime; + } + if (other.HasPresenceLevel) { + PresenceLevel = other.PresenceLevel; + } + if (other.HasModeratorMute) { + ModeratorMute = other.ModeratorMute; + } + if (other.HasWhisperLevel) { + WhisperLevel = other.WhisperLevel; + } + if (other.HasNote) { + Note = other.Note; + } + if (other.HasActive) { + Active = other.Active; + } + if (other.HasVoice) { + if (!HasVoice) { + Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceState(); + } + Voice.MergeFrom(other.Voice); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(Id); + break; + } + case 18: { + BattleTag = input.ReadString(); + break; + } + case 26: + case 24: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + case 34: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 40: { + JoinTime = input.ReadUInt64(); + break; + } + case 48: { + PresenceLevel = (global::Bgs.Protocol.Club.V1.PresenceLevel) input.ReadEnum(); + break; + } + case 56: { + ModeratorMute = input.ReadBool(); + break; + } + case 64: { + WhisperLevel = (global::Bgs.Protocol.Club.V1.WhisperLevel) input.ReadEnum(); + break; + } + case 74: { + Note = input.ReadString(); + break; + } + case 400: { + Active = input.ReadBool(); + break; + } + case 410: { + if (!HasVoice) { + Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceState(); + } + input.ReadMessage(Voice); + break; + } + } + } + } + + } + + public sealed partial class MemberResult : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberResult()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberResult(MemberResult other) : this() { + _hasBits0 = other._hasBits0; + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + status_ = other.status_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberResult Clone() { + return new MemberResult(this); + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 2; + private readonly static uint StatusDefaultValue = 0; + + private uint status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Status { + get { if ((_hasBits0 & 1) != 0) { return status_; } else { return StatusDefaultValue; } } + set { + _hasBits0 |= 1; + status_ = value; + } + } + /// Gets whether the "status" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStatus { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "status" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStatus() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemberId, other.MemberId)) return false; + if (Status != other.Status) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMemberId) hash ^= MemberId.GetHashCode(); + if (HasStatus) hash ^= Status.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMemberId) { + output.WriteRawTag(10); + output.WriteMessage(MemberId); + } + if (HasStatus) { + output.WriteRawTag(16); + output.WriteUInt32(Status); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + if (HasStatus) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberResult other) { + if (other == null) { + return; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + if (other.HasStatus) { + Status = other.Status; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 16: { + Status = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class RemoveMemberOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveMemberOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveMemberOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveMemberOptions(RemoveMemberOptions other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.HasId ? other.id_.Clone() : null; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveMemberOptions Clone() { + return new RemoveMemberOptions(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 2; + private readonly static global::Bgs.Protocol.Club.V1.ClubRemovedReason ReasonDefaultValue = global::Bgs.Protocol.Club.V1.ClubRemovedReason.None; + + private global::Bgs.Protocol.Club.V1.ClubRemovedReason reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubRemovedReason Reason { + get { if ((_hasBits0 & 1) != 0) { return reason_; } else { return ReasonDefaultValue; } } + set { + _hasBits0 |= 1; + reason_ = value; + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RemoveMemberOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RemoveMemberOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteMessage(Id); + } + if (HasReason) { + output.WriteRawTag(16); + output.WriteEnum((int) Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RemoveMemberOptions other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + Id.MergeFrom(other.Id); + } + if (other.HasReason) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(Id); + break; + } + case 16: { + Reason = (global::Bgs.Protocol.Club.V1.ClubRemovedReason) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class MemberRemovedAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberRemovedAssignment()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRemovedAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRemovedAssignment(MemberRemovedAssignment other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.HasId ? other.id_.Clone() : null; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRemovedAssignment Clone() { + return new MemberRemovedAssignment(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 2; + private readonly static global::Bgs.Protocol.Club.V1.ClubRemovedReason ReasonDefaultValue = global::Bgs.Protocol.Club.V1.ClubRemovedReason.None; + + private global::Bgs.Protocol.Club.V1.ClubRemovedReason reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubRemovedReason Reason { + get { if ((_hasBits0 & 1) != 0) { return reason_; } else { return ReasonDefaultValue; } } + set { + _hasBits0 |= 1; + reason_ = value; + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberRemovedAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberRemovedAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteMessage(Id); + } + if (HasReason) { + output.WriteRawTag(16); + output.WriteEnum((int) Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberRemovedAssignment other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + Id.MergeFrom(other.Id); + } + if (other.HasReason) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(Id); + break; + } + case 16: { + Reason = (global::Bgs.Protocol.Club.V1.ClubRemovedReason) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class MemberVoiceOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberVoiceOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberVoiceOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberVoiceOptions(MemberVoiceOptions other) : this() { + _hasBits0 = other._hasBits0; + streamId_ = other.streamId_; + joined_ = other.joined_; + microphone_ = other.microphone_; + active_ = other.active_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberVoiceOptions Clone() { + return new MemberVoiceOptions(this); + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 1; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 1) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 1; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "joined" field. + public const int JoinedFieldNumber = 2; + private readonly static bool JoinedDefaultValue = false; + + private bool joined_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Joined { + get { if ((_hasBits0 & 2) != 0) { return joined_; } else { return JoinedDefaultValue; } } + set { + _hasBits0 |= 2; + joined_ = value; + } + } + /// Gets whether the "joined" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJoined { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "joined" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJoined() { + _hasBits0 &= ~2; + } + + /// Field number for the "microphone" field. + public const int MicrophoneFieldNumber = 3; + private readonly static global::Bgs.Protocol.Club.V1.VoiceMicrophoneState MicrophoneDefaultValue = global::Bgs.Protocol.Club.V1.VoiceMicrophoneState.MicrophoneStateNormal; + + private global::Bgs.Protocol.Club.V1.VoiceMicrophoneState microphone_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.VoiceMicrophoneState Microphone { + get { if ((_hasBits0 & 4) != 0) { return microphone_; } else { return MicrophoneDefaultValue; } } + set { + _hasBits0 |= 4; + microphone_ = value; + } + } + /// Gets whether the "microphone" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMicrophone { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "microphone" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMicrophone() { + _hasBits0 &= ~4; + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 4; + private readonly static bool ActiveDefaultValue = false; + + private bool active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Active { + get { if ((_hasBits0 & 8) != 0) { return active_; } else { return ActiveDefaultValue; } } + set { + _hasBits0 |= 8; + active_ = value; + } + } + /// Gets whether the "active" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasActive { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "active" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearActive() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberVoiceOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberVoiceOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StreamId != other.StreamId) return false; + if (Joined != other.Joined) return false; + if (Microphone != other.Microphone) return false; + if (Active != other.Active) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasJoined) hash ^= Joined.GetHashCode(); + if (HasMicrophone) hash ^= Microphone.GetHashCode(); + if (HasActive) hash ^= Active.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasStreamId) { + output.WriteRawTag(8); + output.WriteUInt64(StreamId); + } + if (HasJoined) { + output.WriteRawTag(16); + output.WriteBool(Joined); + } + if (HasMicrophone) { + output.WriteRawTag(24); + output.WriteEnum((int) Microphone); + } + if (HasActive) { + output.WriteRawTag(32); + output.WriteBool(Active); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasJoined) { + size += 1 + 1; + } + if (HasMicrophone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Microphone); + } + if (HasActive) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberVoiceOptions other) { + if (other == null) { + return; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasJoined) { + Joined = other.Joined; + } + if (other.HasMicrophone) { + Microphone = other.Microphone; + } + if (other.HasActive) { + Active = other.Active; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StreamId = input.ReadUInt64(); + break; + } + case 16: { + Joined = input.ReadBool(); + break; + } + case 24: { + Microphone = (global::Bgs.Protocol.Club.V1.VoiceMicrophoneState) input.ReadEnum(); + break; + } + case 32: { + Active = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class MemberVoiceState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberVoiceState()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberVoiceState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberVoiceState(MemberVoiceState other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + streamId_ = other.streamId_; + joined_ = other.joined_; + microphone_ = other.microphone_; + active_ = other.active_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberVoiceState Clone() { + return new MemberVoiceState(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static string IdDefaultValue = ""; + + private string id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Id { + get { return id_ ?? IdDefaultValue; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 2; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 1) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 1; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "joined" field. + public const int JoinedFieldNumber = 3; + private readonly static bool JoinedDefaultValue = false; + + private bool joined_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Joined { + get { if ((_hasBits0 & 2) != 0) { return joined_; } else { return JoinedDefaultValue; } } + set { + _hasBits0 |= 2; + joined_ = value; + } + } + /// Gets whether the "joined" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJoined { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "joined" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJoined() { + _hasBits0 &= ~2; + } + + /// Field number for the "microphone" field. + public const int MicrophoneFieldNumber = 4; + private readonly static global::Bgs.Protocol.Club.V1.VoiceMicrophoneState MicrophoneDefaultValue = global::Bgs.Protocol.Club.V1.VoiceMicrophoneState.MicrophoneStateNormal; + + private global::Bgs.Protocol.Club.V1.VoiceMicrophoneState microphone_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.VoiceMicrophoneState Microphone { + get { if ((_hasBits0 & 4) != 0) { return microphone_; } else { return MicrophoneDefaultValue; } } + set { + _hasBits0 |= 4; + microphone_ = value; + } + } + /// Gets whether the "microphone" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMicrophone { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "microphone" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMicrophone() { + _hasBits0 &= ~4; + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 5; + private readonly static bool ActiveDefaultValue = false; + + private bool active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Active { + get { if ((_hasBits0 & 8) != 0) { return active_; } else { return ActiveDefaultValue; } } + set { + _hasBits0 |= 8; + active_ = value; + } + } + /// Gets whether the "active" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasActive { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "active" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearActive() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberVoiceState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberVoiceState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (StreamId != other.StreamId) return false; + if (Joined != other.Joined) return false; + if (Microphone != other.Microphone) return false; + if (Active != other.Active) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasJoined) hash ^= Joined.GetHashCode(); + if (HasMicrophone) hash ^= Microphone.GetHashCode(); + if (HasActive) hash ^= Active.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (HasStreamId) { + output.WriteRawTag(16); + output.WriteUInt64(StreamId); + } + if (HasJoined) { + output.WriteRawTag(24); + output.WriteBool(Joined); + } + if (HasMicrophone) { + output.WriteRawTag(32); + output.WriteEnum((int) Microphone); + } + if (HasActive) { + output.WriteRawTag(40); + output.WriteBool(Active); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasJoined) { + size += 1 + 1; + } + if (HasMicrophone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Microphone); + } + if (HasActive) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberVoiceState other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasJoined) { + Joined = other.Joined; + } + if (other.HasMicrophone) { + Microphone = other.Microphone; + } + if (other.HasActive) { + Active = other.Active; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 16: { + StreamId = input.ReadUInt64(); + break; + } + case 24: { + Joined = input.ReadBool(); + break; + } + case 32: { + Microphone = (global::Bgs.Protocol.Club.V1.VoiceMicrophoneState) input.ReadEnum(); + break; + } + case 40: { + Active = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class CreateMemberOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMemberOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMemberOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMemberOptions(CreateMemberOptions other) : this() { + id_ = other.HasId ? other.id_.Clone() : null; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMemberOptions Clone() { + return new CreateMemberOptions(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateMemberOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateMemberOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteMessage(Id); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateMemberOptions other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + Id.MergeFrom(other.Id); + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(Id); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + } + + public sealed partial class MemberDescription : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberDescription()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberDescription() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberDescription(MemberDescription other) : this() { + id_ = other.HasId ? other.id_.Clone() : null; + battleTag_ = other.battleTag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberDescription Clone() { + return new MemberDescription(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 2; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberDescription); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberDescription other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + if (BattleTag != other.BattleTag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteMessage(Id); + } + if (HasBattleTag) { + output.WriteRawTag(18); + output.WriteString(BattleTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberDescription other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + Id.MergeFrom(other.Id); + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasId) { + Id = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(Id); + break; + } + case 18: { + BattleTag = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class RoleOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleOptions(RoleOptions other) : this() { + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + role_ = other.role_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleOptions Clone() { + return new RoleOptions(this); + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForUInt32(18); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RoleOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RoleOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemberId, other.MemberId)) return false; + if(!role_.Equals(other.role_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMemberId) hash ^= MemberId.GetHashCode(); + hash ^= role_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMemberId) { + output.WriteRawTag(10); + output.WriteMessage(MemberId); + } + role_.WriteTo(output, _repeated_role_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + size += role_.CalculateSize(_repeated_role_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RoleOptions other) { + if (other == null) { + return; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + role_.Add(other.role_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 18: + case 16: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + } + } + } + + } + + public sealed partial class RoleAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleAssignment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleAssignment(RoleAssignment other) : this() { + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + role_ = other.role_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleAssignment Clone() { + return new RoleAssignment(this); + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForUInt32(18); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RoleAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RoleAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemberId, other.MemberId)) return false; + if(!role_.Equals(other.role_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMemberId) hash ^= MemberId.GetHashCode(); + hash ^= role_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMemberId) { + output.WriteRawTag(10); + output.WriteMessage(MemberId); + } + role_.WriteTo(output, _repeated_role_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + size += role_.CalculateSize(_repeated_role_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RoleAssignment other) { + if (other == null) { + return; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + role_.Add(other.role_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 18: + case 16: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + } + } + } + + } + + public sealed partial class MemberAttributeAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberAttributeAssignment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAttributeAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAttributeAssignment(MemberAttributeAssignment other) : this() { + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAttributeAssignment Clone() { + return new MemberAttributeAssignment(this); + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberAttributeAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberAttributeAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemberId, other.MemberId)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMemberId) hash ^= MemberId.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMemberId) { + output.WriteRawTag(10); + output.WriteMessage(MemberId); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberAttributeAssignment other) { + if (other == null) { + return; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + } + + public sealed partial class SubscriberStateOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriberStateOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateOptions(SubscriberStateOptions other) : this() { + voice_ = other.HasVoice ? other.voice_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateOptions Clone() { + return new SubscriberStateOptions(this); + } + + /// Field number for the "voice" field. + public const int VoiceFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberVoiceOptions voice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberVoiceOptions Voice { + get { return voice_; } + set { + voice_ = value; + } + } + /// Gets whether the voice field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoice { + get { return voice_ != null; } + } + /// Clears the value of the voice field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoice() { + voice_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscriberStateOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscriberStateOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Voice, other.Voice)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasVoice) hash ^= Voice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasVoice) { + output.WriteRawTag(10); + output.WriteMessage(Voice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasVoice) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Voice); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscriberStateOptions other) { + if (other == null) { + return; + } + if (other.HasVoice) { + if (!HasVoice) { + Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceOptions(); + } + Voice.MergeFrom(other.Voice); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasVoice) { + Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceOptions(); + } + input.ReadMessage(Voice); + break; + } + } + } + } + + } + + public sealed partial class SubscriberStateAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriberStateAssignment()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateAssignment(SubscriberStateAssignment other) : this() { + _hasBits0 = other._hasBits0; + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + active_ = other.active_; + voice_ = other.HasVoice ? other.voice_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateAssignment Clone() { + return new SubscriberStateAssignment(this); + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 2; + private readonly static bool ActiveDefaultValue = false; + + private bool active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Active { + get { if ((_hasBits0 & 1) != 0) { return active_; } else { return ActiveDefaultValue; } } + set { + _hasBits0 |= 1; + active_ = value; + } + } + /// Gets whether the "active" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasActive { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "active" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearActive() { + _hasBits0 &= ~1; + } + + /// Field number for the "voice" field. + public const int VoiceFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberVoiceState voice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberVoiceState Voice { + get { return voice_; } + set { + voice_ = value; + } + } + /// Gets whether the voice field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoice { + get { return voice_ != null; } + } + /// Clears the value of the voice field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoice() { + voice_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscriberStateAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscriberStateAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemberId, other.MemberId)) return false; + if (Active != other.Active) return false; + if (!object.Equals(Voice, other.Voice)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMemberId) hash ^= MemberId.GetHashCode(); + if (HasActive) hash ^= Active.GetHashCode(); + if (HasVoice) hash ^= Voice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMemberId) { + output.WriteRawTag(10); + output.WriteMessage(MemberId); + } + if (HasActive) { + output.WriteRawTag(16); + output.WriteBool(Active); + } + if (HasVoice) { + output.WriteRawTag(26); + output.WriteMessage(Voice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + if (HasActive) { + size += 1 + 1; + } + if (HasVoice) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Voice); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscriberStateAssignment other) { + if (other == null) { + return; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + if (other.HasActive) { + Active = other.Active; + } + if (other.HasVoice) { + if (!HasVoice) { + Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceState(); + } + Voice.MergeFrom(other.Voice); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 16: { + Active = input.ReadBool(); + break; + } + case 26: { + if (!HasVoice) { + Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceState(); + } + input.ReadMessage(Voice); + break; + } + } + } + } + + } + + public sealed partial class MemberStateOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberStateOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateOptions(MemberStateOptions other) : this() { + _hasBits0 = other._hasBits0; + attribute_ = other.attribute_.Clone(); + presenceLevel_ = other.presenceLevel_; + moderatorMute_ = other.moderatorMute_; + whisperLevel_ = other.whisperLevel_; + note_ = other.note_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateOptions Clone() { + return new MemberStateOptions(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "presence_level" field. + public const int PresenceLevelFieldNumber = 2; + private readonly static global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevelDefaultValue = global::Bgs.Protocol.Club.V1.PresenceLevel.None; + + private global::Bgs.Protocol.Club.V1.PresenceLevel presenceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevel { + get { if ((_hasBits0 & 1) != 0) { return presenceLevel_; } else { return PresenceLevelDefaultValue; } } + set { + _hasBits0 |= 1; + presenceLevel_ = value; + } + } + /// Gets whether the "presence_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPresenceLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "presence_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPresenceLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "moderator_mute" field. + public const int ModeratorMuteFieldNumber = 3; + private readonly static bool ModeratorMuteDefaultValue = false; + + private bool moderatorMute_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ModeratorMute { + get { if ((_hasBits0 & 2) != 0) { return moderatorMute_; } else { return ModeratorMuteDefaultValue; } } + set { + _hasBits0 |= 2; + moderatorMute_ = value; + } + } + /// Gets whether the "moderator_mute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasModeratorMute { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "moderator_mute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearModeratorMute() { + _hasBits0 &= ~2; + } + + /// Field number for the "whisper_level" field. + public const int WhisperLevelFieldNumber = 4; + private readonly static global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevelDefaultValue = global::Bgs.Protocol.Club.V1.WhisperLevel.Open; + + private global::Bgs.Protocol.Club.V1.WhisperLevel whisperLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevel { + get { if ((_hasBits0 & 4) != 0) { return whisperLevel_; } else { return WhisperLevelDefaultValue; } } + set { + _hasBits0 |= 4; + whisperLevel_ = value; + } + } + /// Gets whether the "whisper_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWhisperLevel { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "whisper_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWhisperLevel() { + _hasBits0 &= ~4; + } + + /// Field number for the "note" field. + public const int NoteFieldNumber = 5; + private readonly static string NoteDefaultValue = ""; + + private string note_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Note { + get { return note_ ?? NoteDefaultValue; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "note" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNote { + get { return note_ != null; } + } + /// Clears the value of the "note" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNote() { + note_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberStateOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberStateOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + if (PresenceLevel != other.PresenceLevel) return false; + if (ModeratorMute != other.ModeratorMute) return false; + if (WhisperLevel != other.WhisperLevel) return false; + if (Note != other.Note) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (HasPresenceLevel) hash ^= PresenceLevel.GetHashCode(); + if (HasModeratorMute) hash ^= ModeratorMute.GetHashCode(); + if (HasWhisperLevel) hash ^= WhisperLevel.GetHashCode(); + if (HasNote) hash ^= Note.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasPresenceLevel) { + output.WriteRawTag(16); + output.WriteEnum((int) PresenceLevel); + } + if (HasModeratorMute) { + output.WriteRawTag(24); + output.WriteBool(ModeratorMute); + } + if (HasWhisperLevel) { + output.WriteRawTag(32); + output.WriteEnum((int) WhisperLevel); + } + if (HasNote) { + output.WriteRawTag(42); + output.WriteString(Note); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasPresenceLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresenceLevel); + } + if (HasModeratorMute) { + size += 1 + 1; + } + if (HasWhisperLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WhisperLevel); + } + if (HasNote) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberStateOptions other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + if (other.HasPresenceLevel) { + PresenceLevel = other.PresenceLevel; + } + if (other.HasModeratorMute) { + ModeratorMute = other.ModeratorMute; + } + if (other.HasWhisperLevel) { + WhisperLevel = other.WhisperLevel; + } + if (other.HasNote) { + Note = other.Note; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 16: { + PresenceLevel = (global::Bgs.Protocol.Club.V1.PresenceLevel) input.ReadEnum(); + break; + } + case 24: { + ModeratorMute = input.ReadBool(); + break; + } + case 32: { + WhisperLevel = (global::Bgs.Protocol.Club.V1.WhisperLevel) input.ReadEnum(); + break; + } + case 42: { + Note = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class MemberStateAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberStateAssignment()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateAssignment(MemberStateAssignment other) : this() { + _hasBits0 = other._hasBits0; + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + attribute_ = other.attribute_.Clone(); + presenceLevel_ = other.presenceLevel_; + moderatorMute_ = other.moderatorMute_; + whisperLevel_ = other.whisperLevel_; + note_ = other.note_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateAssignment Clone() { + return new MemberStateAssignment(this); + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "presence_level" field. + public const int PresenceLevelFieldNumber = 3; + private readonly static global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevelDefaultValue = global::Bgs.Protocol.Club.V1.PresenceLevel.None; + + private global::Bgs.Protocol.Club.V1.PresenceLevel presenceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevel { + get { if ((_hasBits0 & 1) != 0) { return presenceLevel_; } else { return PresenceLevelDefaultValue; } } + set { + _hasBits0 |= 1; + presenceLevel_ = value; + } + } + /// Gets whether the "presence_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPresenceLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "presence_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPresenceLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "moderator_mute" field. + public const int ModeratorMuteFieldNumber = 4; + private readonly static bool ModeratorMuteDefaultValue = false; + + private bool moderatorMute_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ModeratorMute { + get { if ((_hasBits0 & 2) != 0) { return moderatorMute_; } else { return ModeratorMuteDefaultValue; } } + set { + _hasBits0 |= 2; + moderatorMute_ = value; + } + } + /// Gets whether the "moderator_mute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasModeratorMute { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "moderator_mute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearModeratorMute() { + _hasBits0 &= ~2; + } + + /// Field number for the "whisper_level" field. + public const int WhisperLevelFieldNumber = 5; + private readonly static global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevelDefaultValue = global::Bgs.Protocol.Club.V1.WhisperLevel.Open; + + private global::Bgs.Protocol.Club.V1.WhisperLevel whisperLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevel { + get { if ((_hasBits0 & 4) != 0) { return whisperLevel_; } else { return WhisperLevelDefaultValue; } } + set { + _hasBits0 |= 4; + whisperLevel_ = value; + } + } + /// Gets whether the "whisper_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWhisperLevel { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "whisper_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWhisperLevel() { + _hasBits0 &= ~4; + } + + /// Field number for the "note" field. + public const int NoteFieldNumber = 6; + private readonly static string NoteDefaultValue = ""; + + private string note_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Note { + get { return note_ ?? NoteDefaultValue; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "note" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNote { + get { return note_ != null; } + } + /// Clears the value of the "note" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNote() { + note_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberStateAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberStateAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemberId, other.MemberId)) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (PresenceLevel != other.PresenceLevel) return false; + if (ModeratorMute != other.ModeratorMute) return false; + if (WhisperLevel != other.WhisperLevel) return false; + if (Note != other.Note) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMemberId) hash ^= MemberId.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasPresenceLevel) hash ^= PresenceLevel.GetHashCode(); + if (HasModeratorMute) hash ^= ModeratorMute.GetHashCode(); + if (HasWhisperLevel) hash ^= WhisperLevel.GetHashCode(); + if (HasNote) hash ^= Note.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMemberId) { + output.WriteRawTag(10); + output.WriteMessage(MemberId); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasPresenceLevel) { + output.WriteRawTag(24); + output.WriteEnum((int) PresenceLevel); + } + if (HasModeratorMute) { + output.WriteRawTag(32); + output.WriteBool(ModeratorMute); + } + if (HasWhisperLevel) { + output.WriteRawTag(40); + output.WriteEnum((int) WhisperLevel); + } + if (HasNote) { + output.WriteRawTag(50); + output.WriteString(Note); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasPresenceLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresenceLevel); + } + if (HasModeratorMute) { + size += 1 + 1; + } + if (HasWhisperLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WhisperLevel); + } + if (HasNote) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberStateAssignment other) { + if (other == null) { + return; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + attribute_.Add(other.attribute_); + if (other.HasPresenceLevel) { + PresenceLevel = other.PresenceLevel; + } + if (other.HasModeratorMute) { + ModeratorMute = other.ModeratorMute; + } + if (other.HasWhisperLevel) { + WhisperLevel = other.WhisperLevel; + } + if (other.HasNote) { + Note = other.Note; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 24: { + PresenceLevel = (global::Bgs.Protocol.Club.V1.PresenceLevel) input.ReadEnum(); + break; + } + case 32: { + ModeratorMute = input.ReadBool(); + break; + } + case 40: { + WhisperLevel = (global::Bgs.Protocol.Club.V1.WhisperLevel) input.ReadEnum(); + break; + } + case 50: { + Note = input.ReadString(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubMemberId.cs b/Source/Framework/Proto/ClubMemberId.cs new file mode 100644 index 000000000..99f9851dd --- /dev/null +++ b/Source/Framework/Proto/ClubMemberId.cs @@ -0,0 +1,235 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_member_id.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_member_id.proto + public static partial class ClubMemberIdReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_member_id.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubMemberIdReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZiZ3MvbG93L3BiL2NsaWVudC9jbHViX21lbWJlcl9pZC5wcm90bxIUYmdz", + "LnByb3RvY29sLmNsdWIudjEaOWJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9l", + "eHRlbnNpb25zL21lc3NhZ2Vfb3B0aW9ucy5wcm90bxolYmdzL2xvdy9wYi9j", + "bGllbnQvYWNjb3VudF90eXBlcy5wcm90byJdCghNZW1iZXJJZBI2CgphY2Nv", + "dW50X2lkGAEgASgLMiIuYmdzLnByb3RvY29sLmFjY291bnQudjEuQWNjb3Vu", + "dElkEhEKCXVuaXF1ZV9pZBgCIAEoBDoGgvkrAggB")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberId), global::Bgs.Protocol.Club.V1.MemberId.Parser, new[]{ "AccountId", "UniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class MemberId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMemberIdReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberId(MemberId other) : this() { + _hasBits0 = other._hasBits0; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + uniqueId_ = other.uniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberId Clone() { + return new MemberId(this); + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 2; + private readonly static ulong UniqueIdDefaultValue = 0UL; + + private ulong uniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong UniqueId { + get { if ((_hasBits0 & 1) != 0) { return uniqueId_; } else { return UniqueIdDefaultValue; } } + set { + _hasBits0 |= 1; + uniqueId_ = value; + } + } + /// Gets whether the "unique_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUniqueId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unique_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUniqueId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountId, other.AccountId)) return false; + if (UniqueId != other.UniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasUniqueId) hash ^= UniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountId) { + output.WriteRawTag(10); + output.WriteMessage(AccountId); + } + if (HasUniqueId) { + output.WriteRawTag(16); + output.WriteUInt64(UniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + if (HasUniqueId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberId other) { + if (other == null) { + return; + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AccountId.MergeFrom(other.AccountId); + } + if (other.HasUniqueId) { + UniqueId = other.UniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AccountId); + break; + } + case 16: { + UniqueId = input.ReadUInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubMembershipListener.cs b/Source/Framework/Proto/ClubMembershipListener.cs new file mode 100644 index 000000000..1024cbb30 --- /dev/null +++ b/Source/Framework/Proto/ClubMembershipListener.cs @@ -0,0 +1,1746 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_membership_listener.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1.Membership { + + /// Holder for reflection information generated from bgs/low/pb/client/club_membership_listener.proto + public static partial class ClubMembershipListenerReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_membership_listener.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubMembershipListenerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjBiZ3MvbG93L3BiL2NsaWVudC9jbHViX21lbWJlcnNoaXBfbGlzdGVuZXIu", + "cHJvdG8SH2Jncy5wcm90b2NvbC5jbHViLnYxLm1lbWJlcnNoaXAaImJncy9s", + "b3cvcGIvY2xpZW50L2NsdWJfdHlwZXMucHJvdG8aOWJncy9sb3cvcGIvY2xp", + "ZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0aW9ucy5wcm90bxo3", + "YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvZmllbGRfb3B0", + "aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lv", + "bnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2ds", + "b2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5wcm90byKWAQoVQ2x1", + "YkFkZGVkTm90aWZpY2F0aW9uEjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnBy", + "b3RvY29sLmNsdWIudjEuTWVtYmVySWQSQwoKbWVtYmVyc2hpcBgDIAEoCzIv", + "LmJncy5wcm90b2NvbC5jbHViLnYxLkNsdWJNZW1iZXJzaGlwRGVzY3JpcHRp", + "b246BoL5KwIYASLqAQoXQ2x1YlJlbW92ZWROb3RpZmljYXRpb24SMAoIYWdl", + "bnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIx", + "CgltZW1iZXJfaWQYAyABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1i", + "ZXJJZBIPCgdjbHViX2lkGAQgASgEElEKBnJlYXNvbhgFIAEoDjInLmJncy5w", + "cm90b2NvbC5jbHViLnYxLkNsdWJSZW1vdmVkUmVhc29uOhhDTFVCX1JFTU9W", + "RURfUkVBU09OX05PTkU6BoL5KwIYASKZAQojUmVjZWl2ZWRJbnZpdGF0aW9u", + "QWRkZWROb3RpZmljYXRpb24SMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5NZW1iZXJJZBI4CgppbnZpdGF0aW9uGAMgASgLMiQu", + "YmdzLnByb3RvY29sLmNsdWIudjEuQ2x1Ykludml0YXRpb246BoL5KwIYASLT", + "AQolUmVjZWl2ZWRJbnZpdGF0aW9uUmVtb3ZlZE5vdGlmaWNhdGlvbhIwCghh", + "Z2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklk", + "EhUKDWludml0YXRpb25faWQYAyABKAYSWQoGcmVhc29uGAQgASgOMiUuYmdz", + "LnByb3RvY29sLkludml0YXRpb25SZW1vdmVkUmVhc29uOiJJTlZJVEFUSU9O", + "X1JFTU9WRURfUkVBU09OX0FDQ0VQVEVEOgaC+SsCGAEiqQEKIVNoYXJlZFNl", + "dHRpbmdzQ2hhbmdlZE5vdGlmaWNhdGlvbhI0CghhZ2VudF9pZBgBIAEoCzIi", + "LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRJZBJGCgphc3NpZ25t", + "ZW50GAQgASgLMjIuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YlNoYXJlZFNl", + "dHRpbmdzQXNzaWdubWVudDoGgvkrAhgBIpABCh5TdHJlYW1NZW50aW9uQWRk", + "ZWROb3RpZmljYXRpb24SMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9j", + "b2wuY2x1Yi52MS5NZW1iZXJJZBI0CgdtZW50aW9uGAMgASgLMiMuYmdzLnBy", + "b3RvY29sLmNsdWIudjEuU3RyZWFtTWVudGlvbjoGgvkrAhgBIpABCiBTdHJl", + "YW1NZW50aW9uUmVtb3ZlZE5vdGlmaWNhdGlvbhI0CghhZ2VudF9pZBgBIAEo", + "CzIiLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRJZBIuCgptZW50", + "aW9uX2lkGAMgASgLMhouYmdzLnByb3RvY29sLlRpbWVTZXJpZXNJZDoGgvkr", + "AhgBInsKKFN0cmVhbU1lbnRpb25BZHZhbmNlVmlld1RpbWVOb3RpZmljYXRp", + "b24SNAoIYWdlbnRfaWQYASABKAsyIi5iZ3MucHJvdG9jb2wuYWNjb3VudC52", + "MS5BY2NvdW50SWQSEQoJdmlld190aW1lGAMgASgEOgaC+SsCGAEy0ggKFkNs", + "dWJNZW1iZXJzaGlwTGlzdGVuZXISaAoLT25DbHViQWRkZWQSNi5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5tZW1iZXJzaGlwLkNsdWJBZGRlZE5vdGlmaWNhdGlv", + "bhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkrAggBEmwKDU9uQ2x1", + "YlJlbW92ZWQSOC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5tZW1iZXJzaGlwLkNs", + "dWJSZW1vdmVkTm90aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BP", + "TlNFIgaC+SsCCAIShAEKGU9uUmVjZWl2ZWRJbnZpdGF0aW9uQWRkZWQSRC5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5tZW1iZXJzaGlwLlJlY2VpdmVkSW52aXRh", + "dGlvbkFkZGVkTm90aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BP", + "TlNFIgaC+SsCCAMSiAEKG09uUmVjZWl2ZWRJbnZpdGF0aW9uUmVtb3ZlZBJG", + "LmJncy5wcm90b2NvbC5jbHViLnYxLm1lbWJlcnNoaXAuUmVjZWl2ZWRJbnZp", + "dGF0aW9uUmVtb3ZlZE5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19S", + "RVNQT05TRSIGgvkrAggEEoABChdPblNoYXJlZFNldHRpbmdzQ2hhbmdlZBJC", + "LmJncy5wcm90b2NvbC5jbHViLnYxLm1lbWJlcnNoaXAuU2hhcmVkU2V0dGlu", + "Z3NDaGFuZ2VkTm90aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BP", + "TlNFIgaC+SsCCAUSegoUT25TdHJlYW1NZW50aW9uQWRkZWQSPy5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5tZW1iZXJzaGlwLlN0cmVhbU1lbnRpb25BZGRlZE5v", + "dGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkrAggG", + "En4KFk9uU3RyZWFtTWVudGlvblJlbW92ZWQSQS5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5tZW1iZXJzaGlwLlN0cmVhbU1lbnRpb25SZW1vdmVkTm90aWZpY2F0", + "aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAcSjgEKHk9u", + "U3RyZWFtTWVudGlvbkFkdmFuY2VWaWV3VGltZRJJLmJncy5wcm90b2NvbC5j", + "bHViLnYxLm1lbWJlcnNoaXAuU3RyZWFtTWVudGlvbkFkdmFuY2VWaWV3VGlt", + "ZU5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkr", + "AggIGj6C+SsuCixibmV0LnByb3RvY29sLmNsdWIudjEuQ2x1Yk1lbWJlcnNo", + "aXBMaXN0ZW5lcor5KwIIAYr5KwIYAUIDgAEA")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.ClubAddedNotification), global::Bgs.Protocol.Club.V1.Membership.ClubAddedNotification.Parser, new[]{ "AgentId", "Membership" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.ClubRemovedNotification), global::Bgs.Protocol.Club.V1.Membership.ClubRemovedNotification.Parser, new[]{ "AgentId", "MemberId", "ClubId", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.ReceivedInvitationAddedNotification), global::Bgs.Protocol.Club.V1.Membership.ReceivedInvitationAddedNotification.Parser, new[]{ "AgentId", "Invitation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.ReceivedInvitationRemovedNotification), global::Bgs.Protocol.Club.V1.Membership.ReceivedInvitationRemovedNotification.Parser, new[]{ "AgentId", "InvitationId", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.SharedSettingsChangedNotification), global::Bgs.Protocol.Club.V1.Membership.SharedSettingsChangedNotification.Parser, new[]{ "AgentId", "Assignment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.StreamMentionAddedNotification), global::Bgs.Protocol.Club.V1.Membership.StreamMentionAddedNotification.Parser, new[]{ "AgentId", "Mention" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.StreamMentionRemovedNotification), global::Bgs.Protocol.Club.V1.Membership.StreamMentionRemovedNotification.Parser, new[]{ "AgentId", "MentionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.StreamMentionAdvanceViewTimeNotification), global::Bgs.Protocol.Club.V1.Membership.StreamMentionAdvanceViewTimeNotification.Parser, new[]{ "AgentId", "ViewTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ClubAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipListenerReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubAddedNotification(ClubAddedNotification other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + membership_ = other.HasMembership ? other.membership_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubAddedNotification Clone() { + return new ClubAddedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "membership" field. + public const int MembershipFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.ClubMembershipDescription membership_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubMembershipDescription Membership { + get { return membership_; } + set { + membership_ = value; + } + } + /// Gets whether the membership field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMembership { + get { return membership_ != null; } + } + /// Clears the value of the membership field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMembership() { + membership_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Membership, other.Membership)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasMembership) hash ^= Membership.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasMembership) { + output.WriteRawTag(26); + output.WriteMessage(Membership); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasMembership) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Membership); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasMembership) { + if (!HasMembership) { + Membership = new global::Bgs.Protocol.Club.V1.ClubMembershipDescription(); + } + Membership.MergeFrom(other.Membership); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 26: { + if (!HasMembership) { + Membership = new global::Bgs.Protocol.Club.V1.ClubMembershipDescription(); + } + input.ReadMessage(Membership); + break; + } + } + } + } + + } + + public sealed partial class ClubRemovedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipListenerReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRemovedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRemovedNotification(ClubRemovedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + clubId_ = other.clubId_; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRemovedNotification Clone() { + return new ClubRemovedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 4; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 5; + private readonly static global::Bgs.Protocol.Club.V1.ClubRemovedReason ReasonDefaultValue = global::Bgs.Protocol.Club.V1.ClubRemovedReason.None; + + private global::Bgs.Protocol.Club.V1.ClubRemovedReason reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubRemovedReason Reason { + get { if ((_hasBits0 & 2) != 0) { return reason_; } else { return ReasonDefaultValue; } } + set { + _hasBits0 |= 2; + reason_ = value; + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubRemovedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubRemovedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(MemberId, other.MemberId)) return false; + if (ClubId != other.ClubId) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasMemberId) hash ^= MemberId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasMemberId) { + output.WriteRawTag(26); + output.WriteMessage(MemberId); + } + if (HasClubId) { + output.WriteRawTag(32); + output.WriteUInt64(ClubId); + } + if (HasReason) { + output.WriteRawTag(40); + output.WriteEnum((int) Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubRemovedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasReason) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 26: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 32: { + ClubId = input.ReadUInt64(); + break; + } + case 40: { + Reason = (global::Bgs.Protocol.Club.V1.ClubRemovedReason) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class ReceivedInvitationAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceivedInvitationAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipListenerReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitationAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitationAddedNotification(ReceivedInvitationAddedNotification other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + invitation_ = other.HasInvitation ? other.invitation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitationAddedNotification Clone() { + return new ReceivedInvitationAddedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "invitation" field. + public const int InvitationFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.ClubInvitation invitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubInvitation Invitation { + get { return invitation_; } + set { + invitation_ = value; + } + } + /// Gets whether the invitation field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitation { + get { return invitation_ != null; } + } + /// Clears the value of the invitation field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitation() { + invitation_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReceivedInvitationAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReceivedInvitationAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Invitation, other.Invitation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasInvitation) hash ^= Invitation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasInvitation) { + output.WriteRawTag(26); + output.WriteMessage(Invitation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasInvitation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReceivedInvitationAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasInvitation) { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitation(); + } + Invitation.MergeFrom(other.Invitation); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 26: { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitation(); + } + input.ReadMessage(Invitation); + break; + } + } + } + } + + } + + public sealed partial class ReceivedInvitationRemovedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceivedInvitationRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipListenerReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitationRemovedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitationRemovedNotification(ReceivedInvitationRemovedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + invitationId_ = other.invitationId_; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitationRemovedNotification Clone() { + return new ReceivedInvitationRemovedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 3; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 1; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~1; + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 4; + private readonly static global::Bgs.Protocol.InvitationRemovedReason ReasonDefaultValue = global::Bgs.Protocol.InvitationRemovedReason.Accepted; + + private global::Bgs.Protocol.InvitationRemovedReason reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.InvitationRemovedReason Reason { + get { if ((_hasBits0 & 2) != 0) { return reason_; } else { return ReasonDefaultValue; } } + set { + _hasBits0 |= 2; + reason_ = value; + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReceivedInvitationRemovedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReceivedInvitationRemovedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (InvitationId != other.InvitationId) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasInvitationId) { + output.WriteRawTag(25); + output.WriteFixed64(InvitationId); + } + if (HasReason) { + output.WriteRawTag(32); + output.WriteEnum((int) Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReceivedInvitationRemovedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + if (other.HasReason) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 25: { + InvitationId = input.ReadFixed64(); + break; + } + case 32: { + Reason = (global::Bgs.Protocol.InvitationRemovedReason) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class SharedSettingsChangedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SharedSettingsChangedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipListenerReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SharedSettingsChangedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SharedSettingsChangedNotification(SharedSettingsChangedNotification other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + assignment_ = other.HasAssignment ? other.assignment_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SharedSettingsChangedNotification Clone() { + return new SharedSettingsChangedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "assignment" field. + public const int AssignmentFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.ClubSharedSettingsAssignment assignment_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSharedSettingsAssignment Assignment { + get { return assignment_; } + set { + assignment_ = value; + } + } + /// Gets whether the assignment field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAssignment { + get { return assignment_ != null; } + } + /// Clears the value of the assignment field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAssignment() { + assignment_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SharedSettingsChangedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SharedSettingsChangedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Assignment, other.Assignment)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasAssignment) hash ^= Assignment.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasAssignment) { + output.WriteRawTag(34); + output.WriteMessage(Assignment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasAssignment) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SharedSettingsChangedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasAssignment) { + if (!HasAssignment) { + Assignment = new global::Bgs.Protocol.Club.V1.ClubSharedSettingsAssignment(); + } + Assignment.MergeFrom(other.Assignment); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 34: { + if (!HasAssignment) { + Assignment = new global::Bgs.Protocol.Club.V1.ClubSharedSettingsAssignment(); + } + input.ReadMessage(Assignment); + break; + } + } + } + } + + } + + public sealed partial class StreamMentionAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamMentionAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipListenerReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionAddedNotification(StreamMentionAddedNotification other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + mention_ = other.HasMention ? other.mention_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionAddedNotification Clone() { + return new StreamMentionAddedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "mention" field. + public const int MentionFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.StreamMention mention_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamMention Mention { + get { return mention_; } + set { + mention_ = value; + } + } + /// Gets whether the mention field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMention { + get { return mention_ != null; } + } + /// Clears the value of the mention field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMention() { + mention_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamMentionAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamMentionAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Mention, other.Mention)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasMention) hash ^= Mention.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasMention) { + output.WriteRawTag(26); + output.WriteMessage(Mention); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasMention) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mention); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamMentionAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasMention) { + if (!HasMention) { + Mention = new global::Bgs.Protocol.Club.V1.StreamMention(); + } + Mention.MergeFrom(other.Mention); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 26: { + if (!HasMention) { + Mention = new global::Bgs.Protocol.Club.V1.StreamMention(); + } + input.ReadMessage(Mention); + break; + } + } + } + } + + } + + public sealed partial class StreamMentionRemovedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamMentionRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipListenerReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionRemovedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionRemovedNotification(StreamMentionRemovedNotification other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + mentionId_ = other.HasMentionId ? other.mentionId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionRemovedNotification Clone() { + return new StreamMentionRemovedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "mention_id" field. + public const int MentionIdFieldNumber = 3; + private global::Bgs.Protocol.TimeSeriesId mentionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.TimeSeriesId MentionId { + get { return mentionId_; } + set { + mentionId_ = value; + } + } + /// Gets whether the mention_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMentionId { + get { return mentionId_ != null; } + } + /// Clears the value of the mention_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMentionId() { + mentionId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamMentionRemovedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamMentionRemovedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(MentionId, other.MentionId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasMentionId) hash ^= MentionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasMentionId) { + output.WriteRawTag(26); + output.WriteMessage(MentionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasMentionId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MentionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamMentionRemovedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasMentionId) { + if (!HasMentionId) { + MentionId = new global::Bgs.Protocol.TimeSeriesId(); + } + MentionId.MergeFrom(other.MentionId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 26: { + if (!HasMentionId) { + MentionId = new global::Bgs.Protocol.TimeSeriesId(); + } + input.ReadMessage(MentionId); + break; + } + } + } + } + + } + + public sealed partial class StreamMentionAdvanceViewTimeNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamMentionAdvanceViewTimeNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipListenerReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionAdvanceViewTimeNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionAdvanceViewTimeNotification(StreamMentionAdvanceViewTimeNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + viewTime_ = other.viewTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionAdvanceViewTimeNotification Clone() { + return new StreamMentionAdvanceViewTimeNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "view_time" field. + public const int ViewTimeFieldNumber = 3; + private readonly static ulong ViewTimeDefaultValue = 0UL; + + private ulong viewTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ViewTime { + get { if ((_hasBits0 & 1) != 0) { return viewTime_; } else { return ViewTimeDefaultValue; } } + set { + _hasBits0 |= 1; + viewTime_ = value; + } + } + /// Gets whether the "view_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasViewTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "view_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearViewTime() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamMentionAdvanceViewTimeNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamMentionAdvanceViewTimeNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ViewTime != other.ViewTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasViewTime) hash ^= ViewTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasViewTime) { + output.WriteRawTag(24); + output.WriteUInt64(ViewTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasViewTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ViewTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamMentionAdvanceViewTimeNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasViewTime) { + ViewTime = other.ViewTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ViewTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubMembershipService.cs b/Source/Framework/Proto/ClubMembershipService.cs new file mode 100644 index 000000000..054544a34 --- /dev/null +++ b/Source/Framework/Proto/ClubMembershipService.cs @@ -0,0 +1,1815 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_membership_service.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1.Membership { + + /// Holder for reflection information generated from bgs/low/pb/client/club_membership_service.proto + public static partial class ClubMembershipServiceReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_membership_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubMembershipServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci9iZ3MvbG93L3BiL2NsaWVudC9jbHViX21lbWJlcnNoaXBfc2VydmljZS5w", + "cm90bxIfYmdzLnByb3RvY29sLmNsdWIudjEubWVtYmVyc2hpcBoiYmdzL2xv", + "dy9wYi9jbGllbnQvY2x1Yl90eXBlcy5wcm90bxojYmdzL2xvdy9wYi9jbGll", + "bnQvY2x1Yl9zdHJlYW0ucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2Jh", + "bF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0aW9ucy5wcm90bxo3YmdzL2xvdy9w", + "Yi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvZmllbGRfb3B0aW9ucy5wcm90", + "bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWV0aG9k", + "X29wdGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRl", + "bnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5wcm90byKPAQoQU3Vic2NyaWJlUmVx", + "dWVzdBI0CghhZ2VudF9pZBgBIAEoCzIiLmJncy5wcm90b2NvbC5hY2NvdW50", + "LnYxLkFjY291bnRJZBJFCgdvcHRpb25zGAIgASgLMjQuYmdzLnByb3RvY29s", + "LmNsdWIudjEuQ2x1Yk1lbWJlcnNoaXBTdWJzY3JpYmVPcHRpb25zIk0KEVN1", + "YnNjcmliZVJlc3BvbnNlEjgKBXN0YXRlGAEgASgLMikuYmdzLnByb3RvY29s", + "LmNsdWIudjEuQ2x1Yk1lbWJlcnNoaXBTdGF0ZSJKChJVbnN1YnNjcmliZVJl", + "cXVlc3QSNAoIYWdlbnRfaWQYASABKAsyIi5iZ3MucHJvdG9jb2wuYWNjb3Vu", + "dC52MS5BY2NvdW50SWQijQEKD0dldFN0YXRlUmVxdWVzdBI0CghhZ2VudF9p", + "ZBgBIAEoCzIiLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkFjY291bnRJZBJE", + "CgdvcHRpb25zGAIgASgLMjMuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1Yk1l", + "bWJlcnNoaXBHZXRTdGF0ZU9wdGlvbnMiTAoQR2V0U3RhdGVSZXNwb25zZRI4", + "CgVzdGF0ZRgBIAEoCzIpLmJncy5wcm90b2NvbC5jbHViLnYxLkNsdWJNZW1i", + "ZXJzaGlwU3RhdGUimQEKH1VwZGF0ZUNsdWJTaGFyZWRTZXR0aW5nc1JlcXVl", + "c3QSNAoIYWdlbnRfaWQYASABKAsyIi5iZ3MucHJvdG9jb2wuYWNjb3VudC52", + "MS5BY2NvdW50SWQSQAoHb3B0aW9ucxgCIAEoCzIvLmJncy5wcm90b2NvbC5j", + "bHViLnYxLkNsdWJTaGFyZWRTZXR0aW5nc09wdGlvbnMimAEKGEdldFN0cmVh", + "bU1lbnRpb25zUmVxdWVzdBI0CghhZ2VudF9pZBgBIAEoCzIiLmJncy5wcm90", + "b2NvbC5hY2NvdW50LnYxLkFjY291bnRJZBIuCgdvcHRpb25zGAIgASgLMh0u", + "YmdzLnByb3RvY29sLkdldEV2ZW50T3B0aW9ucxIWCg5mZXRjaF9tZXNzYWdl", + "cxgDIAEoCCJnChlHZXRTdHJlYW1NZW50aW9uc1Jlc3BvbnNlEjQKB21lbnRp", + "b24YASADKAsyIy5iZ3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1NZW50aW9u", + "EhQKDGNvbnRpbnVhdGlvbhgCIAEoBCKDAQobUmVtb3ZlU3RyZWFtTWVudGlv", + "bnNSZXF1ZXN0EjQKCGFnZW50X2lkGAEgASgLMiIuYmdzLnByb3RvY29sLmFj", + "Y291bnQudjEuQWNjb3VudElkEi4KCm1lbnRpb25faWQYAiADKAsyGi5iZ3Mu", + "cHJvdG9jb2wuVGltZVNlcmllc0lkIlsKI0FkdmFuY2VTdHJlYW1NZW50aW9u", + "Vmlld1RpbWVSZXF1ZXN0EjQKCGFnZW50X2lkGAEgASgLMiIuYmdzLnByb3Rv", + "Y29sLmFjY291bnQudjEuQWNjb3VudElkMswHChVDbHViTWVtYmVyc2hpcFNl", + "cnZpY2USegoJU3Vic2NyaWJlEjEuYmdzLnByb3RvY29sLmNsdWIudjEubWVt", + "YmVyc2hpcC5TdWJzY3JpYmVSZXF1ZXN0GjIuYmdzLnByb3RvY29sLmNsdWIu", + "djEubWVtYmVyc2hpcC5TdWJzY3JpYmVSZXNwb25zZSIGgvkrAggBEmAKC1Vu", + "c3Vic2NyaWJlEjMuYmdzLnByb3RvY29sLmNsdWIudjEubWVtYmVyc2hpcC5V", + "bnN1YnNjcmliZVJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsC", + "CAISdwoIR2V0U3RhdGUSMC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5tZW1iZXJz", + "aGlwLkdldFN0YXRlUmVxdWVzdBoxLmJncy5wcm90b2NvbC5jbHViLnYxLm1l", + "bWJlcnNoaXAuR2V0U3RhdGVSZXNwb25zZSIGgvkrAggDEnoKGFVwZGF0ZUNs", + "dWJTaGFyZWRTZXR0aW5ncxJALmJncy5wcm90b2NvbC5jbHViLnYxLm1lbWJl", + "cnNoaXAuVXBkYXRlQ2x1YlNoYXJlZFNldHRpbmdzUmVxdWVzdBoULmJncy5w", + "cm90b2NvbC5Ob0RhdGEiBoL5KwIIBBKSAQoRR2V0U3RyZWFtTWVudGlvbnMS", + "OS5iZ3MucHJvdG9jb2wuY2x1Yi52MS5tZW1iZXJzaGlwLkdldFN0cmVhbU1l", + "bnRpb25zUmVxdWVzdBo6LmJncy5wcm90b2NvbC5jbHViLnYxLm1lbWJlcnNo", + "aXAuR2V0U3RyZWFtTWVudGlvbnNSZXNwb25zZSIGgvkrAggFEnIKFFJlbW92", + "ZVN0cmVhbU1lbnRpb25zEjwuYmdzLnByb3RvY29sLmNsdWIudjEubWVtYmVy", + "c2hpcC5SZW1vdmVTdHJlYW1NZW50aW9uc1JlcXVlc3QaFC5iZ3MucHJvdG9j", + "b2wuTm9EYXRhIgaC+SsCCAYSggEKHEFkdmFuY2VTdHJlYW1NZW50aW9uVmll", + "d1RpbWUSRC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5tZW1iZXJzaGlwLkFkdmFu", + "Y2VTdHJlYW1NZW50aW9uVmlld1RpbWVSZXF1ZXN0GhQuYmdzLnByb3RvY29s", + "Lk5vRGF0YSIGgvkrAggHGlKC+SstCitibmV0LnByb3RvY29sLmNsdWIudjEu", + "Q2x1Yk1lbWJlcnNoaXBTZXJ2aWNlgvkrESoPY2x1Yl9tZW1iZXJzaGlwivkr", + "AhABivkrAhgBQgOAAQA=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubTypesReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.SubscribeRequest), global::Bgs.Protocol.Club.V1.Membership.SubscribeRequest.Parser, new[]{ "AgentId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.SubscribeResponse), global::Bgs.Protocol.Club.V1.Membership.SubscribeResponse.Parser, new[]{ "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.UnsubscribeRequest), global::Bgs.Protocol.Club.V1.Membership.UnsubscribeRequest.Parser, new[]{ "AgentId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.GetStateRequest), global::Bgs.Protocol.Club.V1.Membership.GetStateRequest.Parser, new[]{ "AgentId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.GetStateResponse), global::Bgs.Protocol.Club.V1.Membership.GetStateResponse.Parser, new[]{ "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.UpdateClubSharedSettingsRequest), global::Bgs.Protocol.Club.V1.Membership.UpdateClubSharedSettingsRequest.Parser, new[]{ "AgentId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.GetStreamMentionsRequest), global::Bgs.Protocol.Club.V1.Membership.GetStreamMentionsRequest.Parser, new[]{ "AgentId", "Options", "FetchMessages" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.GetStreamMentionsResponse), global::Bgs.Protocol.Club.V1.Membership.GetStreamMentionsResponse.Parser, new[]{ "Mention", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.RemoveStreamMentionsRequest), global::Bgs.Protocol.Club.V1.Membership.RemoveStreamMentionsRequest.Parser, new[]{ "AgentId", "MentionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Membership.AdvanceStreamMentionViewTimeRequest), global::Bgs.Protocol.Club.V1.Membership.AdvanceStreamMentionViewTimeRequest.Parser, new[]{ "AgentId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SubscribeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeRequest(SubscribeRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeRequest Clone() { + return new SubscribeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubMembershipSubscribeOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubMembershipSubscribeOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscribeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscribeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasOptions) { + output.WriteRawTag(18); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscribeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubMembershipSubscribeOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubMembershipSubscribeOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class SubscribeResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResponse(SubscribeResponse other) : this() { + state_ = other.HasState ? other.state_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResponse Clone() { + return new SubscribeResponse(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubMembershipState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubMembershipState State { + get { return state_; } + set { + state_ = value; + } + } + /// Gets whether the state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasState { + get { return state_ != null; } + } + /// Clears the value of the state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearState() { + state_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscribeResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscribeResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(State, other.State)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasState) hash ^= State.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasState) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscribeResponse other) { + if (other == null) { + return; + } + if (other.HasState) { + if (!HasState) { + State = new global::Bgs.Protocol.Club.V1.ClubMembershipState(); + } + State.MergeFrom(other.State); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasState) { + State = new global::Bgs.Protocol.Club.V1.ClubMembershipState(); + } + input.ReadMessage(State); + break; + } + } + } + } + + } + + public sealed partial class UnsubscribeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeRequest(UnsubscribeRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeRequest Clone() { + return new UnsubscribeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnsubscribeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnsubscribeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnsubscribeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + } + } + } + + } + + public sealed partial class GetStateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStateRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStateRequest(GetStateRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStateRequest Clone() { + return new GetStateRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubMembershipGetStateOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubMembershipGetStateOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasOptions) { + output.WriteRawTag(18); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStateRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubMembershipGetStateOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubMembershipGetStateOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class GetStateResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStateResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStateResponse(GetStateResponse other) : this() { + state_ = other.HasState ? other.state_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStateResponse Clone() { + return new GetStateResponse(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubMembershipState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubMembershipState State { + get { return state_; } + set { + state_ = value; + } + } + /// Gets whether the state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasState { + get { return state_ != null; } + } + /// Clears the value of the state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearState() { + state_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(State, other.State)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasState) hash ^= State.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasState) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStateResponse other) { + if (other == null) { + return; + } + if (other.HasState) { + if (!HasState) { + State = new global::Bgs.Protocol.Club.V1.ClubMembershipState(); + } + State.MergeFrom(other.State); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasState) { + State = new global::Bgs.Protocol.Club.V1.ClubMembershipState(); + } + input.ReadMessage(State); + break; + } + } + } + } + + } + + public sealed partial class UpdateClubSharedSettingsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateClubSharedSettingsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubSharedSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubSharedSettingsRequest(UpdateClubSharedSettingsRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubSharedSettingsRequest Clone() { + return new UpdateClubSharedSettingsRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubSharedSettingsOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSharedSettingsOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateClubSharedSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UpdateClubSharedSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasOptions) { + output.WriteRawTag(18); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UpdateClubSharedSettingsRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubSharedSettingsOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubSharedSettingsOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class GetStreamMentionsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamMentionsRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMentionsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMentionsRequest(GetStreamMentionsRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + options_ = other.HasOptions ? other.options_.Clone() : null; + fetchMessages_ = other.fetchMessages_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMentionsRequest Clone() { + return new GetStreamMentionsRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 2; + private global::Bgs.Protocol.GetEventOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.GetEventOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + /// Field number for the "fetch_messages" field. + public const int FetchMessagesFieldNumber = 3; + private readonly static bool FetchMessagesDefaultValue = false; + + private bool fetchMessages_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FetchMessages { + get { if ((_hasBits0 & 1) != 0) { return fetchMessages_; } else { return FetchMessagesDefaultValue; } } + set { + _hasBits0 |= 1; + fetchMessages_ = value; + } + } + /// Gets whether the "fetch_messages" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFetchMessages { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "fetch_messages" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFetchMessages() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamMentionsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamMentionsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Options, other.Options)) return false; + if (FetchMessages != other.FetchMessages) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (HasFetchMessages) hash ^= FetchMessages.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasOptions) { + output.WriteRawTag(18); + output.WriteMessage(Options); + } + if (HasFetchMessages) { + output.WriteRawTag(24); + output.WriteBool(FetchMessages); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (HasFetchMessages) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamMentionsRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.GetEventOptions(); + } + Options.MergeFrom(other.Options); + } + if (other.HasFetchMessages) { + FetchMessages = other.FetchMessages; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.GetEventOptions(); + } + input.ReadMessage(Options); + break; + } + case 24: { + FetchMessages = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class GetStreamMentionsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamMentionsResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMentionsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMentionsResponse(GetStreamMentionsResponse other) : this() { + _hasBits0 = other._hasBits0; + mention_ = other.mention_.Clone(); + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMentionsResponse Clone() { + return new GetStreamMentionsResponse(this); + } + + /// Field number for the "mention" field. + public const int MentionFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_mention_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.StreamMention.Parser); + private readonly pbc::RepeatedField mention_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Mention { + get { return mention_; } + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 2; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamMentionsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamMentionsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!mention_.Equals(other.mention_)) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= mention_.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + mention_.WriteTo(output, _repeated_mention_codec); + if (HasContinuation) { + output.WriteRawTag(16); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += mention_.CalculateSize(_repeated_mention_codec); + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamMentionsResponse other) { + if (other == null) { + return; + } + mention_.Add(other.mention_); + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + mention_.AddEntriesFrom(input, _repeated_mention_codec); + break; + } + case 16: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class RemoveStreamMentionsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveStreamMentionsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveStreamMentionsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveStreamMentionsRequest(RemoveStreamMentionsRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + mentionId_ = other.mentionId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveStreamMentionsRequest Clone() { + return new RemoveStreamMentionsRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "mention_id" field. + public const int MentionIdFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_mentionId_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.TimeSeriesId.Parser); + private readonly pbc::RepeatedField mentionId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField MentionId { + get { return mentionId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RemoveStreamMentionsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RemoveStreamMentionsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if(!mentionId_.Equals(other.mentionId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + hash ^= mentionId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + mentionId_.WriteTo(output, _repeated_mentionId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + size += mentionId_.CalculateSize(_repeated_mentionId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RemoveStreamMentionsRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + mentionId_.Add(other.mentionId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + mentionId_.AddEntriesFrom(input, _repeated_mentionId_codec); + break; + } + } + } + } + + } + + public sealed partial class AdvanceStreamMentionViewTimeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvanceStreamMentionViewTimeRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.Membership.ClubMembershipServiceReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamMentionViewTimeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamMentionViewTimeRequest(AdvanceStreamMentionViewTimeRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamMentionViewTimeRequest Clone() { + return new AdvanceStreamMentionViewTimeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AdvanceStreamMentionViewTimeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AdvanceStreamMentionViewTimeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AdvanceStreamMentionViewTimeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + AgentId.MergeFrom(other.AgentId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(AgentId); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubMembershipTypes.cs b/Source/Framework/Proto/ClubMembershipTypes.cs new file mode 100644 index 000000000..a05c106b1 --- /dev/null +++ b/Source/Framework/Proto/ClubMembershipTypes.cs @@ -0,0 +1,1490 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_membership_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_membership_types.proto + public static partial class ClubMembershipTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_membership_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubMembershipTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci1iZ3MvbG93L3BiL2NsaWVudC9jbHViX21lbWJlcnNoaXBfdHlwZXMucHJv", + "dG8SFGJncy5wcm90b2NvbC5jbHViLnYxGiFiZ3MvbG93L3BiL2NsaWVudC9j", + "bHViX2NvcmUucHJvdG8aI2Jncy9sb3cvcGIvY2xpZW50L2NsdWJfbWVtYmVy", + "LnByb3RvGidiZ3MvbG93L3BiL2NsaWVudC9jbHViX2ludml0YXRpb24ucHJv", + "dG8aKGJncy9sb3cvcGIvY2xpZW50L2V2ZW50X3ZpZXdfdHlwZXMucHJvdG8a", + "IWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90bxo5YmdzL2xvdy9w", + "Yi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVzc2FnZV9vcHRpb25zLnBy", + "b3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9maWVs", + "ZF9vcHRpb25zLnByb3RvGjhiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0", + "ZW5zaW9ucy9tZXRob2Rfb3B0aW9ucy5wcm90bxo5YmdzL2xvdy9wYi9jbGll", + "bnQvZ2xvYmFsX2V4dGVuc2lvbnMvc2VydmljZV9vcHRpb25zLnByb3RvIn0K", + "FENsdWJNZW1iZXJzaGlwRmlsdGVyEjEKCW1lbWJlcl9pZBgBIAEoCzIeLmJn", + "cy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEjIKBHR5cGUYAiABKAsyJC5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5VbmlxdWVDbHViVHlwZSJyCh5DbHViTWVt", + "YmVyc2hpcFN1YnNjcmliZU9wdGlvbnMSUAoGZmlsdGVyGAEgAygLMiouYmdz", + "LnByb3RvY29sLmNsdWIudjEuQ2x1Yk1lbWJlcnNoaXBGaWx0ZXJCFIr5KwYq", + "BAoCCACK+SsGKgQKAhAZInEKHUNsdWJNZW1iZXJzaGlwR2V0U3RhdGVPcHRp", + "b25zElAKBmZpbHRlchgBIAMoCzIqLmJncy5wcm90b2NvbC5jbHViLnYxLkNs", + "dWJNZW1iZXJzaGlwRmlsdGVyQhSK+SsGKgQKAggAivkrBioECgIQGSKDAQoZ", + "Q2x1Yk1lbWJlcnNoaXBEZXNjcmlwdGlvbhIxCgltZW1iZXJfaWQYASABKAsy", + "Hi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIzCgRjbHViGAIgASgL", + "MiUuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YkRlc2NyaXB0aW9uIoACChND", + "bHViTWVtYmVyc2hpcFN0YXRlEkQKC2Rlc2NyaXB0aW9uGAEgAygLMi8uYmdz", + "LnByb3RvY29sLmNsdWIudjEuQ2x1Yk1lbWJlcnNoaXBEZXNjcmlwdGlvbhI4", + "CgppbnZpdGF0aW9uGAIgAygLMiQuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1", + "Ykludml0YXRpb24SOQoHc2V0dGluZxgDIAEoCzIoLmJncy5wcm90b2NvbC5j", + "bHViLnYxLkNsdWJTaGFyZWRTZXR0aW5ncxIuCgxtZW50aW9uX3ZpZXcYBCAB", + "KAsyGC5iZ3MucHJvdG9jb2wuVmlld01hcmtlciIjCgxDbHViUG9zaXRpb24S", + "EwoHY2x1Yl9pZBgBIAMoBEICEAEiTwoSQ2x1YlNoYXJlZFNldHRpbmdzEjkK", + "DWNsdWJfcG9zaXRpb24YASABKAsyIi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5D", + "bHViUG9zaXRpb24iVgoZQ2x1YlNoYXJlZFNldHRpbmdzT3B0aW9ucxI5Cg1j", + "bHViX3Bvc2l0aW9uGAEgASgLMiIuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1", + "YlBvc2l0aW9uIlkKHENsdWJTaGFyZWRTZXR0aW5nc0Fzc2lnbm1lbnQSOQoN", + "Y2x1Yl9wb3NpdGlvbhgBIAEoCzIiLmJncy5wcm90b2NvbC5jbHViLnYxLkNs", + "dWJQb3NpdGlvbg==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor, global::Bgs.Protocol.EventViewTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubMembershipFilter), global::Bgs.Protocol.Club.V1.ClubMembershipFilter.Parser, new[]{ "MemberId", "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubMembershipSubscribeOptions), global::Bgs.Protocol.Club.V1.ClubMembershipSubscribeOptions.Parser, new[]{ "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubMembershipGetStateOptions), global::Bgs.Protocol.Club.V1.ClubMembershipGetStateOptions.Parser, new[]{ "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubMembershipDescription), global::Bgs.Protocol.Club.V1.ClubMembershipDescription.Parser, new[]{ "MemberId", "Club" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubMembershipState), global::Bgs.Protocol.Club.V1.ClubMembershipState.Parser, new[]{ "Description", "Invitation", "Setting", "MentionView" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubPosition), global::Bgs.Protocol.Club.V1.ClubPosition.Parser, new[]{ "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSharedSettings), global::Bgs.Protocol.Club.V1.ClubSharedSettings.Parser, new[]{ "ClubPosition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSharedSettingsOptions), global::Bgs.Protocol.Club.V1.ClubSharedSettingsOptions.Parser, new[]{ "ClubPosition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSharedSettingsAssignment), global::Bgs.Protocol.Club.V1.ClubSharedSettingsAssignment.Parser, new[]{ "ClubPosition" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ClubMembershipFilter : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubMembershipFilter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipFilter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipFilter(ClubMembershipFilter other) : this() { + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + type_ = other.HasType ? other.type_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipFilter Clone() { + return new ClubMembershipFilter(this); + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.UniqueClubType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.UniqueClubType Type { + get { return type_; } + set { + type_ = value; + } + } + /// Gets whether the type field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the type field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubMembershipFilter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubMembershipFilter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemberId, other.MemberId)) return false; + if (!object.Equals(Type, other.Type)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMemberId) hash ^= MemberId.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMemberId) { + output.WriteRawTag(10); + output.WriteMessage(MemberId); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteMessage(Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubMembershipFilter other) { + if (other == null) { + return; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + if (other.HasType) { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + Type.MergeFrom(other.Type); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 18: { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + input.ReadMessage(Type); + break; + } + } + } + } + + } + + public sealed partial class ClubMembershipSubscribeOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubMembershipSubscribeOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipSubscribeOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipSubscribeOptions(ClubMembershipSubscribeOptions other) : this() { + filter_ = other.filter_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipSubscribeOptions Clone() { + return new ClubMembershipSubscribeOptions(this); + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_filter_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.ClubMembershipFilter.Parser); + private readonly pbc::RepeatedField filter_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Filter { + get { return filter_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubMembershipSubscribeOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubMembershipSubscribeOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!filter_.Equals(other.filter_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= filter_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + filter_.WriteTo(output, _repeated_filter_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += filter_.CalculateSize(_repeated_filter_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubMembershipSubscribeOptions other) { + if (other == null) { + return; + } + filter_.Add(other.filter_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + filter_.AddEntriesFrom(input, _repeated_filter_codec); + break; + } + } + } + } + + } + + public sealed partial class ClubMembershipGetStateOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubMembershipGetStateOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipGetStateOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipGetStateOptions(ClubMembershipGetStateOptions other) : this() { + filter_ = other.filter_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipGetStateOptions Clone() { + return new ClubMembershipGetStateOptions(this); + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_filter_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.ClubMembershipFilter.Parser); + private readonly pbc::RepeatedField filter_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Filter { + get { return filter_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubMembershipGetStateOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubMembershipGetStateOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!filter_.Equals(other.filter_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= filter_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + filter_.WriteTo(output, _repeated_filter_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += filter_.CalculateSize(_repeated_filter_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubMembershipGetStateOptions other) { + if (other == null) { + return; + } + filter_.Add(other.filter_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + filter_.AddEntriesFrom(input, _repeated_filter_codec); + break; + } + } + } + } + + } + + public sealed partial class ClubMembershipDescription : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubMembershipDescription()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipDescription() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipDescription(ClubMembershipDescription other) : this() { + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + club_ = other.HasClub ? other.club_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipDescription Clone() { + return new ClubMembershipDescription(this); + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "club" field. + public const int ClubFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubDescription club_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubDescription Club { + get { return club_; } + set { + club_ = value; + } + } + /// Gets whether the club field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClub { + get { return club_ != null; } + } + /// Clears the value of the club field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClub() { + club_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubMembershipDescription); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubMembershipDescription other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemberId, other.MemberId)) return false; + if (!object.Equals(Club, other.Club)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMemberId) hash ^= MemberId.GetHashCode(); + if (HasClub) hash ^= Club.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMemberId) { + output.WriteRawTag(10); + output.WriteMessage(MemberId); + } + if (HasClub) { + output.WriteRawTag(18); + output.WriteMessage(Club); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + if (HasClub) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Club); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubMembershipDescription other) { + if (other == null) { + return; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + if (other.HasClub) { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); + } + Club.MergeFrom(other.Club); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 18: { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); + } + input.ReadMessage(Club); + break; + } + } + } + } + + } + + public sealed partial class ClubMembershipState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubMembershipState()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipState(ClubMembershipState other) : this() { + description_ = other.description_.Clone(); + invitation_ = other.invitation_.Clone(); + setting_ = other.HasSetting ? other.setting_.Clone() : null; + mentionView_ = other.HasMentionView ? other.mentionView_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMembershipState Clone() { + return new ClubMembershipState(this); + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_description_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.ClubMembershipDescription.Parser); + private readonly pbc::RepeatedField description_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Description { + get { return description_; } + } + + /// Field number for the "invitation" field. + public const int InvitationFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_invitation_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Club.V1.ClubInvitation.Parser); + private readonly pbc::RepeatedField invitation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Invitation { + get { return invitation_; } + } + + /// Field number for the "setting" field. + public const int SettingFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.ClubSharedSettings setting_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSharedSettings Setting { + get { return setting_; } + set { + setting_ = value; + } + } + /// Gets whether the setting field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSetting { + get { return setting_ != null; } + } + /// Clears the value of the setting field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSetting() { + setting_ = null; + } + + /// Field number for the "mention_view" field. + public const int MentionViewFieldNumber = 4; + private global::Bgs.Protocol.ViewMarker mentionView_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ViewMarker MentionView { + get { return mentionView_; } + set { + mentionView_ = value; + } + } + /// Gets whether the mention_view field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMentionView { + get { return mentionView_ != null; } + } + /// Clears the value of the mention_view field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMentionView() { + mentionView_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubMembershipState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubMembershipState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!description_.Equals(other.description_)) return false; + if(!invitation_.Equals(other.invitation_)) return false; + if (!object.Equals(Setting, other.Setting)) return false; + if (!object.Equals(MentionView, other.MentionView)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= description_.GetHashCode(); + hash ^= invitation_.GetHashCode(); + if (HasSetting) hash ^= Setting.GetHashCode(); + if (HasMentionView) hash ^= MentionView.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + description_.WriteTo(output, _repeated_description_codec); + invitation_.WriteTo(output, _repeated_invitation_codec); + if (HasSetting) { + output.WriteRawTag(26); + output.WriteMessage(Setting); + } + if (HasMentionView) { + output.WriteRawTag(34); + output.WriteMessage(MentionView); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += description_.CalculateSize(_repeated_description_codec); + size += invitation_.CalculateSize(_repeated_invitation_codec); + if (HasSetting) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setting); + } + if (HasMentionView) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MentionView); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubMembershipState other) { + if (other == null) { + return; + } + description_.Add(other.description_); + invitation_.Add(other.invitation_); + if (other.HasSetting) { + if (!HasSetting) { + Setting = new global::Bgs.Protocol.Club.V1.ClubSharedSettings(); + } + Setting.MergeFrom(other.Setting); + } + if (other.HasMentionView) { + if (!HasMentionView) { + MentionView = new global::Bgs.Protocol.ViewMarker(); + } + MentionView.MergeFrom(other.MentionView); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + description_.AddEntriesFrom(input, _repeated_description_codec); + break; + } + case 18: { + invitation_.AddEntriesFrom(input, _repeated_invitation_codec); + break; + } + case 26: { + if (!HasSetting) { + Setting = new global::Bgs.Protocol.Club.V1.ClubSharedSettings(); + } + input.ReadMessage(Setting); + break; + } + case 34: { + if (!HasMentionView) { + MentionView = new global::Bgs.Protocol.ViewMarker(); + } + input.ReadMessage(MentionView); + break; + } + } + } + } + + } + + public sealed partial class ClubPosition : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubPosition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubPosition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubPosition(ClubPosition other) : this() { + clubId_ = other.clubId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubPosition Clone() { + return new ClubPosition(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_clubId_codec + = pb::FieldCodec.ForUInt64(10); + private readonly pbc::RepeatedField clubId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ClubId { + get { return clubId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubPosition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubPosition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!clubId_.Equals(other.clubId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= clubId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + clubId_.WriteTo(output, _repeated_clubId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += clubId_.CalculateSize(_repeated_clubId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubPosition other) { + if (other == null) { + return; + } + clubId_.Add(other.clubId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + clubId_.AddEntriesFrom(input, _repeated_clubId_codec); + break; + } + } + } + } + + } + + public sealed partial class ClubSharedSettings : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSharedSettings()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettings(ClubSharedSettings other) : this() { + clubPosition_ = other.HasClubPosition ? other.clubPosition_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettings Clone() { + return new ClubSharedSettings(this); + } + + /// Field number for the "club_position" field. + public const int ClubPositionFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubPosition clubPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubPosition ClubPosition { + get { return clubPosition_; } + set { + clubPosition_ = value; + } + } + /// Gets whether the club_position field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubPosition { + get { return clubPosition_ != null; } + } + /// Clears the value of the club_position field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubPosition() { + clubPosition_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSharedSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSharedSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ClubPosition, other.ClubPosition)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubPosition) hash ^= ClubPosition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubPosition) { + output.WriteRawTag(10); + output.WriteMessage(ClubPosition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubPosition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClubPosition); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSharedSettings other) { + if (other == null) { + return; + } + if (other.HasClubPosition) { + if (!HasClubPosition) { + ClubPosition = new global::Bgs.Protocol.Club.V1.ClubPosition(); + } + ClubPosition.MergeFrom(other.ClubPosition); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasClubPosition) { + ClubPosition = new global::Bgs.Protocol.Club.V1.ClubPosition(); + } + input.ReadMessage(ClubPosition); + break; + } + } + } + } + + } + + public sealed partial class ClubSharedSettingsOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSharedSettingsOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettingsOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettingsOptions(ClubSharedSettingsOptions other) : this() { + clubPosition_ = other.HasClubPosition ? other.clubPosition_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettingsOptions Clone() { + return new ClubSharedSettingsOptions(this); + } + + /// Field number for the "club_position" field. + public const int ClubPositionFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubPosition clubPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubPosition ClubPosition { + get { return clubPosition_; } + set { + clubPosition_ = value; + } + } + /// Gets whether the club_position field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubPosition { + get { return clubPosition_ != null; } + } + /// Clears the value of the club_position field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubPosition() { + clubPosition_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSharedSettingsOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSharedSettingsOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ClubPosition, other.ClubPosition)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubPosition) hash ^= ClubPosition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubPosition) { + output.WriteRawTag(10); + output.WriteMessage(ClubPosition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubPosition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClubPosition); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSharedSettingsOptions other) { + if (other == null) { + return; + } + if (other.HasClubPosition) { + if (!HasClubPosition) { + ClubPosition = new global::Bgs.Protocol.Club.V1.ClubPosition(); + } + ClubPosition.MergeFrom(other.ClubPosition); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasClubPosition) { + ClubPosition = new global::Bgs.Protocol.Club.V1.ClubPosition(); + } + input.ReadMessage(ClubPosition); + break; + } + } + } + } + + } + + public sealed partial class ClubSharedSettingsAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSharedSettingsAssignment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettingsAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettingsAssignment(ClubSharedSettingsAssignment other) : this() { + clubPosition_ = other.HasClubPosition ? other.clubPosition_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSharedSettingsAssignment Clone() { + return new ClubSharedSettingsAssignment(this); + } + + /// Field number for the "club_position" field. + public const int ClubPositionFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubPosition clubPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubPosition ClubPosition { + get { return clubPosition_; } + set { + clubPosition_ = value; + } + } + /// Gets whether the club_position field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubPosition { + get { return clubPosition_ != null; } + } + /// Clears the value of the club_position field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubPosition() { + clubPosition_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSharedSettingsAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSharedSettingsAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ClubPosition, other.ClubPosition)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubPosition) hash ^= ClubPosition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubPosition) { + output.WriteRawTag(10); + output.WriteMessage(ClubPosition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubPosition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClubPosition); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSharedSettingsAssignment other) { + if (other == null) { + return; + } + if (other.HasClubPosition) { + if (!HasClubPosition) { + ClubPosition = new global::Bgs.Protocol.Club.V1.ClubPosition(); + } + ClubPosition.MergeFrom(other.ClubPosition); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasClubPosition) { + ClubPosition = new global::Bgs.Protocol.Club.V1.ClubPosition(); + } + input.ReadMessage(ClubPosition); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubNotification.cs b/Source/Framework/Proto/ClubNotification.cs new file mode 100644 index 000000000..29f5bc556 --- /dev/null +++ b/Source/Framework/Proto/ClubNotification.cs @@ -0,0 +1,5181 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_notification.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_notification.proto + public static partial class ClubNotificationReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_notification.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubNotificationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiliZ3MvbG93L3BiL2NsaWVudC9jbHViX25vdGlmaWNhdGlvbi5wcm90bxIU", + "YmdzLnByb3RvY29sLmNsdWIudjEaImJncy9sb3cvcGIvY2xpZW50L2NsdWJf", + "dHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90", + "bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVzc2Fn", + "ZV9vcHRpb25zLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0", + "ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjhiZ3MvbG93L3BiL2NsaWVu", + "dC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rfb3B0aW9ucy5wcm90bxo5Ymdz", + "L2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvc2VydmljZV9vcHRp", + "b25zLnByb3RvIpYCChVTdWJzY3JpYmVOb3RpZmljYXRpb24SMAoIYWdlbnRf", + "aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj", + "bHViX2lkGAMgASgEEigKBGNsdWIYBCABKAsyGi5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5DbHViEiwKBHZpZXcYBSABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52", + "MS5DbHViVmlldxI0CghzZXR0aW5ncxgKIAEoCzIiLmJncy5wcm90b2NvbC5j", + "bHViLnYxLkNsdWJTZXR0aW5ncxIsCgZtZW1iZXIYCyABKAsyHC5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5NZW1iZXIiXAoXVW5zdWJzY3JpYmVOb3RpZmljYXRp", + "b24SMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5N", + "ZW1iZXJJZBIPCgdjbHViX2lkGAMgASgEIqQBChhTdGF0ZUNoYW5nZWROb3Rp", + "ZmljYXRpb24SMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAMgASgEEj0KCmFzc2lnbm1lbnQY", + "BSABKAsyKS5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViU3RhdGVBc3NpZ25t", + "ZW50OgaC+SsCGAEiqgEKG1NldHRpbmdzQ2hhbmdlZE5vdGlmaWNhdGlvbhIw", + "CghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJl", + "cklkEg8KB2NsdWJfaWQYAyABKAQSQAoKYXNzaWdubWVudBgEIAEoCzIsLmJn", + "cy5wcm90b2NvbC5jbHViLnYxLkNsdWJTZXR0aW5nc0Fzc2lnbm1lbnQ6BoL5", + "KwIYASKSAQoXTWVtYmVyQWRkZWROb3RpZmljYXRpb24SMAoIYWdlbnRfaWQY", + "ASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHVi", + "X2lkGAMgASgEEiwKBm1lbWJlchgEIAMoCzIcLmJncy5wcm90b2NvbC5jbHVi", + "LnYxLk1lbWJlcjoGgvkrAhgBIqUBChlNZW1iZXJSZW1vdmVkTm90aWZpY2F0", + "aW9uEjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEu", + "TWVtYmVySWQSDwoHY2x1Yl9pZBgDIAEoBBI9CgZtZW1iZXIYBCADKAsyLS5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJSZW1vdmVkQXNzaWdubWVudDoG", + "gvkrAhgBIqwBCh5NZW1iZXJTdGF0ZUNoYW5nZWROb3RpZmljYXRpb24SMAoI", + "YWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJ", + "ZBIPCgdjbHViX2lkGAMgASgEEj8KCmFzc2lnbm1lbnQYBCADKAsyKy5iZ3Mu", + "cHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJTdGF0ZUFzc2lnbm1lbnQ6BoL5KwIY", + "ASK0AQoiU3Vic2NyaWJlclN0YXRlQ2hhbmdlZE5vdGlmaWNhdGlvbhIwCghh", + "Z2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklk", + "Eg8KB2NsdWJfaWQYAyABKAQSQwoKYXNzaWdubWVudBgEIAMoCzIvLmJncy5w", + "cm90b2NvbC5jbHViLnYxLlN1YnNjcmliZXJTdGF0ZUFzc2lnbm1lbnQ6BoL5", + "KwIYASKkAQodTWVtYmVyUm9sZUNoYW5nZWROb3RpZmljYXRpb24SMAoIYWdl", + "bnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIP", + "CgdjbHViX2lkGAMgASgEEjgKCmFzc2lnbm1lbnQYBCADKAsyJC5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5Sb2xlQXNzaWdubWVudDoGgvkrAhgBIqIBChtJbnZp", + "dGF0aW9uQWRkZWROb3RpZmljYXRpb24SMAoIYWdlbnRfaWQYASABKAsyHi5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAMgASgE", + "EjgKCmludml0YXRpb24YBCABKAsyJC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5D", + "bHViSW52aXRhdGlvbjoGgvkrAhgBItwBCh1JbnZpdGF0aW9uUmVtb3ZlZE5v", + "dGlmaWNhdGlvbhIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5j", + "bHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAyABKAQSFQoNaW52aXRhdGlv", + "bl9pZBgEIAEoBhJZCgZyZWFzb24YBSABKA4yJS5iZ3MucHJvdG9jb2wuSW52", + "aXRhdGlvblJlbW92ZWRSZWFzb246IklOVklUQVRJT05fUkVNT1ZFRF9SRUFT", + "T05fQUNDRVBURUQ6BoL5KwIYASKiAQobU3VnZ2VzdGlvbkFkZGVkTm90aWZp", + "Y2F0aW9uEjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIu", + "djEuTWVtYmVySWQSDwoHY2x1Yl9pZBgDIAEoBBI4CgpzdWdnZXN0aW9uGAQg", + "ASgLMiQuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YlN1Z2dlc3Rpb246BoL5", + "KwIYASLcAQodU3VnZ2VzdGlvblJlbW92ZWROb3RpZmljYXRpb24SMAoIYWdl", + "bnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIP", + "CgdjbHViX2lkGAMgASgEEhUKDXN1Z2dlc3Rpb25faWQYBCABKAYSWQoGcmVh", + "c29uGAUgASgOMiUuYmdzLnByb3RvY29sLlN1Z2dlc3Rpb25SZW1vdmVkUmVh", + "c29uOiJTVUdHRVNUSU9OX1JFTU9WRURfUkVBU09OX0FQUFJPVkVEOgaC+SsC", + "GAEikgEKF1N0cmVhbUFkZGVkTm90aWZpY2F0aW9uEjAKCGFnZW50X2lkGAEg", + "ASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9p", + "ZBgDIAEoBBIsCgZzdHJlYW0YBCABKAsyHC5iZ3MucHJvdG9jb2wuY2x1Yi52", + "MS5TdHJlYW06BoL5KwIYASJ5ChlTdHJlYW1SZW1vdmVkTm90aWZpY2F0aW9u", + "EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVt", + "YmVySWQSDwoHY2x1Yl9pZBgDIAEoBBIRCglzdHJlYW1faWQYBCABKAQ6BoL5", + "KwIYASK/AQoeU3RyZWFtU3RhdGVDaGFuZ2VkTm90aWZpY2F0aW9uEjAKCGFn", + "ZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQS", + "DwoHY2x1Yl9pZBgDIAEoBBIRCglzdHJlYW1faWQYBCABKAQSPwoKYXNzaWdu", + "bWVudBgFIAEoCzIrLmJncy5wcm90b2NvbC5jbHViLnYxLlN0cmVhbVN0YXRl", + "QXNzaWdubWVudDoGgvkrAhgBIrQBCh5TdHJlYW1NZXNzYWdlQWRkZWROb3Rp", + "ZmljYXRpb24SMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAMgASgEEhEKCXN0cmVhbV9pZBgE", + "IAEoBBI0CgdtZXNzYWdlGAUgASgLMiMuYmdzLnByb3RvY29sLmNsdWIudjEu", + "U3RyZWFtTWVzc2FnZToGgvkrAhgBIrYBCiBTdHJlYW1NZXNzYWdlVXBkYXRl", + "ZE5vdGlmaWNhdGlvbhIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2Nv", + "bC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAyABKAQSEQoJc3RyZWFt", + "X2lkGAQgASgEEjQKB21lc3NhZ2UYBSABKAsyIy5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5TdHJlYW1NZXNzYWdlOgaC+SsCGAEiwQEKIVN0cmVhbVR5cGluZ0lu", + "ZGljYXRvck5vdGlmaWNhdGlvbhIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5w", + "cm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAyABKAQSEQoJ", + "c3RyZWFtX2lkGAQgASgEEj4KCWluZGljYXRvchgFIAMoCzIrLmJncy5wcm90", + "b2NvbC5jbHViLnYxLlN0cmVhbVR5cGluZ0luZGljYXRvcjoGgvkrAhgBIqQB", + "CiFTdHJlYW1VbnJlYWRJbmRpY2F0b3JOb3RpZmljYXRpb24SMAoIYWdlbnRf", + "aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj", + "bHViX2lkGAMgASgEEjQKBWV2ZW50GAQgASgLMiUuYmdzLnByb3RvY29sLmNs", + "dWIudjEuU3RyZWFtRXZlbnRUaW1lOgaC+SsCGAEiqQEKIVN0cmVhbUFkdmFu", + "Y2VWaWV3VGltZU5vdGlmaWNhdGlvbhIwCghhZ2VudF9pZBgBIAEoCzIeLmJn", + "cy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAyABKAQS", + "OQoEdmlldxgEIAMoCzIrLmJncy5wcm90b2NvbC5jbHViLnYxLlN0cmVhbUFk", + "dmFuY2VWaWV3VGltZToGgvkrAhgBUABQAQ==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscribeNotification), global::Bgs.Protocol.Club.V1.SubscribeNotification.Parser, new[]{ "AgentId", "ClubId", "Club", "View", "Settings", "Member" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UnsubscribeNotification), global::Bgs.Protocol.Club.V1.UnsubscribeNotification.Parser, new[]{ "AgentId", "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StateChangedNotification), global::Bgs.Protocol.Club.V1.StateChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SettingsChangedNotification), global::Bgs.Protocol.Club.V1.SettingsChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberAddedNotification), global::Bgs.Protocol.Club.V1.MemberAddedNotification.Parser, new[]{ "AgentId", "ClubId", "Member" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberRemovedNotification), global::Bgs.Protocol.Club.V1.MemberRemovedNotification.Parser, new[]{ "AgentId", "ClubId", "Member" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberStateChangedNotification), global::Bgs.Protocol.Club.V1.MemberStateChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscriberStateChangedNotification), global::Bgs.Protocol.Club.V1.SubscriberStateChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberRoleChangedNotification), global::Bgs.Protocol.Club.V1.MemberRoleChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.InvitationAddedNotification), global::Bgs.Protocol.Club.V1.InvitationAddedNotification.Parser, new[]{ "AgentId", "ClubId", "Invitation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.InvitationRemovedNotification), global::Bgs.Protocol.Club.V1.InvitationRemovedNotification.Parser, new[]{ "AgentId", "ClubId", "InvitationId", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SuggestionAddedNotification), global::Bgs.Protocol.Club.V1.SuggestionAddedNotification.Parser, new[]{ "AgentId", "ClubId", "Suggestion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SuggestionRemovedNotification), global::Bgs.Protocol.Club.V1.SuggestionRemovedNotification.Parser, new[]{ "AgentId", "ClubId", "SuggestionId", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamAddedNotification), global::Bgs.Protocol.Club.V1.StreamAddedNotification.Parser, new[]{ "AgentId", "ClubId", "Stream" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamRemovedNotification), global::Bgs.Protocol.Club.V1.StreamRemovedNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamStateChangedNotification), global::Bgs.Protocol.Club.V1.StreamStateChangedNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Assignment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamMessageAddedNotification), global::Bgs.Protocol.Club.V1.StreamMessageAddedNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamMessageUpdatedNotification), global::Bgs.Protocol.Club.V1.StreamMessageUpdatedNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamTypingIndicatorNotification), global::Bgs.Protocol.Club.V1.StreamTypingIndicatorNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Indicator" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamUnreadIndicatorNotification), global::Bgs.Protocol.Club.V1.StreamUnreadIndicatorNotification.Parser, new[]{ "AgentId", "ClubId", "Event" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamAdvanceViewTimeNotification), global::Bgs.Protocol.Club.V1.StreamAdvanceViewTimeNotification.Parser, new[]{ "AgentId", "ClubId", "View" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SubscribeNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeNotification(SubscribeNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + club_ = other.HasClub ? other.club_.Clone() : null; + view_ = other.HasView ? other.view_.Clone() : null; + settings_ = other.HasSettings ? other.settings_.Clone() : null; + member_ = other.HasMember ? other.member_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeNotification Clone() { + return new SubscribeNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "club" field. + public const int ClubFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.Club club_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.Club Club { + get { return club_; } + set { + club_ = value; + } + } + /// Gets whether the club field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClub { + get { return club_ != null; } + } + /// Clears the value of the club field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClub() { + club_ = null; + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.ClubView view_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubView View { + get { return view_; } + set { + view_ = value; + } + } + /// Gets whether the view field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasView { + get { return view_ != null; } + } + /// Clears the value of the view field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearView() { + view_ = null; + } + + /// Field number for the "settings" field. + public const int SettingsFieldNumber = 10; + private global::Bgs.Protocol.Club.V1.ClubSettings settings_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSettings Settings { + get { return settings_; } + set { + settings_ = value; + } + } + /// Gets whether the settings field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSettings { + get { return settings_ != null; } + } + /// Clears the value of the settings field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSettings() { + settings_ = null; + } + + /// Field number for the "member" field. + public const int MemberFieldNumber = 11; + private global::Bgs.Protocol.Club.V1.Member member_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.Member Member { + get { return member_; } + set { + member_ = value; + } + } + /// Gets whether the member field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMember { + get { return member_ != null; } + } + /// Clears the value of the member field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMember() { + member_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscribeNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscribeNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Club, other.Club)) return false; + if (!object.Equals(View, other.View)) return false; + if (!object.Equals(Settings, other.Settings)) return false; + if (!object.Equals(Member, other.Member)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasClub) hash ^= Club.GetHashCode(); + if (HasView) hash ^= View.GetHashCode(); + if (HasSettings) hash ^= Settings.GetHashCode(); + if (HasMember) hash ^= Member.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasClub) { + output.WriteRawTag(34); + output.WriteMessage(Club); + } + if (HasView) { + output.WriteRawTag(42); + output.WriteMessage(View); + } + if (HasSettings) { + output.WriteRawTag(82); + output.WriteMessage(Settings); + } + if (HasMember) { + output.WriteRawTag(90); + output.WriteMessage(Member); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasClub) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Club); + } + if (HasView) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(View); + } + if (HasSettings) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings); + } + if (HasMember) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Member); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscribeNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasClub) { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.Club(); + } + Club.MergeFrom(other.Club); + } + if (other.HasView) { + if (!HasView) { + View = new global::Bgs.Protocol.Club.V1.ClubView(); + } + View.MergeFrom(other.View); + } + if (other.HasSettings) { + if (!HasSettings) { + Settings = new global::Bgs.Protocol.Club.V1.ClubSettings(); + } + Settings.MergeFrom(other.Settings); + } + if (other.HasMember) { + if (!HasMember) { + Member = new global::Bgs.Protocol.Club.V1.Member(); + } + Member.MergeFrom(other.Member); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.Club(); + } + input.ReadMessage(Club); + break; + } + case 42: { + if (!HasView) { + View = new global::Bgs.Protocol.Club.V1.ClubView(); + } + input.ReadMessage(View); + break; + } + case 82: { + if (!HasSettings) { + Settings = new global::Bgs.Protocol.Club.V1.ClubSettings(); + } + input.ReadMessage(Settings); + break; + } + case 90: { + if (!HasMember) { + Member = new global::Bgs.Protocol.Club.V1.Member(); + } + input.ReadMessage(Member); + break; + } + } + } + } + + } + + public sealed partial class UnsubscribeNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsubscribeNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeNotification(UnsubscribeNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeNotification Clone() { + return new UnsubscribeNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnsubscribeNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnsubscribeNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnsubscribeNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class StateChangedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StateChangedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StateChangedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StateChangedNotification(StateChangedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + assignment_ = other.HasAssignment ? other.assignment_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StateChangedNotification Clone() { + return new StateChangedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "assignment" field. + public const int AssignmentFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.ClubStateAssignment assignment_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubStateAssignment Assignment { + get { return assignment_; } + set { + assignment_ = value; + } + } + /// Gets whether the assignment field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAssignment { + get { return assignment_ != null; } + } + /// Clears the value of the assignment field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAssignment() { + assignment_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StateChangedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StateChangedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Assignment, other.Assignment)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasAssignment) hash ^= Assignment.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasAssignment) { + output.WriteRawTag(42); + output.WriteMessage(Assignment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasAssignment) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StateChangedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasAssignment) { + if (!HasAssignment) { + Assignment = new global::Bgs.Protocol.Club.V1.ClubStateAssignment(); + } + Assignment.MergeFrom(other.Assignment); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 42: { + if (!HasAssignment) { + Assignment = new global::Bgs.Protocol.Club.V1.ClubStateAssignment(); + } + input.ReadMessage(Assignment); + break; + } + } + } + } + + } + + public sealed partial class SettingsChangedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SettingsChangedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SettingsChangedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SettingsChangedNotification(SettingsChangedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + assignment_ = other.HasAssignment ? other.assignment_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SettingsChangedNotification Clone() { + return new SettingsChangedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "assignment" field. + public const int AssignmentFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.ClubSettingsAssignment assignment_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSettingsAssignment Assignment { + get { return assignment_; } + set { + assignment_ = value; + } + } + /// Gets whether the assignment field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAssignment { + get { return assignment_ != null; } + } + /// Clears the value of the assignment field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAssignment() { + assignment_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SettingsChangedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SettingsChangedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Assignment, other.Assignment)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasAssignment) hash ^= Assignment.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasAssignment) { + output.WriteRawTag(34); + output.WriteMessage(Assignment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasAssignment) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SettingsChangedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasAssignment) { + if (!HasAssignment) { + Assignment = new global::Bgs.Protocol.Club.V1.ClubSettingsAssignment(); + } + Assignment.MergeFrom(other.Assignment); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasAssignment) { + Assignment = new global::Bgs.Protocol.Club.V1.ClubSettingsAssignment(); + } + input.ReadMessage(Assignment); + break; + } + } + } + } + + } + + public sealed partial class MemberAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAddedNotification(MemberAddedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + member_ = other.member_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberAddedNotification Clone() { + return new MemberAddedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "member" field. + public const int MemberFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_member_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.Member.Parser); + private readonly pbc::RepeatedField member_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Member { + get { return member_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if(!member_.Equals(other.member_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= member_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + member_.WriteTo(output, _repeated_member_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += member_.CalculateSize(_repeated_member_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + member_.Add(other.member_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + member_.AddEntriesFrom(input, _repeated_member_codec); + break; + } + } + } + } + + } + + public sealed partial class MemberRemovedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRemovedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRemovedNotification(MemberRemovedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + member_ = other.member_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRemovedNotification Clone() { + return new MemberRemovedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "member" field. + public const int MemberFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_member_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.MemberRemovedAssignment.Parser); + private readonly pbc::RepeatedField member_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Member { + get { return member_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberRemovedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberRemovedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if(!member_.Equals(other.member_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= member_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + member_.WriteTo(output, _repeated_member_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += member_.CalculateSize(_repeated_member_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberRemovedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + member_.Add(other.member_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + member_.AddEntriesFrom(input, _repeated_member_codec); + break; + } + } + } + } + + } + + public sealed partial class MemberStateChangedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberStateChangedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateChangedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateChangedNotification(MemberStateChangedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + assignment_ = other.assignment_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberStateChangedNotification Clone() { + return new MemberStateChangedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "assignment" field. + public const int AssignmentFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_assignment_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.MemberStateAssignment.Parser); + private readonly pbc::RepeatedField assignment_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Assignment { + get { return assignment_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberStateChangedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberStateChangedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if(!assignment_.Equals(other.assignment_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= assignment_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + assignment_.WriteTo(output, _repeated_assignment_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += assignment_.CalculateSize(_repeated_assignment_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberStateChangedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + assignment_.Add(other.assignment_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + assignment_.AddEntriesFrom(input, _repeated_assignment_codec); + break; + } + } + } + } + + } + + public sealed partial class SubscriberStateChangedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriberStateChangedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateChangedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateChangedNotification(SubscriberStateChangedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + assignment_ = other.assignment_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscriberStateChangedNotification Clone() { + return new SubscriberStateChangedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "assignment" field. + public const int AssignmentFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_assignment_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.SubscriberStateAssignment.Parser); + private readonly pbc::RepeatedField assignment_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Assignment { + get { return assignment_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscriberStateChangedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscriberStateChangedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if(!assignment_.Equals(other.assignment_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= assignment_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + assignment_.WriteTo(output, _repeated_assignment_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += assignment_.CalculateSize(_repeated_assignment_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscriberStateChangedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + assignment_.Add(other.assignment_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + assignment_.AddEntriesFrom(input, _repeated_assignment_codec); + break; + } + } + } + } + + } + + public sealed partial class MemberRoleChangedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemberRoleChangedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRoleChangedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRoleChangedNotification(MemberRoleChangedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + assignment_ = other.assignment_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MemberRoleChangedNotification Clone() { + return new MemberRoleChangedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "assignment" field. + public const int AssignmentFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_assignment_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.RoleAssignment.Parser); + private readonly pbc::RepeatedField assignment_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Assignment { + get { return assignment_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MemberRoleChangedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MemberRoleChangedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if(!assignment_.Equals(other.assignment_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= assignment_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + assignment_.WriteTo(output, _repeated_assignment_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += assignment_.CalculateSize(_repeated_assignment_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MemberRoleChangedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + assignment_.Add(other.assignment_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + assignment_.AddEntriesFrom(input, _repeated_assignment_codec); + break; + } + } + } + } + + } + + public sealed partial class InvitationAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvitationAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InvitationAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InvitationAddedNotification(InvitationAddedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + invitation_ = other.HasInvitation ? other.invitation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InvitationAddedNotification Clone() { + return new InvitationAddedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "invitation" field. + public const int InvitationFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.ClubInvitation invitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubInvitation Invitation { + get { return invitation_; } + set { + invitation_ = value; + } + } + /// Gets whether the invitation field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitation { + get { return invitation_ != null; } + } + /// Clears the value of the invitation field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitation() { + invitation_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as InvitationAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(InvitationAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Invitation, other.Invitation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasInvitation) hash ^= Invitation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasInvitation) { + output.WriteRawTag(34); + output.WriteMessage(Invitation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasInvitation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(InvitationAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasInvitation) { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitation(); + } + Invitation.MergeFrom(other.Invitation); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitation(); + } + input.ReadMessage(Invitation); + break; + } + } + } + } + + } + + public sealed partial class InvitationRemovedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvitationRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InvitationRemovedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InvitationRemovedNotification(InvitationRemovedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + invitationId_ = other.invitationId_; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InvitationRemovedNotification Clone() { + return new InvitationRemovedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 4; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 2) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 2; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~2; + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 5; + private readonly static global::Bgs.Protocol.InvitationRemovedReason ReasonDefaultValue = global::Bgs.Protocol.InvitationRemovedReason.Accepted; + + private global::Bgs.Protocol.InvitationRemovedReason reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.InvitationRemovedReason Reason { + get { if ((_hasBits0 & 4) != 0) { return reason_; } else { return ReasonDefaultValue; } } + set { + _hasBits0 |= 4; + reason_ = value; + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as InvitationRemovedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(InvitationRemovedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (InvitationId != other.InvitationId) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasInvitationId) { + output.WriteRawTag(33); + output.WriteFixed64(InvitationId); + } + if (HasReason) { + output.WriteRawTag(40); + output.WriteEnum((int) Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(InvitationRemovedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + if (other.HasReason) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 33: { + InvitationId = input.ReadFixed64(); + break; + } + case 40: { + Reason = (global::Bgs.Protocol.InvitationRemovedReason) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class SuggestionAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestionAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SuggestionAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SuggestionAddedNotification(SuggestionAddedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + suggestion_ = other.HasSuggestion ? other.suggestion_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SuggestionAddedNotification Clone() { + return new SuggestionAddedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "suggestion" field. + public const int SuggestionFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.ClubSuggestion suggestion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSuggestion Suggestion { + get { return suggestion_; } + set { + suggestion_ = value; + } + } + /// Gets whether the suggestion field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggestion { + get { return suggestion_ != null; } + } + /// Clears the value of the suggestion field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggestion() { + suggestion_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SuggestionAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SuggestionAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Suggestion, other.Suggestion)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasSuggestion) hash ^= Suggestion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasSuggestion) { + output.WriteRawTag(34); + output.WriteMessage(Suggestion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasSuggestion) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggestion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SuggestionAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasSuggestion) { + if (!HasSuggestion) { + Suggestion = new global::Bgs.Protocol.Club.V1.ClubSuggestion(); + } + Suggestion.MergeFrom(other.Suggestion); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasSuggestion) { + Suggestion = new global::Bgs.Protocol.Club.V1.ClubSuggestion(); + } + input.ReadMessage(Suggestion); + break; + } + } + } + } + + } + + public sealed partial class SuggestionRemovedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestionRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SuggestionRemovedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SuggestionRemovedNotification(SuggestionRemovedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + suggestionId_ = other.suggestionId_; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SuggestionRemovedNotification Clone() { + return new SuggestionRemovedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "suggestion_id" field. + public const int SuggestionIdFieldNumber = 4; + private readonly static ulong SuggestionIdDefaultValue = 0UL; + + private ulong suggestionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SuggestionId { + get { if ((_hasBits0 & 2) != 0) { return suggestionId_; } else { return SuggestionIdDefaultValue; } } + set { + _hasBits0 |= 2; + suggestionId_ = value; + } + } + /// Gets whether the "suggestion_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggestionId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "suggestion_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggestionId() { + _hasBits0 &= ~2; + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 5; + private readonly static global::Bgs.Protocol.SuggestionRemovedReason ReasonDefaultValue = global::Bgs.Protocol.SuggestionRemovedReason.Approved; + + private global::Bgs.Protocol.SuggestionRemovedReason reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.SuggestionRemovedReason Reason { + get { if ((_hasBits0 & 4) != 0) { return reason_; } else { return ReasonDefaultValue; } } + set { + _hasBits0 |= 4; + reason_ = value; + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SuggestionRemovedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SuggestionRemovedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (SuggestionId != other.SuggestionId) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasSuggestionId) hash ^= SuggestionId.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasSuggestionId) { + output.WriteRawTag(33); + output.WriteFixed64(SuggestionId); + } + if (HasReason) { + output.WriteRawTag(40); + output.WriteEnum((int) Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasSuggestionId) { + size += 1 + 8; + } + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SuggestionRemovedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasSuggestionId) { + SuggestionId = other.SuggestionId; + } + if (other.HasReason) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 33: { + SuggestionId = input.ReadFixed64(); + break; + } + case 40: { + Reason = (global::Bgs.Protocol.SuggestionRemovedReason) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class StreamAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAddedNotification(StreamAddedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + stream_ = other.HasStream ? other.stream_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAddedNotification Clone() { + return new StreamAddedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.Stream stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.Stream Stream { + get { return stream_; } + set { + stream_ = value; + } + } + /// Gets whether the stream field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStream { + get { return stream_ != null; } + } + /// Clears the value of the stream field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStream() { + stream_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Stream, other.Stream)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStream) hash ^= Stream.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasStream) { + output.WriteRawTag(34); + output.WriteMessage(Stream); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStream) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStream) { + if (!HasStream) { + Stream = new global::Bgs.Protocol.Club.V1.Stream(); + } + Stream.MergeFrom(other.Stream); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasStream) { + Stream = new global::Bgs.Protocol.Club.V1.Stream(); + } + input.ReadMessage(Stream); + break; + } + } + } + } + + } + + public sealed partial class StreamRemovedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamRemovedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamRemovedNotification(StreamRemovedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamRemovedNotification Clone() { + return new StreamRemovedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 4; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamRemovedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamRemovedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(32); + output.WriteUInt64(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamRemovedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 32: { + StreamId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class StreamStateChangedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamStateChangedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateChangedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateChangedNotification(StreamStateChangedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + assignment_ = other.HasAssignment ? other.assignment_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateChangedNotification Clone() { + return new StreamStateChangedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 4; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "assignment" field. + public const int AssignmentFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.StreamStateAssignment assignment_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamStateAssignment Assignment { + get { return assignment_; } + set { + assignment_ = value; + } + } + /// Gets whether the assignment field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAssignment { + get { return assignment_ != null; } + } + /// Clears the value of the assignment field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAssignment() { + assignment_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamStateChangedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamStateChangedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(Assignment, other.Assignment)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasAssignment) hash ^= Assignment.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(32); + output.WriteUInt64(StreamId); + } + if (HasAssignment) { + output.WriteRawTag(42); + output.WriteMessage(Assignment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasAssignment) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamStateChangedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasAssignment) { + if (!HasAssignment) { + Assignment = new global::Bgs.Protocol.Club.V1.StreamStateAssignment(); + } + Assignment.MergeFrom(other.Assignment); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 32: { + StreamId = input.ReadUInt64(); + break; + } + case 42: { + if (!HasAssignment) { + Assignment = new global::Bgs.Protocol.Club.V1.StreamStateAssignment(); + } + input.ReadMessage(Assignment); + break; + } + } + } + } + + } + + public sealed partial class StreamMessageAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamMessageAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessageAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessageAddedNotification(StreamMessageAddedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + message_ = other.HasMessage ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessageAddedNotification Clone() { + return new StreamMessageAddedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 4; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.StreamMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamMessage Message { + get { return message_; } + set { + message_ = value; + } + } + /// Gets whether the message field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the message field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamMessageAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamMessageAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(32); + output.WriteUInt64(StreamId); + } + if (HasMessage) { + output.WriteRawTag(42); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamMessageAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasMessage) { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + Message.MergeFrom(other.Message); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 32: { + StreamId = input.ReadUInt64(); + break; + } + case 42: { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + + } + + public sealed partial class StreamMessageUpdatedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamMessageUpdatedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessageUpdatedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessageUpdatedNotification(StreamMessageUpdatedNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + message_ = other.HasMessage ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessageUpdatedNotification Clone() { + return new StreamMessageUpdatedNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 4; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.StreamMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamMessage Message { + get { return message_; } + set { + message_ = value; + } + } + /// Gets whether the message field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the message field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamMessageUpdatedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamMessageUpdatedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(32); + output.WriteUInt64(StreamId); + } + if (HasMessage) { + output.WriteRawTag(42); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamMessageUpdatedNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasMessage) { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + Message.MergeFrom(other.Message); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 32: { + StreamId = input.ReadUInt64(); + break; + } + case 42: { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + + } + + public sealed partial class StreamTypingIndicatorNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamTypingIndicatorNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamTypingIndicatorNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamTypingIndicatorNotification(StreamTypingIndicatorNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + indicator_ = other.indicator_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamTypingIndicatorNotification Clone() { + return new StreamTypingIndicatorNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 4; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "indicator" field. + public const int IndicatorFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_indicator_codec + = pb::FieldCodec.ForMessage(42, global::Bgs.Protocol.Club.V1.StreamTypingIndicator.Parser); + private readonly pbc::RepeatedField indicator_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Indicator { + get { return indicator_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamTypingIndicatorNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamTypingIndicatorNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if(!indicator_.Equals(other.indicator_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + hash ^= indicator_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(32); + output.WriteUInt64(StreamId); + } + indicator_.WriteTo(output, _repeated_indicator_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + size += indicator_.CalculateSize(_repeated_indicator_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamTypingIndicatorNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + indicator_.Add(other.indicator_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 32: { + StreamId = input.ReadUInt64(); + break; + } + case 42: { + indicator_.AddEntriesFrom(input, _repeated_indicator_codec); + break; + } + } + } + } + + } + + public sealed partial class StreamUnreadIndicatorNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamUnreadIndicatorNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamUnreadIndicatorNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamUnreadIndicatorNotification(StreamUnreadIndicatorNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + event_ = other.HasEvent ? other.event_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamUnreadIndicatorNotification Clone() { + return new StreamUnreadIndicatorNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "event" field. + public const int EventFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.StreamEventTime event_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamEventTime Event { + get { return event_; } + set { + event_ = value; + } + } + /// Gets whether the event field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEvent { + get { return event_ != null; } + } + /// Clears the value of the event field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEvent() { + event_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamUnreadIndicatorNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamUnreadIndicatorNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Event, other.Event)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasEvent) hash ^= Event.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + if (HasEvent) { + output.WriteRawTag(34); + output.WriteMessage(Event); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasEvent) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Event); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamUnreadIndicatorNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasEvent) { + if (!HasEvent) { + Event = new global::Bgs.Protocol.Club.V1.StreamEventTime(); + } + Event.MergeFrom(other.Event); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasEvent) { + Event = new global::Bgs.Protocol.Club.V1.StreamEventTime(); + } + input.ReadMessage(Event); + break; + } + } + } + } + + } + + public sealed partial class StreamAdvanceViewTimeNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamAdvanceViewTimeNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAdvanceViewTimeNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAdvanceViewTimeNotification(StreamAdvanceViewTimeNotification other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + view_ = other.view_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAdvanceViewTimeNotification Clone() { + return new StreamAdvanceViewTimeNotification(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 3; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_view_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.StreamAdvanceViewTime.Parser); + private readonly pbc::RepeatedField view_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField View { + get { return view_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamAdvanceViewTimeNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamAdvanceViewTimeNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if(!view_.Equals(other.view_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= view_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(24); + output.WriteUInt64(ClubId); + } + view_.WriteTo(output, _repeated_view_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += view_.CalculateSize(_repeated_view_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamAdvanceViewTimeNotification other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + view_.Add(other.view_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 24: { + ClubId = input.ReadUInt64(); + break; + } + case 34: { + view_.AddEntriesFrom(input, _repeated_view_codec); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubRangeSet.cs b/Source/Framework/Proto/ClubRangeSet.cs new file mode 100644 index 000000000..1c79e8af3 --- /dev/null +++ b/Source/Framework/Proto/ClubRangeSet.cs @@ -0,0 +1,1800 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_range_set.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_range_set.proto + public static partial class ClubRangeSetReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_range_set.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubRangeSetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZiZ3MvbG93L3BiL2NsaWVudC9jbHViX3JhbmdlX3NldC5wcm90bxIUYmdz", + "LnByb3RvY29sLmNsdWIudjEaL2Jncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9l", + "eHRlbnNpb25zL3JhbmdlLnByb3RvItoEChBDbHViVHlwZVJhbmdlU2V0EjIK", + "Cm5hbWVfcmFuZ2UYAiABKAsyHi5iZ3MucHJvdG9jb2wuVW5zaWduZWRJbnRS", + "YW5nZRI5ChFkZXNjcmlwdGlvbl9yYW5nZRgDIAEoCzIeLmJncy5wcm90b2Nv", + "bC5VbnNpZ25lZEludFJhbmdlEjcKD2Jyb2FkY2FzdF9yYW5nZRgEIAEoCzIe", + "LmJncy5wcm90b2NvbC5VbnNpZ25lZEludFJhbmdlEjgKEHNob3J0X25hbWVf", + "cmFuZ2UYByABKAsyHi5iZ3MucHJvdG9jb2wuVW5zaWduZWRJbnRSYW5nZRI4", + "CgZtZW1iZXIYGSABKAsyKC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViTWVt", + "YmVyUmFuZ2VTZXQSOAoGc3RyZWFtGBogASgLMiguYmdzLnByb3RvY29sLmNs", + "dWIudjEuQ2x1YlN0cmVhbVJhbmdlU2V0EkAKCmludml0YXRpb24YGyABKAsy", + "LC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViSW52aXRhdGlvblJhbmdlU2V0", + "EkAKCnN1Z2dlc3Rpb24YHCABKAsyLC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5D", + "bHViU3VnZ2VzdGlvblJhbmdlU2V0EjgKBnRpY2tldBgdIAEoCzIoLmJncy5w", + "cm90b2NvbC5jbHViLnYxLkNsdWJUaWNrZXRSYW5nZVNldBIyCgNiYW4YHiAB", + "KAsyJS5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViQmFuUmFuZ2VTZXQi5AEK", + "EkNsdWJNZW1iZXJSYW5nZVNldBItCgVjb3VudBgBIAEoCzIeLmJncy5wcm90", + "b2NvbC5VbnNpZ25lZEludFJhbmdlEi0KBXZvaWNlGAMgASgLMh4uYmdzLnBy", + "b3RvY29sLlVuc2lnbmVkSW50UmFuZ2USPAoUc3RyZWFtX3N1YnNjcmlwdGlv", + "bnMYBSABKAsyHi5iZ3MucHJvdG9jb2wuVW5zaWduZWRJbnRSYW5nZRIyCgpu", + "b3RlX3JhbmdlGAcgASgLMh4uYmdzLnByb3RvY29sLlVuc2lnbmVkSW50UmFu", + "Z2Ui5QEKEkNsdWJTdHJlYW1SYW5nZVNldBItCgVjb3VudBgBIAEoCzIeLmJn", + "cy5wcm90b2NvbC5VbnNpZ25lZEludFJhbmdlEjIKCm5hbWVfcmFuZ2UYAyAB", + "KAsyHi5iZ3MucHJvdG9jb2wuVW5zaWduZWRJbnRSYW5nZRI1Cg1zdWJqZWN0", + "X3JhbmdlGAQgASgLMh4uYmdzLnByb3RvY29sLlVuc2lnbmVkSW50UmFuZ2US", + "NQoNbWVzc2FnZV9yYW5nZRgFIAEoCzIeLmJncy5wcm90b2NvbC5VbnNpZ25l", + "ZEludFJhbmdlIkcKFkNsdWJJbnZpdGF0aW9uUmFuZ2VTZXQSLQoFY291bnQY", + "ASABKAsyHi5iZ3MucHJvdG9jb2wuVW5zaWduZWRJbnRSYW5nZSJHChZDbHVi", + "U3VnZ2VzdGlvblJhbmdlU2V0Ei0KBWNvdW50GAEgASgLMh4uYmdzLnByb3Rv", + "Y29sLlVuc2lnbmVkSW50UmFuZ2UiQwoSQ2x1YlRpY2tldFJhbmdlU2V0Ei0K", + "BWNvdW50GAEgASgLMh4uYmdzLnByb3RvY29sLlVuc2lnbmVkSW50UmFuZ2Ui", + "dgoPQ2x1YkJhblJhbmdlU2V0Ei0KBWNvdW50GAEgASgLMh4uYmdzLnByb3Rv", + "Y29sLlVuc2lnbmVkSW50UmFuZ2USNAoMcmVhc29uX3JhbmdlGAMgASgLMh4u", + "YmdzLnByb3RvY29sLlVuc2lnbmVkSW50UmFuZ2U=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.RangeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubTypeRangeSet), global::Bgs.Protocol.Club.V1.ClubTypeRangeSet.Parser, new[]{ "NameRange", "DescriptionRange", "BroadcastRange", "ShortNameRange", "Member", "Stream", "Invitation", "Suggestion", "Ticket", "Ban" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubMemberRangeSet), global::Bgs.Protocol.Club.V1.ClubMemberRangeSet.Parser, new[]{ "Count", "Voice", "StreamSubscriptions", "NoteRange" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubStreamRangeSet), global::Bgs.Protocol.Club.V1.ClubStreamRangeSet.Parser, new[]{ "Count", "NameRange", "SubjectRange", "MessageRange" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubInvitationRangeSet), global::Bgs.Protocol.Club.V1.ClubInvitationRangeSet.Parser, new[]{ "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSuggestionRangeSet), global::Bgs.Protocol.Club.V1.ClubSuggestionRangeSet.Parser, new[]{ "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubTicketRangeSet), global::Bgs.Protocol.Club.V1.ClubTicketRangeSet.Parser, new[]{ "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubBanRangeSet), global::Bgs.Protocol.Club.V1.ClubBanRangeSet.Parser, new[]{ "Count", "ReasonRange" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ClubTypeRangeSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubTypeRangeSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRangeSetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTypeRangeSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTypeRangeSet(ClubTypeRangeSet other) : this() { + nameRange_ = other.HasNameRange ? other.nameRange_.Clone() : null; + descriptionRange_ = other.HasDescriptionRange ? other.descriptionRange_.Clone() : null; + broadcastRange_ = other.HasBroadcastRange ? other.broadcastRange_.Clone() : null; + shortNameRange_ = other.HasShortNameRange ? other.shortNameRange_.Clone() : null; + member_ = other.HasMember ? other.member_.Clone() : null; + stream_ = other.HasStream ? other.stream_.Clone() : null; + invitation_ = other.HasInvitation ? other.invitation_.Clone() : null; + suggestion_ = other.HasSuggestion ? other.suggestion_.Clone() : null; + ticket_ = other.HasTicket ? other.ticket_.Clone() : null; + ban_ = other.HasBan ? other.ban_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTypeRangeSet Clone() { + return new ClubTypeRangeSet(this); + } + + /// Field number for the "name_range" field. + public const int NameRangeFieldNumber = 2; + private global::Bgs.Protocol.UnsignedIntRange nameRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange NameRange { + get { return nameRange_; } + set { + nameRange_ = value; + } + } + /// Gets whether the name_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNameRange { + get { return nameRange_ != null; } + } + /// Clears the value of the name_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNameRange() { + nameRange_ = null; + } + + /// Field number for the "description_range" field. + public const int DescriptionRangeFieldNumber = 3; + private global::Bgs.Protocol.UnsignedIntRange descriptionRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange DescriptionRange { + get { return descriptionRange_; } + set { + descriptionRange_ = value; + } + } + /// Gets whether the description_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescriptionRange { + get { return descriptionRange_ != null; } + } + /// Clears the value of the description_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescriptionRange() { + descriptionRange_ = null; + } + + /// Field number for the "broadcast_range" field. + public const int BroadcastRangeFieldNumber = 4; + private global::Bgs.Protocol.UnsignedIntRange broadcastRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange BroadcastRange { + get { return broadcastRange_; } + set { + broadcastRange_ = value; + } + } + /// Gets whether the broadcast_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBroadcastRange { + get { return broadcastRange_ != null; } + } + /// Clears the value of the broadcast_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBroadcastRange() { + broadcastRange_ = null; + } + + /// Field number for the "short_name_range" field. + public const int ShortNameRangeFieldNumber = 7; + private global::Bgs.Protocol.UnsignedIntRange shortNameRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange ShortNameRange { + get { return shortNameRange_; } + set { + shortNameRange_ = value; + } + } + /// Gets whether the short_name_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShortNameRange { + get { return shortNameRange_ != null; } + } + /// Clears the value of the short_name_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShortNameRange() { + shortNameRange_ = null; + } + + /// Field number for the "member" field. + public const int MemberFieldNumber = 25; + private global::Bgs.Protocol.Club.V1.ClubMemberRangeSet member_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubMemberRangeSet Member { + get { return member_; } + set { + member_ = value; + } + } + /// Gets whether the member field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMember { + get { return member_ != null; } + } + /// Clears the value of the member field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMember() { + member_ = null; + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 26; + private global::Bgs.Protocol.Club.V1.ClubStreamRangeSet stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubStreamRangeSet Stream { + get { return stream_; } + set { + stream_ = value; + } + } + /// Gets whether the stream field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStream { + get { return stream_ != null; } + } + /// Clears the value of the stream field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStream() { + stream_ = null; + } + + /// Field number for the "invitation" field. + public const int InvitationFieldNumber = 27; + private global::Bgs.Protocol.Club.V1.ClubInvitationRangeSet invitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubInvitationRangeSet Invitation { + get { return invitation_; } + set { + invitation_ = value; + } + } + /// Gets whether the invitation field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitation { + get { return invitation_ != null; } + } + /// Clears the value of the invitation field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitation() { + invitation_ = null; + } + + /// Field number for the "suggestion" field. + public const int SuggestionFieldNumber = 28; + private global::Bgs.Protocol.Club.V1.ClubSuggestionRangeSet suggestion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSuggestionRangeSet Suggestion { + get { return suggestion_; } + set { + suggestion_ = value; + } + } + /// Gets whether the suggestion field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggestion { + get { return suggestion_ != null; } + } + /// Clears the value of the suggestion field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggestion() { + suggestion_ = null; + } + + /// Field number for the "ticket" field. + public const int TicketFieldNumber = 29; + private global::Bgs.Protocol.Club.V1.ClubTicketRangeSet ticket_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubTicketRangeSet Ticket { + get { return ticket_; } + set { + ticket_ = value; + } + } + /// Gets whether the ticket field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTicket { + get { return ticket_ != null; } + } + /// Clears the value of the ticket field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTicket() { + ticket_ = null; + } + + /// Field number for the "ban" field. + public const int BanFieldNumber = 30; + private global::Bgs.Protocol.Club.V1.ClubBanRangeSet ban_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubBanRangeSet Ban { + get { return ban_; } + set { + ban_ = value; + } + } + /// Gets whether the ban field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBan { + get { return ban_ != null; } + } + /// Clears the value of the ban field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBan() { + ban_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubTypeRangeSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubTypeRangeSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NameRange, other.NameRange)) return false; + if (!object.Equals(DescriptionRange, other.DescriptionRange)) return false; + if (!object.Equals(BroadcastRange, other.BroadcastRange)) return false; + if (!object.Equals(ShortNameRange, other.ShortNameRange)) return false; + if (!object.Equals(Member, other.Member)) return false; + if (!object.Equals(Stream, other.Stream)) return false; + if (!object.Equals(Invitation, other.Invitation)) return false; + if (!object.Equals(Suggestion, other.Suggestion)) return false; + if (!object.Equals(Ticket, other.Ticket)) return false; + if (!object.Equals(Ban, other.Ban)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasNameRange) hash ^= NameRange.GetHashCode(); + if (HasDescriptionRange) hash ^= DescriptionRange.GetHashCode(); + if (HasBroadcastRange) hash ^= BroadcastRange.GetHashCode(); + if (HasShortNameRange) hash ^= ShortNameRange.GetHashCode(); + if (HasMember) hash ^= Member.GetHashCode(); + if (HasStream) hash ^= Stream.GetHashCode(); + if (HasInvitation) hash ^= Invitation.GetHashCode(); + if (HasSuggestion) hash ^= Suggestion.GetHashCode(); + if (HasTicket) hash ^= Ticket.GetHashCode(); + if (HasBan) hash ^= Ban.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasNameRange) { + output.WriteRawTag(18); + output.WriteMessage(NameRange); + } + if (HasDescriptionRange) { + output.WriteRawTag(26); + output.WriteMessage(DescriptionRange); + } + if (HasBroadcastRange) { + output.WriteRawTag(34); + output.WriteMessage(BroadcastRange); + } + if (HasShortNameRange) { + output.WriteRawTag(58); + output.WriteMessage(ShortNameRange); + } + if (HasMember) { + output.WriteRawTag(202, 1); + output.WriteMessage(Member); + } + if (HasStream) { + output.WriteRawTag(210, 1); + output.WriteMessage(Stream); + } + if (HasInvitation) { + output.WriteRawTag(218, 1); + output.WriteMessage(Invitation); + } + if (HasSuggestion) { + output.WriteRawTag(226, 1); + output.WriteMessage(Suggestion); + } + if (HasTicket) { + output.WriteRawTag(234, 1); + output.WriteMessage(Ticket); + } + if (HasBan) { + output.WriteRawTag(242, 1); + output.WriteMessage(Ban); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasNameRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NameRange); + } + if (HasDescriptionRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DescriptionRange); + } + if (HasBroadcastRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BroadcastRange); + } + if (HasShortNameRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShortNameRange); + } + if (HasMember) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Member); + } + if (HasStream) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (HasInvitation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Invitation); + } + if (HasSuggestion) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Suggestion); + } + if (HasTicket) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Ticket); + } + if (HasBan) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Ban); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubTypeRangeSet other) { + if (other == null) { + return; + } + if (other.HasNameRange) { + if (!HasNameRange) { + NameRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + NameRange.MergeFrom(other.NameRange); + } + if (other.HasDescriptionRange) { + if (!HasDescriptionRange) { + DescriptionRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + DescriptionRange.MergeFrom(other.DescriptionRange); + } + if (other.HasBroadcastRange) { + if (!HasBroadcastRange) { + BroadcastRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + BroadcastRange.MergeFrom(other.BroadcastRange); + } + if (other.HasShortNameRange) { + if (!HasShortNameRange) { + ShortNameRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + ShortNameRange.MergeFrom(other.ShortNameRange); + } + if (other.HasMember) { + if (!HasMember) { + Member = new global::Bgs.Protocol.Club.V1.ClubMemberRangeSet(); + } + Member.MergeFrom(other.Member); + } + if (other.HasStream) { + if (!HasStream) { + Stream = new global::Bgs.Protocol.Club.V1.ClubStreamRangeSet(); + } + Stream.MergeFrom(other.Stream); + } + if (other.HasInvitation) { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitationRangeSet(); + } + Invitation.MergeFrom(other.Invitation); + } + if (other.HasSuggestion) { + if (!HasSuggestion) { + Suggestion = new global::Bgs.Protocol.Club.V1.ClubSuggestionRangeSet(); + } + Suggestion.MergeFrom(other.Suggestion); + } + if (other.HasTicket) { + if (!HasTicket) { + Ticket = new global::Bgs.Protocol.Club.V1.ClubTicketRangeSet(); + } + Ticket.MergeFrom(other.Ticket); + } + if (other.HasBan) { + if (!HasBan) { + Ban = new global::Bgs.Protocol.Club.V1.ClubBanRangeSet(); + } + Ban.MergeFrom(other.Ban); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (!HasNameRange) { + NameRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(NameRange); + break; + } + case 26: { + if (!HasDescriptionRange) { + DescriptionRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(DescriptionRange); + break; + } + case 34: { + if (!HasBroadcastRange) { + BroadcastRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(BroadcastRange); + break; + } + case 58: { + if (!HasShortNameRange) { + ShortNameRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(ShortNameRange); + break; + } + case 202: { + if (!HasMember) { + Member = new global::Bgs.Protocol.Club.V1.ClubMemberRangeSet(); + } + input.ReadMessage(Member); + break; + } + case 210: { + if (!HasStream) { + Stream = new global::Bgs.Protocol.Club.V1.ClubStreamRangeSet(); + } + input.ReadMessage(Stream); + break; + } + case 218: { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitationRangeSet(); + } + input.ReadMessage(Invitation); + break; + } + case 226: { + if (!HasSuggestion) { + Suggestion = new global::Bgs.Protocol.Club.V1.ClubSuggestionRangeSet(); + } + input.ReadMessage(Suggestion); + break; + } + case 234: { + if (!HasTicket) { + Ticket = new global::Bgs.Protocol.Club.V1.ClubTicketRangeSet(); + } + input.ReadMessage(Ticket); + break; + } + case 242: { + if (!HasBan) { + Ban = new global::Bgs.Protocol.Club.V1.ClubBanRangeSet(); + } + input.ReadMessage(Ban); + break; + } + } + } + } + + } + + public sealed partial class ClubMemberRangeSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubMemberRangeSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRangeSetReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMemberRangeSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMemberRangeSet(ClubMemberRangeSet other) : this() { + count_ = other.HasCount ? other.count_.Clone() : null; + voice_ = other.HasVoice ? other.voice_.Clone() : null; + streamSubscriptions_ = other.HasStreamSubscriptions ? other.streamSubscriptions_.Clone() : null; + noteRange_ = other.HasNoteRange ? other.noteRange_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubMemberRangeSet Clone() { + return new ClubMemberRangeSet(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Count { + get { return count_; } + set { + count_ = value; + } + } + /// Gets whether the count field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCount { + get { return count_ != null; } + } + /// Clears the value of the count field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCount() { + count_ = null; + } + + /// Field number for the "voice" field. + public const int VoiceFieldNumber = 3; + private global::Bgs.Protocol.UnsignedIntRange voice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Voice { + get { return voice_; } + set { + voice_ = value; + } + } + /// Gets whether the voice field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoice { + get { return voice_ != null; } + } + /// Clears the value of the voice field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoice() { + voice_ = null; + } + + /// Field number for the "stream_subscriptions" field. + public const int StreamSubscriptionsFieldNumber = 5; + private global::Bgs.Protocol.UnsignedIntRange streamSubscriptions_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange StreamSubscriptions { + get { return streamSubscriptions_; } + set { + streamSubscriptions_ = value; + } + } + /// Gets whether the stream_subscriptions field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamSubscriptions { + get { return streamSubscriptions_ != null; } + } + /// Clears the value of the stream_subscriptions field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamSubscriptions() { + streamSubscriptions_ = null; + } + + /// Field number for the "note_range" field. + public const int NoteRangeFieldNumber = 7; + private global::Bgs.Protocol.UnsignedIntRange noteRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange NoteRange { + get { return noteRange_; } + set { + noteRange_ = value; + } + } + /// Gets whether the note_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNoteRange { + get { return noteRange_ != null; } + } + /// Clears the value of the note_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNoteRange() { + noteRange_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubMemberRangeSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubMemberRangeSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Count, other.Count)) return false; + if (!object.Equals(Voice, other.Voice)) return false; + if (!object.Equals(StreamSubscriptions, other.StreamSubscriptions)) return false; + if (!object.Equals(NoteRange, other.NoteRange)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCount) hash ^= Count.GetHashCode(); + if (HasVoice) hash ^= Voice.GetHashCode(); + if (HasStreamSubscriptions) hash ^= StreamSubscriptions.GetHashCode(); + if (HasNoteRange) hash ^= NoteRange.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCount) { + output.WriteRawTag(10); + output.WriteMessage(Count); + } + if (HasVoice) { + output.WriteRawTag(26); + output.WriteMessage(Voice); + } + if (HasStreamSubscriptions) { + output.WriteRawTag(42); + output.WriteMessage(StreamSubscriptions); + } + if (HasNoteRange) { + output.WriteRawTag(58); + output.WriteMessage(NoteRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Count); + } + if (HasVoice) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Voice); + } + if (HasStreamSubscriptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StreamSubscriptions); + } + if (HasNoteRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NoteRange); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubMemberRangeSet other) { + if (other == null) { + return; + } + if (other.HasCount) { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + Count.MergeFrom(other.Count); + } + if (other.HasVoice) { + if (!HasVoice) { + Voice = new global::Bgs.Protocol.UnsignedIntRange(); + } + Voice.MergeFrom(other.Voice); + } + if (other.HasStreamSubscriptions) { + if (!HasStreamSubscriptions) { + StreamSubscriptions = new global::Bgs.Protocol.UnsignedIntRange(); + } + StreamSubscriptions.MergeFrom(other.StreamSubscriptions); + } + if (other.HasNoteRange) { + if (!HasNoteRange) { + NoteRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + NoteRange.MergeFrom(other.NoteRange); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Count); + break; + } + case 26: { + if (!HasVoice) { + Voice = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Voice); + break; + } + case 42: { + if (!HasStreamSubscriptions) { + StreamSubscriptions = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(StreamSubscriptions); + break; + } + case 58: { + if (!HasNoteRange) { + NoteRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(NoteRange); + break; + } + } + } + } + + } + + public sealed partial class ClubStreamRangeSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubStreamRangeSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRangeSetReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStreamRangeSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStreamRangeSet(ClubStreamRangeSet other) : this() { + count_ = other.HasCount ? other.count_.Clone() : null; + nameRange_ = other.HasNameRange ? other.nameRange_.Clone() : null; + subjectRange_ = other.HasSubjectRange ? other.subjectRange_.Clone() : null; + messageRange_ = other.HasMessageRange ? other.messageRange_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStreamRangeSet Clone() { + return new ClubStreamRangeSet(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Count { + get { return count_; } + set { + count_ = value; + } + } + /// Gets whether the count field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCount { + get { return count_ != null; } + } + /// Clears the value of the count field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCount() { + count_ = null; + } + + /// Field number for the "name_range" field. + public const int NameRangeFieldNumber = 3; + private global::Bgs.Protocol.UnsignedIntRange nameRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange NameRange { + get { return nameRange_; } + set { + nameRange_ = value; + } + } + /// Gets whether the name_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNameRange { + get { return nameRange_ != null; } + } + /// Clears the value of the name_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNameRange() { + nameRange_ = null; + } + + /// Field number for the "subject_range" field. + public const int SubjectRangeFieldNumber = 4; + private global::Bgs.Protocol.UnsignedIntRange subjectRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange SubjectRange { + get { return subjectRange_; } + set { + subjectRange_ = value; + } + } + /// Gets whether the subject_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubjectRange { + get { return subjectRange_ != null; } + } + /// Clears the value of the subject_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubjectRange() { + subjectRange_ = null; + } + + /// Field number for the "message_range" field. + public const int MessageRangeFieldNumber = 5; + private global::Bgs.Protocol.UnsignedIntRange messageRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange MessageRange { + get { return messageRange_; } + set { + messageRange_ = value; + } + } + /// Gets whether the message_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessageRange { + get { return messageRange_ != null; } + } + /// Clears the value of the message_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageRange() { + messageRange_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubStreamRangeSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubStreamRangeSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Count, other.Count)) return false; + if (!object.Equals(NameRange, other.NameRange)) return false; + if (!object.Equals(SubjectRange, other.SubjectRange)) return false; + if (!object.Equals(MessageRange, other.MessageRange)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCount) hash ^= Count.GetHashCode(); + if (HasNameRange) hash ^= NameRange.GetHashCode(); + if (HasSubjectRange) hash ^= SubjectRange.GetHashCode(); + if (HasMessageRange) hash ^= MessageRange.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCount) { + output.WriteRawTag(10); + output.WriteMessage(Count); + } + if (HasNameRange) { + output.WriteRawTag(26); + output.WriteMessage(NameRange); + } + if (HasSubjectRange) { + output.WriteRawTag(34); + output.WriteMessage(SubjectRange); + } + if (HasMessageRange) { + output.WriteRawTag(42); + output.WriteMessage(MessageRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Count); + } + if (HasNameRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NameRange); + } + if (HasSubjectRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubjectRange); + } + if (HasMessageRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageRange); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubStreamRangeSet other) { + if (other == null) { + return; + } + if (other.HasCount) { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + Count.MergeFrom(other.Count); + } + if (other.HasNameRange) { + if (!HasNameRange) { + NameRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + NameRange.MergeFrom(other.NameRange); + } + if (other.HasSubjectRange) { + if (!HasSubjectRange) { + SubjectRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + SubjectRange.MergeFrom(other.SubjectRange); + } + if (other.HasMessageRange) { + if (!HasMessageRange) { + MessageRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + MessageRange.MergeFrom(other.MessageRange); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Count); + break; + } + case 26: { + if (!HasNameRange) { + NameRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(NameRange); + break; + } + case 34: { + if (!HasSubjectRange) { + SubjectRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(SubjectRange); + break; + } + case 42: { + if (!HasMessageRange) { + MessageRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(MessageRange); + break; + } + } + } + } + + } + + public sealed partial class ClubInvitationRangeSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubInvitationRangeSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRangeSetReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubInvitationRangeSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubInvitationRangeSet(ClubInvitationRangeSet other) : this() { + count_ = other.HasCount ? other.count_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubInvitationRangeSet Clone() { + return new ClubInvitationRangeSet(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Count { + get { return count_; } + set { + count_ = value; + } + } + /// Gets whether the count field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCount { + get { return count_ != null; } + } + /// Clears the value of the count field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCount() { + count_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubInvitationRangeSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubInvitationRangeSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Count, other.Count)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCount) { + output.WriteRawTag(10); + output.WriteMessage(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubInvitationRangeSet other) { + if (other == null) { + return; + } + if (other.HasCount) { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + Count.MergeFrom(other.Count); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Count); + break; + } + } + } + } + + } + + public sealed partial class ClubSuggestionRangeSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSuggestionRangeSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRangeSetReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSuggestionRangeSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSuggestionRangeSet(ClubSuggestionRangeSet other) : this() { + count_ = other.HasCount ? other.count_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubSuggestionRangeSet Clone() { + return new ClubSuggestionRangeSet(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Count { + get { return count_; } + set { + count_ = value; + } + } + /// Gets whether the count field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCount { + get { return count_ != null; } + } + /// Clears the value of the count field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCount() { + count_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubSuggestionRangeSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubSuggestionRangeSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Count, other.Count)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCount) { + output.WriteRawTag(10); + output.WriteMessage(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubSuggestionRangeSet other) { + if (other == null) { + return; + } + if (other.HasCount) { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + Count.MergeFrom(other.Count); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Count); + break; + } + } + } + } + + } + + public sealed partial class ClubTicketRangeSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubTicketRangeSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRangeSetReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTicketRangeSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTicketRangeSet(ClubTicketRangeSet other) : this() { + count_ = other.HasCount ? other.count_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubTicketRangeSet Clone() { + return new ClubTicketRangeSet(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Count { + get { return count_; } + set { + count_ = value; + } + } + /// Gets whether the count field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCount { + get { return count_ != null; } + } + /// Clears the value of the count field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCount() { + count_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubTicketRangeSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubTicketRangeSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Count, other.Count)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCount) { + output.WriteRawTag(10); + output.WriteMessage(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubTicketRangeSet other) { + if (other == null) { + return; + } + if (other.HasCount) { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + Count.MergeFrom(other.Count); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Count); + break; + } + } + } + } + + } + + public sealed partial class ClubBanRangeSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubBanRangeSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRangeSetReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubBanRangeSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubBanRangeSet(ClubBanRangeSet other) : this() { + count_ = other.HasCount ? other.count_.Clone() : null; + reasonRange_ = other.HasReasonRange ? other.reasonRange_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubBanRangeSet Clone() { + return new ClubBanRangeSet(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Count { + get { return count_; } + set { + count_ = value; + } + } + /// Gets whether the count field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCount { + get { return count_ != null; } + } + /// Clears the value of the count field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCount() { + count_ = null; + } + + /// Field number for the "reason_range" field. + public const int ReasonRangeFieldNumber = 3; + private global::Bgs.Protocol.UnsignedIntRange reasonRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange ReasonRange { + get { return reasonRange_; } + set { + reasonRange_ = value; + } + } + /// Gets whether the reason_range field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReasonRange { + get { return reasonRange_ != null; } + } + /// Clears the value of the reason_range field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReasonRange() { + reasonRange_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubBanRangeSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubBanRangeSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Count, other.Count)) return false; + if (!object.Equals(ReasonRange, other.ReasonRange)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCount) hash ^= Count.GetHashCode(); + if (HasReasonRange) hash ^= ReasonRange.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCount) { + output.WriteRawTag(10); + output.WriteMessage(Count); + } + if (HasReasonRange) { + output.WriteRawTag(26); + output.WriteMessage(ReasonRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Count); + } + if (HasReasonRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReasonRange); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubBanRangeSet other) { + if (other == null) { + return; + } + if (other.HasCount) { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + Count.MergeFrom(other.Count); + } + if (other.HasReasonRange) { + if (!HasReasonRange) { + ReasonRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + ReasonRange.MergeFrom(other.ReasonRange); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasCount) { + Count = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Count); + break; + } + case 26: { + if (!HasReasonRange) { + ReasonRange = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(ReasonRange); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubRequest.cs b/Source/Framework/Proto/ClubRequest.cs new file mode 100644 index 000000000..0aca8b135 --- /dev/null +++ b/Source/Framework/Proto/ClubRequest.cs @@ -0,0 +1,17523 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_request.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_request.proto + public static partial class ClubRequestReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_request.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRiZ3MvbG93L3BiL2NsaWVudC9jbHViX3JlcXVlc3QucHJvdG8SFGJncy5w", + "cm90b2NvbC5jbHViLnYxGiJiZ3MvbG93L3BiL2NsaWVudC9jbHViX3R5cGVz", + "LnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9t", + "ZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIvY2xpZW50L2dsb2Jh", + "bF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOGJncy9sb3cvcGIv", + "Y2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnByb3Rv", + "GjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNl", + "X29wdGlvbnMucHJvdG8iVQoQU3Vic2NyaWJlUmVxdWVzdBIwCghhZ2VudF9p", + "ZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2Ns", + "dWJfaWQYAiABKAQiVwoSVW5zdWJzY3JpYmVSZXF1ZXN0EjAKCGFnZW50X2lk", + "GAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1", + "Yl9pZBgCIAEoBCJ7Cg1DcmVhdGVSZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgL", + "Mh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSOAoHb3B0aW9ucxgC", + "IAEoCzInLmJncy5wcm90b2NvbC5jbHViLnYxLkNsdWJDcmVhdGVPcHRpb25z", + "IiEKDkNyZWF0ZVJlc3BvbnNlEg8KB2NsdWJfaWQYASABKAQiUwoORGVzdHJv", + "eVJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIgASgEIloKFUdldERlc2NyaXB0", + "aW9uUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5j", + "bHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQiTQoWR2V0RGVzY3Jp", + "cHRpb25SZXNwb25zZRIzCgRjbHViGAEgASgLMiUuYmdzLnByb3RvY29sLmNs", + "dWIudjEuQ2x1YkRlc2NyaXB0aW9uInoKEkdldENsdWJUeXBlUmVxdWVzdBIw", + "CghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJl", + "cklkEjIKBHR5cGUYAiABKAsyJC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5Vbmlx", + "dWVDbHViVHlwZSK5AQoTR2V0Q2x1YlR5cGVSZXNwb25zZRIyCgR0eXBlGAEg", + "ASgLMiQuYmdzLnByb3RvY29sLmNsdWIudjEuVW5pcXVlQ2x1YlR5cGUSMwoI", + "cm9sZV9zZXQYAiABKAsyIS5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViUm9s", + "ZVNldBI5CglyYW5nZV9zZXQYAyABKAsyJi5iZ3MucHJvdG9jb2wuY2x1Yi52", + "MS5DbHViVHlwZVJhbmdlU2V0IpQBChZVcGRhdGVDbHViU3RhdGVSZXF1ZXN0", + "EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVt", + "YmVySWQSDwoHY2x1Yl9pZBgCIAEoBBI3CgdvcHRpb25zGAMgASgLMiYuYmdz", + "LnByb3RvY29sLmNsdWIudjEuQ2x1YlN0YXRlT3B0aW9ucyKaAQoZVXBkYXRl", + "Q2x1YlNldHRpbmdzUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5w", + "cm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSOgoH", + "b3B0aW9ucxgDIAEoCzIpLmJncy5wcm90b2NvbC5jbHViLnYxLkNsdWJTZXR0", + "aW5nc09wdGlvbnMijAEKC0pvaW5SZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgL", + "Mh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgC", + "IAEoBBI6CgdvcHRpb25zGAMgASgLMikuYmdzLnByb3RvY29sLmNsdWIudjEu", + "Q3JlYXRlTWVtYmVyT3B0aW9ucyJRCgxMZWF2ZVJlcXVlc3QSMAoIYWdlbnRf", + "aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj", + "bHViX2lkGAIgASgEIoMBCgtLaWNrUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEo", + "CzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQY", + "AiABKAQSMQoJdGFyZ2V0X2lkGAMgASgLMh4uYmdzLnByb3RvY29sLmNsdWIu", + "djEuTWVtYmVySWQiiAEKEEdldE1lbWJlclJlcXVlc3QSMAoIYWdlbnRfaWQY", + "ASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHVi", + "X2lkGAIgASgEEjEKCW1lbWJlcl9pZBgDIAEoCzIeLmJncy5wcm90b2NvbC5j", + "bHViLnYxLk1lbWJlcklkIkEKEUdldE1lbWJlclJlc3BvbnNlEiwKBm1lbWJl", + "chgBIAEoCzIcLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlciJsChFHZXRN", + "ZW1iZXJzUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2Nv", + "bC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSFAoMY29udGlu", + "dWF0aW9uGAQgASgEIlgKEkdldE1lbWJlcnNSZXNwb25zZRIsCgZtZW1iZXIY", + "ASADKAsyHC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXISFAoMY29udGlu", + "dWF0aW9uGAIgASgEIssBChhVcGRhdGVNZW1iZXJTdGF0ZVJlcXVlc3QSMAoI", + "YWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJ", + "ZBIPCgdjbHViX2lkGAIgASgEEjEKCW1lbWJlcl9pZBgDIAEoCzIeLmJncy5w", + "cm90b2NvbC5jbHViLnYxLk1lbWJlcklkEjkKB29wdGlvbnMYBSABKAsyKC5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJTdGF0ZU9wdGlvbnMioAEKHFVw", + "ZGF0ZVN1YnNjcmliZXJTdGF0ZVJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsy", + "Hi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIg", + "ASgEEj0KB29wdGlvbnMYAyABKAsyLC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5T", + "dWJzY3JpYmVyU3RhdGVPcHRpb25zIooBChFBc3NpZ25Sb2xlUmVxdWVzdBIw", + "CghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJl", + "cklkEg8KB2NsdWJfaWQYAiABKAQSMgoHb3B0aW9ucxgDIAEoCzIhLmJncy5w", + "cm90b2NvbC5jbHViLnYxLlJvbGVPcHRpb25zIowBChNVbmFzc2lnblJvbGVS", + "ZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIu", + "djEuTWVtYmVySWQSDwoHY2x1Yl9pZBgCIAEoBBIyCgdvcHRpb25zGAMgASgL", + "MiEuYmdzLnByb3RvY29sLmNsdWIudjEuUm9sZU9wdGlvbnMimAEKFVNlbmRJ", + "bnZpdGF0aW9uUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90", + "b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSPAoHb3B0", + "aW9ucxgDIAEoCzIrLmJncy5wcm90b2NvbC5jbHViLnYxLlNlbmRJbnZpdGF0", + "aW9uT3B0aW9ucyJzChdBY2NlcHRJbnZpdGF0aW9uUmVxdWVzdBIwCghhZ2Vu", + "dF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8K", + "B2NsdWJfaWQYAiABKAQSFQoNaW52aXRhdGlvbl9pZBgDIAEoBiJ0ChhEZWNs", + "aW5lSW52aXRhdGlvblJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyHi5iZ3Mu", + "cHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIgASgEEhUK", + "DWludml0YXRpb25faWQYAyABKAYicwoXUmV2b2tlSW52aXRhdGlvblJlcXVl", + "c3QSMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5N", + "ZW1iZXJJZBIPCgdjbHViX2lkGAIgASgEEhUKDWludml0YXRpb25faWQYAyAB", + "KAYicAoUR2V0SW52aXRhdGlvblJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsy", + "Hi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIg", + "ASgEEhUKDWludml0YXRpb25faWQYAyABKAYiUQoVR2V0SW52aXRhdGlvblJl", + "c3BvbnNlEjgKCmludml0YXRpb24YASABKAsyJC5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5DbHViSW52aXRhdGlvbiJwChVHZXRJbnZpdGF0aW9uc1JlcXVlc3QS", + "MAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1i", + "ZXJJZBIPCgdjbHViX2lkGAIgASgEEhQKDGNvbnRpbnVhdGlvbhgDIAEoBCJo", + "ChZHZXRJbnZpdGF0aW9uc1Jlc3BvbnNlEjgKCmludml0YXRpb24YASADKAsy", + "JC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViSW52aXRhdGlvbhIUCgxjb250", + "aW51YXRpb24YAiABKAQimAEKFVNlbmRTdWdnZXN0aW9uUmVxdWVzdBIwCghh", + "Z2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklk", + "Eg8KB2NsdWJfaWQYAiABKAQSPAoHb3B0aW9ucxgDIAEoCzIrLmJncy5wcm90", + "b2NvbC5jbHViLnYxLlNlbmRTdWdnZXN0aW9uT3B0aW9ucyJzChdBY2NlcHRT", + "dWdnZXN0aW9uUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90", + "b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSFQoNc3Vn", + "Z2VzdGlvbl9pZBgDIAEoBiJ0ChhEZWNsaW5lU3VnZ2VzdGlvblJlcXVlc3QS", + "MAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1i", + "ZXJJZBIPCgdjbHViX2lkGAIgASgEEhUKDXN1Z2dlc3Rpb25faWQYAyABKAYi", + "cAoUR2V0U3VnZ2VzdGlvblJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyHi5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIgASgE", + "EhUKDXN1Z2dlc3Rpb25faWQYAyABKAYiUQoVR2V0U3VnZ2VzdGlvblJlc3Bv", + "bnNlEjgKCnN1Z2dlc3Rpb24YASABKAsyJC5iZ3MucHJvdG9jb2wuY2x1Yi52", + "MS5DbHViU3VnZ2VzdGlvbiJwChVHZXRTdWdnZXN0aW9uc1JlcXVlc3QSMAoI", + "YWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJ", + "ZBIPCgdjbHViX2lkGAIgASgEEhQKDGNvbnRpbnVhdGlvbhgDIAEoBCJoChZH", + "ZXRTdWdnZXN0aW9uc1Jlc3BvbnNlEjgKCnN1Z2dlc3Rpb24YASADKAsyJC5i", + "Z3MucHJvdG9jb2wuY2x1Yi52MS5DbHViU3VnZ2VzdGlvbhIUCgxjb250aW51", + "YXRpb24YAiABKAQilAEKE0NyZWF0ZVRpY2tldFJlcXVlc3QSMAoIYWdlbnRf", + "aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj", + "bHViX2lkGAIgASgEEjoKB29wdGlvbnMYAyABKAsyKS5iZ3MucHJvdG9jb2wu", + "Y2x1Yi52MS5DcmVhdGVUaWNrZXRPcHRpb25zIkgKFENyZWF0ZVRpY2tldFJl", + "c3BvbnNlEjAKBnRpY2tldBgBIAEoCzIgLmJncy5wcm90b2NvbC5jbHViLnYx", + "LkNsdWJUaWNrZXQibAoURGVzdHJveVRpY2tldFJlcXVlc3QSMAoIYWdlbnRf", + "aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj", + "bHViX2lkGAIgASgEEhEKCXRpY2tldF9pZBgDIAEoCSJaChNSZWRlZW1UaWNr", + "ZXRSZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNs", + "dWIudjEuTWVtYmVySWQSEQoJdGlja2V0X2lkGAMgASgJIlcKEEdldFRpY2tl", + "dFJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5NZW1iZXJJZBIRCgl0aWNrZXRfaWQYAyABKAkiRQoRR2V0VGlja2V0", + "UmVzcG9uc2USMAoGdGlja2V0GAEgASgLMiAuYmdzLnByb3RvY29sLmNsdWIu", + "djEuQ2x1YlRpY2tldCJsChFHZXRUaWNrZXRzUmVxdWVzdBIwCghhZ2VudF9p", + "ZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2Ns", + "dWJfaWQYAiABKAQSFAoMY29udGludWF0aW9uGAMgASgEIlwKEkdldFRpY2tl", + "dHNSZXNwb25zZRIwCgZ0aWNrZXQYASADKAsyIC5iZ3MucHJvdG9jb2wuY2x1", + "Yi52MS5DbHViVGlja2V0EhQKDGNvbnRpbnVhdGlvbhgCIAEoBCKIAQoNQWRk", + "QmFuUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5j", + "bHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSNAoHb3B0aW9ucxgD", + "IAEoCzIjLmJncy5wcm90b2NvbC5jbHViLnYxLkFkZEJhbk9wdGlvbnMiiAEK", + "EFJlbW92ZUJhblJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIgASgEEjEKCXRh", + "cmdldF9pZBgDIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklk", + "IoUBCg1HZXRCYW5SZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnBy", + "b3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgCIAEoBBIxCgl0", + "YXJnZXRfaWQYAyABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJ", + "ZCI8Cg5HZXRCYW5SZXNwb25zZRIqCgNiYW4YASABKAsyHS5iZ3MucHJvdG9j", + "b2wuY2x1Yi52MS5DbHViQmFuImkKDkdldEJhbnNSZXF1ZXN0EjAKCGFnZW50", + "X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoH", + "Y2x1Yl9pZBgCIAEoBBIUCgxjb250aW51YXRpb24YAyABKAQiUwoPR2V0QmFu", + "c1Jlc3BvbnNlEioKA2JhbhgBIAMoCzIdLmJncy5wcm90b2NvbC5jbHViLnYx", + "LkNsdWJCYW4SFAoMY29udGludWF0aW9uGAIgASgEIm4KFlN1YnNjcmliZVN0", + "cmVhbVJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wu", + "Y2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIgASgEEhEKCXN0cmVhbV9p", + "ZBgDIAMoBCJwChhVbnN1YnNjcmliZVN0cmVhbVJlcXVlc3QSMAoIYWdlbnRf", + "aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj", + "bHViX2lkGAIgASgEEhEKCXN0cmVhbV9pZBgDIAMoBCKUAQoTQ3JlYXRlU3Ry", + "ZWFtUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5j", + "bHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSOgoHb3B0aW9ucxgD", + "IAEoCzIpLmJncy5wcm90b2NvbC5jbHViLnYxLkNyZWF0ZVN0cmVhbU9wdGlv", + "bnMiOgoUQ3JlYXRlU3RyZWFtUmVzcG9uc2USDwoHY2x1Yl9pZBgBIAEoBBIR", + "CglzdHJlYW1faWQYAiABKAQibAoURGVzdHJveVN0cmVhbVJlcXVlc3QSMAoI", + "YWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJ", + "ZBIPCgdjbHViX2lkGAIgASgEEhEKCXN0cmVhbV9pZBgDIAEoBCJoChBHZXRT", + "dHJlYW1SZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29s", + "LmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgCIAEoBBIRCglzdHJlYW1f", + "aWQYAyABKAQiQQoRR2V0U3RyZWFtUmVzcG9uc2USLAoGc3RyZWFtGAEgASgL", + "MhwuYmdzLnByb3RvY29sLmNsdWIudjEuU3RyZWFtImwKEUdldFN0cmVhbXNS", + "ZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIu", + "djEuTWVtYmVySWQSDwoHY2x1Yl9pZBgCIAEoBBIUCgxjb250aW51YXRpb24Y", + "AyABKAQiiAEKEkdldFN0cmVhbXNSZXNwb25zZRIsCgZzdHJlYW0YASADKAsy", + "HC5iZ3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW0SLgoEdmlldxgCIAMoCzIg", + "LmJncy5wcm90b2NvbC5jbHViLnYxLlN0cmVhbVZpZXcSFAoMY29udGludWF0", + "aW9uGAMgASgEIqsBChhVcGRhdGVTdHJlYW1TdGF0ZVJlcXVlc3QSMAoIYWdl", + "bnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIP", + "CgdjbHViX2lkGAIgASgEEhEKCXN0cmVhbV9pZBgDIAEoBBI5CgdvcHRpb25z", + "GAUgASgLMiguYmdzLnByb3RvY29sLmNsdWIudjEuU3RyZWFtU3RhdGVPcHRp", + "b25zInwKFVNldFN0cmVhbUZvY3VzUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEo", + "CzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQY", + "AiABKAQSEQoJc3RyZWFtX2lkGAMgASgEEg0KBWZvY3VzGAQgASgIIqkBChRD", + "cmVhdGVNZXNzYWdlUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5w", + "cm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSEQoJ", + "c3RyZWFtX2lkGAMgASgEEjsKB29wdGlvbnMYBCABKAsyKi5iZ3MucHJvdG9j", + "b2wuY2x1Yi52MS5DcmVhdGVNZXNzYWdlT3B0aW9ucyJNChVDcmVhdGVNZXNz", + "YWdlUmVzcG9uc2USNAoHbWVzc2FnZRgBIAEoCzIjLmJncy5wcm90b2NvbC5j", + "bHViLnYxLlN0cmVhbU1lc3NhZ2UimgEKFURlc3Ryb3lNZXNzYWdlUmVxdWVz", + "dBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1l", + "bWJlcklkEg8KB2NsdWJfaWQYAiABKAQSEQoJc3RyZWFtX2lkGAMgASgEEisK", + "Cm1lc3NhZ2VfaWQYBCABKAsyFy5iZ3MucHJvdG9jb2wuTWVzc2FnZUlkIk4K", + "FkRlc3Ryb3lNZXNzYWdlUmVzcG9uc2USNAoHbWVzc2FnZRgBIAEoCzIjLmJn", + "cy5wcm90b2NvbC5jbHViLnYxLlN0cmVhbU1lc3NhZ2Ui1AEKEkVkaXRNZXNz", + "YWdlUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5j", + "bHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSEQoJc3RyZWFtX2lk", + "GAMgASgEEisKCm1lc3NhZ2VfaWQYBCABKAsyFy5iZ3MucHJvdG9jb2wuTWVz", + "c2FnZUlkEjsKB29wdGlvbnMYBSABKAsyKi5iZ3MucHJvdG9jb2wuY2x1Yi52", + "MS5DcmVhdGVNZXNzYWdlT3B0aW9ucyJLChNFZGl0TWVzc2FnZVJlc3BvbnNl", + "EjQKB21lc3NhZ2UYASABKAsyIy5iZ3MucHJvdG9jb2wuY2x1Yi52MS5TdHJl", + "YW1NZXNzYWdlIm8KF1NldE1lc3NhZ2VQaW5uZWRSZXF1ZXN0EjAKCGFnZW50", + "X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoH", + "Y2x1Yl9pZBgCIAEoBBIRCglzdHJlYW1faWQYAyABKAQisQEKGVNldFR5cGlu", + "Z0luZGljYXRvclJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJv", + "dG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIgASgEEhEKCXN0", + "cmVhbV9pZBgDIAEoBBI+CglpbmRpY2F0b3IYBCABKA4yHS5iZ3MucHJvdG9j", + "b2wuVHlwaW5nSW5kaWNhdG9yOgxUWVBJTkdfU1RBUlQimgEKHEFkdmFuY2VT", + "dHJlYW1WaWV3VGltZVJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyHi5iZ3Mu", + "cHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAIgASgEEiAK", + "FHN0cmVhbV9pZF9kZXByZWNhdGVkGAMgASgEQgIYARIVCglzdHJlYW1faWQY", + "BCADKARCAhABInsKI0FkdmFuY2VTdHJlYW1NZW50aW9uVmlld1RpbWVSZXF1", + "ZXN0EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEu", + "TWVtYmVySWQSDwoHY2x1Yl9pZBgCIAEoBBIRCglzdHJlYW1faWQYAyABKAQi", + "YwoeQWR2YW5jZUFjdGl2aXR5Vmlld1RpbWVSZXF1ZXN0EjAKCGFnZW50X2lk", + "GAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1", + "Yl9pZBgCIAEoBCKfAQoXR2V0U3RyZWFtSGlzdG9yeVJlcXVlc3QSMAoIYWdl", + "bnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIP", + "CgdjbHViX2lkGAIgASgEEhEKCXN0cmVhbV9pZBgDIAEoBBIuCgdvcHRpb25z", + "GAQgASgLMh0uYmdzLnByb3RvY29sLkdldEV2ZW50T3B0aW9ucyJmChhHZXRT", + "dHJlYW1IaXN0b3J5UmVzcG9uc2USNAoHbWVzc2FnZRgBIAMoCzIjLmJncy5w", + "cm90b2NvbC5jbHViLnYxLlN0cmVhbU1lc3NhZ2USFAoMY29udGludWF0aW9u", + "GAIgASgEIpwBChdHZXRTdHJlYW1NZXNzYWdlUmVxdWVzdBIwCghhZ2VudF9p", + "ZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2Ns", + "dWJfaWQYAiABKAQSEQoJc3RyZWFtX2lkGAMgASgEEisKCm1lc3NhZ2VfaWQY", + "BCABKAsyFy5iZ3MucHJvdG9jb2wuTWVzc2FnZUlkIlAKGEdldFN0cmVhbU1l", + "c3NhZ2VSZXNwb25zZRI0CgdtZXNzYWdlGAEgASgLMiMuYmdzLnByb3RvY29s", + "LmNsdWIudjEuU3RyZWFtTWVzc2FnZSKLAQoWR2V0Q2x1YkFjdGl2aXR5UmVx", + "dWVzdBIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYx", + "Lk1lbWJlcklkEg8KB2NsdWJfaWQYAiABKAQSLgoHb3B0aW9ucxgDIAEoCzId", + "LmJncy5wcm90b2NvbC5HZXRFdmVudE9wdGlvbnMiLwoXR2V0Q2x1YkFjdGl2", + "aXR5UmVzcG9uc2USFAoMY29udGludWF0aW9uGAIgASgEInIKGkdldFN0cmVh", + "bVZvaWNlVG9rZW5SZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnBy", + "b3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgCIAEoBBIRCglz", + "dHJlYW1faWQYAyABKAQiZwobR2V0U3RyZWFtVm9pY2VUb2tlblJlc3BvbnNl", + "EhMKC2NoYW5uZWxfdXJpGAEgASgJEjMKC2NyZWRlbnRpYWxzGAIgASgLMh4u", + "YmdzLnByb3RvY29sLlZvaWNlQ3JlZGVudGlhbHMipQEKGktpY2tGcm9tU3Ry", + "ZWFtVm9pY2VSZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3Rv", + "Y29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgCIAEoBBIRCglzdHJl", + "YW1faWQYAyABKAQSMQoJdGFyZ2V0X2lkGAQgASgLMh4uYmdzLnByb3RvY29s", + "LmNsdWIudjEuTWVtYmVySWRQAA==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscribeRequest), global::Bgs.Protocol.Club.V1.SubscribeRequest.Parser, new[]{ "AgentId", "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UnsubscribeRequest), global::Bgs.Protocol.Club.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateRequest), global::Bgs.Protocol.Club.V1.CreateRequest.Parser, new[]{ "AgentId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateResponse), global::Bgs.Protocol.Club.V1.CreateResponse.Parser, new[]{ "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.DestroyRequest), global::Bgs.Protocol.Club.V1.DestroyRequest.Parser, new[]{ "AgentId", "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetDescriptionRequest), global::Bgs.Protocol.Club.V1.GetDescriptionRequest.Parser, new[]{ "AgentId", "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetDescriptionResponse), global::Bgs.Protocol.Club.V1.GetDescriptionResponse.Parser, new[]{ "Club" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetClubTypeRequest), global::Bgs.Protocol.Club.V1.GetClubTypeRequest.Parser, new[]{ "AgentId", "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetClubTypeResponse), global::Bgs.Protocol.Club.V1.GetClubTypeResponse.Parser, new[]{ "Type", "RoleSet", "RangeSet" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UpdateClubStateRequest), global::Bgs.Protocol.Club.V1.UpdateClubStateRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UpdateClubSettingsRequest), global::Bgs.Protocol.Club.V1.UpdateClubSettingsRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.JoinRequest), global::Bgs.Protocol.Club.V1.JoinRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.LeaveRequest), global::Bgs.Protocol.Club.V1.LeaveRequest.Parser, new[]{ "AgentId", "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.KickRequest), global::Bgs.Protocol.Club.V1.KickRequest.Parser, new[]{ "AgentId", "ClubId", "TargetId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetMemberRequest), global::Bgs.Protocol.Club.V1.GetMemberRequest.Parser, new[]{ "AgentId", "ClubId", "MemberId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetMemberResponse), global::Bgs.Protocol.Club.V1.GetMemberResponse.Parser, new[]{ "Member" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetMembersRequest), global::Bgs.Protocol.Club.V1.GetMembersRequest.Parser, new[]{ "AgentId", "ClubId", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetMembersResponse), global::Bgs.Protocol.Club.V1.GetMembersResponse.Parser, new[]{ "Member", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UpdateMemberStateRequest), global::Bgs.Protocol.Club.V1.UpdateMemberStateRequest.Parser, new[]{ "AgentId", "ClubId", "MemberId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UpdateSubscriberStateRequest), global::Bgs.Protocol.Club.V1.UpdateSubscriberStateRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AssignRoleRequest), global::Bgs.Protocol.Club.V1.AssignRoleRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UnassignRoleRequest), global::Bgs.Protocol.Club.V1.UnassignRoleRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SendInvitationRequest), global::Bgs.Protocol.Club.V1.SendInvitationRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AcceptInvitationRequest), global::Bgs.Protocol.Club.V1.AcceptInvitationRequest.Parser, new[]{ "AgentId", "ClubId", "InvitationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.DeclineInvitationRequest), global::Bgs.Protocol.Club.V1.DeclineInvitationRequest.Parser, new[]{ "AgentId", "ClubId", "InvitationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RevokeInvitationRequest), global::Bgs.Protocol.Club.V1.RevokeInvitationRequest.Parser, new[]{ "AgentId", "ClubId", "InvitationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetInvitationRequest), global::Bgs.Protocol.Club.V1.GetInvitationRequest.Parser, new[]{ "AgentId", "ClubId", "InvitationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetInvitationResponse), global::Bgs.Protocol.Club.V1.GetInvitationResponse.Parser, new[]{ "Invitation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetInvitationsRequest), global::Bgs.Protocol.Club.V1.GetInvitationsRequest.Parser, new[]{ "AgentId", "ClubId", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetInvitationsResponse), global::Bgs.Protocol.Club.V1.GetInvitationsResponse.Parser, new[]{ "Invitation", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SendSuggestionRequest), global::Bgs.Protocol.Club.V1.SendSuggestionRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AcceptSuggestionRequest), global::Bgs.Protocol.Club.V1.AcceptSuggestionRequest.Parser, new[]{ "AgentId", "ClubId", "SuggestionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.DeclineSuggestionRequest), global::Bgs.Protocol.Club.V1.DeclineSuggestionRequest.Parser, new[]{ "AgentId", "ClubId", "SuggestionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetSuggestionRequest), global::Bgs.Protocol.Club.V1.GetSuggestionRequest.Parser, new[]{ "AgentId", "ClubId", "SuggestionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetSuggestionResponse), global::Bgs.Protocol.Club.V1.GetSuggestionResponse.Parser, new[]{ "Suggestion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetSuggestionsRequest), global::Bgs.Protocol.Club.V1.GetSuggestionsRequest.Parser, new[]{ "AgentId", "ClubId", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetSuggestionsResponse), global::Bgs.Protocol.Club.V1.GetSuggestionsResponse.Parser, new[]{ "Suggestion", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateTicketRequest), global::Bgs.Protocol.Club.V1.CreateTicketRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateTicketResponse), global::Bgs.Protocol.Club.V1.CreateTicketResponse.Parser, new[]{ "Ticket" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.DestroyTicketRequest), global::Bgs.Protocol.Club.V1.DestroyTicketRequest.Parser, new[]{ "AgentId", "ClubId", "TicketId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RedeemTicketRequest), global::Bgs.Protocol.Club.V1.RedeemTicketRequest.Parser, new[]{ "AgentId", "TicketId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetTicketRequest), global::Bgs.Protocol.Club.V1.GetTicketRequest.Parser, new[]{ "AgentId", "TicketId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetTicketResponse), global::Bgs.Protocol.Club.V1.GetTicketResponse.Parser, new[]{ "Ticket" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetTicketsRequest), global::Bgs.Protocol.Club.V1.GetTicketsRequest.Parser, new[]{ "AgentId", "ClubId", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetTicketsResponse), global::Bgs.Protocol.Club.V1.GetTicketsResponse.Parser, new[]{ "Ticket", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AddBanRequest), global::Bgs.Protocol.Club.V1.AddBanRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RemoveBanRequest), global::Bgs.Protocol.Club.V1.RemoveBanRequest.Parser, new[]{ "AgentId", "ClubId", "TargetId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetBanRequest), global::Bgs.Protocol.Club.V1.GetBanRequest.Parser, new[]{ "AgentId", "ClubId", "TargetId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetBanResponse), global::Bgs.Protocol.Club.V1.GetBanResponse.Parser, new[]{ "Ban" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetBansRequest), global::Bgs.Protocol.Club.V1.GetBansRequest.Parser, new[]{ "AgentId", "ClubId", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetBansResponse), global::Bgs.Protocol.Club.V1.GetBansResponse.Parser, new[]{ "Ban", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscribeStreamRequest), global::Bgs.Protocol.Club.V1.SubscribeStreamRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UnsubscribeStreamRequest), global::Bgs.Protocol.Club.V1.UnsubscribeStreamRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateStreamRequest), global::Bgs.Protocol.Club.V1.CreateStreamRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateStreamResponse), global::Bgs.Protocol.Club.V1.CreateStreamResponse.Parser, new[]{ "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.DestroyStreamRequest), global::Bgs.Protocol.Club.V1.DestroyStreamRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamRequest), global::Bgs.Protocol.Club.V1.GetStreamRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamResponse), global::Bgs.Protocol.Club.V1.GetStreamResponse.Parser, new[]{ "Stream" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamsRequest), global::Bgs.Protocol.Club.V1.GetStreamsRequest.Parser, new[]{ "AgentId", "ClubId", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamsResponse), global::Bgs.Protocol.Club.V1.GetStreamsResponse.Parser, new[]{ "Stream", "View", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UpdateStreamStateRequest), global::Bgs.Protocol.Club.V1.UpdateStreamStateRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SetStreamFocusRequest), global::Bgs.Protocol.Club.V1.SetStreamFocusRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Focus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateMessageRequest), global::Bgs.Protocol.Club.V1.CreateMessageRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateMessageResponse), global::Bgs.Protocol.Club.V1.CreateMessageResponse.Parser, new[]{ "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.DestroyMessageRequest), global::Bgs.Protocol.Club.V1.DestroyMessageRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "MessageId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.DestroyMessageResponse), global::Bgs.Protocol.Club.V1.DestroyMessageResponse.Parser, new[]{ "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.EditMessageRequest), global::Bgs.Protocol.Club.V1.EditMessageRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "MessageId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.EditMessageResponse), global::Bgs.Protocol.Club.V1.EditMessageResponse.Parser, new[]{ "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SetMessagePinnedRequest), global::Bgs.Protocol.Club.V1.SetMessagePinnedRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SetTypingIndicatorRequest), global::Bgs.Protocol.Club.V1.SetTypingIndicatorRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Indicator" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AdvanceStreamViewTimeRequest), global::Bgs.Protocol.Club.V1.AdvanceStreamViewTimeRequest.Parser, new[]{ "AgentId", "ClubId", "StreamIdDeprecated", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AdvanceStreamMentionViewTimeRequest), global::Bgs.Protocol.Club.V1.AdvanceStreamMentionViewTimeRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AdvanceActivityViewTimeRequest), global::Bgs.Protocol.Club.V1.AdvanceActivityViewTimeRequest.Parser, new[]{ "AgentId", "ClubId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamHistoryRequest), global::Bgs.Protocol.Club.V1.GetStreamHistoryRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamHistoryResponse), global::Bgs.Protocol.Club.V1.GetStreamHistoryResponse.Parser, new[]{ "Message", "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamMessageRequest), global::Bgs.Protocol.Club.V1.GetStreamMessageRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "MessageId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamMessageResponse), global::Bgs.Protocol.Club.V1.GetStreamMessageResponse.Parser, new[]{ "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetClubActivityRequest), global::Bgs.Protocol.Club.V1.GetClubActivityRequest.Parser, new[]{ "AgentId", "ClubId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetClubActivityResponse), global::Bgs.Protocol.Club.V1.GetClubActivityResponse.Parser, new[]{ "Continuation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamVoiceTokenRequest), global::Bgs.Protocol.Club.V1.GetStreamVoiceTokenRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.GetStreamVoiceTokenResponse), global::Bgs.Protocol.Club.V1.GetStreamVoiceTokenResponse.Parser, new[]{ "ChannelUri", "Credentials" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.KickFromStreamVoiceRequest), global::Bgs.Protocol.Club.V1.KickFromStreamVoiceRequest.Parser, new[]{ "AgentId", "ClubId", "StreamId", "TargetId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SubscribeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeRequest(SubscribeRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeRequest Clone() { + return new SubscribeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscribeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscribeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscribeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class UnsubscribeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeRequest(UnsubscribeRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeRequest Clone() { + return new UnsubscribeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnsubscribeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnsubscribeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnsubscribeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class CreateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateRequest(CreateRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateRequest Clone() { + return new CreateRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubCreateOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubCreateOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasOptions) { + output.WriteRawTag(18); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubCreateOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubCreateOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class CreateResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateResponse(CreateResponse other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateResponse Clone() { + return new CreateResponse(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateResponse other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class DestroyRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DestroyRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyRequest(DestroyRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyRequest Clone() { + return new DestroyRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DestroyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DestroyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DestroyRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetDescriptionRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDescriptionRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetDescriptionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetDescriptionRequest(GetDescriptionRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetDescriptionRequest Clone() { + return new GetDescriptionRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetDescriptionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetDescriptionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetDescriptionRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetDescriptionResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDescriptionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetDescriptionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetDescriptionResponse(GetDescriptionResponse other) : this() { + club_ = other.HasClub ? other.club_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetDescriptionResponse Clone() { + return new GetDescriptionResponse(this); + } + + /// Field number for the "club" field. + public const int ClubFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubDescription club_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubDescription Club { + get { return club_; } + set { + club_ = value; + } + } + /// Gets whether the club field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClub { + get { return club_ != null; } + } + /// Clears the value of the club field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClub() { + club_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetDescriptionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetDescriptionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Club, other.Club)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClub) hash ^= Club.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClub) { + output.WriteRawTag(10); + output.WriteMessage(Club); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClub) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Club); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetDescriptionResponse other) { + if (other == null) { + return; + } + if (other.HasClub) { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); + } + Club.MergeFrom(other.Club); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasClub) { + Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); + } + input.ReadMessage(Club); + break; + } + } + } + } + + } + + public sealed partial class GetClubTypeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetClubTypeRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubTypeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubTypeRequest(GetClubTypeRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + type_ = other.HasType ? other.type_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubTypeRequest Clone() { + return new GetClubTypeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.UniqueClubType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.UniqueClubType Type { + get { return type_; } + set { + type_ = value; + } + } + /// Gets whether the type field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the type field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetClubTypeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetClubTypeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(Type, other.Type)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteMessage(Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetClubTypeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasType) { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + Type.MergeFrom(other.Type); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + input.ReadMessage(Type); + break; + } + } + } + } + + } + + public sealed partial class GetClubTypeResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetClubTypeResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubTypeResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubTypeResponse(GetClubTypeResponse other) : this() { + type_ = other.HasType ? other.type_.Clone() : null; + roleSet_ = other.HasRoleSet ? other.roleSet_.Clone() : null; + rangeSet_ = other.HasRangeSet ? other.rangeSet_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubTypeResponse Clone() { + return new GetClubTypeResponse(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.UniqueClubType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.UniqueClubType Type { + get { return type_; } + set { + type_ = value; + } + } + /// Gets whether the type field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the type field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + + /// Field number for the "role_set" field. + public const int RoleSetFieldNumber = 2; + private global::Bgs.Protocol.Club.V1.ClubRoleSet roleSet_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubRoleSet RoleSet { + get { return roleSet_; } + set { + roleSet_ = value; + } + } + /// Gets whether the role_set field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRoleSet { + get { return roleSet_ != null; } + } + /// Clears the value of the role_set field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRoleSet() { + roleSet_ = null; + } + + /// Field number for the "range_set" field. + public const int RangeSetFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.ClubTypeRangeSet rangeSet_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubTypeRangeSet RangeSet { + get { return rangeSet_; } + set { + rangeSet_ = value; + } + } + /// Gets whether the range_set field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRangeSet { + get { return rangeSet_ != null; } + } + /// Clears the value of the range_set field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRangeSet() { + rangeSet_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetClubTypeResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetClubTypeResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Type, other.Type)) return false; + if (!object.Equals(RoleSet, other.RoleSet)) return false; + if (!object.Equals(RangeSet, other.RangeSet)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasRoleSet) hash ^= RoleSet.GetHashCode(); + if (HasRangeSet) hash ^= RangeSet.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasType) { + output.WriteRawTag(10); + output.WriteMessage(Type); + } + if (HasRoleSet) { + output.WriteRawTag(18); + output.WriteMessage(RoleSet); + } + if (HasRangeSet) { + output.WriteRawTag(26); + output.WriteMessage(RangeSet); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Type); + } + if (HasRoleSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoleSet); + } + if (HasRangeSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RangeSet); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetClubTypeResponse other) { + if (other == null) { + return; + } + if (other.HasType) { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + Type.MergeFrom(other.Type); + } + if (other.HasRoleSet) { + if (!HasRoleSet) { + RoleSet = new global::Bgs.Protocol.Club.V1.ClubRoleSet(); + } + RoleSet.MergeFrom(other.RoleSet); + } + if (other.HasRangeSet) { + if (!HasRangeSet) { + RangeSet = new global::Bgs.Protocol.Club.V1.ClubTypeRangeSet(); + } + RangeSet.MergeFrom(other.RangeSet); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasType) { + Type = new global::Bgs.Protocol.Club.V1.UniqueClubType(); + } + input.ReadMessage(Type); + break; + } + case 18: { + if (!HasRoleSet) { + RoleSet = new global::Bgs.Protocol.Club.V1.ClubRoleSet(); + } + input.ReadMessage(RoleSet); + break; + } + case 26: { + if (!HasRangeSet) { + RangeSet = new global::Bgs.Protocol.Club.V1.ClubTypeRangeSet(); + } + input.ReadMessage(RangeSet); + break; + } + } + } + } + + } + + public sealed partial class UpdateClubStateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateClubStateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubStateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubStateRequest(UpdateClubStateRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubStateRequest Clone() { + return new UpdateClubStateRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.ClubStateOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubStateOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateClubStateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UpdateClubStateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UpdateClubStateRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubStateOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubStateOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class UpdateClubSettingsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateClubSettingsRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubSettingsRequest(UpdateClubSettingsRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateClubSettingsRequest Clone() { + return new UpdateClubSettingsRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.ClubSettingsOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSettingsOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateClubSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UpdateClubSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UpdateClubSettingsRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubSettingsOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.ClubSettingsOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class JoinRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public JoinRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public JoinRequest(JoinRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public JoinRequest Clone() { + return new JoinRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.CreateMemberOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.CreateMemberOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as JoinRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(JoinRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(JoinRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateMemberOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateMemberOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class LeaveRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeaveRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LeaveRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LeaveRequest(LeaveRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LeaveRequest Clone() { + return new LeaveRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as LeaveRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(LeaveRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(LeaveRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class KickRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KickRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KickRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KickRequest(KickRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KickRequest Clone() { + return new KickRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as KickRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(KickRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(TargetId, other.TargetId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasTargetId) { + output.WriteRawTag(26); + output.WriteMessage(TargetId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(KickRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + TargetId.MergeFrom(other.TargetId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(TargetId); + break; + } + } + } + } + + } + + public sealed partial class GetMemberRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMemberRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMemberRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMemberRequest(GetMemberRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMemberRequest Clone() { + return new GetMemberRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetMemberRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetMemberRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(MemberId, other.MemberId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasMemberId) hash ^= MemberId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasMemberId) { + output.WriteRawTag(26); + output.WriteMessage(MemberId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetMemberRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + } + } + } + + } + + public sealed partial class GetMemberResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMemberResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMemberResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMemberResponse(GetMemberResponse other) : this() { + member_ = other.HasMember ? other.member_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMemberResponse Clone() { + return new GetMemberResponse(this); + } + + /// Field number for the "member" field. + public const int MemberFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.Member member_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.Member Member { + get { return member_; } + set { + member_ = value; + } + } + /// Gets whether the member field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMember { + get { return member_ != null; } + } + /// Clears the value of the member field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMember() { + member_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetMemberResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetMemberResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Member, other.Member)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMember) hash ^= Member.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMember) { + output.WriteRawTag(10); + output.WriteMessage(Member); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMember) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Member); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetMemberResponse other) { + if (other == null) { + return; + } + if (other.HasMember) { + if (!HasMember) { + Member = new global::Bgs.Protocol.Club.V1.Member(); + } + Member.MergeFrom(other.Member); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMember) { + Member = new global::Bgs.Protocol.Club.V1.Member(); + } + input.ReadMessage(Member); + break; + } + } + } + } + + } + + public sealed partial class GetMembersRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMembersRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMembersRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMembersRequest(GetMembersRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMembersRequest Clone() { + return new GetMembersRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 4; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 2) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 2; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetMembersRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetMembersRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasContinuation) { + output.WriteRawTag(32); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetMembersRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 32: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetMembersResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMembersResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMembersResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMembersResponse(GetMembersResponse other) : this() { + _hasBits0 = other._hasBits0; + member_ = other.member_.Clone(); + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetMembersResponse Clone() { + return new GetMembersResponse(this); + } + + /// Field number for the "member" field. + public const int MemberFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_member_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.Member.Parser); + private readonly pbc::RepeatedField member_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Member { + get { return member_; } + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 2; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetMembersResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetMembersResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!member_.Equals(other.member_)) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= member_.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + member_.WriteTo(output, _repeated_member_codec); + if (HasContinuation) { + output.WriteRawTag(16); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += member_.CalculateSize(_repeated_member_codec); + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetMembersResponse other) { + if (other == null) { + return; + } + member_.Add(other.member_); + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + member_.AddEntriesFrom(input, _repeated_member_codec); + break; + } + case 16: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class UpdateMemberStateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMemberStateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateMemberStateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateMemberStateRequest(UpdateMemberStateRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateMemberStateRequest Clone() { + return new UpdateMemberStateRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.MemberStateOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberStateOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateMemberStateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UpdateMemberStateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(MemberId, other.MemberId)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasMemberId) hash ^= MemberId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasMemberId) { + output.WriteRawTag(26); + output.WriteMessage(MemberId); + } + if (HasOptions) { + output.WriteRawTag(42); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UpdateMemberStateRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.MemberStateOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 42: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.MemberStateOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class UpdateSubscriberStateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateSubscriberStateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateSubscriberStateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateSubscriberStateRequest(UpdateSubscriberStateRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateSubscriberStateRequest Clone() { + return new UpdateSubscriberStateRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.SubscriberStateOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.SubscriberStateOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateSubscriberStateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UpdateSubscriberStateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UpdateSubscriberStateRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.SubscriberStateOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.SubscriberStateOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class AssignRoleRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssignRoleRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AssignRoleRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AssignRoleRequest(AssignRoleRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AssignRoleRequest Clone() { + return new AssignRoleRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.RoleOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.RoleOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AssignRoleRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AssignRoleRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AssignRoleRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.RoleOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.RoleOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class UnassignRoleRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnassignRoleRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnassignRoleRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnassignRoleRequest(UnassignRoleRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnassignRoleRequest Clone() { + return new UnassignRoleRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.RoleOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.RoleOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnassignRoleRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnassignRoleRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnassignRoleRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.RoleOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.RoleOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class SendInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationRequest(SendInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationRequest Clone() { + return new SendInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.SendInvitationOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.SendInvitationOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SendInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SendInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SendInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.SendInvitationOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.SendInvitationOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class AcceptInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcceptInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationRequest(AcceptInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + invitationId_ = other.invitationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationRequest Clone() { + return new AcceptInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 3; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 2) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 2; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AcceptInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AcceptInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (InvitationId != other.InvitationId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasInvitationId) { + output.WriteRawTag(25); + output.WriteFixed64(InvitationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AcceptInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 25: { + InvitationId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class DeclineInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeclineInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineInvitationRequest(DeclineInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + invitationId_ = other.invitationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineInvitationRequest Clone() { + return new DeclineInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 3; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 2) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 2; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DeclineInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DeclineInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (InvitationId != other.InvitationId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasInvitationId) { + output.WriteRawTag(25); + output.WriteFixed64(InvitationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DeclineInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 25: { + InvitationId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class RevokeInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RevokeInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeInvitationRequest(RevokeInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + invitationId_ = other.invitationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeInvitationRequest Clone() { + return new RevokeInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 3; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 2) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 2; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RevokeInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RevokeInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (InvitationId != other.InvitationId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasInvitationId) { + output.WriteRawTag(25); + output.WriteFixed64(InvitationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RevokeInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 25: { + InvitationId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class GetInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationRequest(GetInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + invitationId_ = other.invitationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationRequest Clone() { + return new GetInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 3; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 2) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 2; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (InvitationId != other.InvitationId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasInvitationId) { + output.WriteRawTag(25); + output.WriteFixed64(InvitationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 25: { + InvitationId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class GetInvitationResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvitationResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationResponse(GetInvitationResponse other) : this() { + invitation_ = other.HasInvitation ? other.invitation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationResponse Clone() { + return new GetInvitationResponse(this); + } + + /// Field number for the "invitation" field. + public const int InvitationFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubInvitation invitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubInvitation Invitation { + get { return invitation_; } + set { + invitation_ = value; + } + } + /// Gets whether the invitation field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitation { + get { return invitation_ != null; } + } + /// Clears the value of the invitation field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitation() { + invitation_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetInvitationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetInvitationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Invitation, other.Invitation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasInvitation) hash ^= Invitation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasInvitation) { + output.WriteRawTag(10); + output.WriteMessage(Invitation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasInvitation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetInvitationResponse other) { + if (other == null) { + return; + } + if (other.HasInvitation) { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitation(); + } + Invitation.MergeFrom(other.Invitation); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitation(); + } + input.ReadMessage(Invitation); + break; + } + } + } + } + + } + + public sealed partial class GetInvitationsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvitationsRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationsRequest(GetInvitationsRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationsRequest Clone() { + return new GetInvitationsRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 3; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 2) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 2; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetInvitationsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetInvitationsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasContinuation) { + output.WriteRawTag(24); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetInvitationsRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetInvitationsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvitationsResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationsResponse(GetInvitationsResponse other) : this() { + _hasBits0 = other._hasBits0; + invitation_ = other.invitation_.Clone(); + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetInvitationsResponse Clone() { + return new GetInvitationsResponse(this); + } + + /// Field number for the "invitation" field. + public const int InvitationFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_invitation_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.ClubInvitation.Parser); + private readonly pbc::RepeatedField invitation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Invitation { + get { return invitation_; } + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 2; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetInvitationsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetInvitationsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!invitation_.Equals(other.invitation_)) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= invitation_.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + invitation_.WriteTo(output, _repeated_invitation_codec); + if (HasContinuation) { + output.WriteRawTag(16); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += invitation_.CalculateSize(_repeated_invitation_codec); + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetInvitationsResponse other) { + if (other == null) { + return; + } + invitation_.Add(other.invitation_); + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + invitation_.AddEntriesFrom(input, _repeated_invitation_codec); + break; + } + case 16: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class SendSuggestionRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendSuggestionRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendSuggestionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendSuggestionRequest(SendSuggestionRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendSuggestionRequest Clone() { + return new SendSuggestionRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.SendSuggestionOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.SendSuggestionOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SendSuggestionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SendSuggestionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SendSuggestionRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.SendSuggestionOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.SendSuggestionOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class AcceptSuggestionRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcceptSuggestionRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptSuggestionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptSuggestionRequest(AcceptSuggestionRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + suggestionId_ = other.suggestionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptSuggestionRequest Clone() { + return new AcceptSuggestionRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "suggestion_id" field. + public const int SuggestionIdFieldNumber = 3; + private readonly static ulong SuggestionIdDefaultValue = 0UL; + + private ulong suggestionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SuggestionId { + get { if ((_hasBits0 & 2) != 0) { return suggestionId_; } else { return SuggestionIdDefaultValue; } } + set { + _hasBits0 |= 2; + suggestionId_ = value; + } + } + /// Gets whether the "suggestion_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggestionId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "suggestion_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggestionId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AcceptSuggestionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AcceptSuggestionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (SuggestionId != other.SuggestionId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasSuggestionId) hash ^= SuggestionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasSuggestionId) { + output.WriteRawTag(25); + output.WriteFixed64(SuggestionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasSuggestionId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AcceptSuggestionRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasSuggestionId) { + SuggestionId = other.SuggestionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 25: { + SuggestionId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class DeclineSuggestionRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeclineSuggestionRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineSuggestionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineSuggestionRequest(DeclineSuggestionRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + suggestionId_ = other.suggestionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineSuggestionRequest Clone() { + return new DeclineSuggestionRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "suggestion_id" field. + public const int SuggestionIdFieldNumber = 3; + private readonly static ulong SuggestionIdDefaultValue = 0UL; + + private ulong suggestionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SuggestionId { + get { if ((_hasBits0 & 2) != 0) { return suggestionId_; } else { return SuggestionIdDefaultValue; } } + set { + _hasBits0 |= 2; + suggestionId_ = value; + } + } + /// Gets whether the "suggestion_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggestionId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "suggestion_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggestionId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DeclineSuggestionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DeclineSuggestionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (SuggestionId != other.SuggestionId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasSuggestionId) hash ^= SuggestionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasSuggestionId) { + output.WriteRawTag(25); + output.WriteFixed64(SuggestionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasSuggestionId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DeclineSuggestionRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasSuggestionId) { + SuggestionId = other.SuggestionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 25: { + SuggestionId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class GetSuggestionRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSuggestionRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionRequest(GetSuggestionRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + suggestionId_ = other.suggestionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionRequest Clone() { + return new GetSuggestionRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "suggestion_id" field. + public const int SuggestionIdFieldNumber = 3; + private readonly static ulong SuggestionIdDefaultValue = 0UL; + + private ulong suggestionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong SuggestionId { + get { if ((_hasBits0 & 2) != 0) { return suggestionId_; } else { return SuggestionIdDefaultValue; } } + set { + _hasBits0 |= 2; + suggestionId_ = value; + } + } + /// Gets whether the "suggestion_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggestionId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "suggestion_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggestionId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetSuggestionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetSuggestionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (SuggestionId != other.SuggestionId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasSuggestionId) hash ^= SuggestionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasSuggestionId) { + output.WriteRawTag(25); + output.WriteFixed64(SuggestionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasSuggestionId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetSuggestionRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasSuggestionId) { + SuggestionId = other.SuggestionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 25: { + SuggestionId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class GetSuggestionResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSuggestionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionResponse(GetSuggestionResponse other) : this() { + suggestion_ = other.HasSuggestion ? other.suggestion_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionResponse Clone() { + return new GetSuggestionResponse(this); + } + + /// Field number for the "suggestion" field. + public const int SuggestionFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubSuggestion suggestion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubSuggestion Suggestion { + get { return suggestion_; } + set { + suggestion_ = value; + } + } + /// Gets whether the suggestion field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSuggestion { + get { return suggestion_ != null; } + } + /// Clears the value of the suggestion field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSuggestion() { + suggestion_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetSuggestionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetSuggestionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Suggestion, other.Suggestion)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSuggestion) hash ^= Suggestion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSuggestion) { + output.WriteRawTag(10); + output.WriteMessage(Suggestion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSuggestion) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggestion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetSuggestionResponse other) { + if (other == null) { + return; + } + if (other.HasSuggestion) { + if (!HasSuggestion) { + Suggestion = new global::Bgs.Protocol.Club.V1.ClubSuggestion(); + } + Suggestion.MergeFrom(other.Suggestion); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasSuggestion) { + Suggestion = new global::Bgs.Protocol.Club.V1.ClubSuggestion(); + } + input.ReadMessage(Suggestion); + break; + } + } + } + } + + } + + public sealed partial class GetSuggestionsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSuggestionsRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionsRequest(GetSuggestionsRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionsRequest Clone() { + return new GetSuggestionsRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 3; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 2) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 2; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetSuggestionsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetSuggestionsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasContinuation) { + output.WriteRawTag(24); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetSuggestionsRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetSuggestionsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSuggestionsResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionsResponse(GetSuggestionsResponse other) : this() { + _hasBits0 = other._hasBits0; + suggestion_ = other.suggestion_.Clone(); + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetSuggestionsResponse Clone() { + return new GetSuggestionsResponse(this); + } + + /// Field number for the "suggestion" field. + public const int SuggestionFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_suggestion_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.ClubSuggestion.Parser); + private readonly pbc::RepeatedField suggestion_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Suggestion { + get { return suggestion_; } + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 2; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetSuggestionsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetSuggestionsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!suggestion_.Equals(other.suggestion_)) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= suggestion_.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + suggestion_.WriteTo(output, _repeated_suggestion_codec); + if (HasContinuation) { + output.WriteRawTag(16); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += suggestion_.CalculateSize(_repeated_suggestion_codec); + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetSuggestionsResponse other) { + if (other == null) { + return; + } + suggestion_.Add(other.suggestion_); + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + suggestion_.AddEntriesFrom(input, _repeated_suggestion_codec); + break; + } + case 16: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class CreateTicketRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTicketRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketRequest(CreateTicketRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketRequest Clone() { + return new CreateTicketRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.CreateTicketOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.CreateTicketOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateTicketRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateTicketRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateTicketRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateTicketOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateTicketOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class CreateTicketResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTicketResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketResponse(CreateTicketResponse other) : this() { + ticket_ = other.HasTicket ? other.ticket_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateTicketResponse Clone() { + return new CreateTicketResponse(this); + } + + /// Field number for the "ticket" field. + public const int TicketFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubTicket ticket_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubTicket Ticket { + get { return ticket_; } + set { + ticket_ = value; + } + } + /// Gets whether the ticket field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTicket { + get { return ticket_ != null; } + } + /// Clears the value of the ticket field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTicket() { + ticket_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateTicketResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateTicketResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Ticket, other.Ticket)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTicket) hash ^= Ticket.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTicket) { + output.WriteRawTag(10); + output.WriteMessage(Ticket); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTicket) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ticket); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateTicketResponse other) { + if (other == null) { + return; + } + if (other.HasTicket) { + if (!HasTicket) { + Ticket = new global::Bgs.Protocol.Club.V1.ClubTicket(); + } + Ticket.MergeFrom(other.Ticket); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTicket) { + Ticket = new global::Bgs.Protocol.Club.V1.ClubTicket(); + } + input.ReadMessage(Ticket); + break; + } + } + } + } + + } + + public sealed partial class DestroyTicketRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DestroyTicketRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyTicketRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyTicketRequest(DestroyTicketRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + ticketId_ = other.ticketId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyTicketRequest Clone() { + return new DestroyTicketRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "ticket_id" field. + public const int TicketIdFieldNumber = 3; + private readonly static string TicketIdDefaultValue = ""; + + private string ticketId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TicketId { + get { return ticketId_ ?? TicketIdDefaultValue; } + set { + ticketId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "ticket_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTicketId { + get { return ticketId_ != null; } + } + /// Clears the value of the "ticket_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTicketId() { + ticketId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DestroyTicketRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DestroyTicketRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (TicketId != other.TicketId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasTicketId) hash ^= TicketId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasTicketId) { + output.WriteRawTag(26); + output.WriteString(TicketId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasTicketId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TicketId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DestroyTicketRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasTicketId) { + TicketId = other.TicketId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + TicketId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class RedeemTicketRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RedeemTicketRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RedeemTicketRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RedeemTicketRequest(RedeemTicketRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + ticketId_ = other.ticketId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RedeemTicketRequest Clone() { + return new RedeemTicketRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "ticket_id" field. + public const int TicketIdFieldNumber = 3; + private readonly static string TicketIdDefaultValue = ""; + + private string ticketId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TicketId { + get { return ticketId_ ?? TicketIdDefaultValue; } + set { + ticketId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "ticket_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTicketId { + get { return ticketId_ != null; } + } + /// Clears the value of the "ticket_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTicketId() { + ticketId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RedeemTicketRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RedeemTicketRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (TicketId != other.TicketId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasTicketId) hash ^= TicketId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasTicketId) { + output.WriteRawTag(26); + output.WriteString(TicketId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasTicketId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TicketId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RedeemTicketRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasTicketId) { + TicketId = other.TicketId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 26: { + TicketId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class GetTicketRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTicketRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketRequest(GetTicketRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + ticketId_ = other.ticketId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketRequest Clone() { + return new GetTicketRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "ticket_id" field. + public const int TicketIdFieldNumber = 3; + private readonly static string TicketIdDefaultValue = ""; + + private string ticketId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TicketId { + get { return ticketId_ ?? TicketIdDefaultValue; } + set { + ticketId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "ticket_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTicketId { + get { return ticketId_ != null; } + } + /// Clears the value of the "ticket_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTicketId() { + ticketId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetTicketRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetTicketRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (TicketId != other.TicketId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasTicketId) hash ^= TicketId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasTicketId) { + output.WriteRawTag(26); + output.WriteString(TicketId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasTicketId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TicketId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetTicketRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasTicketId) { + TicketId = other.TicketId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 26: { + TicketId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class GetTicketResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTicketResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketResponse(GetTicketResponse other) : this() { + ticket_ = other.HasTicket ? other.ticket_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketResponse Clone() { + return new GetTicketResponse(this); + } + + /// Field number for the "ticket" field. + public const int TicketFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubTicket ticket_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubTicket Ticket { + get { return ticket_; } + set { + ticket_ = value; + } + } + /// Gets whether the ticket field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTicket { + get { return ticket_ != null; } + } + /// Clears the value of the ticket field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTicket() { + ticket_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetTicketResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetTicketResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Ticket, other.Ticket)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTicket) hash ^= Ticket.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTicket) { + output.WriteRawTag(10); + output.WriteMessage(Ticket); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTicket) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ticket); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetTicketResponse other) { + if (other == null) { + return; + } + if (other.HasTicket) { + if (!HasTicket) { + Ticket = new global::Bgs.Protocol.Club.V1.ClubTicket(); + } + Ticket.MergeFrom(other.Ticket); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTicket) { + Ticket = new global::Bgs.Protocol.Club.V1.ClubTicket(); + } + input.ReadMessage(Ticket); + break; + } + } + } + } + + } + + public sealed partial class GetTicketsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTicketsRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketsRequest(GetTicketsRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketsRequest Clone() { + return new GetTicketsRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 3; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 2) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 2; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetTicketsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetTicketsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasContinuation) { + output.WriteRawTag(24); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetTicketsRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetTicketsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTicketsResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketsResponse(GetTicketsResponse other) : this() { + _hasBits0 = other._hasBits0; + ticket_ = other.ticket_.Clone(); + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetTicketsResponse Clone() { + return new GetTicketsResponse(this); + } + + /// Field number for the "ticket" field. + public const int TicketFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_ticket_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.ClubTicket.Parser); + private readonly pbc::RepeatedField ticket_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Ticket { + get { return ticket_; } + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 2; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetTicketsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetTicketsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!ticket_.Equals(other.ticket_)) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ticket_.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + ticket_.WriteTo(output, _repeated_ticket_codec); + if (HasContinuation) { + output.WriteRawTag(16); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += ticket_.CalculateSize(_repeated_ticket_codec); + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetTicketsResponse other) { + if (other == null) { + return; + } + ticket_.Add(other.ticket_); + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ticket_.AddEntriesFrom(input, _repeated_ticket_codec); + break; + } + case 16: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class AddBanRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddBanRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AddBanRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AddBanRequest(AddBanRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AddBanRequest Clone() { + return new AddBanRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.AddBanOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.AddBanOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AddBanRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AddBanRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AddBanRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.AddBanOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.AddBanOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class RemoveBanRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveBanRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveBanRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveBanRequest(RemoveBanRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveBanRequest Clone() { + return new RemoveBanRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RemoveBanRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RemoveBanRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(TargetId, other.TargetId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasTargetId) { + output.WriteRawTag(26); + output.WriteMessage(TargetId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RemoveBanRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + TargetId.MergeFrom(other.TargetId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(TargetId); + break; + } + } + } + } + + } + + public sealed partial class GetBanRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBanRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBanRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBanRequest(GetBanRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBanRequest Clone() { + return new GetBanRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MemberId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetBanRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetBanRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(TargetId, other.TargetId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasTargetId) { + output.WriteRawTag(26); + output.WriteMessage(TargetId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetBanRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + TargetId.MergeFrom(other.TargetId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(TargetId); + break; + } + } + } + } + + } + + public sealed partial class GetBanResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBanResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[48]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBanResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBanResponse(GetBanResponse other) : this() { + ban_ = other.HasBan ? other.ban_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBanResponse Clone() { + return new GetBanResponse(this); + } + + /// Field number for the "ban" field. + public const int BanFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.ClubBan ban_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubBan Ban { + get { return ban_; } + set { + ban_ = value; + } + } + /// Gets whether the ban field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBan { + get { return ban_ != null; } + } + /// Clears the value of the ban field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBan() { + ban_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetBanResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetBanResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Ban, other.Ban)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasBan) hash ^= Ban.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasBan) { + output.WriteRawTag(10); + output.WriteMessage(Ban); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasBan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ban); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetBanResponse other) { + if (other == null) { + return; + } + if (other.HasBan) { + if (!HasBan) { + Ban = new global::Bgs.Protocol.Club.V1.ClubBan(); + } + Ban.MergeFrom(other.Ban); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasBan) { + Ban = new global::Bgs.Protocol.Club.V1.ClubBan(); + } + input.ReadMessage(Ban); + break; + } + } + } + } + + } + + public sealed partial class GetBansRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBansRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[49]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBansRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBansRequest(GetBansRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBansRequest Clone() { + return new GetBansRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 3; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 2) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 2; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetBansRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetBansRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasContinuation) { + output.WriteRawTag(24); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetBansRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetBansResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBansResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBansResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBansResponse(GetBansResponse other) : this() { + _hasBits0 = other._hasBits0; + ban_ = other.ban_.Clone(); + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetBansResponse Clone() { + return new GetBansResponse(this); + } + + /// Field number for the "ban" field. + public const int BanFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_ban_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.ClubBan.Parser); + private readonly pbc::RepeatedField ban_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Ban { + get { return ban_; } + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 2; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetBansResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetBansResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!ban_.Equals(other.ban_)) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= ban_.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + ban_.WriteTo(output, _repeated_ban_codec); + if (HasContinuation) { + output.WriteRawTag(16); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += ban_.CalculateSize(_repeated_ban_codec); + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetBansResponse other) { + if (other == null) { + return; + } + ban_.Add(other.ban_); + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ban_.AddEntriesFrom(input, _repeated_ban_codec); + break; + } + case 16: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class SubscribeStreamRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeStreamRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeStreamRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeStreamRequest(SubscribeStreamRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeStreamRequest Clone() { + return new SubscribeStreamRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_streamId_codec + = pb::FieldCodec.ForUInt64(24); + private readonly pbc::RepeatedField streamId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField StreamId { + get { return streamId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscribeStreamRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscribeStreamRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if(!streamId_.Equals(other.streamId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= streamId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + streamId_.WriteTo(output, _repeated_streamId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += streamId_.CalculateSize(_repeated_streamId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscribeStreamRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + streamId_.Add(other.streamId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: + case 24: { + streamId_.AddEntriesFrom(input, _repeated_streamId_codec); + break; + } + } + } + } + + } + + public sealed partial class UnsubscribeStreamRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsubscribeStreamRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[52]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeStreamRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeStreamRequest(UnsubscribeStreamRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsubscribeStreamRequest Clone() { + return new UnsubscribeStreamRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_streamId_codec + = pb::FieldCodec.ForUInt64(24); + private readonly pbc::RepeatedField streamId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField StreamId { + get { return streamId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnsubscribeStreamRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnsubscribeStreamRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if(!streamId_.Equals(other.streamId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + hash ^= streamId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + streamId_.WriteTo(output, _repeated_streamId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + size += streamId_.CalculateSize(_repeated_streamId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnsubscribeStreamRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + streamId_.Add(other.streamId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: + case 24: { + streamId_.AddEntriesFrom(input, _repeated_streamId_codec); + break; + } + } + } + } + + } + + public sealed partial class CreateStreamRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateStreamRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[53]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamRequest(CreateStreamRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamRequest Clone() { + return new CreateStreamRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.CreateStreamOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.CreateStreamOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateStreamRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateStreamRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateStreamRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateStreamOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateStreamOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class CreateStreamResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateStreamResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[54]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamResponse(CreateStreamResponse other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamResponse Clone() { + return new CreateStreamResponse(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 2; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateStreamResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateStreamResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(16); + output.WriteUInt64(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateStreamResponse other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + case 16: { + StreamId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class DestroyStreamRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DestroyStreamRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[55]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyStreamRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyStreamRequest(DestroyStreamRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyStreamRequest Clone() { + return new DestroyStreamRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DestroyStreamRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DestroyStreamRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DestroyStreamRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetStreamRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[56]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamRequest(GetStreamRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamRequest Clone() { + return new GetStreamRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetStreamResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[57]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamResponse(GetStreamResponse other) : this() { + stream_ = other.HasStream ? other.stream_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamResponse Clone() { + return new GetStreamResponse(this); + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.Stream stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.Stream Stream { + get { return stream_; } + set { + stream_ = value; + } + } + /// Gets whether the stream field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStream { + get { return stream_ != null; } + } + /// Clears the value of the stream field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStream() { + stream_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Stream, other.Stream)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasStream) hash ^= Stream.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasStream) { + output.WriteRawTag(10); + output.WriteMessage(Stream); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasStream) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamResponse other) { + if (other == null) { + return; + } + if (other.HasStream) { + if (!HasStream) { + Stream = new global::Bgs.Protocol.Club.V1.Stream(); + } + Stream.MergeFrom(other.Stream); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasStream) { + Stream = new global::Bgs.Protocol.Club.V1.Stream(); + } + input.ReadMessage(Stream); + break; + } + } + } + } + + } + + public sealed partial class GetStreamsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamsRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[58]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamsRequest(GetStreamsRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamsRequest Clone() { + return new GetStreamsRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 3; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 2) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 2; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasContinuation) { + output.WriteRawTag(24); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamsRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetStreamsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamsResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[59]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamsResponse(GetStreamsResponse other) : this() { + _hasBits0 = other._hasBits0; + stream_ = other.stream_.Clone(); + view_ = other.view_.Clone(); + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamsResponse Clone() { + return new GetStreamsResponse(this); + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_stream_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.Stream.Parser); + private readonly pbc::RepeatedField stream_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Stream { + get { return stream_; } + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_view_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Club.V1.StreamView.Parser); + private readonly pbc::RepeatedField view_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField View { + get { return view_; } + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 3; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!stream_.Equals(other.stream_)) return false; + if(!view_.Equals(other.view_)) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= stream_.GetHashCode(); + hash ^= view_.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + stream_.WriteTo(output, _repeated_stream_codec); + view_.WriteTo(output, _repeated_view_codec); + if (HasContinuation) { + output.WriteRawTag(24); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += stream_.CalculateSize(_repeated_stream_codec); + size += view_.CalculateSize(_repeated_view_codec); + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamsResponse other) { + if (other == null) { + return; + } + stream_.Add(other.stream_); + view_.Add(other.view_); + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + stream_.AddEntriesFrom(input, _repeated_stream_codec); + break; + } + case 18: { + view_.AddEntriesFrom(input, _repeated_view_codec); + break; + } + case 24: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class UpdateStreamStateRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateStreamStateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateStreamStateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateStreamStateRequest(UpdateStreamStateRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UpdateStreamStateRequest Clone() { + return new UpdateStreamStateRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.StreamStateOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamStateOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UpdateStreamStateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UpdateStreamStateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasOptions) { + output.WriteRawTag(42); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UpdateStreamStateRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.StreamStateOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 42: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.StreamStateOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class SetStreamFocusRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetStreamFocusRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetStreamFocusRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetStreamFocusRequest(SetStreamFocusRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + focus_ = other.focus_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetStreamFocusRequest Clone() { + return new SetStreamFocusRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "focus" field. + public const int FocusFieldNumber = 4; + private readonly static bool FocusDefaultValue = false; + + private bool focus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Focus { + get { if ((_hasBits0 & 4) != 0) { return focus_; } else { return FocusDefaultValue; } } + set { + _hasBits0 |= 4; + focus_ = value; + } + } + /// Gets whether the "focus" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFocus { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "focus" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFocus() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetStreamFocusRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetStreamFocusRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (Focus != other.Focus) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasFocus) hash ^= Focus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasFocus) { + output.WriteRawTag(32); + output.WriteBool(Focus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasFocus) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetStreamFocusRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasFocus) { + Focus = other.Focus; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 32: { + Focus = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class CreateMessageRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMessageRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageRequest(CreateMessageRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageRequest Clone() { + return new CreateMessageRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.CreateMessageOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.CreateMessageOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateMessageRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateMessageRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasOptions) { + output.WriteRawTag(34); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateMessageRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateMessageOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateMessageOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class CreateMessageResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMessageResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageResponse(CreateMessageResponse other) : this() { + message_ = other.HasMessage ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageResponse Clone() { + return new CreateMessageResponse(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.StreamMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamMessage Message { + get { return message_; } + set { + message_ = value; + } + } + /// Gets whether the message field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the message field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateMessageResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateMessageResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMessage) { + output.WriteRawTag(10); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateMessageResponse other) { + if (other == null) { + return; + } + if (other.HasMessage) { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + Message.MergeFrom(other.Message); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + + } + + public sealed partial class DestroyMessageRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DestroyMessageRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyMessageRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyMessageRequest(DestroyMessageRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + messageId_ = other.HasMessageId ? other.messageId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyMessageRequest Clone() { + return new DestroyMessageRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "message_id" field. + public const int MessageIdFieldNumber = 4; + private global::Bgs.Protocol.MessageId messageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.MessageId MessageId { + get { return messageId_; } + set { + messageId_ = value; + } + } + /// Gets whether the message_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessageId { + get { return messageId_ != null; } + } + /// Clears the value of the message_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageId() { + messageId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DestroyMessageRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DestroyMessageRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(MessageId, other.MessageId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasMessageId) hash ^= MessageId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasMessageId) { + output.WriteRawTag(34); + output.WriteMessage(MessageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasMessageId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DestroyMessageRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasMessageId) { + if (!HasMessageId) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + MessageId.MergeFrom(other.MessageId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasMessageId) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + input.ReadMessage(MessageId); + break; + } + } + } + } + + } + + public sealed partial class DestroyMessageResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DestroyMessageResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyMessageResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyMessageResponse(DestroyMessageResponse other) : this() { + message_ = other.HasMessage ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DestroyMessageResponse Clone() { + return new DestroyMessageResponse(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.StreamMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamMessage Message { + get { return message_; } + set { + message_ = value; + } + } + /// Gets whether the message field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the message field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DestroyMessageResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DestroyMessageResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMessage) { + output.WriteRawTag(10); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DestroyMessageResponse other) { + if (other == null) { + return; + } + if (other.HasMessage) { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + Message.MergeFrom(other.Message); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + + } + + public sealed partial class EditMessageRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditMessageRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EditMessageRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EditMessageRequest(EditMessageRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + messageId_ = other.HasMessageId ? other.messageId_.Clone() : null; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EditMessageRequest Clone() { + return new EditMessageRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "message_id" field. + public const int MessageIdFieldNumber = 4; + private global::Bgs.Protocol.MessageId messageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.MessageId MessageId { + get { return messageId_; } + set { + messageId_ = value; + } + } + /// Gets whether the message_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessageId { + get { return messageId_ != null; } + } + /// Clears the value of the message_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageId() { + messageId_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.CreateMessageOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.CreateMessageOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EditMessageRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EditMessageRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(MessageId, other.MessageId)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasMessageId) hash ^= MessageId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasMessageId) { + output.WriteRawTag(34); + output.WriteMessage(MessageId); + } + if (HasOptions) { + output.WriteRawTag(42); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasMessageId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EditMessageRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasMessageId) { + if (!HasMessageId) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + MessageId.MergeFrom(other.MessageId); + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateMessageOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasMessageId) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + input.ReadMessage(MessageId); + break; + } + case 42: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Club.V1.CreateMessageOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class EditMessageResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditMessageResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EditMessageResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EditMessageResponse(EditMessageResponse other) : this() { + message_ = other.HasMessage ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EditMessageResponse Clone() { + return new EditMessageResponse(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.StreamMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamMessage Message { + get { return message_; } + set { + message_ = value; + } + } + /// Gets whether the message field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the message field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EditMessageResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EditMessageResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMessage) { + output.WriteRawTag(10); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EditMessageResponse other) { + if (other == null) { + return; + } + if (other.HasMessage) { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + Message.MergeFrom(other.Message); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + + } + + public sealed partial class SetMessagePinnedRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetMessagePinnedRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetMessagePinnedRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetMessagePinnedRequest(SetMessagePinnedRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetMessagePinnedRequest Clone() { + return new SetMessagePinnedRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetMessagePinnedRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetMessagePinnedRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetMessagePinnedRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class SetTypingIndicatorRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTypingIndicatorRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetTypingIndicatorRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetTypingIndicatorRequest(SetTypingIndicatorRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + indicator_ = other.indicator_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetTypingIndicatorRequest Clone() { + return new SetTypingIndicatorRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "indicator" field. + public const int IndicatorFieldNumber = 4; + private readonly static global::Bgs.Protocol.TypingIndicator IndicatorDefaultValue = global::Bgs.Protocol.TypingIndicator.TypingStart; + + private global::Bgs.Protocol.TypingIndicator indicator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.TypingIndicator Indicator { + get { if ((_hasBits0 & 4) != 0) { return indicator_; } else { return IndicatorDefaultValue; } } + set { + _hasBits0 |= 4; + indicator_ = value; + } + } + /// Gets whether the "indicator" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIndicator { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "indicator" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIndicator() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetTypingIndicatorRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetTypingIndicatorRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (Indicator != other.Indicator) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasIndicator) hash ^= Indicator.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasIndicator) { + output.WriteRawTag(32); + output.WriteEnum((int) Indicator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasIndicator) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Indicator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetTypingIndicatorRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasIndicator) { + Indicator = other.Indicator; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 32: { + Indicator = (global::Bgs.Protocol.TypingIndicator) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class AdvanceStreamViewTimeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvanceStreamViewTimeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamViewTimeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamViewTimeRequest(AdvanceStreamViewTimeRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamIdDeprecated_ = other.streamIdDeprecated_; + streamId_ = other.streamId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamViewTimeRequest Clone() { + return new AdvanceStreamViewTimeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id_deprecated" field. + public const int StreamIdDeprecatedFieldNumber = 3; + private readonly static ulong StreamIdDeprecatedDefaultValue = 0UL; + + private ulong streamIdDeprecated_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamIdDeprecated { + get { if ((_hasBits0 & 2) != 0) { return streamIdDeprecated_; } else { return StreamIdDeprecatedDefaultValue; } } + set { + _hasBits0 |= 2; + streamIdDeprecated_ = value; + } + } + /// Gets whether the "stream_id_deprecated" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamIdDeprecated { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id_deprecated" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamIdDeprecated() { + _hasBits0 &= ~2; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_streamId_codec + = pb::FieldCodec.ForUInt64(34); + private readonly pbc::RepeatedField streamId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField StreamId { + get { return streamId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AdvanceStreamViewTimeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AdvanceStreamViewTimeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamIdDeprecated != other.StreamIdDeprecated) return false; + if(!streamId_.Equals(other.streamId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamIdDeprecated) hash ^= StreamIdDeprecated.GetHashCode(); + hash ^= streamId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamIdDeprecated) { + output.WriteRawTag(24); + output.WriteUInt64(StreamIdDeprecated); + } + streamId_.WriteTo(output, _repeated_streamId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamIdDeprecated) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamIdDeprecated); + } + size += streamId_.CalculateSize(_repeated_streamId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AdvanceStreamViewTimeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamIdDeprecated) { + StreamIdDeprecated = other.StreamIdDeprecated; + } + streamId_.Add(other.streamId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamIdDeprecated = input.ReadUInt64(); + break; + } + case 34: + case 32: { + streamId_.AddEntriesFrom(input, _repeated_streamId_codec); + break; + } + } + } + } + + } + + public sealed partial class AdvanceStreamMentionViewTimeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvanceStreamMentionViewTimeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[71]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamMentionViewTimeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamMentionViewTimeRequest(AdvanceStreamMentionViewTimeRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceStreamMentionViewTimeRequest Clone() { + return new AdvanceStreamMentionViewTimeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AdvanceStreamMentionViewTimeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AdvanceStreamMentionViewTimeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AdvanceStreamMentionViewTimeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class AdvanceActivityViewTimeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvanceActivityViewTimeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[72]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceActivityViewTimeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceActivityViewTimeRequest(AdvanceActivityViewTimeRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AdvanceActivityViewTimeRequest Clone() { + return new AdvanceActivityViewTimeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AdvanceActivityViewTimeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AdvanceActivityViewTimeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AdvanceActivityViewTimeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetStreamHistoryRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamHistoryRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[73]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamHistoryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamHistoryRequest(GetStreamHistoryRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamHistoryRequest Clone() { + return new GetStreamHistoryRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 4; + private global::Bgs.Protocol.GetEventOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.GetEventOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamHistoryRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamHistoryRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasOptions) { + output.WriteRawTag(34); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamHistoryRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.GetEventOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.GetEventOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class GetStreamHistoryResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamHistoryResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[74]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamHistoryResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamHistoryResponse(GetStreamHistoryResponse other) : this() { + _hasBits0 = other._hasBits0; + message_ = other.message_.Clone(); + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamHistoryResponse Clone() { + return new GetStreamHistoryResponse(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_message_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.StreamMessage.Parser); + private readonly pbc::RepeatedField message_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Message { + get { return message_; } + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 2; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamHistoryResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamHistoryResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!message_.Equals(other.message_)) return false; + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= message_.GetHashCode(); + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + message_.WriteTo(output, _repeated_message_codec); + if (HasContinuation) { + output.WriteRawTag(16); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += message_.CalculateSize(_repeated_message_codec); + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamHistoryResponse other) { + if (other == null) { + return; + } + message_.Add(other.message_); + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + message_.AddEntriesFrom(input, _repeated_message_codec); + break; + } + case 16: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetStreamMessageRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamMessageRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[75]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMessageRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMessageRequest(GetStreamMessageRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + messageId_ = other.HasMessageId ? other.messageId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMessageRequest Clone() { + return new GetStreamMessageRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "message_id" field. + public const int MessageIdFieldNumber = 4; + private global::Bgs.Protocol.MessageId messageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.MessageId MessageId { + get { return messageId_; } + set { + messageId_ = value; + } + } + /// Gets whether the message_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessageId { + get { return messageId_ != null; } + } + /// Clears the value of the message_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageId() { + messageId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamMessageRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamMessageRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(MessageId, other.MessageId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasMessageId) hash ^= MessageId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasMessageId) { + output.WriteRawTag(34); + output.WriteMessage(MessageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasMessageId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamMessageRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasMessageId) { + if (!HasMessageId) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + MessageId.MergeFrom(other.MessageId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasMessageId) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + input.ReadMessage(MessageId); + break; + } + } + } + } + + } + + public sealed partial class GetStreamMessageResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamMessageResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[76]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMessageResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMessageResponse(GetStreamMessageResponse other) : this() { + message_ = other.HasMessage ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamMessageResponse Clone() { + return new GetStreamMessageResponse(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.StreamMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamMessage Message { + get { return message_; } + set { + message_ = value; + } + } + /// Gets whether the message field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the message field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamMessageResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamMessageResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMessage) { + output.WriteRawTag(10); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamMessageResponse other) { + if (other == null) { + return; + } + if (other.HasMessage) { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + Message.MergeFrom(other.Message); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + + } + + public sealed partial class GetClubActivityRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetClubActivityRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[77]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubActivityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubActivityRequest(GetClubActivityRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubActivityRequest Clone() { + return new GetClubActivityRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Bgs.Protocol.GetEventOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.GetEventOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetClubActivityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetClubActivityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetClubActivityRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.GetEventOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.GetEventOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class GetClubActivityResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetClubActivityResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[78]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubActivityResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubActivityResponse(GetClubActivityResponse other) : this() { + _hasBits0 = other._hasBits0; + continuation_ = other.continuation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetClubActivityResponse Clone() { + return new GetClubActivityResponse(this); + } + + /// Field number for the "continuation" field. + public const int ContinuationFieldNumber = 2; + private readonly static ulong ContinuationDefaultValue = 0UL; + + private ulong continuation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Continuation { + get { if ((_hasBits0 & 1) != 0) { return continuation_; } else { return ContinuationDefaultValue; } } + set { + _hasBits0 |= 1; + continuation_ = value; + } + } + /// Gets whether the "continuation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContinuation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "continuation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContinuation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetClubActivityResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetClubActivityResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Continuation != other.Continuation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasContinuation) hash ^= Continuation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasContinuation) { + output.WriteRawTag(16); + output.WriteUInt64(Continuation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasContinuation) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Continuation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetClubActivityResponse other) { + if (other == null) { + return; + } + if (other.HasContinuation) { + Continuation = other.Continuation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Continuation = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetStreamVoiceTokenRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamVoiceTokenRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[79]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamVoiceTokenRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamVoiceTokenRequest(GetStreamVoiceTokenRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamVoiceTokenRequest Clone() { + return new GetStreamVoiceTokenRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamVoiceTokenRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamVoiceTokenRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamVoiceTokenRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class GetStreamVoiceTokenResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStreamVoiceTokenResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[80]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamVoiceTokenResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamVoiceTokenResponse(GetStreamVoiceTokenResponse other) : this() { + channelUri_ = other.channelUri_; + credentials_ = other.HasCredentials ? other.credentials_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStreamVoiceTokenResponse Clone() { + return new GetStreamVoiceTokenResponse(this); + } + + /// Field number for the "channel_uri" field. + public const int ChannelUriFieldNumber = 1; + private readonly static string ChannelUriDefaultValue = ""; + + private string channelUri_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ChannelUri { + get { return channelUri_ ?? ChannelUriDefaultValue; } + set { + channelUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "channel_uri" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasChannelUri { + get { return channelUri_ != null; } + } + /// Clears the value of the "channel_uri" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearChannelUri() { + channelUri_ = null; + } + + /// Field number for the "credentials" field. + public const int CredentialsFieldNumber = 2; + private global::Bgs.Protocol.VoiceCredentials credentials_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.VoiceCredentials Credentials { + get { return credentials_; } + set { + credentials_ = value; + } + } + /// Gets whether the credentials field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCredentials { + get { return credentials_ != null; } + } + /// Clears the value of the credentials field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCredentials() { + credentials_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStreamVoiceTokenResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStreamVoiceTokenResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChannelUri != other.ChannelUri) return false; + if (!object.Equals(Credentials, other.Credentials)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasChannelUri) hash ^= ChannelUri.GetHashCode(); + if (HasCredentials) hash ^= Credentials.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasChannelUri) { + output.WriteRawTag(10); + output.WriteString(ChannelUri); + } + if (HasCredentials) { + output.WriteRawTag(18); + output.WriteMessage(Credentials); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasChannelUri) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelUri); + } + if (HasCredentials) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Credentials); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStreamVoiceTokenResponse other) { + if (other == null) { + return; + } + if (other.HasChannelUri) { + ChannelUri = other.ChannelUri; + } + if (other.HasCredentials) { + if (!HasCredentials) { + Credentials = new global::Bgs.Protocol.VoiceCredentials(); + } + Credentials.MergeFrom(other.Credentials); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ChannelUri = input.ReadString(); + break; + } + case 18: { + if (!HasCredentials) { + Credentials = new global::Bgs.Protocol.VoiceCredentials(); + } + input.ReadMessage(Credentials); + break; + } + } + } + } + + } + + public sealed partial class KickFromStreamVoiceRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KickFromStreamVoiceRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRequestReflection.Descriptor.MessageTypes[81]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KickFromStreamVoiceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KickFromStreamVoiceRequest(KickFromStreamVoiceRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KickFromStreamVoiceRequest Clone() { + return new KickFromStreamVoiceRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 2; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 3; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.MemberId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as KickFromStreamVoiceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(KickFromStreamVoiceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(TargetId, other.TargetId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasClubId) { + output.WriteRawTag(16); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(24); + output.WriteUInt64(StreamId); + } + if (HasTargetId) { + output.WriteRawTag(34); + output.WriteMessage(TargetId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(KickFromStreamVoiceRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + TargetId.MergeFrom(other.TargetId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AgentId); + break; + } + case 16: { + ClubId = input.ReadUInt64(); + break; + } + case 24: { + StreamId = input.ReadUInt64(); + break; + } + case 34: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(TargetId); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubRole.cs b/Source/Framework/Proto/ClubRole.cs new file mode 100644 index 000000000..4f789d46a --- /dev/null +++ b/Source/Framework/Proto/ClubRole.cs @@ -0,0 +1,2697 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_role.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_role.proto + public static partial class ClubRoleReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_role.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubRoleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFiZ3MvbG93L3BiL2NsaWVudC9jbHViX3JvbGUucHJvdG8SFGJncy5wcm90", + "b2NvbC5jbHViLnYxGiJiZ3MvbG93L3BiL2NsaWVudC9yb2xlX3R5cGVzLnBy", + "b3RvIq8LChBDbHViUHJpdmlsZWdlU2V0EhMKC2Nhbl9kZXN0cm95GAEgASgI", + "EhkKEWNhbl9zZXRfYXR0cmlidXRlGAogASgIEhQKDGNhbl9zZXRfbmFtZRgL", + "IAEoCBIbChNjYW5fc2V0X2Rlc2NyaXB0aW9uGAwgASgIEhYKDmNhbl9zZXRf", + "YXZhdGFyGA0gASgIEhkKEWNhbl9zZXRfYnJvYWRjYXN0GA4gASgIEh0KFWNh", + "bl9zZXRfcHJpdmFjeV9sZXZlbBgPIAEoCBIXCg9jYW5fa2lja19tZW1iZXIY", + "HiABKAgSJAocY2FuX3NldF9vd25fbWVtYmVyX2F0dHJpYnV0ZRgfIAEoCBIm", + "Ch5jYW5fc2V0X290aGVyX21lbWJlcl9hdHRyaWJ1dGUYICABKAgSHwoXY2Fu", + "X3NldF9vd25fdm9pY2Vfc3RhdGUYISABKAgSIgoaY2FuX3NldF9vd25fcHJl", + "c2VuY2VfbGV2ZWwYIiABKAgSIQoZY2FuX3NldF9vd25fd2hpc3Blcl9sZXZl", + "bBgjIAEoCBIfChdjYW5fc2V0X293bl9tZW1iZXJfbm90ZRgkIAEoCBIhChlj", + "YW5fc2V0X290aGVyX21lbWJlcl9ub3RlGCUgASgIEhUKDWNhbl91c2Vfdm9p", + "Y2UYMiABKAgSJQodY2FuX3ZvaWNlX211dGVfbWVtYmVyX2Zvcl9hbGwYMyAB", + "KAgSGgoSY2FuX2dldF9pbnZpdGF0aW9uGEYgASgIEhsKE2Nhbl9zZW5kX2lu", + "dml0YXRpb24YRyABKAgSIQoZY2FuX3NlbmRfZ3Vlc3RfaW52aXRhdGlvbhhI", + "IAEoCBIhChljYW5fcmV2b2tlX293bl9pbnZpdGF0aW9uGEkgASgIEiMKG2Nh", + "bl9yZXZva2Vfb3RoZXJfaW52aXRhdGlvbhhKIAEoCBIaChJjYW5fZ2V0X3N1", + "Z2dlc3Rpb24YWiABKAgSGgoSY2FuX3N1Z2dlc3RfbWVtYmVyGFsgASgIEhoK", + "EmNhbl9hcHByb3ZlX21lbWJlchhcIAEoCBIWCg5jYW5fZ2V0X3RpY2tldBhu", + "IAEoCBIZChFjYW5fY3JlYXRlX3RpY2tldBhvIAEoCBIaChJjYW5fZGVzdHJv", + "eV90aWNrZXQYcCABKAgSFAoLY2FuX2dldF9iYW4YggEgASgIEhQKC2Nhbl9h", + "ZGRfYmFuGIMBIAEoCBIXCg5jYW5fcmVtb3ZlX2JhbhiEASABKAgSGgoRY2Fu", + "X2NyZWF0ZV9zdHJlYW0YjAEgASgIEhsKEmNhbl9kZXN0cm95X3N0cmVhbRiN", + "ASABKAgSIAoXY2FuX3NldF9zdHJlYW1fcG9zaXRpb24YjgEgASgIEiEKGGNh", + "bl9zZXRfc3RyZWFtX2F0dHJpYnV0ZRiPASABKAgSHAoTY2FuX3NldF9zdHJl", + "YW1fbmFtZRiQASABKAgSHwoWY2FuX3NldF9zdHJlYW1fc3ViamVjdBiRASAB", + "KAgSHgoVY2FuX3NldF9zdHJlYW1fYWNjZXNzGJIBIAEoCBIjChpjYW5fc2V0", + "X3N0cmVhbV92b2ljZV9sZXZlbBiTASABKAgSGwoSY2FuX2NyZWF0ZV9tZXNz", + "YWdlGLQBIAEoCBIgChdjYW5fZGVzdHJveV9vd25fbWVzc2FnZRi1ASABKAgS", + "IgoZY2FuX2Rlc3Ryb3lfb3RoZXJfbWVzc2FnZRi2ASABKAgSHQoUY2FuX2Vk", + "aXRfb3duX21lc3NhZ2UYtwEgASgIEhgKD2Nhbl9waW5fbWVzc2FnZRi4ASAB", + "KAgSGAoPY2FuX21lbnRpb25fYWxsGLkBIAEoCBIZChBjYW5fbWVudGlvbl9o", + "ZXJlGLoBIAEoCBIbChJjYW5fbWVudGlvbl9tZW1iZXIYuwEgASgIEhkKEGNh", + "bl9tZW50aW9uX3JvbGUYvAEgASgIIrkBCghDbHViUm9sZRIKCgJpZBgBIAEo", + "DRImCgVzdGF0ZRgCIAEoCzIXLmJncy5wcm90b2NvbC5Sb2xlU3RhdGUSOQoJ", + "cHJpdmlsZWdlGAMgASgLMiYuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YlBy", + "aXZpbGVnZVNldBIiChphbHdheXNfZ3JhbnRfc3RyZWFtX2FjY2VzcxgEIAEo", + "CBIaChJhbGxvd19pbl9jbHViX3Nsb3QYBSABKAgilAEKC0NsdWJSb2xlU2V0", + "EiwKBHJvbGUYASADKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViUm9s", + "ZRIYCgxkZWZhdWx0X3JvbGUYBSADKA1CAhABEiwKJGFzc2lnbm1lbnRfcmVz", + "cGVjdHNfcmVsZWdhdGlvbl9jaGFpbhgGIAEoCBIPCgdzdWJ0eXBlGAcgASgJ")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.RoleTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubPrivilegeSet), global::Bgs.Protocol.Club.V1.ClubPrivilegeSet.Parser, new[]{ "CanDestroy", "CanSetAttribute", "CanSetName", "CanSetDescription", "CanSetAvatar", "CanSetBroadcast", "CanSetPrivacyLevel", "CanKickMember", "CanSetOwnMemberAttribute", "CanSetOtherMemberAttribute", "CanSetOwnVoiceState", "CanSetOwnPresenceLevel", "CanSetOwnWhisperLevel", "CanSetOwnMemberNote", "CanSetOtherMemberNote", "CanUseVoice", "CanVoiceMuteMemberForAll", "CanGetInvitation", "CanSendInvitation", "CanSendGuestInvitation", "CanRevokeOwnInvitation", "CanRevokeOtherInvitation", "CanGetSuggestion", "CanSuggestMember", "CanApproveMember", "CanGetTicket", "CanCreateTicket", "CanDestroyTicket", "CanGetBan", "CanAddBan", "CanRemoveBan", "CanCreateStream", "CanDestroyStream", "CanSetStreamPosition", "CanSetStreamAttribute", "CanSetStreamName", "CanSetStreamSubject", "CanSetStreamAccess", "CanSetStreamVoiceLevel", "CanCreateMessage", "CanDestroyOwnMessage", "CanDestroyOtherMessage", "CanEditOwnMessage", "CanPinMessage", "CanMentionAll", "CanMentionHere", "CanMentionMember", "CanMentionRole" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubRole), global::Bgs.Protocol.Club.V1.ClubRole.Parser, new[]{ "Id", "State", "Privilege", "AlwaysGrantStreamAccess", "AllowInClubSlot" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubRoleSet), global::Bgs.Protocol.Club.V1.ClubRoleSet.Parser, new[]{ "Role", "DefaultRole", "AssignmentRespectsRelegationChain", "Subtype" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ClubPrivilegeSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubPrivilegeSet()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + private int _hasBits1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRoleReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubPrivilegeSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubPrivilegeSet(ClubPrivilegeSet other) : this() { + _hasBits0 = other._hasBits0; + _hasBits1 = other._hasBits1; + canDestroy_ = other.canDestroy_; + canSetAttribute_ = other.canSetAttribute_; + canSetName_ = other.canSetName_; + canSetDescription_ = other.canSetDescription_; + canSetAvatar_ = other.canSetAvatar_; + canSetBroadcast_ = other.canSetBroadcast_; + canSetPrivacyLevel_ = other.canSetPrivacyLevel_; + canKickMember_ = other.canKickMember_; + canSetOwnMemberAttribute_ = other.canSetOwnMemberAttribute_; + canSetOtherMemberAttribute_ = other.canSetOtherMemberAttribute_; + canSetOwnVoiceState_ = other.canSetOwnVoiceState_; + canSetOwnPresenceLevel_ = other.canSetOwnPresenceLevel_; + canSetOwnWhisperLevel_ = other.canSetOwnWhisperLevel_; + canSetOwnMemberNote_ = other.canSetOwnMemberNote_; + canSetOtherMemberNote_ = other.canSetOtherMemberNote_; + canUseVoice_ = other.canUseVoice_; + canVoiceMuteMemberForAll_ = other.canVoiceMuteMemberForAll_; + canGetInvitation_ = other.canGetInvitation_; + canSendInvitation_ = other.canSendInvitation_; + canSendGuestInvitation_ = other.canSendGuestInvitation_; + canRevokeOwnInvitation_ = other.canRevokeOwnInvitation_; + canRevokeOtherInvitation_ = other.canRevokeOtherInvitation_; + canGetSuggestion_ = other.canGetSuggestion_; + canSuggestMember_ = other.canSuggestMember_; + canApproveMember_ = other.canApproveMember_; + canGetTicket_ = other.canGetTicket_; + canCreateTicket_ = other.canCreateTicket_; + canDestroyTicket_ = other.canDestroyTicket_; + canGetBan_ = other.canGetBan_; + canAddBan_ = other.canAddBan_; + canRemoveBan_ = other.canRemoveBan_; + canCreateStream_ = other.canCreateStream_; + canDestroyStream_ = other.canDestroyStream_; + canSetStreamPosition_ = other.canSetStreamPosition_; + canSetStreamAttribute_ = other.canSetStreamAttribute_; + canSetStreamName_ = other.canSetStreamName_; + canSetStreamSubject_ = other.canSetStreamSubject_; + canSetStreamAccess_ = other.canSetStreamAccess_; + canSetStreamVoiceLevel_ = other.canSetStreamVoiceLevel_; + canCreateMessage_ = other.canCreateMessage_; + canDestroyOwnMessage_ = other.canDestroyOwnMessage_; + canDestroyOtherMessage_ = other.canDestroyOtherMessage_; + canEditOwnMessage_ = other.canEditOwnMessage_; + canPinMessage_ = other.canPinMessage_; + canMentionAll_ = other.canMentionAll_; + canMentionHere_ = other.canMentionHere_; + canMentionMember_ = other.canMentionMember_; + canMentionRole_ = other.canMentionRole_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubPrivilegeSet Clone() { + return new ClubPrivilegeSet(this); + } + + /// Field number for the "can_destroy" field. + public const int CanDestroyFieldNumber = 1; + private readonly static bool CanDestroyDefaultValue = false; + + private bool canDestroy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanDestroy { + get { if ((_hasBits0 & 1) != 0) { return canDestroy_; } else { return CanDestroyDefaultValue; } } + set { + _hasBits0 |= 1; + canDestroy_ = value; + } + } + /// Gets whether the "can_destroy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanDestroy { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "can_destroy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanDestroy() { + _hasBits0 &= ~1; + } + + /// Field number for the "can_set_attribute" field. + public const int CanSetAttributeFieldNumber = 10; + private readonly static bool CanSetAttributeDefaultValue = false; + + private bool canSetAttribute_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetAttribute { + get { if ((_hasBits0 & 2) != 0) { return canSetAttribute_; } else { return CanSetAttributeDefaultValue; } } + set { + _hasBits0 |= 2; + canSetAttribute_ = value; + } + } + /// Gets whether the "can_set_attribute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetAttribute { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "can_set_attribute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetAttribute() { + _hasBits0 &= ~2; + } + + /// Field number for the "can_set_name" field. + public const int CanSetNameFieldNumber = 11; + private readonly static bool CanSetNameDefaultValue = false; + + private bool canSetName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetName { + get { if ((_hasBits0 & 4) != 0) { return canSetName_; } else { return CanSetNameDefaultValue; } } + set { + _hasBits0 |= 4; + canSetName_ = value; + } + } + /// Gets whether the "can_set_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetName { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "can_set_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetName() { + _hasBits0 &= ~4; + } + + /// Field number for the "can_set_description" field. + public const int CanSetDescriptionFieldNumber = 12; + private readonly static bool CanSetDescriptionDefaultValue = false; + + private bool canSetDescription_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetDescription { + get { if ((_hasBits0 & 8) != 0) { return canSetDescription_; } else { return CanSetDescriptionDefaultValue; } } + set { + _hasBits0 |= 8; + canSetDescription_ = value; + } + } + /// Gets whether the "can_set_description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetDescription { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "can_set_description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetDescription() { + _hasBits0 &= ~8; + } + + /// Field number for the "can_set_avatar" field. + public const int CanSetAvatarFieldNumber = 13; + private readonly static bool CanSetAvatarDefaultValue = false; + + private bool canSetAvatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetAvatar { + get { if ((_hasBits0 & 16) != 0) { return canSetAvatar_; } else { return CanSetAvatarDefaultValue; } } + set { + _hasBits0 |= 16; + canSetAvatar_ = value; + } + } + /// Gets whether the "can_set_avatar" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetAvatar { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "can_set_avatar" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetAvatar() { + _hasBits0 &= ~16; + } + + /// Field number for the "can_set_broadcast" field. + public const int CanSetBroadcastFieldNumber = 14; + private readonly static bool CanSetBroadcastDefaultValue = false; + + private bool canSetBroadcast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetBroadcast { + get { if ((_hasBits0 & 32) != 0) { return canSetBroadcast_; } else { return CanSetBroadcastDefaultValue; } } + set { + _hasBits0 |= 32; + canSetBroadcast_ = value; + } + } + /// Gets whether the "can_set_broadcast" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetBroadcast { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "can_set_broadcast" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetBroadcast() { + _hasBits0 &= ~32; + } + + /// Field number for the "can_set_privacy_level" field. + public const int CanSetPrivacyLevelFieldNumber = 15; + private readonly static bool CanSetPrivacyLevelDefaultValue = false; + + private bool canSetPrivacyLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetPrivacyLevel { + get { if ((_hasBits0 & 64) != 0) { return canSetPrivacyLevel_; } else { return CanSetPrivacyLevelDefaultValue; } } + set { + _hasBits0 |= 64; + canSetPrivacyLevel_ = value; + } + } + /// Gets whether the "can_set_privacy_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetPrivacyLevel { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "can_set_privacy_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetPrivacyLevel() { + _hasBits0 &= ~64; + } + + /// Field number for the "can_kick_member" field. + public const int CanKickMemberFieldNumber = 30; + private readonly static bool CanKickMemberDefaultValue = false; + + private bool canKickMember_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanKickMember { + get { if ((_hasBits0 & 128) != 0) { return canKickMember_; } else { return CanKickMemberDefaultValue; } } + set { + _hasBits0 |= 128; + canKickMember_ = value; + } + } + /// Gets whether the "can_kick_member" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanKickMember { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "can_kick_member" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanKickMember() { + _hasBits0 &= ~128; + } + + /// Field number for the "can_set_own_member_attribute" field. + public const int CanSetOwnMemberAttributeFieldNumber = 31; + private readonly static bool CanSetOwnMemberAttributeDefaultValue = false; + + private bool canSetOwnMemberAttribute_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetOwnMemberAttribute { + get { if ((_hasBits0 & 256) != 0) { return canSetOwnMemberAttribute_; } else { return CanSetOwnMemberAttributeDefaultValue; } } + set { + _hasBits0 |= 256; + canSetOwnMemberAttribute_ = value; + } + } + /// Gets whether the "can_set_own_member_attribute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetOwnMemberAttribute { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "can_set_own_member_attribute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetOwnMemberAttribute() { + _hasBits0 &= ~256; + } + + /// Field number for the "can_set_other_member_attribute" field. + public const int CanSetOtherMemberAttributeFieldNumber = 32; + private readonly static bool CanSetOtherMemberAttributeDefaultValue = false; + + private bool canSetOtherMemberAttribute_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetOtherMemberAttribute { + get { if ((_hasBits0 & 512) != 0) { return canSetOtherMemberAttribute_; } else { return CanSetOtherMemberAttributeDefaultValue; } } + set { + _hasBits0 |= 512; + canSetOtherMemberAttribute_ = value; + } + } + /// Gets whether the "can_set_other_member_attribute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetOtherMemberAttribute { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "can_set_other_member_attribute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetOtherMemberAttribute() { + _hasBits0 &= ~512; + } + + /// Field number for the "can_set_own_voice_state" field. + public const int CanSetOwnVoiceStateFieldNumber = 33; + private readonly static bool CanSetOwnVoiceStateDefaultValue = false; + + private bool canSetOwnVoiceState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetOwnVoiceState { + get { if ((_hasBits0 & 1024) != 0) { return canSetOwnVoiceState_; } else { return CanSetOwnVoiceStateDefaultValue; } } + set { + _hasBits0 |= 1024; + canSetOwnVoiceState_ = value; + } + } + /// Gets whether the "can_set_own_voice_state" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetOwnVoiceState { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "can_set_own_voice_state" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetOwnVoiceState() { + _hasBits0 &= ~1024; + } + + /// Field number for the "can_set_own_presence_level" field. + public const int CanSetOwnPresenceLevelFieldNumber = 34; + private readonly static bool CanSetOwnPresenceLevelDefaultValue = false; + + private bool canSetOwnPresenceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetOwnPresenceLevel { + get { if ((_hasBits0 & 2048) != 0) { return canSetOwnPresenceLevel_; } else { return CanSetOwnPresenceLevelDefaultValue; } } + set { + _hasBits0 |= 2048; + canSetOwnPresenceLevel_ = value; + } + } + /// Gets whether the "can_set_own_presence_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetOwnPresenceLevel { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "can_set_own_presence_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetOwnPresenceLevel() { + _hasBits0 &= ~2048; + } + + /// Field number for the "can_set_own_whisper_level" field. + public const int CanSetOwnWhisperLevelFieldNumber = 35; + private readonly static bool CanSetOwnWhisperLevelDefaultValue = false; + + private bool canSetOwnWhisperLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetOwnWhisperLevel { + get { if ((_hasBits0 & 4096) != 0) { return canSetOwnWhisperLevel_; } else { return CanSetOwnWhisperLevelDefaultValue; } } + set { + _hasBits0 |= 4096; + canSetOwnWhisperLevel_ = value; + } + } + /// Gets whether the "can_set_own_whisper_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetOwnWhisperLevel { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "can_set_own_whisper_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetOwnWhisperLevel() { + _hasBits0 &= ~4096; + } + + /// Field number for the "can_set_own_member_note" field. + public const int CanSetOwnMemberNoteFieldNumber = 36; + private readonly static bool CanSetOwnMemberNoteDefaultValue = false; + + private bool canSetOwnMemberNote_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetOwnMemberNote { + get { if ((_hasBits0 & 8192) != 0) { return canSetOwnMemberNote_; } else { return CanSetOwnMemberNoteDefaultValue; } } + set { + _hasBits0 |= 8192; + canSetOwnMemberNote_ = value; + } + } + /// Gets whether the "can_set_own_member_note" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetOwnMemberNote { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "can_set_own_member_note" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetOwnMemberNote() { + _hasBits0 &= ~8192; + } + + /// Field number for the "can_set_other_member_note" field. + public const int CanSetOtherMemberNoteFieldNumber = 37; + private readonly static bool CanSetOtherMemberNoteDefaultValue = false; + + private bool canSetOtherMemberNote_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetOtherMemberNote { + get { if ((_hasBits0 & 16384) != 0) { return canSetOtherMemberNote_; } else { return CanSetOtherMemberNoteDefaultValue; } } + set { + _hasBits0 |= 16384; + canSetOtherMemberNote_ = value; + } + } + /// Gets whether the "can_set_other_member_note" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetOtherMemberNote { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "can_set_other_member_note" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetOtherMemberNote() { + _hasBits0 &= ~16384; + } + + /// Field number for the "can_use_voice" field. + public const int CanUseVoiceFieldNumber = 50; + private readonly static bool CanUseVoiceDefaultValue = false; + + private bool canUseVoice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanUseVoice { + get { if ((_hasBits0 & 32768) != 0) { return canUseVoice_; } else { return CanUseVoiceDefaultValue; } } + set { + _hasBits0 |= 32768; + canUseVoice_ = value; + } + } + /// Gets whether the "can_use_voice" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanUseVoice { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "can_use_voice" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanUseVoice() { + _hasBits0 &= ~32768; + } + + /// Field number for the "can_voice_mute_member_for_all" field. + public const int CanVoiceMuteMemberForAllFieldNumber = 51; + private readonly static bool CanVoiceMuteMemberForAllDefaultValue = false; + + private bool canVoiceMuteMemberForAll_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanVoiceMuteMemberForAll { + get { if ((_hasBits0 & 65536) != 0) { return canVoiceMuteMemberForAll_; } else { return CanVoiceMuteMemberForAllDefaultValue; } } + set { + _hasBits0 |= 65536; + canVoiceMuteMemberForAll_ = value; + } + } + /// Gets whether the "can_voice_mute_member_for_all" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanVoiceMuteMemberForAll { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "can_voice_mute_member_for_all" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanVoiceMuteMemberForAll() { + _hasBits0 &= ~65536; + } + + /// Field number for the "can_get_invitation" field. + public const int CanGetInvitationFieldNumber = 70; + private readonly static bool CanGetInvitationDefaultValue = false; + + private bool canGetInvitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanGetInvitation { + get { if ((_hasBits0 & 131072) != 0) { return canGetInvitation_; } else { return CanGetInvitationDefaultValue; } } + set { + _hasBits0 |= 131072; + canGetInvitation_ = value; + } + } + /// Gets whether the "can_get_invitation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanGetInvitation { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "can_get_invitation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanGetInvitation() { + _hasBits0 &= ~131072; + } + + /// Field number for the "can_send_invitation" field. + public const int CanSendInvitationFieldNumber = 71; + private readonly static bool CanSendInvitationDefaultValue = false; + + private bool canSendInvitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSendInvitation { + get { if ((_hasBits0 & 262144) != 0) { return canSendInvitation_; } else { return CanSendInvitationDefaultValue; } } + set { + _hasBits0 |= 262144; + canSendInvitation_ = value; + } + } + /// Gets whether the "can_send_invitation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSendInvitation { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "can_send_invitation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSendInvitation() { + _hasBits0 &= ~262144; + } + + /// Field number for the "can_send_guest_invitation" field. + public const int CanSendGuestInvitationFieldNumber = 72; + private readonly static bool CanSendGuestInvitationDefaultValue = false; + + private bool canSendGuestInvitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSendGuestInvitation { + get { if ((_hasBits0 & 524288) != 0) { return canSendGuestInvitation_; } else { return CanSendGuestInvitationDefaultValue; } } + set { + _hasBits0 |= 524288; + canSendGuestInvitation_ = value; + } + } + /// Gets whether the "can_send_guest_invitation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSendGuestInvitation { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "can_send_guest_invitation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSendGuestInvitation() { + _hasBits0 &= ~524288; + } + + /// Field number for the "can_revoke_own_invitation" field. + public const int CanRevokeOwnInvitationFieldNumber = 73; + private readonly static bool CanRevokeOwnInvitationDefaultValue = false; + + private bool canRevokeOwnInvitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanRevokeOwnInvitation { + get { if ((_hasBits0 & 1048576) != 0) { return canRevokeOwnInvitation_; } else { return CanRevokeOwnInvitationDefaultValue; } } + set { + _hasBits0 |= 1048576; + canRevokeOwnInvitation_ = value; + } + } + /// Gets whether the "can_revoke_own_invitation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanRevokeOwnInvitation { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "can_revoke_own_invitation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanRevokeOwnInvitation() { + _hasBits0 &= ~1048576; + } + + /// Field number for the "can_revoke_other_invitation" field. + public const int CanRevokeOtherInvitationFieldNumber = 74; + private readonly static bool CanRevokeOtherInvitationDefaultValue = false; + + private bool canRevokeOtherInvitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanRevokeOtherInvitation { + get { if ((_hasBits0 & 2097152) != 0) { return canRevokeOtherInvitation_; } else { return CanRevokeOtherInvitationDefaultValue; } } + set { + _hasBits0 |= 2097152; + canRevokeOtherInvitation_ = value; + } + } + /// Gets whether the "can_revoke_other_invitation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanRevokeOtherInvitation { + get { return (_hasBits0 & 2097152) != 0; } + } + /// Clears the value of the "can_revoke_other_invitation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanRevokeOtherInvitation() { + _hasBits0 &= ~2097152; + } + + /// Field number for the "can_get_suggestion" field. + public const int CanGetSuggestionFieldNumber = 90; + private readonly static bool CanGetSuggestionDefaultValue = false; + + private bool canGetSuggestion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanGetSuggestion { + get { if ((_hasBits0 & 4194304) != 0) { return canGetSuggestion_; } else { return CanGetSuggestionDefaultValue; } } + set { + _hasBits0 |= 4194304; + canGetSuggestion_ = value; + } + } + /// Gets whether the "can_get_suggestion" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanGetSuggestion { + get { return (_hasBits0 & 4194304) != 0; } + } + /// Clears the value of the "can_get_suggestion" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanGetSuggestion() { + _hasBits0 &= ~4194304; + } + + /// Field number for the "can_suggest_member" field. + public const int CanSuggestMemberFieldNumber = 91; + private readonly static bool CanSuggestMemberDefaultValue = false; + + private bool canSuggestMember_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSuggestMember { + get { if ((_hasBits0 & 8388608) != 0) { return canSuggestMember_; } else { return CanSuggestMemberDefaultValue; } } + set { + _hasBits0 |= 8388608; + canSuggestMember_ = value; + } + } + /// Gets whether the "can_suggest_member" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSuggestMember { + get { return (_hasBits0 & 8388608) != 0; } + } + /// Clears the value of the "can_suggest_member" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSuggestMember() { + _hasBits0 &= ~8388608; + } + + /// Field number for the "can_approve_member" field. + public const int CanApproveMemberFieldNumber = 92; + private readonly static bool CanApproveMemberDefaultValue = false; + + private bool canApproveMember_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanApproveMember { + get { if ((_hasBits0 & 16777216) != 0) { return canApproveMember_; } else { return CanApproveMemberDefaultValue; } } + set { + _hasBits0 |= 16777216; + canApproveMember_ = value; + } + } + /// Gets whether the "can_approve_member" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanApproveMember { + get { return (_hasBits0 & 16777216) != 0; } + } + /// Clears the value of the "can_approve_member" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanApproveMember() { + _hasBits0 &= ~16777216; + } + + /// Field number for the "can_get_ticket" field. + public const int CanGetTicketFieldNumber = 110; + private readonly static bool CanGetTicketDefaultValue = false; + + private bool canGetTicket_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanGetTicket { + get { if ((_hasBits0 & 33554432) != 0) { return canGetTicket_; } else { return CanGetTicketDefaultValue; } } + set { + _hasBits0 |= 33554432; + canGetTicket_ = value; + } + } + /// Gets whether the "can_get_ticket" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanGetTicket { + get { return (_hasBits0 & 33554432) != 0; } + } + /// Clears the value of the "can_get_ticket" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanGetTicket() { + _hasBits0 &= ~33554432; + } + + /// Field number for the "can_create_ticket" field. + public const int CanCreateTicketFieldNumber = 111; + private readonly static bool CanCreateTicketDefaultValue = false; + + private bool canCreateTicket_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanCreateTicket { + get { if ((_hasBits0 & 67108864) != 0) { return canCreateTicket_; } else { return CanCreateTicketDefaultValue; } } + set { + _hasBits0 |= 67108864; + canCreateTicket_ = value; + } + } + /// Gets whether the "can_create_ticket" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanCreateTicket { + get { return (_hasBits0 & 67108864) != 0; } + } + /// Clears the value of the "can_create_ticket" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanCreateTicket() { + _hasBits0 &= ~67108864; + } + + /// Field number for the "can_destroy_ticket" field. + public const int CanDestroyTicketFieldNumber = 112; + private readonly static bool CanDestroyTicketDefaultValue = false; + + private bool canDestroyTicket_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanDestroyTicket { + get { if ((_hasBits0 & 134217728) != 0) { return canDestroyTicket_; } else { return CanDestroyTicketDefaultValue; } } + set { + _hasBits0 |= 134217728; + canDestroyTicket_ = value; + } + } + /// Gets whether the "can_destroy_ticket" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanDestroyTicket { + get { return (_hasBits0 & 134217728) != 0; } + } + /// Clears the value of the "can_destroy_ticket" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanDestroyTicket() { + _hasBits0 &= ~134217728; + } + + /// Field number for the "can_get_ban" field. + public const int CanGetBanFieldNumber = 130; + private readonly static bool CanGetBanDefaultValue = false; + + private bool canGetBan_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanGetBan { + get { if ((_hasBits0 & 268435456) != 0) { return canGetBan_; } else { return CanGetBanDefaultValue; } } + set { + _hasBits0 |= 268435456; + canGetBan_ = value; + } + } + /// Gets whether the "can_get_ban" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanGetBan { + get { return (_hasBits0 & 268435456) != 0; } + } + /// Clears the value of the "can_get_ban" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanGetBan() { + _hasBits0 &= ~268435456; + } + + /// Field number for the "can_add_ban" field. + public const int CanAddBanFieldNumber = 131; + private readonly static bool CanAddBanDefaultValue = false; + + private bool canAddBan_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanAddBan { + get { if ((_hasBits0 & 536870912) != 0) { return canAddBan_; } else { return CanAddBanDefaultValue; } } + set { + _hasBits0 |= 536870912; + canAddBan_ = value; + } + } + /// Gets whether the "can_add_ban" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanAddBan { + get { return (_hasBits0 & 536870912) != 0; } + } + /// Clears the value of the "can_add_ban" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanAddBan() { + _hasBits0 &= ~536870912; + } + + /// Field number for the "can_remove_ban" field. + public const int CanRemoveBanFieldNumber = 132; + private readonly static bool CanRemoveBanDefaultValue = false; + + private bool canRemoveBan_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanRemoveBan { + get { if ((_hasBits0 & 1073741824) != 0) { return canRemoveBan_; } else { return CanRemoveBanDefaultValue; } } + set { + _hasBits0 |= 1073741824; + canRemoveBan_ = value; + } + } + /// Gets whether the "can_remove_ban" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanRemoveBan { + get { return (_hasBits0 & 1073741824) != 0; } + } + /// Clears the value of the "can_remove_ban" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanRemoveBan() { + _hasBits0 &= ~1073741824; + } + + /// Field number for the "can_create_stream" field. + public const int CanCreateStreamFieldNumber = 140; + private readonly static bool CanCreateStreamDefaultValue = false; + + private bool canCreateStream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanCreateStream { + get { if ((_hasBits0 & -2147483648) != 0) { return canCreateStream_; } else { return CanCreateStreamDefaultValue; } } + set { + _hasBits0 |= -2147483648; + canCreateStream_ = value; + } + } + /// Gets whether the "can_create_stream" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanCreateStream { + get { return (_hasBits0 & -2147483648) != 0; } + } + /// Clears the value of the "can_create_stream" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanCreateStream() { + _hasBits0 &= ~-2147483648; + } + + /// Field number for the "can_destroy_stream" field. + public const int CanDestroyStreamFieldNumber = 141; + private readonly static bool CanDestroyStreamDefaultValue = false; + + private bool canDestroyStream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanDestroyStream { + get { if ((_hasBits1 & 1) != 0) { return canDestroyStream_; } else { return CanDestroyStreamDefaultValue; } } + set { + _hasBits1 |= 1; + canDestroyStream_ = value; + } + } + /// Gets whether the "can_destroy_stream" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanDestroyStream { + get { return (_hasBits1 & 1) != 0; } + } + /// Clears the value of the "can_destroy_stream" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanDestroyStream() { + _hasBits1 &= ~1; + } + + /// Field number for the "can_set_stream_position" field. + public const int CanSetStreamPositionFieldNumber = 142; + private readonly static bool CanSetStreamPositionDefaultValue = false; + + private bool canSetStreamPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetStreamPosition { + get { if ((_hasBits1 & 2) != 0) { return canSetStreamPosition_; } else { return CanSetStreamPositionDefaultValue; } } + set { + _hasBits1 |= 2; + canSetStreamPosition_ = value; + } + } + /// Gets whether the "can_set_stream_position" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetStreamPosition { + get { return (_hasBits1 & 2) != 0; } + } + /// Clears the value of the "can_set_stream_position" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetStreamPosition() { + _hasBits1 &= ~2; + } + + /// Field number for the "can_set_stream_attribute" field. + public const int CanSetStreamAttributeFieldNumber = 143; + private readonly static bool CanSetStreamAttributeDefaultValue = false; + + private bool canSetStreamAttribute_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetStreamAttribute { + get { if ((_hasBits1 & 4) != 0) { return canSetStreamAttribute_; } else { return CanSetStreamAttributeDefaultValue; } } + set { + _hasBits1 |= 4; + canSetStreamAttribute_ = value; + } + } + /// Gets whether the "can_set_stream_attribute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetStreamAttribute { + get { return (_hasBits1 & 4) != 0; } + } + /// Clears the value of the "can_set_stream_attribute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetStreamAttribute() { + _hasBits1 &= ~4; + } + + /// Field number for the "can_set_stream_name" field. + public const int CanSetStreamNameFieldNumber = 144; + private readonly static bool CanSetStreamNameDefaultValue = false; + + private bool canSetStreamName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetStreamName { + get { if ((_hasBits1 & 8) != 0) { return canSetStreamName_; } else { return CanSetStreamNameDefaultValue; } } + set { + _hasBits1 |= 8; + canSetStreamName_ = value; + } + } + /// Gets whether the "can_set_stream_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetStreamName { + get { return (_hasBits1 & 8) != 0; } + } + /// Clears the value of the "can_set_stream_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetStreamName() { + _hasBits1 &= ~8; + } + + /// Field number for the "can_set_stream_subject" field. + public const int CanSetStreamSubjectFieldNumber = 145; + private readonly static bool CanSetStreamSubjectDefaultValue = false; + + private bool canSetStreamSubject_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetStreamSubject { + get { if ((_hasBits1 & 16) != 0) { return canSetStreamSubject_; } else { return CanSetStreamSubjectDefaultValue; } } + set { + _hasBits1 |= 16; + canSetStreamSubject_ = value; + } + } + /// Gets whether the "can_set_stream_subject" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetStreamSubject { + get { return (_hasBits1 & 16) != 0; } + } + /// Clears the value of the "can_set_stream_subject" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetStreamSubject() { + _hasBits1 &= ~16; + } + + /// Field number for the "can_set_stream_access" field. + public const int CanSetStreamAccessFieldNumber = 146; + private readonly static bool CanSetStreamAccessDefaultValue = false; + + private bool canSetStreamAccess_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetStreamAccess { + get { if ((_hasBits1 & 32) != 0) { return canSetStreamAccess_; } else { return CanSetStreamAccessDefaultValue; } } + set { + _hasBits1 |= 32; + canSetStreamAccess_ = value; + } + } + /// Gets whether the "can_set_stream_access" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetStreamAccess { + get { return (_hasBits1 & 32) != 0; } + } + /// Clears the value of the "can_set_stream_access" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetStreamAccess() { + _hasBits1 &= ~32; + } + + /// Field number for the "can_set_stream_voice_level" field. + public const int CanSetStreamVoiceLevelFieldNumber = 147; + private readonly static bool CanSetStreamVoiceLevelDefaultValue = false; + + private bool canSetStreamVoiceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanSetStreamVoiceLevel { + get { if ((_hasBits1 & 64) != 0) { return canSetStreamVoiceLevel_; } else { return CanSetStreamVoiceLevelDefaultValue; } } + set { + _hasBits1 |= 64; + canSetStreamVoiceLevel_ = value; + } + } + /// Gets whether the "can_set_stream_voice_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanSetStreamVoiceLevel { + get { return (_hasBits1 & 64) != 0; } + } + /// Clears the value of the "can_set_stream_voice_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanSetStreamVoiceLevel() { + _hasBits1 &= ~64; + } + + /// Field number for the "can_create_message" field. + public const int CanCreateMessageFieldNumber = 180; + private readonly static bool CanCreateMessageDefaultValue = false; + + private bool canCreateMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanCreateMessage { + get { if ((_hasBits1 & 128) != 0) { return canCreateMessage_; } else { return CanCreateMessageDefaultValue; } } + set { + _hasBits1 |= 128; + canCreateMessage_ = value; + } + } + /// Gets whether the "can_create_message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanCreateMessage { + get { return (_hasBits1 & 128) != 0; } + } + /// Clears the value of the "can_create_message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanCreateMessage() { + _hasBits1 &= ~128; + } + + /// Field number for the "can_destroy_own_message" field. + public const int CanDestroyOwnMessageFieldNumber = 181; + private readonly static bool CanDestroyOwnMessageDefaultValue = false; + + private bool canDestroyOwnMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanDestroyOwnMessage { + get { if ((_hasBits1 & 256) != 0) { return canDestroyOwnMessage_; } else { return CanDestroyOwnMessageDefaultValue; } } + set { + _hasBits1 |= 256; + canDestroyOwnMessage_ = value; + } + } + /// Gets whether the "can_destroy_own_message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanDestroyOwnMessage { + get { return (_hasBits1 & 256) != 0; } + } + /// Clears the value of the "can_destroy_own_message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanDestroyOwnMessage() { + _hasBits1 &= ~256; + } + + /// Field number for the "can_destroy_other_message" field. + public const int CanDestroyOtherMessageFieldNumber = 182; + private readonly static bool CanDestroyOtherMessageDefaultValue = false; + + private bool canDestroyOtherMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanDestroyOtherMessage { + get { if ((_hasBits1 & 512) != 0) { return canDestroyOtherMessage_; } else { return CanDestroyOtherMessageDefaultValue; } } + set { + _hasBits1 |= 512; + canDestroyOtherMessage_ = value; + } + } + /// Gets whether the "can_destroy_other_message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanDestroyOtherMessage { + get { return (_hasBits1 & 512) != 0; } + } + /// Clears the value of the "can_destroy_other_message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanDestroyOtherMessage() { + _hasBits1 &= ~512; + } + + /// Field number for the "can_edit_own_message" field. + public const int CanEditOwnMessageFieldNumber = 183; + private readonly static bool CanEditOwnMessageDefaultValue = false; + + private bool canEditOwnMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanEditOwnMessage { + get { if ((_hasBits1 & 1024) != 0) { return canEditOwnMessage_; } else { return CanEditOwnMessageDefaultValue; } } + set { + _hasBits1 |= 1024; + canEditOwnMessage_ = value; + } + } + /// Gets whether the "can_edit_own_message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanEditOwnMessage { + get { return (_hasBits1 & 1024) != 0; } + } + /// Clears the value of the "can_edit_own_message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanEditOwnMessage() { + _hasBits1 &= ~1024; + } + + /// Field number for the "can_pin_message" field. + public const int CanPinMessageFieldNumber = 184; + private readonly static bool CanPinMessageDefaultValue = false; + + private bool canPinMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanPinMessage { + get { if ((_hasBits1 & 2048) != 0) { return canPinMessage_; } else { return CanPinMessageDefaultValue; } } + set { + _hasBits1 |= 2048; + canPinMessage_ = value; + } + } + /// Gets whether the "can_pin_message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanPinMessage { + get { return (_hasBits1 & 2048) != 0; } + } + /// Clears the value of the "can_pin_message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanPinMessage() { + _hasBits1 &= ~2048; + } + + /// Field number for the "can_mention_all" field. + public const int CanMentionAllFieldNumber = 185; + private readonly static bool CanMentionAllDefaultValue = false; + + private bool canMentionAll_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanMentionAll { + get { if ((_hasBits1 & 4096) != 0) { return canMentionAll_; } else { return CanMentionAllDefaultValue; } } + set { + _hasBits1 |= 4096; + canMentionAll_ = value; + } + } + /// Gets whether the "can_mention_all" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanMentionAll { + get { return (_hasBits1 & 4096) != 0; } + } + /// Clears the value of the "can_mention_all" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanMentionAll() { + _hasBits1 &= ~4096; + } + + /// Field number for the "can_mention_here" field. + public const int CanMentionHereFieldNumber = 186; + private readonly static bool CanMentionHereDefaultValue = false; + + private bool canMentionHere_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanMentionHere { + get { if ((_hasBits1 & 8192) != 0) { return canMentionHere_; } else { return CanMentionHereDefaultValue; } } + set { + _hasBits1 |= 8192; + canMentionHere_ = value; + } + } + /// Gets whether the "can_mention_here" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanMentionHere { + get { return (_hasBits1 & 8192) != 0; } + } + /// Clears the value of the "can_mention_here" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanMentionHere() { + _hasBits1 &= ~8192; + } + + /// Field number for the "can_mention_member" field. + public const int CanMentionMemberFieldNumber = 187; + private readonly static bool CanMentionMemberDefaultValue = false; + + private bool canMentionMember_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanMentionMember { + get { if ((_hasBits1 & 16384) != 0) { return canMentionMember_; } else { return CanMentionMemberDefaultValue; } } + set { + _hasBits1 |= 16384; + canMentionMember_ = value; + } + } + /// Gets whether the "can_mention_member" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanMentionMember { + get { return (_hasBits1 & 16384) != 0; } + } + /// Clears the value of the "can_mention_member" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanMentionMember() { + _hasBits1 &= ~16384; + } + + /// Field number for the "can_mention_role" field. + public const int CanMentionRoleFieldNumber = 188; + private readonly static bool CanMentionRoleDefaultValue = false; + + private bool canMentionRole_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CanMentionRole { + get { if ((_hasBits1 & 32768) != 0) { return canMentionRole_; } else { return CanMentionRoleDefaultValue; } } + set { + _hasBits1 |= 32768; + canMentionRole_ = value; + } + } + /// Gets whether the "can_mention_role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCanMentionRole { + get { return (_hasBits1 & 32768) != 0; } + } + /// Clears the value of the "can_mention_role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCanMentionRole() { + _hasBits1 &= ~32768; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubPrivilegeSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubPrivilegeSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CanDestroy != other.CanDestroy) return false; + if (CanSetAttribute != other.CanSetAttribute) return false; + if (CanSetName != other.CanSetName) return false; + if (CanSetDescription != other.CanSetDescription) return false; + if (CanSetAvatar != other.CanSetAvatar) return false; + if (CanSetBroadcast != other.CanSetBroadcast) return false; + if (CanSetPrivacyLevel != other.CanSetPrivacyLevel) return false; + if (CanKickMember != other.CanKickMember) return false; + if (CanSetOwnMemberAttribute != other.CanSetOwnMemberAttribute) return false; + if (CanSetOtherMemberAttribute != other.CanSetOtherMemberAttribute) return false; + if (CanSetOwnVoiceState != other.CanSetOwnVoiceState) return false; + if (CanSetOwnPresenceLevel != other.CanSetOwnPresenceLevel) return false; + if (CanSetOwnWhisperLevel != other.CanSetOwnWhisperLevel) return false; + if (CanSetOwnMemberNote != other.CanSetOwnMemberNote) return false; + if (CanSetOtherMemberNote != other.CanSetOtherMemberNote) return false; + if (CanUseVoice != other.CanUseVoice) return false; + if (CanVoiceMuteMemberForAll != other.CanVoiceMuteMemberForAll) return false; + if (CanGetInvitation != other.CanGetInvitation) return false; + if (CanSendInvitation != other.CanSendInvitation) return false; + if (CanSendGuestInvitation != other.CanSendGuestInvitation) return false; + if (CanRevokeOwnInvitation != other.CanRevokeOwnInvitation) return false; + if (CanRevokeOtherInvitation != other.CanRevokeOtherInvitation) return false; + if (CanGetSuggestion != other.CanGetSuggestion) return false; + if (CanSuggestMember != other.CanSuggestMember) return false; + if (CanApproveMember != other.CanApproveMember) return false; + if (CanGetTicket != other.CanGetTicket) return false; + if (CanCreateTicket != other.CanCreateTicket) return false; + if (CanDestroyTicket != other.CanDestroyTicket) return false; + if (CanGetBan != other.CanGetBan) return false; + if (CanAddBan != other.CanAddBan) return false; + if (CanRemoveBan != other.CanRemoveBan) return false; + if (CanCreateStream != other.CanCreateStream) return false; + if (CanDestroyStream != other.CanDestroyStream) return false; + if (CanSetStreamPosition != other.CanSetStreamPosition) return false; + if (CanSetStreamAttribute != other.CanSetStreamAttribute) return false; + if (CanSetStreamName != other.CanSetStreamName) return false; + if (CanSetStreamSubject != other.CanSetStreamSubject) return false; + if (CanSetStreamAccess != other.CanSetStreamAccess) return false; + if (CanSetStreamVoiceLevel != other.CanSetStreamVoiceLevel) return false; + if (CanCreateMessage != other.CanCreateMessage) return false; + if (CanDestroyOwnMessage != other.CanDestroyOwnMessage) return false; + if (CanDestroyOtherMessage != other.CanDestroyOtherMessage) return false; + if (CanEditOwnMessage != other.CanEditOwnMessage) return false; + if (CanPinMessage != other.CanPinMessage) return false; + if (CanMentionAll != other.CanMentionAll) return false; + if (CanMentionHere != other.CanMentionHere) return false; + if (CanMentionMember != other.CanMentionMember) return false; + if (CanMentionRole != other.CanMentionRole) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCanDestroy) hash ^= CanDestroy.GetHashCode(); + if (HasCanSetAttribute) hash ^= CanSetAttribute.GetHashCode(); + if (HasCanSetName) hash ^= CanSetName.GetHashCode(); + if (HasCanSetDescription) hash ^= CanSetDescription.GetHashCode(); + if (HasCanSetAvatar) hash ^= CanSetAvatar.GetHashCode(); + if (HasCanSetBroadcast) hash ^= CanSetBroadcast.GetHashCode(); + if (HasCanSetPrivacyLevel) hash ^= CanSetPrivacyLevel.GetHashCode(); + if (HasCanKickMember) hash ^= CanKickMember.GetHashCode(); + if (HasCanSetOwnMemberAttribute) hash ^= CanSetOwnMemberAttribute.GetHashCode(); + if (HasCanSetOtherMemberAttribute) hash ^= CanSetOtherMemberAttribute.GetHashCode(); + if (HasCanSetOwnVoiceState) hash ^= CanSetOwnVoiceState.GetHashCode(); + if (HasCanSetOwnPresenceLevel) hash ^= CanSetOwnPresenceLevel.GetHashCode(); + if (HasCanSetOwnWhisperLevel) hash ^= CanSetOwnWhisperLevel.GetHashCode(); + if (HasCanSetOwnMemberNote) hash ^= CanSetOwnMemberNote.GetHashCode(); + if (HasCanSetOtherMemberNote) hash ^= CanSetOtherMemberNote.GetHashCode(); + if (HasCanUseVoice) hash ^= CanUseVoice.GetHashCode(); + if (HasCanVoiceMuteMemberForAll) hash ^= CanVoiceMuteMemberForAll.GetHashCode(); + if (HasCanGetInvitation) hash ^= CanGetInvitation.GetHashCode(); + if (HasCanSendInvitation) hash ^= CanSendInvitation.GetHashCode(); + if (HasCanSendGuestInvitation) hash ^= CanSendGuestInvitation.GetHashCode(); + if (HasCanRevokeOwnInvitation) hash ^= CanRevokeOwnInvitation.GetHashCode(); + if (HasCanRevokeOtherInvitation) hash ^= CanRevokeOtherInvitation.GetHashCode(); + if (HasCanGetSuggestion) hash ^= CanGetSuggestion.GetHashCode(); + if (HasCanSuggestMember) hash ^= CanSuggestMember.GetHashCode(); + if (HasCanApproveMember) hash ^= CanApproveMember.GetHashCode(); + if (HasCanGetTicket) hash ^= CanGetTicket.GetHashCode(); + if (HasCanCreateTicket) hash ^= CanCreateTicket.GetHashCode(); + if (HasCanDestroyTicket) hash ^= CanDestroyTicket.GetHashCode(); + if (HasCanGetBan) hash ^= CanGetBan.GetHashCode(); + if (HasCanAddBan) hash ^= CanAddBan.GetHashCode(); + if (HasCanRemoveBan) hash ^= CanRemoveBan.GetHashCode(); + if (HasCanCreateStream) hash ^= CanCreateStream.GetHashCode(); + if (HasCanDestroyStream) hash ^= CanDestroyStream.GetHashCode(); + if (HasCanSetStreamPosition) hash ^= CanSetStreamPosition.GetHashCode(); + if (HasCanSetStreamAttribute) hash ^= CanSetStreamAttribute.GetHashCode(); + if (HasCanSetStreamName) hash ^= CanSetStreamName.GetHashCode(); + if (HasCanSetStreamSubject) hash ^= CanSetStreamSubject.GetHashCode(); + if (HasCanSetStreamAccess) hash ^= CanSetStreamAccess.GetHashCode(); + if (HasCanSetStreamVoiceLevel) hash ^= CanSetStreamVoiceLevel.GetHashCode(); + if (HasCanCreateMessage) hash ^= CanCreateMessage.GetHashCode(); + if (HasCanDestroyOwnMessage) hash ^= CanDestroyOwnMessage.GetHashCode(); + if (HasCanDestroyOtherMessage) hash ^= CanDestroyOtherMessage.GetHashCode(); + if (HasCanEditOwnMessage) hash ^= CanEditOwnMessage.GetHashCode(); + if (HasCanPinMessage) hash ^= CanPinMessage.GetHashCode(); + if (HasCanMentionAll) hash ^= CanMentionAll.GetHashCode(); + if (HasCanMentionHere) hash ^= CanMentionHere.GetHashCode(); + if (HasCanMentionMember) hash ^= CanMentionMember.GetHashCode(); + if (HasCanMentionRole) hash ^= CanMentionRole.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCanDestroy) { + output.WriteRawTag(8); + output.WriteBool(CanDestroy); + } + if (HasCanSetAttribute) { + output.WriteRawTag(80); + output.WriteBool(CanSetAttribute); + } + if (HasCanSetName) { + output.WriteRawTag(88); + output.WriteBool(CanSetName); + } + if (HasCanSetDescription) { + output.WriteRawTag(96); + output.WriteBool(CanSetDescription); + } + if (HasCanSetAvatar) { + output.WriteRawTag(104); + output.WriteBool(CanSetAvatar); + } + if (HasCanSetBroadcast) { + output.WriteRawTag(112); + output.WriteBool(CanSetBroadcast); + } + if (HasCanSetPrivacyLevel) { + output.WriteRawTag(120); + output.WriteBool(CanSetPrivacyLevel); + } + if (HasCanKickMember) { + output.WriteRawTag(240, 1); + output.WriteBool(CanKickMember); + } + if (HasCanSetOwnMemberAttribute) { + output.WriteRawTag(248, 1); + output.WriteBool(CanSetOwnMemberAttribute); + } + if (HasCanSetOtherMemberAttribute) { + output.WriteRawTag(128, 2); + output.WriteBool(CanSetOtherMemberAttribute); + } + if (HasCanSetOwnVoiceState) { + output.WriteRawTag(136, 2); + output.WriteBool(CanSetOwnVoiceState); + } + if (HasCanSetOwnPresenceLevel) { + output.WriteRawTag(144, 2); + output.WriteBool(CanSetOwnPresenceLevel); + } + if (HasCanSetOwnWhisperLevel) { + output.WriteRawTag(152, 2); + output.WriteBool(CanSetOwnWhisperLevel); + } + if (HasCanSetOwnMemberNote) { + output.WriteRawTag(160, 2); + output.WriteBool(CanSetOwnMemberNote); + } + if (HasCanSetOtherMemberNote) { + output.WriteRawTag(168, 2); + output.WriteBool(CanSetOtherMemberNote); + } + if (HasCanUseVoice) { + output.WriteRawTag(144, 3); + output.WriteBool(CanUseVoice); + } + if (HasCanVoiceMuteMemberForAll) { + output.WriteRawTag(152, 3); + output.WriteBool(CanVoiceMuteMemberForAll); + } + if (HasCanGetInvitation) { + output.WriteRawTag(176, 4); + output.WriteBool(CanGetInvitation); + } + if (HasCanSendInvitation) { + output.WriteRawTag(184, 4); + output.WriteBool(CanSendInvitation); + } + if (HasCanSendGuestInvitation) { + output.WriteRawTag(192, 4); + output.WriteBool(CanSendGuestInvitation); + } + if (HasCanRevokeOwnInvitation) { + output.WriteRawTag(200, 4); + output.WriteBool(CanRevokeOwnInvitation); + } + if (HasCanRevokeOtherInvitation) { + output.WriteRawTag(208, 4); + output.WriteBool(CanRevokeOtherInvitation); + } + if (HasCanGetSuggestion) { + output.WriteRawTag(208, 5); + output.WriteBool(CanGetSuggestion); + } + if (HasCanSuggestMember) { + output.WriteRawTag(216, 5); + output.WriteBool(CanSuggestMember); + } + if (HasCanApproveMember) { + output.WriteRawTag(224, 5); + output.WriteBool(CanApproveMember); + } + if (HasCanGetTicket) { + output.WriteRawTag(240, 6); + output.WriteBool(CanGetTicket); + } + if (HasCanCreateTicket) { + output.WriteRawTag(248, 6); + output.WriteBool(CanCreateTicket); + } + if (HasCanDestroyTicket) { + output.WriteRawTag(128, 7); + output.WriteBool(CanDestroyTicket); + } + if (HasCanGetBan) { + output.WriteRawTag(144, 8); + output.WriteBool(CanGetBan); + } + if (HasCanAddBan) { + output.WriteRawTag(152, 8); + output.WriteBool(CanAddBan); + } + if (HasCanRemoveBan) { + output.WriteRawTag(160, 8); + output.WriteBool(CanRemoveBan); + } + if (HasCanCreateStream) { + output.WriteRawTag(224, 8); + output.WriteBool(CanCreateStream); + } + if (HasCanDestroyStream) { + output.WriteRawTag(232, 8); + output.WriteBool(CanDestroyStream); + } + if (HasCanSetStreamPosition) { + output.WriteRawTag(240, 8); + output.WriteBool(CanSetStreamPosition); + } + if (HasCanSetStreamAttribute) { + output.WriteRawTag(248, 8); + output.WriteBool(CanSetStreamAttribute); + } + if (HasCanSetStreamName) { + output.WriteRawTag(128, 9); + output.WriteBool(CanSetStreamName); + } + if (HasCanSetStreamSubject) { + output.WriteRawTag(136, 9); + output.WriteBool(CanSetStreamSubject); + } + if (HasCanSetStreamAccess) { + output.WriteRawTag(144, 9); + output.WriteBool(CanSetStreamAccess); + } + if (HasCanSetStreamVoiceLevel) { + output.WriteRawTag(152, 9); + output.WriteBool(CanSetStreamVoiceLevel); + } + if (HasCanCreateMessage) { + output.WriteRawTag(160, 11); + output.WriteBool(CanCreateMessage); + } + if (HasCanDestroyOwnMessage) { + output.WriteRawTag(168, 11); + output.WriteBool(CanDestroyOwnMessage); + } + if (HasCanDestroyOtherMessage) { + output.WriteRawTag(176, 11); + output.WriteBool(CanDestroyOtherMessage); + } + if (HasCanEditOwnMessage) { + output.WriteRawTag(184, 11); + output.WriteBool(CanEditOwnMessage); + } + if (HasCanPinMessage) { + output.WriteRawTag(192, 11); + output.WriteBool(CanPinMessage); + } + if (HasCanMentionAll) { + output.WriteRawTag(200, 11); + output.WriteBool(CanMentionAll); + } + if (HasCanMentionHere) { + output.WriteRawTag(208, 11); + output.WriteBool(CanMentionHere); + } + if (HasCanMentionMember) { + output.WriteRawTag(216, 11); + output.WriteBool(CanMentionMember); + } + if (HasCanMentionRole) { + output.WriteRawTag(224, 11); + output.WriteBool(CanMentionRole); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCanDestroy) { + size += 1 + 1; + } + if (HasCanSetAttribute) { + size += 1 + 1; + } + if (HasCanSetName) { + size += 1 + 1; + } + if (HasCanSetDescription) { + size += 1 + 1; + } + if (HasCanSetAvatar) { + size += 1 + 1; + } + if (HasCanSetBroadcast) { + size += 1 + 1; + } + if (HasCanSetPrivacyLevel) { + size += 1 + 1; + } + if (HasCanKickMember) { + size += 2 + 1; + } + if (HasCanSetOwnMemberAttribute) { + size += 2 + 1; + } + if (HasCanSetOtherMemberAttribute) { + size += 2 + 1; + } + if (HasCanSetOwnVoiceState) { + size += 2 + 1; + } + if (HasCanSetOwnPresenceLevel) { + size += 2 + 1; + } + if (HasCanSetOwnWhisperLevel) { + size += 2 + 1; + } + if (HasCanSetOwnMemberNote) { + size += 2 + 1; + } + if (HasCanSetOtherMemberNote) { + size += 2 + 1; + } + if (HasCanUseVoice) { + size += 2 + 1; + } + if (HasCanVoiceMuteMemberForAll) { + size += 2 + 1; + } + if (HasCanGetInvitation) { + size += 2 + 1; + } + if (HasCanSendInvitation) { + size += 2 + 1; + } + if (HasCanSendGuestInvitation) { + size += 2 + 1; + } + if (HasCanRevokeOwnInvitation) { + size += 2 + 1; + } + if (HasCanRevokeOtherInvitation) { + size += 2 + 1; + } + if (HasCanGetSuggestion) { + size += 2 + 1; + } + if (HasCanSuggestMember) { + size += 2 + 1; + } + if (HasCanApproveMember) { + size += 2 + 1; + } + if (HasCanGetTicket) { + size += 2 + 1; + } + if (HasCanCreateTicket) { + size += 2 + 1; + } + if (HasCanDestroyTicket) { + size += 2 + 1; + } + if (HasCanGetBan) { + size += 2 + 1; + } + if (HasCanAddBan) { + size += 2 + 1; + } + if (HasCanRemoveBan) { + size += 2 + 1; + } + if (HasCanCreateStream) { + size += 2 + 1; + } + if (HasCanDestroyStream) { + size += 2 + 1; + } + if (HasCanSetStreamPosition) { + size += 2 + 1; + } + if (HasCanSetStreamAttribute) { + size += 2 + 1; + } + if (HasCanSetStreamName) { + size += 2 + 1; + } + if (HasCanSetStreamSubject) { + size += 2 + 1; + } + if (HasCanSetStreamAccess) { + size += 2 + 1; + } + if (HasCanSetStreamVoiceLevel) { + size += 2 + 1; + } + if (HasCanCreateMessage) { + size += 2 + 1; + } + if (HasCanDestroyOwnMessage) { + size += 2 + 1; + } + if (HasCanDestroyOtherMessage) { + size += 2 + 1; + } + if (HasCanEditOwnMessage) { + size += 2 + 1; + } + if (HasCanPinMessage) { + size += 2 + 1; + } + if (HasCanMentionAll) { + size += 2 + 1; + } + if (HasCanMentionHere) { + size += 2 + 1; + } + if (HasCanMentionMember) { + size += 2 + 1; + } + if (HasCanMentionRole) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubPrivilegeSet other) { + if (other == null) { + return; + } + if (other.HasCanDestroy) { + CanDestroy = other.CanDestroy; + } + if (other.HasCanSetAttribute) { + CanSetAttribute = other.CanSetAttribute; + } + if (other.HasCanSetName) { + CanSetName = other.CanSetName; + } + if (other.HasCanSetDescription) { + CanSetDescription = other.CanSetDescription; + } + if (other.HasCanSetAvatar) { + CanSetAvatar = other.CanSetAvatar; + } + if (other.HasCanSetBroadcast) { + CanSetBroadcast = other.CanSetBroadcast; + } + if (other.HasCanSetPrivacyLevel) { + CanSetPrivacyLevel = other.CanSetPrivacyLevel; + } + if (other.HasCanKickMember) { + CanKickMember = other.CanKickMember; + } + if (other.HasCanSetOwnMemberAttribute) { + CanSetOwnMemberAttribute = other.CanSetOwnMemberAttribute; + } + if (other.HasCanSetOtherMemberAttribute) { + CanSetOtherMemberAttribute = other.CanSetOtherMemberAttribute; + } + if (other.HasCanSetOwnVoiceState) { + CanSetOwnVoiceState = other.CanSetOwnVoiceState; + } + if (other.HasCanSetOwnPresenceLevel) { + CanSetOwnPresenceLevel = other.CanSetOwnPresenceLevel; + } + if (other.HasCanSetOwnWhisperLevel) { + CanSetOwnWhisperLevel = other.CanSetOwnWhisperLevel; + } + if (other.HasCanSetOwnMemberNote) { + CanSetOwnMemberNote = other.CanSetOwnMemberNote; + } + if (other.HasCanSetOtherMemberNote) { + CanSetOtherMemberNote = other.CanSetOtherMemberNote; + } + if (other.HasCanUseVoice) { + CanUseVoice = other.CanUseVoice; + } + if (other.HasCanVoiceMuteMemberForAll) { + CanVoiceMuteMemberForAll = other.CanVoiceMuteMemberForAll; + } + if (other.HasCanGetInvitation) { + CanGetInvitation = other.CanGetInvitation; + } + if (other.HasCanSendInvitation) { + CanSendInvitation = other.CanSendInvitation; + } + if (other.HasCanSendGuestInvitation) { + CanSendGuestInvitation = other.CanSendGuestInvitation; + } + if (other.HasCanRevokeOwnInvitation) { + CanRevokeOwnInvitation = other.CanRevokeOwnInvitation; + } + if (other.HasCanRevokeOtherInvitation) { + CanRevokeOtherInvitation = other.CanRevokeOtherInvitation; + } + if (other.HasCanGetSuggestion) { + CanGetSuggestion = other.CanGetSuggestion; + } + if (other.HasCanSuggestMember) { + CanSuggestMember = other.CanSuggestMember; + } + if (other.HasCanApproveMember) { + CanApproveMember = other.CanApproveMember; + } + if (other.HasCanGetTicket) { + CanGetTicket = other.CanGetTicket; + } + if (other.HasCanCreateTicket) { + CanCreateTicket = other.CanCreateTicket; + } + if (other.HasCanDestroyTicket) { + CanDestroyTicket = other.CanDestroyTicket; + } + if (other.HasCanGetBan) { + CanGetBan = other.CanGetBan; + } + if (other.HasCanAddBan) { + CanAddBan = other.CanAddBan; + } + if (other.HasCanRemoveBan) { + CanRemoveBan = other.CanRemoveBan; + } + if (other.HasCanCreateStream) { + CanCreateStream = other.CanCreateStream; + } + if (other.HasCanDestroyStream) { + CanDestroyStream = other.CanDestroyStream; + } + if (other.HasCanSetStreamPosition) { + CanSetStreamPosition = other.CanSetStreamPosition; + } + if (other.HasCanSetStreamAttribute) { + CanSetStreamAttribute = other.CanSetStreamAttribute; + } + if (other.HasCanSetStreamName) { + CanSetStreamName = other.CanSetStreamName; + } + if (other.HasCanSetStreamSubject) { + CanSetStreamSubject = other.CanSetStreamSubject; + } + if (other.HasCanSetStreamAccess) { + CanSetStreamAccess = other.CanSetStreamAccess; + } + if (other.HasCanSetStreamVoiceLevel) { + CanSetStreamVoiceLevel = other.CanSetStreamVoiceLevel; + } + if (other.HasCanCreateMessage) { + CanCreateMessage = other.CanCreateMessage; + } + if (other.HasCanDestroyOwnMessage) { + CanDestroyOwnMessage = other.CanDestroyOwnMessage; + } + if (other.HasCanDestroyOtherMessage) { + CanDestroyOtherMessage = other.CanDestroyOtherMessage; + } + if (other.HasCanEditOwnMessage) { + CanEditOwnMessage = other.CanEditOwnMessage; + } + if (other.HasCanPinMessage) { + CanPinMessage = other.CanPinMessage; + } + if (other.HasCanMentionAll) { + CanMentionAll = other.CanMentionAll; + } + if (other.HasCanMentionHere) { + CanMentionHere = other.CanMentionHere; + } + if (other.HasCanMentionMember) { + CanMentionMember = other.CanMentionMember; + } + if (other.HasCanMentionRole) { + CanMentionRole = other.CanMentionRole; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CanDestroy = input.ReadBool(); + break; + } + case 80: { + CanSetAttribute = input.ReadBool(); + break; + } + case 88: { + CanSetName = input.ReadBool(); + break; + } + case 96: { + CanSetDescription = input.ReadBool(); + break; + } + case 104: { + CanSetAvatar = input.ReadBool(); + break; + } + case 112: { + CanSetBroadcast = input.ReadBool(); + break; + } + case 120: { + CanSetPrivacyLevel = input.ReadBool(); + break; + } + case 240: { + CanKickMember = input.ReadBool(); + break; + } + case 248: { + CanSetOwnMemberAttribute = input.ReadBool(); + break; + } + case 256: { + CanSetOtherMemberAttribute = input.ReadBool(); + break; + } + case 264: { + CanSetOwnVoiceState = input.ReadBool(); + break; + } + case 272: { + CanSetOwnPresenceLevel = input.ReadBool(); + break; + } + case 280: { + CanSetOwnWhisperLevel = input.ReadBool(); + break; + } + case 288: { + CanSetOwnMemberNote = input.ReadBool(); + break; + } + case 296: { + CanSetOtherMemberNote = input.ReadBool(); + break; + } + case 400: { + CanUseVoice = input.ReadBool(); + break; + } + case 408: { + CanVoiceMuteMemberForAll = input.ReadBool(); + break; + } + case 560: { + CanGetInvitation = input.ReadBool(); + break; + } + case 568: { + CanSendInvitation = input.ReadBool(); + break; + } + case 576: { + CanSendGuestInvitation = input.ReadBool(); + break; + } + case 584: { + CanRevokeOwnInvitation = input.ReadBool(); + break; + } + case 592: { + CanRevokeOtherInvitation = input.ReadBool(); + break; + } + case 720: { + CanGetSuggestion = input.ReadBool(); + break; + } + case 728: { + CanSuggestMember = input.ReadBool(); + break; + } + case 736: { + CanApproveMember = input.ReadBool(); + break; + } + case 880: { + CanGetTicket = input.ReadBool(); + break; + } + case 888: { + CanCreateTicket = input.ReadBool(); + break; + } + case 896: { + CanDestroyTicket = input.ReadBool(); + break; + } + case 1040: { + CanGetBan = input.ReadBool(); + break; + } + case 1048: { + CanAddBan = input.ReadBool(); + break; + } + case 1056: { + CanRemoveBan = input.ReadBool(); + break; + } + case 1120: { + CanCreateStream = input.ReadBool(); + break; + } + case 1128: { + CanDestroyStream = input.ReadBool(); + break; + } + case 1136: { + CanSetStreamPosition = input.ReadBool(); + break; + } + case 1144: { + CanSetStreamAttribute = input.ReadBool(); + break; + } + case 1152: { + CanSetStreamName = input.ReadBool(); + break; + } + case 1160: { + CanSetStreamSubject = input.ReadBool(); + break; + } + case 1168: { + CanSetStreamAccess = input.ReadBool(); + break; + } + case 1176: { + CanSetStreamVoiceLevel = input.ReadBool(); + break; + } + case 1440: { + CanCreateMessage = input.ReadBool(); + break; + } + case 1448: { + CanDestroyOwnMessage = input.ReadBool(); + break; + } + case 1456: { + CanDestroyOtherMessage = input.ReadBool(); + break; + } + case 1464: { + CanEditOwnMessage = input.ReadBool(); + break; + } + case 1472: { + CanPinMessage = input.ReadBool(); + break; + } + case 1480: { + CanMentionAll = input.ReadBool(); + break; + } + case 1488: { + CanMentionHere = input.ReadBool(); + break; + } + case 1496: { + CanMentionMember = input.ReadBool(); + break; + } + case 1504: { + CanMentionRole = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class ClubRole : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubRole()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRoleReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRole() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRole(ClubRole other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + state_ = other.HasState ? other.state_.Clone() : null; + privilege_ = other.HasPrivilege ? other.privilege_.Clone() : null; + alwaysGrantStreamAccess_ = other.alwaysGrantStreamAccess_; + allowInClubSlot_ = other.allowInClubSlot_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRole Clone() { + return new ClubRole(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; + + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private global::Bgs.Protocol.RoleState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.RoleState State { + get { return state_; } + set { + state_ = value; + } + } + /// Gets whether the state field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasState { + get { return state_ != null; } + } + /// Clears the value of the state field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearState() { + state_ = null; + } + + /// Field number for the "privilege" field. + public const int PrivilegeFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.ClubPrivilegeSet privilege_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.ClubPrivilegeSet Privilege { + get { return privilege_; } + set { + privilege_ = value; + } + } + /// Gets whether the privilege field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivilege { + get { return privilege_ != null; } + } + /// Clears the value of the privilege field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivilege() { + privilege_ = null; + } + + /// Field number for the "always_grant_stream_access" field. + public const int AlwaysGrantStreamAccessFieldNumber = 4; + private readonly static bool AlwaysGrantStreamAccessDefaultValue = false; + + private bool alwaysGrantStreamAccess_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AlwaysGrantStreamAccess { + get { if ((_hasBits0 & 2) != 0) { return alwaysGrantStreamAccess_; } else { return AlwaysGrantStreamAccessDefaultValue; } } + set { + _hasBits0 |= 2; + alwaysGrantStreamAccess_ = value; + } + } + /// Gets whether the "always_grant_stream_access" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAlwaysGrantStreamAccess { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "always_grant_stream_access" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAlwaysGrantStreamAccess() { + _hasBits0 &= ~2; + } + + /// Field number for the "allow_in_club_slot" field. + public const int AllowInClubSlotFieldNumber = 5; + private readonly static bool AllowInClubSlotDefaultValue = false; + + private bool allowInClubSlot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AllowInClubSlot { + get { if ((_hasBits0 & 4) != 0) { return allowInClubSlot_; } else { return AllowInClubSlotDefaultValue; } } + set { + _hasBits0 |= 4; + allowInClubSlot_ = value; + } + } + /// Gets whether the "allow_in_club_slot" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAllowInClubSlot { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "allow_in_club_slot" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAllowInClubSlot() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubRole); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubRole other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(State, other.State)) return false; + if (!object.Equals(Privilege, other.Privilege)) return false; + if (AlwaysGrantStreamAccess != other.AlwaysGrantStreamAccess) return false; + if (AllowInClubSlot != other.AllowInClubSlot) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasState) hash ^= State.GetHashCode(); + if (HasPrivilege) hash ^= Privilege.GetHashCode(); + if (HasAlwaysGrantStreamAccess) hash ^= AlwaysGrantStreamAccess.GetHashCode(); + if (HasAllowInClubSlot) hash ^= AllowInClubSlot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (HasState) { + output.WriteRawTag(18); + output.WriteMessage(State); + } + if (HasPrivilege) { + output.WriteRawTag(26); + output.WriteMessage(Privilege); + } + if (HasAlwaysGrantStreamAccess) { + output.WriteRawTag(32); + output.WriteBool(AlwaysGrantStreamAccess); + } + if (HasAllowInClubSlot) { + output.WriteRawTag(40); + output.WriteBool(AllowInClubSlot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (HasPrivilege) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Privilege); + } + if (HasAlwaysGrantStreamAccess) { + size += 1 + 1; + } + if (HasAllowInClubSlot) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubRole other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasState) { + if (!HasState) { + State = new global::Bgs.Protocol.RoleState(); + } + State.MergeFrom(other.State); + } + if (other.HasPrivilege) { + if (!HasPrivilege) { + Privilege = new global::Bgs.Protocol.Club.V1.ClubPrivilegeSet(); + } + Privilege.MergeFrom(other.Privilege); + } + if (other.HasAlwaysGrantStreamAccess) { + AlwaysGrantStreamAccess = other.AlwaysGrantStreamAccess; + } + if (other.HasAllowInClubSlot) { + AllowInClubSlot = other.AllowInClubSlot; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 18: { + if (!HasState) { + State = new global::Bgs.Protocol.RoleState(); + } + input.ReadMessage(State); + break; + } + case 26: { + if (!HasPrivilege) { + Privilege = new global::Bgs.Protocol.Club.V1.ClubPrivilegeSet(); + } + input.ReadMessage(Privilege); + break; + } + case 32: { + AlwaysGrantStreamAccess = input.ReadBool(); + break; + } + case 40: { + AllowInClubSlot = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class ClubRoleSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubRoleSet()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubRoleReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRoleSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRoleSet(ClubRoleSet other) : this() { + _hasBits0 = other._hasBits0; + role_ = other.role_.Clone(); + defaultRole_ = other.defaultRole_.Clone(); + assignmentRespectsRelegationChain_ = other.assignmentRespectsRelegationChain_; + subtype_ = other.subtype_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubRoleSet Clone() { + return new ClubRoleSet(this); + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.ClubRole.Parser); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + /// Field number for the "default_role" field. + public const int DefaultRoleFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_defaultRole_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField defaultRole_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField DefaultRole { + get { return defaultRole_; } + } + + /// Field number for the "assignment_respects_relegation_chain" field. + public const int AssignmentRespectsRelegationChainFieldNumber = 6; + private readonly static bool AssignmentRespectsRelegationChainDefaultValue = false; + + private bool assignmentRespectsRelegationChain_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AssignmentRespectsRelegationChain { + get { if ((_hasBits0 & 1) != 0) { return assignmentRespectsRelegationChain_; } else { return AssignmentRespectsRelegationChainDefaultValue; } } + set { + _hasBits0 |= 1; + assignmentRespectsRelegationChain_ = value; + } + } + /// Gets whether the "assignment_respects_relegation_chain" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAssignmentRespectsRelegationChain { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "assignment_respects_relegation_chain" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAssignmentRespectsRelegationChain() { + _hasBits0 &= ~1; + } + + /// Field number for the "subtype" field. + public const int SubtypeFieldNumber = 7; + private readonly static string SubtypeDefaultValue = ""; + + private string subtype_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Subtype { + get { return subtype_ ?? SubtypeDefaultValue; } + set { + subtype_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "subtype" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubtype { + get { return subtype_ != null; } + } + /// Clears the value of the "subtype" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubtype() { + subtype_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubRoleSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubRoleSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!role_.Equals(other.role_)) return false; + if(!defaultRole_.Equals(other.defaultRole_)) return false; + if (AssignmentRespectsRelegationChain != other.AssignmentRespectsRelegationChain) return false; + if (Subtype != other.Subtype) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= role_.GetHashCode(); + hash ^= defaultRole_.GetHashCode(); + if (HasAssignmentRespectsRelegationChain) hash ^= AssignmentRespectsRelegationChain.GetHashCode(); + if (HasSubtype) hash ^= Subtype.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + role_.WriteTo(output, _repeated_role_codec); + defaultRole_.WriteTo(output, _repeated_defaultRole_codec); + if (HasAssignmentRespectsRelegationChain) { + output.WriteRawTag(48); + output.WriteBool(AssignmentRespectsRelegationChain); + } + if (HasSubtype) { + output.WriteRawTag(58); + output.WriteString(Subtype); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += role_.CalculateSize(_repeated_role_codec); + size += defaultRole_.CalculateSize(_repeated_defaultRole_codec); + if (HasAssignmentRespectsRelegationChain) { + size += 1 + 1; + } + if (HasSubtype) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subtype); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubRoleSet other) { + if (other == null) { + return; + } + role_.Add(other.role_); + defaultRole_.Add(other.defaultRole_); + if (other.HasAssignmentRespectsRelegationChain) { + AssignmentRespectsRelegationChain = other.AssignmentRespectsRelegationChain; + } + if (other.HasSubtype) { + Subtype = other.Subtype; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + case 42: + case 40: { + defaultRole_.AddEntriesFrom(input, _repeated_defaultRole_codec); + break; + } + case 48: { + AssignmentRespectsRelegationChain = input.ReadBool(); + break; + } + case 58: { + Subtype = input.ReadString(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubStream.cs b/Source/Framework/Proto/ClubStream.cs new file mode 100644 index 000000000..8575b4e02 --- /dev/null +++ b/Source/Framework/Proto/ClubStream.cs @@ -0,0 +1,4344 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_stream.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_stream.proto + public static partial class ClubStreamReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_stream.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubStreamReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNiZ3MvbG93L3BiL2NsaWVudC9jbHViX3N0cmVhbS5wcm90bxIUYmdzLnBy", + "b3RvY29sLmNsdWIudjEaIWJncy9sb3cvcGIvY2xpZW50L2NsdWJfZW51bS5w", + "cm90bxojYmdzL2xvdy9wYi9jbGllbnQvY2x1Yl9tZW1iZXIucHJvdG8aNWJn", + "cy9sb3cvcGIvY2xpZW50L2FwaS9jbGllbnQvdjIvYXR0cmlidXRlX3R5cGVz", + "LnByb3RvGiNiZ3MvbG93L3BiL2NsaWVudC9lbWJlZF90eXBlcy5wcm90bxoo", + "YmdzL2xvdy9wYi9jbGllbnQvZXZlbnRfdmlld190eXBlcy5wcm90bxolYmdz", + "L2xvdy9wYi9jbGllbnQvbWVzc2FnZV90eXBlcy5wcm90bxohYmdzL2xvdy9w", + "Yi9jbGllbnQvZXRzX3R5cGVzLnByb3RvIicKDlN0cmVhbVBvc2l0aW9uEhUK", + "CXN0cmVhbV9pZBgBIAMoBEICEAEiIAoMU3RyZWFtQWNjZXNzEhAKBHJvbGUY", + "ASADKA1CAhABIuoBChNDcmVhdGVTdHJlYW1PcHRpb25zEi0KCWF0dHJpYnV0", + "ZRgBIAMoCzIaLmJncy5wcm90b2NvbC52Mi5BdHRyaWJ1dGUSDAoEbmFtZRgC", + "IAEoCRIPCgdzdWJqZWN0GAMgASgJEjIKBmFjY2VzcxgEIAEoCzIiLmJncy5w", + "cm90b2NvbC5jbHViLnYxLlN0cmVhbUFjY2VzcxJRCgt2b2ljZV9sZXZlbBgF", + "IAEoDjImLmJncy5wcm90b2NvbC5jbHViLnYxLlN0cmVhbVZvaWNlTGV2ZWw6", + "FFZPSUNFX0xFVkVMX0RJU0FCTEVEIpECCgZTdHJlYW0SDwoHY2x1Yl9pZBgB", + "IAEoBBIKCgJpZBgCIAEoBBItCglhdHRyaWJ1dGUYAyADKAsyGi5iZ3MucHJv", + "dG9jb2wudjIuQXR0cmlidXRlEgwKBG5hbWUYBCABKAkSDwoHc3ViamVjdBgF", + "IAEoCRIyCgZhY2Nlc3MYBiABKAsyIi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5T", + "dHJlYW1BY2Nlc3MSUQoLdm9pY2VfbGV2ZWwYByABKA4yJi5iZ3MucHJvdG9j", + "b2wuY2x1Yi52MS5TdHJlYW1Wb2ljZUxldmVsOhRWT0lDRV9MRVZFTF9ESVNB", + "QkxFRBIVCg1jcmVhdGlvbl90aW1lGAggASgEInAKDk1lbnRpb25Db250ZW50", + "EgsKA2FsbBgBIAEoCBIMCgRoZXJlGAIgASgIEjEKCW1lbWJlcl9pZBgDIAMo", + "CzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEhAKBHJvbGUYBCAD", + "KA1CAhABIl4KFENyZWF0ZU1lc3NhZ2VPcHRpb25zEg8KB2NvbnRlbnQYAiAB", + "KAkSNQoHbWVudGlvbhgDIAEoCzIkLmJncy5wcm90b2NvbC5jbHViLnYxLk1l", + "bnRpb25Db250ZW50IlIKGkNsdWJTdHJlYW1NZXNzYWdlQ29udGFpbmVyEjQK", + "B21lc3NhZ2UYASADKAsyIy5iZ3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1N", + "ZXNzYWdlIpEBCgxDb250ZW50Q2hhaW4SDwoHY29udGVudBgFIAEoCRImCgVl", + "bWJlZBgGIAMoCzIXLmJncy5wcm90b2NvbC5FbWJlZEluZm8SNQoHbWVudGlv", + "bhgHIAEoCzIkLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbnRpb25Db250ZW50", + "EhEKCWVkaXRfdGltZRgIIAEoBCKNAgoNU3RyZWFtTWVzc2FnZRIjCgJpZBgD", + "IAEoCzIXLmJncy5wcm90b2NvbC5NZXNzYWdlSWQSNwoGYXV0aG9yGAQgASgL", + "MicuYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVyRGVzY3JpcHRpb24SOQoN", + "Y29udGVudF9jaGFpbhgGIAMoCzIiLmJncy5wcm90b2NvbC5jbHViLnYxLkNv", + "bnRlbnRDaGFpbhI6CglkZXN0cm95ZXIYDyABKAsyJy5iZ3MucHJvdG9jb2wu", + "Y2x1Yi52MS5NZW1iZXJEZXNjcmlwdGlvbhIRCglkZXN0cm95ZWQYECABKAgS", + "FAoMZGVzdHJveV90aW1lGBEgASgEIsUCCg1TdHJlYW1NZW50aW9uEg8KB2Ns", + "dWJfaWQYASABKAQSEQoJc3RyZWFtX2lkGAIgASgEEisKCm1lc3NhZ2VfaWQY", + "AyABKAsyFy5iZ3MucHJvdG9jb2wuTWVzc2FnZUlkEjcKBmF1dGhvchgEIAEo", + "CzInLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlckRlc2NyaXB0aW9uEhEK", + "CWRlc3Ryb3llZBgFIAEoCBIuCgptZW50aW9uX2lkGAYgASgLMhouYmdzLnBy", + "b3RvY29sLlRpbWVTZXJpZXNJZBIxCgltZW1iZXJfaWQYByABKAsyHi5iZ3Mu", + "cHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBI0CgdtZXNzYWdlGAggASgLMiMu", + "YmdzLnByb3RvY29sLmNsdWIudjEuU3RyZWFtTWVzc2FnZSJaCgpTdHJlYW1W", + "aWV3Eg8KB2NsdWJfaWQYASABKAQSEQoJc3RyZWFtX2lkGAIgASgEEigKBm1h", + "cmtlchgDIAEoCzIYLmJncy5wcm90b2NvbC5WaWV3TWFya2VyIj0KFVN0cmVh", + "bUFkdmFuY2VWaWV3VGltZRIRCglzdHJlYW1faWQYASABKAQSEQoJdmlld190", + "aW1lGAIgASgEIjgKD1N0cmVhbUV2ZW50VGltZRIRCglzdHJlYW1faWQYASAB", + "KAQSEgoKZXZlbnRfdGltZRgCIAEoBCJhChFTdHJlYW1NZW50aW9uVmlldxIP", + "CgdjbHViX2lkGAEgASgEEhEKCXN0cmVhbV9pZBgCIAEoBBIoCgZtYXJrZXIY", + "AyABKAsyGC5iZ3MucHJvdG9jb2wuVmlld01hcmtlciLpAQoSU3RyZWFtU3Rh", + "dGVPcHRpb25zEi0KCWF0dHJpYnV0ZRgBIAMoCzIaLmJncy5wcm90b2NvbC52", + "Mi5BdHRyaWJ1dGUSDAoEbmFtZRgCIAEoCRIPCgdzdWJqZWN0GAMgASgJEjIK", + "BmFjY2VzcxgEIAEoCzIiLmJncy5wcm90b2NvbC5jbHViLnYxLlN0cmVhbUFj", + "Y2VzcxJRCgt2b2ljZV9sZXZlbBgFIAEoDjImLmJncy5wcm90b2NvbC5jbHVi", + "LnYxLlN0cmVhbVZvaWNlTGV2ZWw6FFZPSUNFX0xFVkVMX0RJU0FCTEVEIqQC", + "ChVTdHJlYW1TdGF0ZUFzc2lnbm1lbnQSEQoJc3RyZWFtX2lkGAEgASgEEi0K", + "CWF0dHJpYnV0ZRgCIAMoCzIaLmJncy5wcm90b2NvbC52Mi5BdHRyaWJ1dGUS", + "DAoEbmFtZRgDIAEoCRIPCgdzdWJqZWN0GAQgASgJEjIKBmFjY2VzcxgFIAEo", + "CzIiLmJncy5wcm90b2NvbC5jbHViLnYxLlN0cmVhbUFjY2VzcxIjChtzdHJl", + "YW1fc3Vic2NyaXB0aW9uX3JlbW92ZWQYBiABKAgSUQoLdm9pY2VfbGV2ZWwY", + "ByABKA4yJi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1Wb2ljZUxldmVs", + "OhRWT0lDRV9MRVZFTF9ESVNBQkxFRCKZAQoVU3RyZWFtVHlwaW5nSW5kaWNh", + "dG9yEjEKCWF1dGhvcl9pZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYx", + "Lk1lbWJlcklkEj4KCWluZGljYXRvchgCIAEoDjIdLmJncy5wcm90b2NvbC5U", + "eXBpbmdJbmRpY2F0b3I6DFRZUElOR19TVEFSVBINCgVlcG9jaBgDIAEoBA==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubEnumReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor, global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EmbedTypesReflection.Descriptor, global::Bgs.Protocol.EventViewTypesReflection.Descriptor, global::Bgs.Protocol.MessageTypesReflection.Descriptor, global::Bgs.Protocol.EtsTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamPosition), global::Bgs.Protocol.Club.V1.StreamPosition.Parser, new[]{ "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamAccess), global::Bgs.Protocol.Club.V1.StreamAccess.Parser, new[]{ "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateStreamOptions), global::Bgs.Protocol.Club.V1.CreateStreamOptions.Parser, new[]{ "Attribute", "Name", "Subject", "Access", "VoiceLevel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Stream), global::Bgs.Protocol.Club.V1.Stream.Parser, new[]{ "ClubId", "Id", "Attribute", "Name", "Subject", "Access", "VoiceLevel", "CreationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MentionContent), global::Bgs.Protocol.Club.V1.MentionContent.Parser, new[]{ "All", "Here", "MemberId", "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateMessageOptions), global::Bgs.Protocol.Club.V1.CreateMessageOptions.Parser, new[]{ "Content", "Mention" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubStreamMessageContainer), global::Bgs.Protocol.Club.V1.ClubStreamMessageContainer.Parser, new[]{ "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ContentChain), global::Bgs.Protocol.Club.V1.ContentChain.Parser, new[]{ "Content", "Embed", "Mention", "EditTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamMessage), global::Bgs.Protocol.Club.V1.StreamMessage.Parser, new[]{ "Id", "Author", "ContentChain", "Destroyer", "Destroyed", "DestroyTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamMention), global::Bgs.Protocol.Club.V1.StreamMention.Parser, new[]{ "ClubId", "StreamId", "MessageId", "Author", "Destroyed", "MentionId", "MemberId", "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamView), global::Bgs.Protocol.Club.V1.StreamView.Parser, new[]{ "ClubId", "StreamId", "Marker" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamAdvanceViewTime), global::Bgs.Protocol.Club.V1.StreamAdvanceViewTime.Parser, new[]{ "StreamId", "ViewTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamEventTime), global::Bgs.Protocol.Club.V1.StreamEventTime.Parser, new[]{ "StreamId", "EventTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamMentionView), global::Bgs.Protocol.Club.V1.StreamMentionView.Parser, new[]{ "ClubId", "StreamId", "Marker" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamStateOptions), global::Bgs.Protocol.Club.V1.StreamStateOptions.Parser, new[]{ "Attribute", "Name", "Subject", "Access", "VoiceLevel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamStateAssignment), global::Bgs.Protocol.Club.V1.StreamStateAssignment.Parser, new[]{ "StreamId", "Attribute", "Name", "Subject", "Access", "StreamSubscriptionRemoved", "VoiceLevel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamTypingIndicator), global::Bgs.Protocol.Club.V1.StreamTypingIndicator.Parser, new[]{ "AuthorId", "Indicator", "Epoch" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StreamPosition : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamPosition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamPosition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamPosition(StreamPosition other) : this() { + streamId_ = other.streamId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamPosition Clone() { + return new StreamPosition(this); + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_streamId_codec + = pb::FieldCodec.ForUInt64(10); + private readonly pbc::RepeatedField streamId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField StreamId { + get { return streamId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamPosition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamPosition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!streamId_.Equals(other.streamId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= streamId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + streamId_.WriteTo(output, _repeated_streamId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += streamId_.CalculateSize(_repeated_streamId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamPosition other) { + if (other == null) { + return; + } + streamId_.Add(other.streamId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + streamId_.AddEntriesFrom(input, _repeated_streamId_codec); + break; + } + } + } + } + + } + + public sealed partial class StreamAccess : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamAccess()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAccess(StreamAccess other) : this() { + role_ = other.role_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAccess Clone() { + return new StreamAccess(this); + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForUInt32(10); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamAccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamAccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!role_.Equals(other.role_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= role_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + role_.WriteTo(output, _repeated_role_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += role_.CalculateSize(_repeated_role_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamAccess other) { + if (other == null) { + return; + } + role_.Add(other.role_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + } + } + } + + } + + public sealed partial class CreateStreamOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateStreamOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamOptions(CreateStreamOptions other) : this() { + _hasBits0 = other._hasBits0; + attribute_ = other.attribute_.Clone(); + name_ = other.name_; + subject_ = other.subject_; + access_ = other.HasAccess ? other.access_.Clone() : null; + voiceLevel_ = other.voiceLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateStreamOptions Clone() { + return new CreateStreamOptions(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "subject" field. + public const int SubjectFieldNumber = 3; + private readonly static string SubjectDefaultValue = ""; + + private string subject_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Subject { + get { return subject_ ?? SubjectDefaultValue; } + set { + subject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "subject" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubject { + get { return subject_ != null; } + } + /// Clears the value of the "subject" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubject() { + subject_ = null; + } + + /// Field number for the "access" field. + public const int AccessFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.StreamAccess access_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamAccess Access { + get { return access_; } + set { + access_ = value; + } + } + /// Gets whether the access field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccess { + get { return access_ != null; } + } + /// Clears the value of the access field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccess() { + access_ = null; + } + + /// Field number for the "voice_level" field. + public const int VoiceLevelFieldNumber = 5; + private readonly static global::Bgs.Protocol.Club.V1.StreamVoiceLevel VoiceLevelDefaultValue = global::Bgs.Protocol.Club.V1.StreamVoiceLevel.VoiceLevelDisabled; + + private global::Bgs.Protocol.Club.V1.StreamVoiceLevel voiceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamVoiceLevel VoiceLevel { + get { if ((_hasBits0 & 1) != 0) { return voiceLevel_; } else { return VoiceLevelDefaultValue; } } + set { + _hasBits0 |= 1; + voiceLevel_ = value; + } + } + /// Gets whether the "voice_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoiceLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "voice_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoiceLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateStreamOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateStreamOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + if (Name != other.Name) return false; + if (Subject != other.Subject) return false; + if (!object.Equals(Access, other.Access)) return false; + if (VoiceLevel != other.VoiceLevel) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasSubject) hash ^= Subject.GetHashCode(); + if (HasAccess) hash ^= Access.GetHashCode(); + if (HasVoiceLevel) hash ^= VoiceLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasSubject) { + output.WriteRawTag(26); + output.WriteString(Subject); + } + if (HasAccess) { + output.WriteRawTag(34); + output.WriteMessage(Access); + } + if (HasVoiceLevel) { + output.WriteRawTag(40); + output.WriteEnum((int) VoiceLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasSubject) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subject); + } + if (HasAccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (HasVoiceLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VoiceLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateStreamOptions other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + if (other.HasName) { + Name = other.Name; + } + if (other.HasSubject) { + Subject = other.Subject; + } + if (other.HasAccess) { + if (!HasAccess) { + Access = new global::Bgs.Protocol.Club.V1.StreamAccess(); + } + Access.MergeFrom(other.Access); + } + if (other.HasVoiceLevel) { + VoiceLevel = other.VoiceLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Subject = input.ReadString(); + break; + } + case 34: { + if (!HasAccess) { + Access = new global::Bgs.Protocol.Club.V1.StreamAccess(); + } + input.ReadMessage(Access); + break; + } + case 40: { + VoiceLevel = (global::Bgs.Protocol.Club.V1.StreamVoiceLevel) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class Stream : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Stream()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Stream() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Stream(Stream other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + id_ = other.id_; + attribute_ = other.attribute_.Clone(); + name_ = other.name_; + subject_ = other.subject_; + access_ = other.HasAccess ? other.access_.Clone() : null; + voiceLevel_ = other.voiceLevel_; + creationTime_ = other.creationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Stream Clone() { + return new Stream(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 2; + private readonly static ulong IdDefaultValue = 0UL; + + private ulong id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Id { + get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 2; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~2; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "subject" field. + public const int SubjectFieldNumber = 5; + private readonly static string SubjectDefaultValue = ""; + + private string subject_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Subject { + get { return subject_ ?? SubjectDefaultValue; } + set { + subject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "subject" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubject { + get { return subject_ != null; } + } + /// Clears the value of the "subject" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubject() { + subject_ = null; + } + + /// Field number for the "access" field. + public const int AccessFieldNumber = 6; + private global::Bgs.Protocol.Club.V1.StreamAccess access_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamAccess Access { + get { return access_; } + set { + access_ = value; + } + } + /// Gets whether the access field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccess { + get { return access_ != null; } + } + /// Clears the value of the access field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccess() { + access_ = null; + } + + /// Field number for the "voice_level" field. + public const int VoiceLevelFieldNumber = 7; + private readonly static global::Bgs.Protocol.Club.V1.StreamVoiceLevel VoiceLevelDefaultValue = global::Bgs.Protocol.Club.V1.StreamVoiceLevel.VoiceLevelDisabled; + + private global::Bgs.Protocol.Club.V1.StreamVoiceLevel voiceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamVoiceLevel VoiceLevel { + get { if ((_hasBits0 & 4) != 0) { return voiceLevel_; } else { return VoiceLevelDefaultValue; } } + set { + _hasBits0 |= 4; + voiceLevel_ = value; + } + } + /// Gets whether the "voice_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoiceLevel { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "voice_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoiceLevel() { + _hasBits0 &= ~4; + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 8; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 8) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 8; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Stream); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Stream other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + if (Id != other.Id) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (Name != other.Name) return false; + if (Subject != other.Subject) return false; + if (!object.Equals(Access, other.Access)) return false; + if (VoiceLevel != other.VoiceLevel) return false; + if (CreationTime != other.CreationTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasSubject) hash ^= Subject.GetHashCode(); + if (HasAccess) hash ^= Access.GetHashCode(); + if (HasVoiceLevel) hash ^= VoiceLevel.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + if (HasId) { + output.WriteRawTag(16); + output.WriteUInt64(Id); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasName) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (HasSubject) { + output.WriteRawTag(42); + output.WriteString(Subject); + } + if (HasAccess) { + output.WriteRawTag(50); + output.WriteMessage(Access); + } + if (HasVoiceLevel) { + output.WriteRawTag(56); + output.WriteEnum((int) VoiceLevel); + } + if (HasCreationTime) { + output.WriteRawTag(64); + output.WriteUInt64(CreationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasSubject) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subject); + } + if (HasAccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (HasVoiceLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VoiceLevel); + } + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Stream other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasId) { + Id = other.Id; + } + attribute_.Add(other.attribute_); + if (other.HasName) { + Name = other.Name; + } + if (other.HasSubject) { + Subject = other.Subject; + } + if (other.HasAccess) { + if (!HasAccess) { + Access = new global::Bgs.Protocol.Club.V1.StreamAccess(); + } + Access.MergeFrom(other.Access); + } + if (other.HasVoiceLevel) { + VoiceLevel = other.VoiceLevel; + } + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + case 16: { + Id = input.ReadUInt64(); + break; + } + case 26: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Subject = input.ReadString(); + break; + } + case 50: { + if (!HasAccess) { + Access = new global::Bgs.Protocol.Club.V1.StreamAccess(); + } + input.ReadMessage(Access); + break; + } + case 56: { + VoiceLevel = (global::Bgs.Protocol.Club.V1.StreamVoiceLevel) input.ReadEnum(); + break; + } + case 64: { + CreationTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class MentionContent : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MentionContent()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MentionContent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MentionContent(MentionContent other) : this() { + _hasBits0 = other._hasBits0; + all_ = other.all_; + here_ = other.here_; + memberId_ = other.memberId_.Clone(); + role_ = other.role_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MentionContent Clone() { + return new MentionContent(this); + } + + /// Field number for the "all" field. + public const int AllFieldNumber = 1; + private readonly static bool AllDefaultValue = false; + + private bool all_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool All { + get { if ((_hasBits0 & 1) != 0) { return all_; } else { return AllDefaultValue; } } + set { + _hasBits0 |= 1; + all_ = value; + } + } + /// Gets whether the "all" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAll { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "all" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAll() { + _hasBits0 &= ~1; + } + + /// Field number for the "here" field. + public const int HereFieldNumber = 2; + private readonly static bool HereDefaultValue = false; + + private bool here_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Here { + get { if ((_hasBits0 & 2) != 0) { return here_; } else { return HereDefaultValue; } } + set { + _hasBits0 |= 2; + here_ = value; + } + } + /// Gets whether the "here" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHere { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "here" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHere() { + _hasBits0 &= ~2; + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_memberId_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Club.V1.MemberId.Parser); + private readonly pbc::RepeatedField memberId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField MemberId { + get { return memberId_; } + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MentionContent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MentionContent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (All != other.All) return false; + if (Here != other.Here) return false; + if(!memberId_.Equals(other.memberId_)) return false; + if(!role_.Equals(other.role_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAll) hash ^= All.GetHashCode(); + if (HasHere) hash ^= Here.GetHashCode(); + hash ^= memberId_.GetHashCode(); + hash ^= role_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAll) { + output.WriteRawTag(8); + output.WriteBool(All); + } + if (HasHere) { + output.WriteRawTag(16); + output.WriteBool(Here); + } + memberId_.WriteTo(output, _repeated_memberId_codec); + role_.WriteTo(output, _repeated_role_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAll) { + size += 1 + 1; + } + if (HasHere) { + size += 1 + 1; + } + size += memberId_.CalculateSize(_repeated_memberId_codec); + size += role_.CalculateSize(_repeated_role_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MentionContent other) { + if (other == null) { + return; + } + if (other.HasAll) { + All = other.All; + } + if (other.HasHere) { + Here = other.Here; + } + memberId_.Add(other.memberId_); + role_.Add(other.role_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + All = input.ReadBool(); + break; + } + case 16: { + Here = input.ReadBool(); + break; + } + case 26: { + memberId_.AddEntriesFrom(input, _repeated_memberId_codec); + break; + } + case 34: + case 32: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + } + } + } + + } + + public sealed partial class CreateMessageOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMessageOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageOptions(CreateMessageOptions other) : this() { + content_ = other.content_; + mention_ = other.HasMention ? other.mention_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateMessageOptions Clone() { + return new CreateMessageOptions(this); + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 2; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "mention" field. + public const int MentionFieldNumber = 3; + private global::Bgs.Protocol.Club.V1.MentionContent mention_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MentionContent Mention { + get { return mention_; } + set { + mention_ = value; + } + } + /// Gets whether the mention field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMention { + get { return mention_ != null; } + } + /// Clears the value of the mention field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMention() { + mention_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateMessageOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateMessageOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Content != other.Content) return false; + if (!object.Equals(Mention, other.Mention)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasContent) hash ^= Content.GetHashCode(); + if (HasMention) hash ^= Mention.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasContent) { + output.WriteRawTag(18); + output.WriteString(Content); + } + if (HasMention) { + output.WriteRawTag(26); + output.WriteMessage(Mention); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (HasMention) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mention); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateMessageOptions other) { + if (other == null) { + return; + } + if (other.HasContent) { + Content = other.Content; + } + if (other.HasMention) { + if (!HasMention) { + Mention = new global::Bgs.Protocol.Club.V1.MentionContent(); + } + Mention.MergeFrom(other.Mention); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + Content = input.ReadString(); + break; + } + case 26: { + if (!HasMention) { + Mention = new global::Bgs.Protocol.Club.V1.MentionContent(); + } + input.ReadMessage(Mention); + break; + } + } + } + } + + } + + public sealed partial class ClubStreamMessageContainer : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubStreamMessageContainer()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStreamMessageContainer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStreamMessageContainer(ClubStreamMessageContainer other) : this() { + message_ = other.message_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClubStreamMessageContainer Clone() { + return new ClubStreamMessageContainer(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_message_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Club.V1.StreamMessage.Parser); + private readonly pbc::RepeatedField message_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Message { + get { return message_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClubStreamMessageContainer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClubStreamMessageContainer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!message_.Equals(other.message_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= message_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + message_.WriteTo(output, _repeated_message_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += message_.CalculateSize(_repeated_message_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClubStreamMessageContainer other) { + if (other == null) { + return; + } + message_.Add(other.message_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + message_.AddEntriesFrom(input, _repeated_message_codec); + break; + } + } + } + } + + } + + public sealed partial class ContentChain : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContentChain()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContentChain() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContentChain(ContentChain other) : this() { + _hasBits0 = other._hasBits0; + content_ = other.content_; + embed_ = other.embed_.Clone(); + mention_ = other.HasMention ? other.mention_.Clone() : null; + editTime_ = other.editTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContentChain Clone() { + return new ContentChain(this); + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 5; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "embed" field. + public const int EmbedFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_embed_codec + = pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.EmbedInfo.Parser); + private readonly pbc::RepeatedField embed_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Embed { + get { return embed_; } + } + + /// Field number for the "mention" field. + public const int MentionFieldNumber = 7; + private global::Bgs.Protocol.Club.V1.MentionContent mention_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MentionContent Mention { + get { return mention_; } + set { + mention_ = value; + } + } + /// Gets whether the mention field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMention { + get { return mention_ != null; } + } + /// Clears the value of the mention field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMention() { + mention_ = null; + } + + /// Field number for the "edit_time" field. + public const int EditTimeFieldNumber = 8; + private readonly static ulong EditTimeDefaultValue = 0UL; + + private ulong editTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong EditTime { + get { if ((_hasBits0 & 1) != 0) { return editTime_; } else { return EditTimeDefaultValue; } } + set { + _hasBits0 |= 1; + editTime_ = value; + } + } + /// Gets whether the "edit_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEditTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "edit_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEditTime() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContentChain); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContentChain other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Content != other.Content) return false; + if(!embed_.Equals(other.embed_)) return false; + if (!object.Equals(Mention, other.Mention)) return false; + if (EditTime != other.EditTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasContent) hash ^= Content.GetHashCode(); + hash ^= embed_.GetHashCode(); + if (HasMention) hash ^= Mention.GetHashCode(); + if (HasEditTime) hash ^= EditTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasContent) { + output.WriteRawTag(42); + output.WriteString(Content); + } + embed_.WriteTo(output, _repeated_embed_codec); + if (HasMention) { + output.WriteRawTag(58); + output.WriteMessage(Mention); + } + if (HasEditTime) { + output.WriteRawTag(64); + output.WriteUInt64(EditTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + size += embed_.CalculateSize(_repeated_embed_codec); + if (HasMention) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mention); + } + if (HasEditTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EditTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContentChain other) { + if (other == null) { + return; + } + if (other.HasContent) { + Content = other.Content; + } + embed_.Add(other.embed_); + if (other.HasMention) { + if (!HasMention) { + Mention = new global::Bgs.Protocol.Club.V1.MentionContent(); + } + Mention.MergeFrom(other.Mention); + } + if (other.HasEditTime) { + EditTime = other.EditTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + Content = input.ReadString(); + break; + } + case 50: { + embed_.AddEntriesFrom(input, _repeated_embed_codec); + break; + } + case 58: { + if (!HasMention) { + Mention = new global::Bgs.Protocol.Club.V1.MentionContent(); + } + input.ReadMessage(Mention); + break; + } + case 64: { + EditTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class StreamMessage : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamMessage()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessage(StreamMessage other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.HasId ? other.id_.Clone() : null; + author_ = other.HasAuthor ? other.author_.Clone() : null; + contentChain_ = other.contentChain_.Clone(); + destroyer_ = other.HasDestroyer ? other.destroyer_.Clone() : null; + destroyed_ = other.destroyed_; + destroyTime_ = other.destroyTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMessage Clone() { + return new StreamMessage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 3; + private global::Bgs.Protocol.MessageId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.MessageId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "author" field. + public const int AuthorFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.MemberDescription author_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Author { + get { return author_; } + set { + author_ = value; + } + } + /// Gets whether the author field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAuthor { + get { return author_ != null; } + } + /// Clears the value of the author field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAuthor() { + author_ = null; + } + + /// Field number for the "content_chain" field. + public const int ContentChainFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_contentChain_codec + = pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.Club.V1.ContentChain.Parser); + private readonly pbc::RepeatedField contentChain_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ContentChain { + get { return contentChain_; } + } + + /// Field number for the "destroyer" field. + public const int DestroyerFieldNumber = 15; + private global::Bgs.Protocol.Club.V1.MemberDescription destroyer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Destroyer { + get { return destroyer_; } + set { + destroyer_ = value; + } + } + /// Gets whether the destroyer field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDestroyer { + get { return destroyer_ != null; } + } + /// Clears the value of the destroyer field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDestroyer() { + destroyer_ = null; + } + + /// Field number for the "destroyed" field. + public const int DestroyedFieldNumber = 16; + private readonly static bool DestroyedDefaultValue = false; + + private bool destroyed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Destroyed { + get { if ((_hasBits0 & 1) != 0) { return destroyed_; } else { return DestroyedDefaultValue; } } + set { + _hasBits0 |= 1; + destroyed_ = value; + } + } + /// Gets whether the "destroyed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDestroyed { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "destroyed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDestroyed() { + _hasBits0 &= ~1; + } + + /// Field number for the "destroy_time" field. + public const int DestroyTimeFieldNumber = 17; + private readonly static ulong DestroyTimeDefaultValue = 0UL; + + private ulong destroyTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong DestroyTime { + get { if ((_hasBits0 & 2) != 0) { return destroyTime_; } else { return DestroyTimeDefaultValue; } } + set { + _hasBits0 |= 2; + destroyTime_ = value; + } + } + /// Gets whether the "destroy_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDestroyTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "destroy_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDestroyTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + if (!object.Equals(Author, other.Author)) return false; + if(!contentChain_.Equals(other.contentChain_)) return false; + if (!object.Equals(Destroyer, other.Destroyer)) return false; + if (Destroyed != other.Destroyed) return false; + if (DestroyTime != other.DestroyTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAuthor) hash ^= Author.GetHashCode(); + hash ^= contentChain_.GetHashCode(); + if (HasDestroyer) hash ^= Destroyer.GetHashCode(); + if (HasDestroyed) hash ^= Destroyed.GetHashCode(); + if (HasDestroyTime) hash ^= DestroyTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(26); + output.WriteMessage(Id); + } + if (HasAuthor) { + output.WriteRawTag(34); + output.WriteMessage(Author); + } + contentChain_.WriteTo(output, _repeated_contentChain_codec); + if (HasDestroyer) { + output.WriteRawTag(122); + output.WriteMessage(Destroyer); + } + if (HasDestroyed) { + output.WriteRawTag(128, 1); + output.WriteBool(Destroyed); + } + if (HasDestroyTime) { + output.WriteRawTag(136, 1); + output.WriteUInt64(DestroyTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (HasAuthor) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author); + } + size += contentChain_.CalculateSize(_repeated_contentChain_codec); + if (HasDestroyer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Destroyer); + } + if (HasDestroyed) { + size += 2 + 1; + } + if (HasDestroyTime) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DestroyTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamMessage other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.MessageId(); + } + Id.MergeFrom(other.Id); + } + if (other.HasAuthor) { + if (!HasAuthor) { + Author = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Author.MergeFrom(other.Author); + } + contentChain_.Add(other.contentChain_); + if (other.HasDestroyer) { + if (!HasDestroyer) { + Destroyer = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Destroyer.MergeFrom(other.Destroyer); + } + if (other.HasDestroyed) { + Destroyed = other.Destroyed; + } + if (other.HasDestroyTime) { + DestroyTime = other.DestroyTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (!HasId) { + Id = new global::Bgs.Protocol.MessageId(); + } + input.ReadMessage(Id); + break; + } + case 34: { + if (!HasAuthor) { + Author = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Author); + break; + } + case 50: { + contentChain_.AddEntriesFrom(input, _repeated_contentChain_codec); + break; + } + case 122: { + if (!HasDestroyer) { + Destroyer = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Destroyer); + break; + } + case 128: { + Destroyed = input.ReadBool(); + break; + } + case 136: { + DestroyTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class StreamMention : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamMention()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMention() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMention(StreamMention other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + messageId_ = other.HasMessageId ? other.messageId_.Clone() : null; + author_ = other.HasAuthor ? other.author_.Clone() : null; + destroyed_ = other.destroyed_; + mentionId_ = other.HasMentionId ? other.mentionId_.Clone() : null; + memberId_ = other.HasMemberId ? other.memberId_.Clone() : null; + message_ = other.HasMessage ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMention Clone() { + return new StreamMention(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 2; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "message_id" field. + public const int MessageIdFieldNumber = 3; + private global::Bgs.Protocol.MessageId messageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.MessageId MessageId { + get { return messageId_; } + set { + messageId_ = value; + } + } + /// Gets whether the message_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessageId { + get { return messageId_ != null; } + } + /// Clears the value of the message_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageId() { + messageId_ = null; + } + + /// Field number for the "author" field. + public const int AuthorFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.MemberDescription author_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberDescription Author { + get { return author_; } + set { + author_ = value; + } + } + /// Gets whether the author field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAuthor { + get { return author_ != null; } + } + /// Clears the value of the author field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAuthor() { + author_ = null; + } + + /// Field number for the "destroyed" field. + public const int DestroyedFieldNumber = 5; + private readonly static bool DestroyedDefaultValue = false; + + private bool destroyed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Destroyed { + get { if ((_hasBits0 & 4) != 0) { return destroyed_; } else { return DestroyedDefaultValue; } } + set { + _hasBits0 |= 4; + destroyed_ = value; + } + } + /// Gets whether the "destroyed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDestroyed { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "destroyed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDestroyed() { + _hasBits0 &= ~4; + } + + /// Field number for the "mention_id" field. + public const int MentionIdFieldNumber = 6; + private global::Bgs.Protocol.TimeSeriesId mentionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.TimeSeriesId MentionId { + get { return mentionId_; } + set { + mentionId_ = value; + } + } + /// Gets whether the mention_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMentionId { + get { return mentionId_ != null; } + } + /// Clears the value of the mention_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMentionId() { + mentionId_ = null; + } + + /// Field number for the "member_id" field. + public const int MemberIdFieldNumber = 7; + private global::Bgs.Protocol.Club.V1.MemberId memberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId MemberId { + get { return memberId_; } + set { + memberId_ = value; + } + } + /// Gets whether the member_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMemberId { + get { return memberId_ != null; } + } + /// Clears the value of the member_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMemberId() { + memberId_ = null; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 8; + private global::Bgs.Protocol.Club.V1.StreamMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamMessage Message { + get { return message_; } + set { + message_ = value; + } + } + /// Gets whether the message field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the message field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamMention); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamMention other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(MessageId, other.MessageId)) return false; + if (!object.Equals(Author, other.Author)) return false; + if (Destroyed != other.Destroyed) return false; + if (!object.Equals(MentionId, other.MentionId)) return false; + if (!object.Equals(MemberId, other.MemberId)) return false; + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasMessageId) hash ^= MessageId.GetHashCode(); + if (HasAuthor) hash ^= Author.GetHashCode(); + if (HasDestroyed) hash ^= Destroyed.GetHashCode(); + if (HasMentionId) hash ^= MentionId.GetHashCode(); + if (HasMemberId) hash ^= MemberId.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(16); + output.WriteUInt64(StreamId); + } + if (HasMessageId) { + output.WriteRawTag(26); + output.WriteMessage(MessageId); + } + if (HasAuthor) { + output.WriteRawTag(34); + output.WriteMessage(Author); + } + if (HasDestroyed) { + output.WriteRawTag(40); + output.WriteBool(Destroyed); + } + if (HasMentionId) { + output.WriteRawTag(50); + output.WriteMessage(MentionId); + } + if (HasMemberId) { + output.WriteRawTag(58); + output.WriteMessage(MemberId); + } + if (HasMessage) { + output.WriteRawTag(66); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasMessageId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageId); + } + if (HasAuthor) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author); + } + if (HasDestroyed) { + size += 1 + 1; + } + if (HasMentionId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MentionId); + } + if (HasMemberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamMention other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasMessageId) { + if (!HasMessageId) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + MessageId.MergeFrom(other.MessageId); + } + if (other.HasAuthor) { + if (!HasAuthor) { + Author = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + Author.MergeFrom(other.Author); + } + if (other.HasDestroyed) { + Destroyed = other.Destroyed; + } + if (other.HasMentionId) { + if (!HasMentionId) { + MentionId = new global::Bgs.Protocol.TimeSeriesId(); + } + MentionId.MergeFrom(other.MentionId); + } + if (other.HasMemberId) { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + MemberId.MergeFrom(other.MemberId); + } + if (other.HasMessage) { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + Message.MergeFrom(other.Message); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + case 16: { + StreamId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasMessageId) { + MessageId = new global::Bgs.Protocol.MessageId(); + } + input.ReadMessage(MessageId); + break; + } + case 34: { + if (!HasAuthor) { + Author = new global::Bgs.Protocol.Club.V1.MemberDescription(); + } + input.ReadMessage(Author); + break; + } + case 40: { + Destroyed = input.ReadBool(); + break; + } + case 50: { + if (!HasMentionId) { + MentionId = new global::Bgs.Protocol.TimeSeriesId(); + } + input.ReadMessage(MentionId); + break; + } + case 58: { + if (!HasMemberId) { + MemberId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(MemberId); + break; + } + case 66: { + if (!HasMessage) { + Message = new global::Bgs.Protocol.Club.V1.StreamMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + + } + + public sealed partial class StreamView : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamView()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamView() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamView(StreamView other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + marker_ = other.HasMarker ? other.marker_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamView Clone() { + return new StreamView(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 2; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "marker" field. + public const int MarkerFieldNumber = 3; + private global::Bgs.Protocol.ViewMarker marker_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ViewMarker Marker { + get { return marker_; } + set { + marker_ = value; + } + } + /// Gets whether the marker field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMarker { + get { return marker_ != null; } + } + /// Clears the value of the marker field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMarker() { + marker_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamView); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamView other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(Marker, other.Marker)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasMarker) hash ^= Marker.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(16); + output.WriteUInt64(StreamId); + } + if (HasMarker) { + output.WriteRawTag(26); + output.WriteMessage(Marker); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasMarker) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Marker); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamView other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasMarker) { + if (!HasMarker) { + Marker = new global::Bgs.Protocol.ViewMarker(); + } + Marker.MergeFrom(other.Marker); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + case 16: { + StreamId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasMarker) { + Marker = new global::Bgs.Protocol.ViewMarker(); + } + input.ReadMessage(Marker); + break; + } + } + } + } + + } + + public sealed partial class StreamAdvanceViewTime : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamAdvanceViewTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAdvanceViewTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAdvanceViewTime(StreamAdvanceViewTime other) : this() { + _hasBits0 = other._hasBits0; + streamId_ = other.streamId_; + viewTime_ = other.viewTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamAdvanceViewTime Clone() { + return new StreamAdvanceViewTime(this); + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 1; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 1) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 1; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "view_time" field. + public const int ViewTimeFieldNumber = 2; + private readonly static ulong ViewTimeDefaultValue = 0UL; + + private ulong viewTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ViewTime { + get { if ((_hasBits0 & 2) != 0) { return viewTime_; } else { return ViewTimeDefaultValue; } } + set { + _hasBits0 |= 2; + viewTime_ = value; + } + } + /// Gets whether the "view_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasViewTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "view_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearViewTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamAdvanceViewTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamAdvanceViewTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StreamId != other.StreamId) return false; + if (ViewTime != other.ViewTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasViewTime) hash ^= ViewTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasStreamId) { + output.WriteRawTag(8); + output.WriteUInt64(StreamId); + } + if (HasViewTime) { + output.WriteRawTag(16); + output.WriteUInt64(ViewTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasViewTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ViewTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamAdvanceViewTime other) { + if (other == null) { + return; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasViewTime) { + ViewTime = other.ViewTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StreamId = input.ReadUInt64(); + break; + } + case 16: { + ViewTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class StreamEventTime : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamEventTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamEventTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamEventTime(StreamEventTime other) : this() { + _hasBits0 = other._hasBits0; + streamId_ = other.streamId_; + eventTime_ = other.eventTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamEventTime Clone() { + return new StreamEventTime(this); + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 1; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 1) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 1; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "event_time" field. + public const int EventTimeFieldNumber = 2; + private readonly static ulong EventTimeDefaultValue = 0UL; + + private ulong eventTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong EventTime { + get { if ((_hasBits0 & 2) != 0) { return eventTime_; } else { return EventTimeDefaultValue; } } + set { + _hasBits0 |= 2; + eventTime_ = value; + } + } + /// Gets whether the "event_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEventTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "event_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEventTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamEventTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamEventTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StreamId != other.StreamId) return false; + if (EventTime != other.EventTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasEventTime) hash ^= EventTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasStreamId) { + output.WriteRawTag(8); + output.WriteUInt64(StreamId); + } + if (HasEventTime) { + output.WriteRawTag(16); + output.WriteUInt64(EventTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasEventTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EventTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamEventTime other) { + if (other == null) { + return; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasEventTime) { + EventTime = other.EventTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StreamId = input.ReadUInt64(); + break; + } + case 16: { + EventTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class StreamMentionView : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamMentionView()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionView() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionView(StreamMentionView other) : this() { + _hasBits0 = other._hasBits0; + clubId_ = other.clubId_; + streamId_ = other.streamId_; + marker_ = other.HasMarker ? other.marker_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamMentionView Clone() { + return new StreamMentionView(this); + } + + /// Field number for the "club_id" field. + public const int ClubIdFieldNumber = 1; + private readonly static ulong ClubIdDefaultValue = 0UL; + + private ulong clubId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ClubId { + get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } + set { + _hasBits0 |= 1; + clubId_ = value; + } + } + /// Gets whether the "club_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClubId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "club_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClubId() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 2; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 2; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~2; + } + + /// Field number for the "marker" field. + public const int MarkerFieldNumber = 3; + private global::Bgs.Protocol.ViewMarker marker_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ViewMarker Marker { + get { return marker_; } + set { + marker_ = value; + } + } + /// Gets whether the marker field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMarker { + get { return marker_ != null; } + } + /// Clears the value of the marker field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMarker() { + marker_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamMentionView); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamMentionView other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClubId != other.ClubId) return false; + if (StreamId != other.StreamId) return false; + if (!object.Equals(Marker, other.Marker)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClubId) hash ^= ClubId.GetHashCode(); + if (HasStreamId) hash ^= StreamId.GetHashCode(); + if (HasMarker) hash ^= Marker.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClubId) { + output.WriteRawTag(8); + output.WriteUInt64(ClubId); + } + if (HasStreamId) { + output.WriteRawTag(16); + output.WriteUInt64(StreamId); + } + if (HasMarker) { + output.WriteRawTag(26); + output.WriteMessage(Marker); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClubId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); + } + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + if (HasMarker) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Marker); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamMentionView other) { + if (other == null) { + return; + } + if (other.HasClubId) { + ClubId = other.ClubId; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + if (other.HasMarker) { + if (!HasMarker) { + Marker = new global::Bgs.Protocol.ViewMarker(); + } + Marker.MergeFrom(other.Marker); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClubId = input.ReadUInt64(); + break; + } + case 16: { + StreamId = input.ReadUInt64(); + break; + } + case 26: { + if (!HasMarker) { + Marker = new global::Bgs.Protocol.ViewMarker(); + } + input.ReadMessage(Marker); + break; + } + } + } + } + + } + + public sealed partial class StreamStateOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamStateOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateOptions(StreamStateOptions other) : this() { + _hasBits0 = other._hasBits0; + attribute_ = other.attribute_.Clone(); + name_ = other.name_; + subject_ = other.subject_; + access_ = other.HasAccess ? other.access_.Clone() : null; + voiceLevel_ = other.voiceLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateOptions Clone() { + return new StreamStateOptions(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "subject" field. + public const int SubjectFieldNumber = 3; + private readonly static string SubjectDefaultValue = ""; + + private string subject_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Subject { + get { return subject_ ?? SubjectDefaultValue; } + set { + subject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "subject" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubject { + get { return subject_ != null; } + } + /// Clears the value of the "subject" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubject() { + subject_ = null; + } + + /// Field number for the "access" field. + public const int AccessFieldNumber = 4; + private global::Bgs.Protocol.Club.V1.StreamAccess access_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamAccess Access { + get { return access_; } + set { + access_ = value; + } + } + /// Gets whether the access field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccess { + get { return access_ != null; } + } + /// Clears the value of the access field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccess() { + access_ = null; + } + + /// Field number for the "voice_level" field. + public const int VoiceLevelFieldNumber = 5; + private readonly static global::Bgs.Protocol.Club.V1.StreamVoiceLevel VoiceLevelDefaultValue = global::Bgs.Protocol.Club.V1.StreamVoiceLevel.VoiceLevelDisabled; + + private global::Bgs.Protocol.Club.V1.StreamVoiceLevel voiceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamVoiceLevel VoiceLevel { + get { if ((_hasBits0 & 1) != 0) { return voiceLevel_; } else { return VoiceLevelDefaultValue; } } + set { + _hasBits0 |= 1; + voiceLevel_ = value; + } + } + /// Gets whether the "voice_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoiceLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "voice_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoiceLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamStateOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamStateOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + if (Name != other.Name) return false; + if (Subject != other.Subject) return false; + if (!object.Equals(Access, other.Access)) return false; + if (VoiceLevel != other.VoiceLevel) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasSubject) hash ^= Subject.GetHashCode(); + if (HasAccess) hash ^= Access.GetHashCode(); + if (HasVoiceLevel) hash ^= VoiceLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasSubject) { + output.WriteRawTag(26); + output.WriteString(Subject); + } + if (HasAccess) { + output.WriteRawTag(34); + output.WriteMessage(Access); + } + if (HasVoiceLevel) { + output.WriteRawTag(40); + output.WriteEnum((int) VoiceLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasSubject) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subject); + } + if (HasAccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (HasVoiceLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VoiceLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamStateOptions other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + if (other.HasName) { + Name = other.Name; + } + if (other.HasSubject) { + Subject = other.Subject; + } + if (other.HasAccess) { + if (!HasAccess) { + Access = new global::Bgs.Protocol.Club.V1.StreamAccess(); + } + Access.MergeFrom(other.Access); + } + if (other.HasVoiceLevel) { + VoiceLevel = other.VoiceLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Subject = input.ReadString(); + break; + } + case 34: { + if (!HasAccess) { + Access = new global::Bgs.Protocol.Club.V1.StreamAccess(); + } + input.ReadMessage(Access); + break; + } + case 40: { + VoiceLevel = (global::Bgs.Protocol.Club.V1.StreamVoiceLevel) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class StreamStateAssignment : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamStateAssignment()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateAssignment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateAssignment(StreamStateAssignment other) : this() { + _hasBits0 = other._hasBits0; + streamId_ = other.streamId_; + attribute_ = other.attribute_.Clone(); + name_ = other.name_; + subject_ = other.subject_; + access_ = other.HasAccess ? other.access_.Clone() : null; + streamSubscriptionRemoved_ = other.streamSubscriptionRemoved_; + voiceLevel_ = other.voiceLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamStateAssignment Clone() { + return new StreamStateAssignment(this); + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 1; + private readonly static ulong StreamIdDefaultValue = 0UL; + + private ulong streamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong StreamId { + get { if ((_hasBits0 & 1) != 0) { return streamId_; } else { return StreamIdDefaultValue; } } + set { + _hasBits0 |= 1; + streamId_ = value; + } + } + /// Gets whether the "stream_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "subject" field. + public const int SubjectFieldNumber = 4; + private readonly static string SubjectDefaultValue = ""; + + private string subject_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Subject { + get { return subject_ ?? SubjectDefaultValue; } + set { + subject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "subject" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubject { + get { return subject_ != null; } + } + /// Clears the value of the "subject" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubject() { + subject_ = null; + } + + /// Field number for the "access" field. + public const int AccessFieldNumber = 5; + private global::Bgs.Protocol.Club.V1.StreamAccess access_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamAccess Access { + get { return access_; } + set { + access_ = value; + } + } + /// Gets whether the access field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccess { + get { return access_ != null; } + } + /// Clears the value of the access field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccess() { + access_ = null; + } + + /// Field number for the "stream_subscription_removed" field. + public const int StreamSubscriptionRemovedFieldNumber = 6; + private readonly static bool StreamSubscriptionRemovedDefaultValue = false; + + private bool streamSubscriptionRemoved_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool StreamSubscriptionRemoved { + get { if ((_hasBits0 & 2) != 0) { return streamSubscriptionRemoved_; } else { return StreamSubscriptionRemovedDefaultValue; } } + set { + _hasBits0 |= 2; + streamSubscriptionRemoved_ = value; + } + } + /// Gets whether the "stream_subscription_removed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStreamSubscriptionRemoved { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_subscription_removed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStreamSubscriptionRemoved() { + _hasBits0 &= ~2; + } + + /// Field number for the "voice_level" field. + public const int VoiceLevelFieldNumber = 7; + private readonly static global::Bgs.Protocol.Club.V1.StreamVoiceLevel VoiceLevelDefaultValue = global::Bgs.Protocol.Club.V1.StreamVoiceLevel.VoiceLevelDisabled; + + private global::Bgs.Protocol.Club.V1.StreamVoiceLevel voiceLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.StreamVoiceLevel VoiceLevel { + get { if ((_hasBits0 & 4) != 0) { return voiceLevel_; } else { return VoiceLevelDefaultValue; } } + set { + _hasBits0 |= 4; + voiceLevel_ = value; + } + } + /// Gets whether the "voice_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoiceLevel { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "voice_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoiceLevel() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamStateAssignment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamStateAssignment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StreamId != other.StreamId) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (Name != other.Name) return false; + if (Subject != other.Subject) return false; + if (!object.Equals(Access, other.Access)) return false; + if (StreamSubscriptionRemoved != other.StreamSubscriptionRemoved) return false; + if (VoiceLevel != other.VoiceLevel) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasStreamId) hash ^= StreamId.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasSubject) hash ^= Subject.GetHashCode(); + if (HasAccess) hash ^= Access.GetHashCode(); + if (HasStreamSubscriptionRemoved) hash ^= StreamSubscriptionRemoved.GetHashCode(); + if (HasVoiceLevel) hash ^= VoiceLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasStreamId) { + output.WriteRawTag(8); + output.WriteUInt64(StreamId); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasName) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (HasSubject) { + output.WriteRawTag(34); + output.WriteString(Subject); + } + if (HasAccess) { + output.WriteRawTag(42); + output.WriteMessage(Access); + } + if (HasStreamSubscriptionRemoved) { + output.WriteRawTag(48); + output.WriteBool(StreamSubscriptionRemoved); + } + if (HasVoiceLevel) { + output.WriteRawTag(56); + output.WriteEnum((int) VoiceLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasStreamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasSubject) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subject); + } + if (HasAccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (HasStreamSubscriptionRemoved) { + size += 1 + 1; + } + if (HasVoiceLevel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VoiceLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamStateAssignment other) { + if (other == null) { + return; + } + if (other.HasStreamId) { + StreamId = other.StreamId; + } + attribute_.Add(other.attribute_); + if (other.HasName) { + Name = other.Name; + } + if (other.HasSubject) { + Subject = other.Subject; + } + if (other.HasAccess) { + if (!HasAccess) { + Access = new global::Bgs.Protocol.Club.V1.StreamAccess(); + } + Access.MergeFrom(other.Access); + } + if (other.HasStreamSubscriptionRemoved) { + StreamSubscriptionRemoved = other.StreamSubscriptionRemoved; + } + if (other.HasVoiceLevel) { + VoiceLevel = other.VoiceLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StreamId = input.ReadUInt64(); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Subject = input.ReadString(); + break; + } + case 42: { + if (!HasAccess) { + Access = new global::Bgs.Protocol.Club.V1.StreamAccess(); + } + input.ReadMessage(Access); + break; + } + case 48: { + StreamSubscriptionRemoved = input.ReadBool(); + break; + } + case 56: { + VoiceLevel = (global::Bgs.Protocol.Club.V1.StreamVoiceLevel) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class StreamTypingIndicator : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamTypingIndicator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamTypingIndicator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamTypingIndicator(StreamTypingIndicator other) : this() { + _hasBits0 = other._hasBits0; + authorId_ = other.HasAuthorId ? other.authorId_.Clone() : null; + indicator_ = other.indicator_; + epoch_ = other.epoch_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StreamTypingIndicator Clone() { + return new StreamTypingIndicator(this); + } + + /// Field number for the "author_id" field. + public const int AuthorIdFieldNumber = 1; + private global::Bgs.Protocol.Club.V1.MemberId authorId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Club.V1.MemberId AuthorId { + get { return authorId_; } + set { + authorId_ = value; + } + } + /// Gets whether the author_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAuthorId { + get { return authorId_ != null; } + } + /// Clears the value of the author_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAuthorId() { + authorId_ = null; + } + + /// Field number for the "indicator" field. + public const int IndicatorFieldNumber = 2; + private readonly static global::Bgs.Protocol.TypingIndicator IndicatorDefaultValue = global::Bgs.Protocol.TypingIndicator.TypingStart; + + private global::Bgs.Protocol.TypingIndicator indicator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.TypingIndicator Indicator { + get { if ((_hasBits0 & 1) != 0) { return indicator_; } else { return IndicatorDefaultValue; } } + set { + _hasBits0 |= 1; + indicator_ = value; + } + } + /// Gets whether the "indicator" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIndicator { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "indicator" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIndicator() { + _hasBits0 &= ~1; + } + + /// Field number for the "epoch" field. + public const int EpochFieldNumber = 3; + private readonly static ulong EpochDefaultValue = 0UL; + + private ulong epoch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Epoch { + get { if ((_hasBits0 & 2) != 0) { return epoch_; } else { return EpochDefaultValue; } } + set { + _hasBits0 |= 2; + epoch_ = value; + } + } + /// Gets whether the "epoch" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEpoch { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "epoch" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEpoch() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StreamTypingIndicator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StreamTypingIndicator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AuthorId, other.AuthorId)) return false; + if (Indicator != other.Indicator) return false; + if (Epoch != other.Epoch) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAuthorId) hash ^= AuthorId.GetHashCode(); + if (HasIndicator) hash ^= Indicator.GetHashCode(); + if (HasEpoch) hash ^= Epoch.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAuthorId) { + output.WriteRawTag(10); + output.WriteMessage(AuthorId); + } + if (HasIndicator) { + output.WriteRawTag(16); + output.WriteEnum((int) Indicator); + } + if (HasEpoch) { + output.WriteRawTag(24); + output.WriteUInt64(Epoch); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAuthorId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthorId); + } + if (HasIndicator) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Indicator); + } + if (HasEpoch) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Epoch); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StreamTypingIndicator other) { + if (other == null) { + return; + } + if (other.HasAuthorId) { + if (!HasAuthorId) { + AuthorId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + AuthorId.MergeFrom(other.AuthorId); + } + if (other.HasIndicator) { + Indicator = other.Indicator; + } + if (other.HasEpoch) { + Epoch = other.Epoch; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAuthorId) { + AuthorId = new global::Bgs.Protocol.Club.V1.MemberId(); + } + input.ReadMessage(AuthorId); + break; + } + case 16: { + Indicator = (global::Bgs.Protocol.TypingIndicator) input.ReadEnum(); + break; + } + case 24: { + Epoch = input.ReadUInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ClubTypes.cs b/Source/Framework/Proto/ClubTypes.cs new file mode 100644 index 000000000..3706bbc03 --- /dev/null +++ b/Source/Framework/Proto/ClubTypes.cs @@ -0,0 +1,58 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/club_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Club.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/club_types.proto + public static partial class ClubTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/club_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClubTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJiZ3MvbG93L3BiL2NsaWVudC9jbHViX3R5cGVzLnByb3RvEhRiZ3MucHJv", + "dG9jb2wuY2x1Yi52MRotYmdzL2xvdy9wYi9jbGllbnQvY2x1Yl9tZW1iZXJz", + "aGlwX3R5cGVzLnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9jbHViX2VudW0u", + "cHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L2NsdWJfcm9sZS5wcm90bxomYmdz", + "L2xvdy9wYi9jbGllbnQvY2x1Yl9yYW5nZV9zZXQucHJvdG8aIWJncy9sb3cv", + "cGIvY2xpZW50L2NsdWJfY29yZS5wcm90bxojYmdzL2xvdy9wYi9jbGllbnQv", + "Y2x1Yl9tZW1iZXIucHJvdG8aJ2Jncy9sb3cvcGIvY2xpZW50L2NsdWJfaW52", + "aXRhdGlvbi5wcm90bxogYmdzL2xvdy9wYi9jbGllbnQvY2x1Yl9iYW4ucHJv", + "dG8aI2Jncy9sb3cvcGIvY2xpZW50L2NsdWJfc3RyZWFtLnByb3RvGjViZ3Mv", + "bG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL2F0dHJpYnV0ZV90eXBlcy5w", + "cm90bxolYmdzL2xvdy9wYi9jbGllbnQvYWNjb3VudF90eXBlcy5wcm90bxoo", + "YmdzL2xvdy9wYi9jbGllbnQvZXZlbnRfdmlld190eXBlcy5wcm90bxooYmdz", + "L2xvdy9wYi9jbGllbnQvaW52aXRhdGlvbl90eXBlcy5wcm90bxolYmdzL2xv", + "dy9wYi9jbGllbnQvbWVzc2FnZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9j", + "bGllbnQvZXRzX3R5cGVzLnByb3RvGiNiZ3MvbG93L3BiL2NsaWVudC92b2lj", + "ZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQvcnBjX3R5cGVzLnBy", + "b3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNz", + "YWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9l", + "eHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOGJncy9sb3cvcGIvY2xp", + "ZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnByb3RvGjli", + "Z3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNlX29w", + "dGlvbnMucHJvdG9QAFABUAJQA1AEUAVQBlAHUAhQCVAKUAtQDFANUA5QD1AQ")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubMembershipTypesReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubEnumReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubRoleReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubRangeSetReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubBanReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubStreamReflection.Descriptor, global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.EventViewTypesReflection.Descriptor, global::Bgs.Protocol.InvitationTypesReflection.Descriptor, global::Bgs.Protocol.MessageTypesReflection.Descriptor, global::Bgs.Protocol.EtsTypesReflection.Descriptor, global::Bgs.Protocol.VoiceTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, null)); + } + #endregion + + } +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ConnectionService.cs b/Source/Framework/Proto/ConnectionService.cs index d2c07f4b2..292f54062 100644 --- a/Source/Framework/Proto/ConnectionService.cs +++ b/Source/Framework/Proto/ConnectionService.cs @@ -1,2025 +1,2322 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/connection_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/connection_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Connection.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Connection.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/connection_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class ConnectionServiceReflection - { - - #region Descriptor - /// File descriptor for bgs/low/pb/client/connection_service.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConnectionServiceReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "CipiZ3MvbG93L3BiL2NsaWVudC9jb25uZWN0aW9uX3NlcnZpY2UucHJvdG8S", - "GmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxGixiZ3MvbG93L3BiL2NsaWVu", - "dC9jb250ZW50X2hhbmRsZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGll", - "bnQvcnBjX3R5cGVzLnByb3RvIpUBCg5Db25uZWN0UmVxdWVzdBIqCgljbGll", - "bnRfaWQYASABKAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vzc0lkEj0KDGJpbmRf", - "cmVxdWVzdBgCIAEoCzInLmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkJp", - "bmRSZXF1ZXN0EhgKEHVzZV9iaW5kbGVzc19ycGMYAyABKAgiVwogQ29ubmVj", - "dGlvbk1ldGVyaW5nQ29udGVudEhhbmRsZXMSMwoOY29udGVudF9oYW5kbGUY", - "ASADKAsyGy5iZ3MucHJvdG9jb2wuQ29udGVudEhhbmRsZSKtAwoPQ29ubmVj", - "dFJlc3BvbnNlEioKCXNlcnZlcl9pZBgBIAEoCzIXLmJncy5wcm90b2NvbC5Q", - "cm9jZXNzSWQSKgoJY2xpZW50X2lkGAIgASgLMhcuYmdzLnByb3RvY29sLlBy", - "b2Nlc3NJZBITCgtiaW5kX3Jlc3VsdBgDIAEoDRI/Cg1iaW5kX3Jlc3BvbnNl", - "GAQgASgLMiguYmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuQmluZFJlc3Bv", - "bnNlEloKFGNvbnRlbnRfaGFuZGxlX2FycmF5GAUgASgLMjwuYmdzLnByb3Rv", - "Y29sLmNvbm5lY3Rpb24udjEuQ29ubmVjdGlvbk1ldGVyaW5nQ29udGVudEhh", - "bmRsZXMSEwoLc2VydmVyX3RpbWUYBiABKAQSGAoQdXNlX2JpbmRsZXNzX3Jw", - "YxgHIAEoCBJhChtiaW5hcnlfY29udGVudF9oYW5kbGVfYXJyYXkYCCABKAsy", - "PC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5Db25uZWN0aW9uTWV0ZXJp", - "bmdDb250ZW50SGFuZGxlcyIoCgxCb3VuZFNlcnZpY2USDAoEaGFzaBgBIAEo", - "BxIKCgJpZBgCIAEoDSKYAgoLQmluZFJlcXVlc3QSLgogZGVwcmVjYXRlZF9p", - "bXBvcnRlZF9zZXJ2aWNlX2hhc2gYASADKAdCBBABGAESUQobZGVwcmVjYXRl", - "ZF9leHBvcnRlZF9zZXJ2aWNlGAIgAygLMiguYmdzLnByb3RvY29sLmNvbm5l", - "Y3Rpb24udjEuQm91bmRTZXJ2aWNlQgIYARJCChBleHBvcnRlZF9zZXJ2aWNl", - "GAMgAygLMiguYmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuQm91bmRTZXJ2", - "aWNlEkIKEGltcG9ydGVkX3NlcnZpY2UYBCADKAsyKC5iZ3MucHJvdG9jb2wu", - "Y29ubmVjdGlvbi52MS5Cb3VuZFNlcnZpY2UiMQoMQmluZFJlc3BvbnNlEiEK", - "E2ltcG9ydGVkX3NlcnZpY2VfaWQYASADKA1CBBABGAEiQgoLRWNob1JlcXVl", - "c3QSDAoEdGltZRgBIAEoBhIUCgxuZXR3b3JrX29ubHkYAiABKAgSDwoHcGF5", - "bG9hZBgDIAEoDCItCgxFY2hvUmVzcG9uc2USDAoEdGltZRgBIAEoBhIPCgdw", - "YXlsb2FkGAIgASgMIicKEURpc2Nvbm5lY3RSZXF1ZXN0EhIKCmVycm9yX2Nv", - "ZGUYASABKA0iPAoWRGlzY29ubmVjdE5vdGlmaWNhdGlvbhISCgplcnJvcl9j", - "b2RlGAEgASgNEg4KBnJlYXNvbhgCIAEoCSIQCg5FbmNyeXB0UmVxdWVzdDKD", - "BQoRQ29ubmVjdGlvblNlcnZpY2USYgoHQ29ubmVjdBIqLmJncy5wcm90b2Nv", - "bC5jb25uZWN0aW9uLnYxLkNvbm5lY3RSZXF1ZXN0GisuYmdzLnByb3RvY29s", - "LmNvbm5lY3Rpb24udjEuQ29ubmVjdFJlc3BvbnNlEl4KBEJpbmQSJy5iZ3Mu", - "cHJvdG9jb2wuY29ubmVjdGlvbi52MS5CaW5kUmVxdWVzdBooLmJncy5wcm90", - "b2NvbC5jb25uZWN0aW9uLnYxLkJpbmRSZXNwb25zZSIDiAIBElkKBEVjaG8S", - "Jy5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5FY2hvUmVxdWVzdBooLmJn", - "cy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkVjaG9SZXNwb25zZRJgCg9Gb3Jj", - "ZURpc2Nvbm5lY3QSMi5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5EaXNj", - "b25uZWN0Tm90aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNF", - "EjwKCUtlZXBBbGl2ZRIULmJncy5wcm90b2NvbC5Ob0RhdGEaGS5iZ3MucHJv", - "dG9jb2wuTk9fUkVTUE9OU0USUAoHRW5jcnlwdBIqLmJncy5wcm90b2NvbC5j", - "b25uZWN0aW9uLnYxLkVuY3J5cHRSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5v", - "RGF0YSIDiAIBEl0KEVJlcXVlc3REaXNjb25uZWN0Ei0uYmdzLnByb3RvY29s", - "LmNvbm5lY3Rpb24udjEuRGlzY29ubmVjdFJlcXVlc3QaGS5iZ3MucHJvdG9j", - "b2wuTk9fUkVTUE9OU0VCPQobYm5ldC5wcm90b2NvbC5jb25uZWN0aW9uLnYx", - "QhZDb25uZWN0aW9uU2VydmljZVByb3RvSAKAAQCIAQFiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.ContentHandleTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.ConnectRequest), Bgs.Protocol.Connection.V1.ConnectRequest.Parser, new[]{ "ClientId", "BindRequest", "UseBindlessRpc" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles), Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles.Parser, new[]{ "ContentHandle" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.ConnectResponse), Bgs.Protocol.Connection.V1.ConnectResponse.Parser, new[]{ "ServerId", "ClientId", "BindResult", "BindResponse", "ContentHandleArray", "ServerTime", "UseBindlessRpc", "BinaryContentHandleArray" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.BoundService), Bgs.Protocol.Connection.V1.BoundService.Parser, new[]{ "Hash", "Id" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.BindRequest), Bgs.Protocol.Connection.V1.BindRequest.Parser, new[]{ "DeprecatedImportedServiceHash", "DeprecatedExportedService", "ExportedService", "ImportedService" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.BindResponse), Bgs.Protocol.Connection.V1.BindResponse.Parser, new[]{ "ImportedServiceId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.EchoRequest), Bgs.Protocol.Connection.V1.EchoRequest.Parser, new[]{ "Time", "NetworkOnly", "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.EchoResponse), Bgs.Protocol.Connection.V1.EchoResponse.Parser, new[]{ "Time", "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.DisconnectRequest), Bgs.Protocol.Connection.V1.DisconnectRequest.Parser, new[]{ "ErrorCode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.DisconnectNotification), Bgs.Protocol.Connection.V1.DisconnectNotification.Parser, new[]{ "ErrorCode", "Reason" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Connection.V1.EncryptRequest), Bgs.Protocol.Connection.V1.EncryptRequest.Parser, null, null, null, null) - })); - } - #endregion + /// Holder for reflection information generated from bgs/low/pb/client/connection_service.proto + public static partial class ConnectionServiceReflection { + #region Descriptor + /// File descriptor for bgs/low/pb/client/connection_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ConnectRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ConnectRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ConnectRequest(ConnectRequest other) : this() - { - ClientId = other.clientId_ != null ? other.ClientId.Clone() : null; - BindRequest = other.bindRequest_ != null ? other.BindRequest.Clone() : null; - useBindlessRpc_ = other.useBindlessRpc_; - } - - public ConnectRequest Clone() - { - return new ConnectRequest(this); - } - - /// Field number for the "client_id" field. - public const int ClientIdFieldNumber = 1; - private Bgs.Protocol.ProcessId clientId_; - public Bgs.Protocol.ProcessId ClientId - { - get { return clientId_; } - set - { - clientId_ = value; - } - } - - /// Field number for the "bind_request" field. - public const int BindRequestFieldNumber = 2; - private Bgs.Protocol.Connection.V1.BindRequest bindRequest_; - public Bgs.Protocol.Connection.V1.BindRequest BindRequest - { - get { return bindRequest_; } - set - { - bindRequest_ = value; - } - } - - /// Field number for the "use_bindless_rpc" field. - public const int UseBindlessRpcFieldNumber = 3; - private bool useBindlessRpc_; - public bool UseBindlessRpc - { - get { return useBindlessRpc_; } - set - { - useBindlessRpc_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ConnectRequest); - } - - public bool Equals(ConnectRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(ClientId, other.ClientId)) return false; - if (!object.Equals(BindRequest, other.BindRequest)) return false; - if (UseBindlessRpc != other.UseBindlessRpc) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (clientId_ != null) hash ^= ClientId.GetHashCode(); - if (bindRequest_ != null) hash ^= BindRequest.GetHashCode(); - if (UseBindlessRpc != false) hash ^= UseBindlessRpc.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (clientId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(ClientId); - } - if (bindRequest_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(BindRequest); - } - if (UseBindlessRpc != false) - { - output.WriteRawTag(24); - output.WriteBool(UseBindlessRpc); - } - } - - public int CalculateSize() - { - int size = 0; - if (clientId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientId); - } - if (bindRequest_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BindRequest); - } - if (UseBindlessRpc != false) - { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(ConnectRequest other) - { - if (other == null) - { - return; - } - if (other.clientId_ != null) - { - if (clientId_ == null) - { - clientId_ = new Bgs.Protocol.ProcessId(); - } - ClientId.MergeFrom(other.ClientId); - } - if (other.bindRequest_ != null) - { - if (bindRequest_ == null) - { - bindRequest_ = new Bgs.Protocol.Connection.V1.BindRequest(); - } - BindRequest.MergeFrom(other.BindRequest); - } - if (other.UseBindlessRpc != false) - { - UseBindlessRpc = other.UseBindlessRpc; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (clientId_ == null) - { - clientId_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(clientId_); - break; - } - case 18: - { - if (bindRequest_ == null) - { - bindRequest_ = new Bgs.Protocol.Connection.V1.BindRequest(); - } - input.ReadMessage(bindRequest_); - break; - } - case 24: - { - UseBindlessRpc = input.ReadBool(); - break; - } - } - } - } + private static pbr::FileDescriptor descriptor; + static ConnectionServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CipiZ3MvbG93L3BiL2NsaWVudC9jb25uZWN0aW9uX3NlcnZpY2UucHJvdG8S", + "GmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxGixiZ3MvbG93L3BiL2NsaWVu", + "dC9jb250ZW50X2hhbmRsZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGll", + "bnQvcnBjX3R5cGVzLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxf", + "ZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIv", + "Y2xpZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8a", + "OGJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9v", + "cHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5z", + "aW9ucy9zZXJ2aWNlX29wdGlvbnMucHJvdG8imwEKDkNvbm5lY3RSZXF1ZXN0", + "EioKCWNsaWVudF9pZBgBIAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQS", + "PQoMYmluZF9yZXF1ZXN0GAIgASgLMicuYmdzLnByb3RvY29sLmNvbm5lY3Rp", + "b24udjEuQmluZFJlcXVlc3QSHgoQdXNlX2JpbmRsZXNzX3JwYxgDIAEoCDoE", + "dHJ1ZSJXCiBDb25uZWN0aW9uTWV0ZXJpbmdDb250ZW50SGFuZGxlcxIzCg5j", + "b250ZW50X2hhbmRsZRgBIAMoCzIbLmJncy5wcm90b2NvbC5Db250ZW50SGFu", + "ZGxlIrQDCg9Db25uZWN0UmVzcG9uc2USKgoJc2VydmVyX2lkGAEgAigLMhcu", + "YmdzLnByb3RvY29sLlByb2Nlc3NJZBIqCgljbGllbnRfaWQYAiABKAsyFy5i", + "Z3MucHJvdG9jb2wuUHJvY2Vzc0lkEhMKC2JpbmRfcmVzdWx0GAMgASgNEj8K", + "DWJpbmRfcmVzcG9uc2UYBCABKAsyKC5iZ3MucHJvdG9jb2wuY29ubmVjdGlv", + "bi52MS5CaW5kUmVzcG9uc2USWgoUY29udGVudF9oYW5kbGVfYXJyYXkYBSAB", + "KAsyPC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5Db25uZWN0aW9uTWV0", + "ZXJpbmdDb250ZW50SGFuZGxlcxITCgtzZXJ2ZXJfdGltZRgGIAEoBBIfChB1", + "c2VfYmluZGxlc3NfcnBjGAcgASgIOgVmYWxzZRJhChtiaW5hcnlfY29udGVu", + "dF9oYW5kbGVfYXJyYXkYCCABKAsyPC5iZ3MucHJvdG9jb2wuY29ubmVjdGlv", + "bi52MS5Db25uZWN0aW9uTWV0ZXJpbmdDb250ZW50SGFuZGxlcyIoCgxCb3Vu", + "ZFNlcnZpY2USDAoEaGFzaBgBIAIoBxIKCgJpZBgCIAIoDSKYAgoLQmluZFJl", + "cXVlc3QSLgogZGVwcmVjYXRlZF9pbXBvcnRlZF9zZXJ2aWNlX2hhc2gYASAD", + "KAdCBBABGAESUQobZGVwcmVjYXRlZF9leHBvcnRlZF9zZXJ2aWNlGAIgAygL", + "MiguYmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuQm91bmRTZXJ2aWNlQgIY", + "ARJCChBleHBvcnRlZF9zZXJ2aWNlGAMgAygLMiguYmdzLnByb3RvY29sLmNv", + "bm5lY3Rpb24udjEuQm91bmRTZXJ2aWNlEkIKEGltcG9ydGVkX3NlcnZpY2UY", + "BCADKAsyKC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5Cb3VuZFNlcnZp", + "Y2UiMQoMQmluZFJlc3BvbnNlEiEKE2ltcG9ydGVkX3NlcnZpY2VfaWQYASAD", + "KA1CBBABGAEijgEKC0VjaG9SZXF1ZXN0EgwKBHRpbWUYASABKAYSGwoMbmV0", + "d29ya19vbmx5GAIgASgIOgVmYWxzZRIPCgdwYXlsb2FkGAMgASgMEigKB2Zv", + "cndhcmQYBCABKAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vzc0lkEhkKEWZvcndh", + "cmRfY2xpZW50X2lkGAUgASgJIi0KDEVjaG9SZXNwb25zZRIMCgR0aW1lGAEg", + "ASgGEg8KB3BheWxvYWQYAiABKAwiJwoRRGlzY29ubmVjdFJlcXVlc3QSEgoK", + "ZXJyb3JfY29kZRgBIAIoDSI8ChZEaXNjb25uZWN0Tm90aWZpY2F0aW9uEhIK", + "CmVycm9yX2NvZGUYASACKA0SDgoGcmVhc29uGAIgASgJIhAKDkVuY3J5cHRS", + "ZXF1ZXN0MoUGChFDb25uZWN0aW9uU2VydmljZRJqCgdDb25uZWN0EiouYmdz", + "LnByb3RvY29sLmNvbm5lY3Rpb24udjEuQ29ubmVjdFJlcXVlc3QaKy5iZ3Mu", + "cHJvdG9jb2wuY29ubmVjdGlvbi52MS5Db25uZWN0UmVzcG9uc2UiBoL5KwII", + "ARJkCgRCaW5kEicuYmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuQmluZFJl", + "cXVlc3QaKC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5CaW5kUmVzcG9u", + "c2UiCYgCAYL5KwIIAhJhCgRFY2hvEicuYmdzLnByb3RvY29sLmNvbm5lY3Rp", + "b24udjEuRWNob1JlcXVlc3QaKC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52", + "MS5FY2hvUmVzcG9uc2UiBoL5KwIIAxJoCg9Gb3JjZURpc2Nvbm5lY3QSMi5i", + "Z3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5EaXNjb25uZWN0Tm90aWZpY2F0", + "aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAQSRAoJS2Vl", + "cEFsaXZlEhQuYmdzLnByb3RvY29sLk5vRGF0YRoZLmJncy5wcm90b2NvbC5O", + "T19SRVNQT05TRSIGgvkrAggFElYKB0VuY3J5cHQSKi5iZ3MucHJvdG9jb2wu", + "Y29ubmVjdGlvbi52MS5FbmNyeXB0UmVxdWVzdBoULmJncy5wcm90b2NvbC5O", + "b0RhdGEiCYgCAYL5KwIIBhJlChFSZXF1ZXN0RGlzY29ubmVjdBItLmJncy5w", + "cm90b2NvbC5jb25uZWN0aW9uLnYxLkRpc2Nvbm5lY3RSZXF1ZXN0GhkuYmdz", + "LnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAcaTIL5KywKKmJuZXQucHJv", + "dG9jb2wuY29ubmVjdGlvbi5Db25uZWN0aW9uU2VydmljZYL5KwwqCmNvbm5l", + "Y3Rpb26K+SsCCAGK+SsCEAFCOwobYm5ldC5wcm90b2NvbC5jb25uZWN0aW9u", + "LnYxQhZDb25uZWN0aW9uU2VydmljZVByb3RvgAEAiAEB")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.ContentHandleTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.ConnectRequest), global::Bgs.Protocol.Connection.V1.ConnectRequest.Parser, new[]{ "ClientId", "BindRequest", "UseBindlessRpc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles), global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles.Parser, new[]{ "ContentHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.ConnectResponse), global::Bgs.Protocol.Connection.V1.ConnectResponse.Parser, new[]{ "ServerId", "ClientId", "BindResult", "BindResponse", "ContentHandleArray", "ServerTime", "UseBindlessRpc", "BinaryContentHandleArray" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.BoundService), global::Bgs.Protocol.Connection.V1.BoundService.Parser, new[]{ "Hash", "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.BindRequest), global::Bgs.Protocol.Connection.V1.BindRequest.Parser, new[]{ "DeprecatedImportedServiceHash", "DeprecatedExportedService", "ExportedService", "ImportedService" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.BindResponse), global::Bgs.Protocol.Connection.V1.BindResponse.Parser, new[]{ "ImportedServiceId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.EchoRequest), global::Bgs.Protocol.Connection.V1.EchoRequest.Parser, new[]{ "Time", "NetworkOnly", "Payload", "Forward", "ForwardClientId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.EchoResponse), global::Bgs.Protocol.Connection.V1.EchoResponse.Parser, new[]{ "Time", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.DisconnectRequest), global::Bgs.Protocol.Connection.V1.DisconnectRequest.Parser, new[]{ "ErrorCode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.DisconnectNotification), global::Bgs.Protocol.Connection.V1.DisconnectNotification.Parser, new[]{ "ErrorCode", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.EncryptRequest), global::Bgs.Protocol.Connection.V1.EncryptRequest.Parser, null, null, null, null, null) + })); } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ConnectionMeteringContentHandles : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionMeteringContentHandles()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ConnectionMeteringContentHandles() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ConnectionMeteringContentHandles(ConnectionMeteringContentHandles other) : this() - { - contentHandle_ = other.contentHandle_.Clone(); - } - - public ConnectionMeteringContentHandles Clone() - { - return new ConnectionMeteringContentHandles(this); - } - - /// Field number for the "content_handle" field. - public const int ContentHandleFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_contentHandle_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.ContentHandle.Parser); - private readonly pbc::RepeatedField contentHandle_ = new pbc::RepeatedField(); - public pbc::RepeatedField ContentHandle - { - get { return contentHandle_; } - } - - public override bool Equals(object other) - { - return Equals(other as ConnectionMeteringContentHandles); - } - - public bool Equals(ConnectionMeteringContentHandles other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!contentHandle_.Equals(other.contentHandle_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= contentHandle_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - contentHandle_.WriteTo(output, _repeated_contentHandle_codec); - } - - public int CalculateSize() - { - int size = 0; - size += contentHandle_.CalculateSize(_repeated_contentHandle_codec); - return size; - } - - public void MergeFrom(ConnectionMeteringContentHandles other) - { - if (other == null) - { - return; - } - contentHandle_.Add(other.contentHandle_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - contentHandle_.AddEntriesFrom(input, _repeated_contentHandle_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ConnectResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ConnectResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ConnectResponse(ConnectResponse other) : this() - { - ServerId = other.serverId_ != null ? other.ServerId.Clone() : null; - ClientId = other.clientId_ != null ? other.ClientId.Clone() : null; - bindResult_ = other.bindResult_; - BindResponse = other.bindResponse_ != null ? other.BindResponse.Clone() : null; - ContentHandleArray = other.contentHandleArray_ != null ? other.ContentHandleArray.Clone() : null; - serverTime_ = other.serverTime_; - useBindlessRpc_ = other.useBindlessRpc_; - BinaryContentHandleArray = other.binaryContentHandleArray_ != null ? other.BinaryContentHandleArray.Clone() : null; - } - - public ConnectResponse Clone() - { - return new ConnectResponse(this); - } - - /// Field number for the "server_id" field. - public const int ServerIdFieldNumber = 1; - private Bgs.Protocol.ProcessId serverId_; - public Bgs.Protocol.ProcessId ServerId - { - get { return serverId_; } - set - { - serverId_ = value; - } - } - - /// Field number for the "client_id" field. - public const int ClientIdFieldNumber = 2; - private Bgs.Protocol.ProcessId clientId_; - public Bgs.Protocol.ProcessId ClientId - { - get { return clientId_; } - set - { - clientId_ = value; - } - } - - /// Field number for the "bind_result" field. - public const int BindResultFieldNumber = 3; - private uint bindResult_; - public uint BindResult - { - get { return bindResult_; } - set - { - bindResult_ = value; - } - } - - /// Field number for the "bind_response" field. - public const int BindResponseFieldNumber = 4; - private Bgs.Protocol.Connection.V1.BindResponse bindResponse_; - public Bgs.Protocol.Connection.V1.BindResponse BindResponse - { - get { return bindResponse_; } - set - { - bindResponse_ = value; - } - } - - /// Field number for the "content_handle_array" field. - public const int ContentHandleArrayFieldNumber = 5; - private Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles contentHandleArray_; - public Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles ContentHandleArray - { - get { return contentHandleArray_; } - set - { - contentHandleArray_ = value; - } - } - - /// Field number for the "server_time" field. - public const int ServerTimeFieldNumber = 6; - private ulong serverTime_; - public ulong ServerTime - { - get { return serverTime_; } - set - { - serverTime_ = value; - } - } - - /// Field number for the "use_bindless_rpc" field. - public const int UseBindlessRpcFieldNumber = 7; - private bool useBindlessRpc_; - public bool UseBindlessRpc - { - get { return useBindlessRpc_; } - set - { - useBindlessRpc_ = value; - } - } - - /// Field number for the "binary_content_handle_array" field. - public const int BinaryContentHandleArrayFieldNumber = 8; - private Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles binaryContentHandleArray_; - public Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles BinaryContentHandleArray - { - get { return binaryContentHandleArray_; } - set - { - binaryContentHandleArray_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ConnectResponse); - } - - public bool Equals(ConnectResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(ServerId, other.ServerId)) return false; - if (!object.Equals(ClientId, other.ClientId)) return false; - if (BindResult != other.BindResult) return false; - if (!object.Equals(BindResponse, other.BindResponse)) return false; - if (!object.Equals(ContentHandleArray, other.ContentHandleArray)) return false; - if (ServerTime != other.ServerTime) return false; - if (UseBindlessRpc != other.UseBindlessRpc) return false; - if (!object.Equals(BinaryContentHandleArray, other.BinaryContentHandleArray)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (serverId_ != null) hash ^= ServerId.GetHashCode(); - if (clientId_ != null) hash ^= ClientId.GetHashCode(); - if (BindResult != 0) hash ^= BindResult.GetHashCode(); - if (bindResponse_ != null) hash ^= BindResponse.GetHashCode(); - if (contentHandleArray_ != null) hash ^= ContentHandleArray.GetHashCode(); - if (ServerTime != 0UL) hash ^= ServerTime.GetHashCode(); - if (UseBindlessRpc != false) hash ^= UseBindlessRpc.GetHashCode(); - if (binaryContentHandleArray_ != null) hash ^= BinaryContentHandleArray.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (serverId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(ServerId); - } - if (clientId_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(ClientId); - } - if (BindResult != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(BindResult); - } - if (bindResponse_ != null) - { - output.WriteRawTag(34); - output.WriteMessage(BindResponse); - } - if (contentHandleArray_ != null) - { - output.WriteRawTag(42); - output.WriteMessage(ContentHandleArray); - } - if (ServerTime != 0UL) - { - output.WriteRawTag(48); - output.WriteUInt64(ServerTime); - } - if (UseBindlessRpc != false) - { - output.WriteRawTag(56); - output.WriteBool(UseBindlessRpc); - } - if (binaryContentHandleArray_ != null) - { - output.WriteRawTag(66); - output.WriteMessage(BinaryContentHandleArray); - } - } - - public int CalculateSize() - { - int size = 0; - if (serverId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServerId); - } - if (clientId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientId); - } - if (BindResult != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BindResult); - } - if (bindResponse_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BindResponse); - } - if (contentHandleArray_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContentHandleArray); - } - if (ServerTime != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ServerTime); - } - if (UseBindlessRpc != false) - { - size += 1 + 1; - } - if (binaryContentHandleArray_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryContentHandleArray); - } - return size; - } - - public void MergeFrom(ConnectResponse other) - { - if (other == null) - { - return; - } - if (other.serverId_ != null) - { - if (serverId_ == null) - { - serverId_ = new Bgs.Protocol.ProcessId(); - } - ServerId.MergeFrom(other.ServerId); - } - if (other.clientId_ != null) - { - if (clientId_ == null) - { - clientId_ = new Bgs.Protocol.ProcessId(); - } - ClientId.MergeFrom(other.ClientId); - } - if (other.BindResult != 0) - { - BindResult = other.BindResult; - } - if (other.bindResponse_ != null) - { - if (bindResponse_ == null) - { - bindResponse_ = new Bgs.Protocol.Connection.V1.BindResponse(); - } - BindResponse.MergeFrom(other.BindResponse); - } - if (other.contentHandleArray_ != null) - { - if (contentHandleArray_ == null) - { - contentHandleArray_ = new Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles(); - } - ContentHandleArray.MergeFrom(other.ContentHandleArray); - } - if (other.ServerTime != 0UL) - { - ServerTime = other.ServerTime; - } - if (other.UseBindlessRpc != false) - { - UseBindlessRpc = other.UseBindlessRpc; - } - if (other.binaryContentHandleArray_ != null) - { - if (binaryContentHandleArray_ == null) - { - binaryContentHandleArray_ = new Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles(); - } - BinaryContentHandleArray.MergeFrom(other.BinaryContentHandleArray); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (serverId_ == null) - { - serverId_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(serverId_); - break; - } - case 18: - { - if (clientId_ == null) - { - clientId_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(clientId_); - break; - } - case 24: - { - BindResult = input.ReadUInt32(); - break; - } - case 34: - { - if (bindResponse_ == null) - { - bindResponse_ = new Bgs.Protocol.Connection.V1.BindResponse(); - } - input.ReadMessage(bindResponse_); - break; - } - case 42: - { - if (contentHandleArray_ == null) - { - contentHandleArray_ = new Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles(); - } - input.ReadMessage(contentHandleArray_); - break; - } - case 48: - { - ServerTime = input.ReadUInt64(); - break; - } - case 56: - { - UseBindlessRpc = input.ReadBool(); - break; - } - case 66: - { - if (binaryContentHandleArray_ == null) - { - binaryContentHandleArray_ = new Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles(); - } - input.ReadMessage(binaryContentHandleArray_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class BoundService : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BoundService()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[3]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public BoundService() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public BoundService(BoundService other) : this() - { - hash_ = other.hash_; - id_ = other.id_; - } - - public BoundService Clone() - { - return new BoundService(this); - } - - /// Field number for the "hash" field. - public const int HashFieldNumber = 1; - private uint hash_; - public uint Hash - { - get { return hash_; } - set - { - hash_ = value; - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private uint id_; - public uint Id - { - get { return id_; } - set - { - id_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as BoundService); - } - - public bool Equals(BoundService other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Hash != other.Hash) return false; - if (Id != other.Id) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Hash != 0) hash ^= Hash.GetHashCode(); - if (Id != 0) hash ^= Id.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Hash != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Hash); - } - if (Id != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Id); - } - } - - public int CalculateSize() - { - int size = 0; - if (Hash != 0) - { - size += 1 + 4; - } - if (Id != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - return size; - } - - public void MergeFrom(BoundService other) - { - if (other == null) - { - return; - } - if (other.Hash != 0) - { - Hash = other.Hash; - } - if (other.Id != 0) - { - Id = other.Id; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Hash = input.ReadFixed32(); - break; - } - case 16: - { - Id = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class BindRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BindRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public BindRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public BindRequest(BindRequest other) : this() - { - deprecatedImportedServiceHash_ = other.deprecatedImportedServiceHash_.Clone(); - deprecatedExportedService_ = other.deprecatedExportedService_.Clone(); - exportedService_ = other.exportedService_.Clone(); - importedService_ = other.importedService_.Clone(); - } - - public BindRequest Clone() - { - return new BindRequest(this); - } - - /// Field number for the "deprecated_imported_service_hash" field. - public const int DeprecatedImportedServiceHashFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_deprecatedImportedServiceHash_codec - = pb::FieldCodec.ForFixed32(10); - private readonly pbc::RepeatedField deprecatedImportedServiceHash_ = new pbc::RepeatedField(); - [System.ObsoleteAttribute()] - public pbc::RepeatedField DeprecatedImportedServiceHash - { - get { return deprecatedImportedServiceHash_; } - } - - /// Field number for the "deprecated_exported_service" field. - public const int DeprecatedExportedServiceFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_deprecatedExportedService_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Connection.V1.BoundService.Parser); - private readonly pbc::RepeatedField deprecatedExportedService_ = new pbc::RepeatedField(); - [System.ObsoleteAttribute()] - public pbc::RepeatedField DeprecatedExportedService - { - get { return deprecatedExportedService_; } - } - - /// Field number for the "exported_service" field. - public const int ExportedServiceFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_exportedService_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.Connection.V1.BoundService.Parser); - private readonly pbc::RepeatedField exportedService_ = new pbc::RepeatedField(); - public pbc::RepeatedField ExportedService - { - get { return exportedService_; } - } - - /// Field number for the "imported_service" field. - public const int ImportedServiceFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_importedService_codec - = pb::FieldCodec.ForMessage(34, Bgs.Protocol.Connection.V1.BoundService.Parser); - private readonly pbc::RepeatedField importedService_ = new pbc::RepeatedField(); - public pbc::RepeatedField ImportedService - { - get { return importedService_; } - } - - public override bool Equals(object other) - { - return Equals(other as BindRequest); - } - - public bool Equals(BindRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!deprecatedImportedServiceHash_.Equals(other.deprecatedImportedServiceHash_)) return false; - if (!deprecatedExportedService_.Equals(other.deprecatedExportedService_)) return false; - if (!exportedService_.Equals(other.exportedService_)) return false; - if (!importedService_.Equals(other.importedService_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= deprecatedImportedServiceHash_.GetHashCode(); - hash ^= deprecatedExportedService_.GetHashCode(); - hash ^= exportedService_.GetHashCode(); - hash ^= importedService_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - deprecatedImportedServiceHash_.WriteTo(output, _repeated_deprecatedImportedServiceHash_codec); - deprecatedExportedService_.WriteTo(output, _repeated_deprecatedExportedService_codec); - exportedService_.WriteTo(output, _repeated_exportedService_codec); - importedService_.WriteTo(output, _repeated_importedService_codec); - } - - public int CalculateSize() - { - int size = 0; - size += deprecatedImportedServiceHash_.CalculateSize(_repeated_deprecatedImportedServiceHash_codec); - size += deprecatedExportedService_.CalculateSize(_repeated_deprecatedExportedService_codec); - size += exportedService_.CalculateSize(_repeated_exportedService_codec); - size += importedService_.CalculateSize(_repeated_importedService_codec); - return size; - } - - public void MergeFrom(BindRequest other) - { - if (other == null) - { - return; - } - deprecatedImportedServiceHash_.Add(other.deprecatedImportedServiceHash_); - deprecatedExportedService_.Add(other.deprecatedExportedService_); - exportedService_.Add(other.exportedService_); - importedService_.Add(other.importedService_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - case 13: - { - deprecatedImportedServiceHash_.AddEntriesFrom(input, _repeated_deprecatedImportedServiceHash_codec); - break; - } - case 18: - { - deprecatedExportedService_.AddEntriesFrom(input, _repeated_deprecatedExportedService_codec); - break; - } - case 26: - { - exportedService_.AddEntriesFrom(input, _repeated_exportedService_codec); - break; - } - case 34: - { - importedService_.AddEntriesFrom(input, _repeated_importedService_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class BindResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BindResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public BindResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public BindResponse(BindResponse other) : this() - { - importedServiceId_ = other.importedServiceId_.Clone(); - } - - public BindResponse Clone() - { - return new BindResponse(this); - } - - /// Field number for the "imported_service_id" field. - public const int ImportedServiceIdFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_importedServiceId_codec - = pb::FieldCodec.ForUInt32(10); - private readonly pbc::RepeatedField importedServiceId_ = new pbc::RepeatedField(); - [System.ObsoleteAttribute()] - public pbc::RepeatedField ImportedServiceId - { - get { return importedServiceId_; } - } - - public override bool Equals(object other) - { - return Equals(other as BindResponse); - } - - public bool Equals(BindResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!importedServiceId_.Equals(other.importedServiceId_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= importedServiceId_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - importedServiceId_.WriteTo(output, _repeated_importedServiceId_codec); - } - - public int CalculateSize() - { - int size = 0; - size += importedServiceId_.CalculateSize(_repeated_importedServiceId_codec); - return size; - } - - public void MergeFrom(BindResponse other) - { - if (other == null) - { - return; - } - importedServiceId_.Add(other.importedServiceId_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - case 8: - { - importedServiceId_.AddEntriesFrom(input, _repeated_importedServiceId_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class EchoRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EchoRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public EchoRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public EchoRequest(EchoRequest other) : this() - { - time_ = other.time_; - networkOnly_ = other.networkOnly_; - payload_ = other.payload_; - } - - public EchoRequest Clone() - { - return new EchoRequest(this); - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 1; - private ulong time_; - public ulong Time - { - get { return time_; } - set - { - time_ = value; - } - } - - /// Field number for the "network_only" field. - public const int NetworkOnlyFieldNumber = 2; - private bool networkOnly_; - public bool NetworkOnly - { - get { return networkOnly_; } - set - { - networkOnly_ = value; - } - } - - /// Field number for the "payload" field. - public const int PayloadFieldNumber = 3; - private pb::ByteString payload_ = pb::ByteString.Empty; - public pb::ByteString Payload - { - get { return payload_; } - set - { - payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as EchoRequest); - } - - public bool Equals(EchoRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Time != other.Time) return false; - if (NetworkOnly != other.NetworkOnly) return false; - if (Payload != other.Payload) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Time != 0UL) hash ^= Time.GetHashCode(); - if (NetworkOnly != false) hash ^= NetworkOnly.GetHashCode(); - if (Payload.Length != 0) hash ^= Payload.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Time != 0UL) - { - output.WriteRawTag(9); - output.WriteFixed64(Time); - } - if (NetworkOnly != false) - { - output.WriteRawTag(16); - output.WriteBool(NetworkOnly); - } - if (Payload.Length != 0) - { - output.WriteRawTag(26); - output.WriteBytes(Payload); - } - } - - public int CalculateSize() - { - int size = 0; - if (Time != 0UL) - { - size += 1 + 8; - } - if (NetworkOnly != false) - { - size += 1 + 1; - } - if (Payload.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); - } - return size; - } - - public void MergeFrom(EchoRequest other) - { - if (other == null) - { - return; - } - if (other.Time != 0UL) - { - Time = other.Time; - } - if (other.NetworkOnly != false) - { - NetworkOnly = other.NetworkOnly; - } - if (other.Payload.Length != 0) - { - Payload = other.Payload; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 9: - { - Time = input.ReadFixed64(); - break; - } - case 16: - { - NetworkOnly = input.ReadBool(); - break; - } - case 26: - { - Payload = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class EchoResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EchoResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[7]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public EchoResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public EchoResponse(EchoResponse other) : this() - { - time_ = other.time_; - payload_ = other.payload_; - } - - public EchoResponse Clone() - { - return new EchoResponse(this); - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 1; - private ulong time_; - public ulong Time - { - get { return time_; } - set - { - time_ = value; - } - } - - /// Field number for the "payload" field. - public const int PayloadFieldNumber = 2; - private pb::ByteString payload_ = pb::ByteString.Empty; - public pb::ByteString Payload - { - get { return payload_; } - set - { - payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as EchoResponse); - } - - public bool Equals(EchoResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Time != other.Time) return false; - if (Payload != other.Payload) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Time != 0UL) hash ^= Time.GetHashCode(); - if (Payload.Length != 0) hash ^= Payload.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Time != 0UL) - { - output.WriteRawTag(9); - output.WriteFixed64(Time); - } - if (Payload.Length != 0) - { - output.WriteRawTag(18); - output.WriteBytes(Payload); - } - } - - public int CalculateSize() - { - int size = 0; - if (Time != 0UL) - { - size += 1 + 8; - } - if (Payload.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); - } - return size; - } - - public void MergeFrom(EchoResponse other) - { - if (other == null) - { - return; - } - if (other.Time != 0UL) - { - Time = other.Time; - } - if (other.Payload.Length != 0) - { - Payload = other.Payload; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 9: - { - Time = input.ReadFixed64(); - break; - } - case 18: - { - Payload = input.ReadBytes(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class DisconnectRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisconnectRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[8]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public DisconnectRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public DisconnectRequest(DisconnectRequest other) : this() - { - errorCode_ = other.errorCode_; - } - - public DisconnectRequest Clone() - { - return new DisconnectRequest(this); - } - - /// Field number for the "error_code" field. - public const int ErrorCodeFieldNumber = 1; - private uint errorCode_; - public uint ErrorCode - { - get { return errorCode_; } - set - { - errorCode_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as DisconnectRequest); - } - - public bool Equals(DisconnectRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ErrorCode != other.ErrorCode) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ErrorCode != 0) hash ^= ErrorCode.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (ErrorCode != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(ErrorCode); - } - } - - public int CalculateSize() - { - int size = 0; - if (ErrorCode != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode); - } - return size; - } - - public void MergeFrom(DisconnectRequest other) - { - if (other == null) - { - return; - } - if (other.ErrorCode != 0) - { - ErrorCode = other.ErrorCode; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - ErrorCode = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class DisconnectNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisconnectNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[9]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public DisconnectNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public DisconnectNotification(DisconnectNotification other) : this() - { - errorCode_ = other.errorCode_; - reason_ = other.reason_; - } - - public DisconnectNotification Clone() - { - return new DisconnectNotification(this); - } - - /// Field number for the "error_code" field. - public const int ErrorCodeFieldNumber = 1; - private uint errorCode_; - public uint ErrorCode - { - get { return errorCode_; } - set - { - errorCode_ = value; - } - } - - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 2; - private string reason_ = ""; - public string Reason - { - get { return reason_; } - set - { - reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as DisconnectNotification); - } - - public bool Equals(DisconnectNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ErrorCode != other.ErrorCode) return false; - if (Reason != other.Reason) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ErrorCode != 0) hash ^= ErrorCode.GetHashCode(); - if (Reason.Length != 0) hash ^= Reason.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (ErrorCode != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(ErrorCode); - } - if (Reason.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(Reason); - } - } - - public int CalculateSize() - { - int size = 0; - if (ErrorCode != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode); - } - if (Reason.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); - } - return size; - } - - public void MergeFrom(DisconnectNotification other) - { - if (other == null) - { - return; - } - if (other.ErrorCode != 0) - { - ErrorCode = other.ErrorCode; - } - if (other.Reason.Length != 0) - { - Reason = other.Reason; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - ErrorCode = input.ReadUInt32(); - break; - } - case 18: - { - Reason = input.ReadString(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class EncryptRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[10]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public EncryptRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public EncryptRequest(EncryptRequest other) : this() - { - } - - public EncryptRequest Clone() - { - return new EncryptRequest(this); - } - - public override bool Equals(object other) - { - return Equals(other as EncryptRequest); - } - - public bool Equals(EncryptRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - return true; - } - - public override int GetHashCode() - { - int hash = 1; - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - } - - public int CalculateSize() - { - int size = 0; - return size; - } - - public void MergeFrom(EncryptRequest other) - { - if (other == null) - { - return; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - } - } - } - - } - #endregion + + } + #region Messages + public sealed partial class ConnectRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectRequest(ConnectRequest other) : this() { + _hasBits0 = other._hasBits0; + clientId_ = other.HasClientId ? other.clientId_.Clone() : null; + bindRequest_ = other.HasBindRequest ? other.bindRequest_.Clone() : null; + useBindlessRpc_ = other.useBindlessRpc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectRequest Clone() { + return new ConnectRequest(this); + } + + /// Field number for the "client_id" field. + public const int ClientIdFieldNumber = 1; + private global::Bgs.Protocol.ProcessId clientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId ClientId { + get { return clientId_; } + set { + clientId_ = value; + } + } + /// Gets whether the client_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientId { + get { return clientId_ != null; } + } + /// Clears the value of the client_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientId() { + clientId_ = null; + } + + /// Field number for the "bind_request" field. + public const int BindRequestFieldNumber = 2; + private global::Bgs.Protocol.Connection.V1.BindRequest bindRequest_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Connection.V1.BindRequest BindRequest { + get { return bindRequest_; } + set { + bindRequest_ = value; + } + } + /// Gets whether the bind_request field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBindRequest { + get { return bindRequest_ != null; } + } + /// Clears the value of the bind_request field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBindRequest() { + bindRequest_ = null; + } + + /// Field number for the "use_bindless_rpc" field. + public const int UseBindlessRpcFieldNumber = 3; + private readonly static bool UseBindlessRpcDefaultValue = true; + + private bool useBindlessRpc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool UseBindlessRpc { + get { if ((_hasBits0 & 1) != 0) { return useBindlessRpc_; } else { return UseBindlessRpcDefaultValue; } } + set { + _hasBits0 |= 1; + useBindlessRpc_ = value; + } + } + /// Gets whether the "use_bindless_rpc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUseBindlessRpc { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "use_bindless_rpc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUseBindlessRpc() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ConnectRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ConnectRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ClientId, other.ClientId)) return false; + if (!object.Equals(BindRequest, other.BindRequest)) return false; + if (UseBindlessRpc != other.UseBindlessRpc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClientId) hash ^= ClientId.GetHashCode(); + if (HasBindRequest) hash ^= BindRequest.GetHashCode(); + if (HasUseBindlessRpc) hash ^= UseBindlessRpc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClientId) { + output.WriteRawTag(10); + output.WriteMessage(ClientId); + } + if (HasBindRequest) { + output.WriteRawTag(18); + output.WriteMessage(BindRequest); + } + if (HasUseBindlessRpc) { + output.WriteRawTag(24); + output.WriteBool(UseBindlessRpc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClientId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientId); + } + if (HasBindRequest) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BindRequest); + } + if (HasUseBindlessRpc) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ConnectRequest other) { + if (other == null) { + return; + } + if (other.HasClientId) { + if (!HasClientId) { + ClientId = new global::Bgs.Protocol.ProcessId(); + } + ClientId.MergeFrom(other.ClientId); + } + if (other.HasBindRequest) { + if (!HasBindRequest) { + BindRequest = new global::Bgs.Protocol.Connection.V1.BindRequest(); + } + BindRequest.MergeFrom(other.BindRequest); + } + if (other.HasUseBindlessRpc) { + UseBindlessRpc = other.UseBindlessRpc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasClientId) { + ClientId = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(ClientId); + break; + } + case 18: { + if (!HasBindRequest) { + BindRequest = new global::Bgs.Protocol.Connection.V1.BindRequest(); + } + input.ReadMessage(BindRequest); + break; + } + case 24: { + UseBindlessRpc = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class ConnectionMeteringContentHandles : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionMeteringContentHandles()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectionMeteringContentHandles() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectionMeteringContentHandles(ConnectionMeteringContentHandles other) : this() { + contentHandle_ = other.contentHandle_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectionMeteringContentHandles Clone() { + return new ConnectionMeteringContentHandles(this); + } + + /// Field number for the "content_handle" field. + public const int ContentHandleFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_contentHandle_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.ContentHandle.Parser); + private readonly pbc::RepeatedField contentHandle_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ContentHandle { + get { return contentHandle_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ConnectionMeteringContentHandles); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ConnectionMeteringContentHandles other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!contentHandle_.Equals(other.contentHandle_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= contentHandle_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + contentHandle_.WriteTo(output, _repeated_contentHandle_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += contentHandle_.CalculateSize(_repeated_contentHandle_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ConnectionMeteringContentHandles other) { + if (other == null) { + return; + } + contentHandle_.Add(other.contentHandle_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + contentHandle_.AddEntriesFrom(input, _repeated_contentHandle_codec); + break; + } + } + } + } + + } + + public sealed partial class ConnectResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectResponse(ConnectResponse other) : this() { + _hasBits0 = other._hasBits0; + serverId_ = other.HasServerId ? other.serverId_.Clone() : null; + clientId_ = other.HasClientId ? other.clientId_.Clone() : null; + bindResult_ = other.bindResult_; + bindResponse_ = other.HasBindResponse ? other.bindResponse_.Clone() : null; + contentHandleArray_ = other.HasContentHandleArray ? other.contentHandleArray_.Clone() : null; + serverTime_ = other.serverTime_; + useBindlessRpc_ = other.useBindlessRpc_; + binaryContentHandleArray_ = other.HasBinaryContentHandleArray ? other.binaryContentHandleArray_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConnectResponse Clone() { + return new ConnectResponse(this); + } + + /// Field number for the "server_id" field. + public const int ServerIdFieldNumber = 1; + private global::Bgs.Protocol.ProcessId serverId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId ServerId { + get { return serverId_; } + set { + serverId_ = value; + } + } + /// Gets whether the server_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServerId { + get { return serverId_ != null; } + } + /// Clears the value of the server_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServerId() { + serverId_ = null; + } + + /// Field number for the "client_id" field. + public const int ClientIdFieldNumber = 2; + private global::Bgs.Protocol.ProcessId clientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId ClientId { + get { return clientId_; } + set { + clientId_ = value; + } + } + /// Gets whether the client_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientId { + get { return clientId_ != null; } + } + /// Clears the value of the client_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientId() { + clientId_ = null; + } + + /// Field number for the "bind_result" field. + public const int BindResultFieldNumber = 3; + private readonly static uint BindResultDefaultValue = 0; + + private uint bindResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint BindResult { + get { if ((_hasBits0 & 1) != 0) { return bindResult_; } else { return BindResultDefaultValue; } } + set { + _hasBits0 |= 1; + bindResult_ = value; + } + } + /// Gets whether the "bind_result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBindResult { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bind_result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBindResult() { + _hasBits0 &= ~1; + } + + /// Field number for the "bind_response" field. + public const int BindResponseFieldNumber = 4; + private global::Bgs.Protocol.Connection.V1.BindResponse bindResponse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Connection.V1.BindResponse BindResponse { + get { return bindResponse_; } + set { + bindResponse_ = value; + } + } + /// Gets whether the bind_response field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBindResponse { + get { return bindResponse_ != null; } + } + /// Clears the value of the bind_response field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBindResponse() { + bindResponse_ = null; + } + + /// Field number for the "content_handle_array" field. + public const int ContentHandleArrayFieldNumber = 5; + private global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles contentHandleArray_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles ContentHandleArray { + get { return contentHandleArray_; } + set { + contentHandleArray_ = value; + } + } + /// Gets whether the content_handle_array field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContentHandleArray { + get { return contentHandleArray_ != null; } + } + /// Clears the value of the content_handle_array field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContentHandleArray() { + contentHandleArray_ = null; + } + + /// Field number for the "server_time" field. + public const int ServerTimeFieldNumber = 6; + private readonly static ulong ServerTimeDefaultValue = 0UL; + + private ulong serverTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ServerTime { + get { if ((_hasBits0 & 2) != 0) { return serverTime_; } else { return ServerTimeDefaultValue; } } + set { + _hasBits0 |= 2; + serverTime_ = value; + } + } + /// Gets whether the "server_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServerTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "server_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServerTime() { + _hasBits0 &= ~2; + } + + /// Field number for the "use_bindless_rpc" field. + public const int UseBindlessRpcFieldNumber = 7; + private readonly static bool UseBindlessRpcDefaultValue = false; + + private bool useBindlessRpc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool UseBindlessRpc { + get { if ((_hasBits0 & 4) != 0) { return useBindlessRpc_; } else { return UseBindlessRpcDefaultValue; } } + set { + _hasBits0 |= 4; + useBindlessRpc_ = value; + } + } + /// Gets whether the "use_bindless_rpc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUseBindlessRpc { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "use_bindless_rpc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUseBindlessRpc() { + _hasBits0 &= ~4; + } + + /// Field number for the "binary_content_handle_array" field. + public const int BinaryContentHandleArrayFieldNumber = 8; + private global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles binaryContentHandleArray_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles BinaryContentHandleArray { + get { return binaryContentHandleArray_; } + set { + binaryContentHandleArray_ = value; + } + } + /// Gets whether the binary_content_handle_array field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBinaryContentHandleArray { + get { return binaryContentHandleArray_ != null; } + } + /// Clears the value of the binary_content_handle_array field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBinaryContentHandleArray() { + binaryContentHandleArray_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ConnectResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ConnectResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ServerId, other.ServerId)) return false; + if (!object.Equals(ClientId, other.ClientId)) return false; + if (BindResult != other.BindResult) return false; + if (!object.Equals(BindResponse, other.BindResponse)) return false; + if (!object.Equals(ContentHandleArray, other.ContentHandleArray)) return false; + if (ServerTime != other.ServerTime) return false; + if (UseBindlessRpc != other.UseBindlessRpc) return false; + if (!object.Equals(BinaryContentHandleArray, other.BinaryContentHandleArray)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasServerId) hash ^= ServerId.GetHashCode(); + if (HasClientId) hash ^= ClientId.GetHashCode(); + if (HasBindResult) hash ^= BindResult.GetHashCode(); + if (HasBindResponse) hash ^= BindResponse.GetHashCode(); + if (HasContentHandleArray) hash ^= ContentHandleArray.GetHashCode(); + if (HasServerTime) hash ^= ServerTime.GetHashCode(); + if (HasUseBindlessRpc) hash ^= UseBindlessRpc.GetHashCode(); + if (HasBinaryContentHandleArray) hash ^= BinaryContentHandleArray.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasServerId) { + output.WriteRawTag(10); + output.WriteMessage(ServerId); + } + if (HasClientId) { + output.WriteRawTag(18); + output.WriteMessage(ClientId); + } + if (HasBindResult) { + output.WriteRawTag(24); + output.WriteUInt32(BindResult); + } + if (HasBindResponse) { + output.WriteRawTag(34); + output.WriteMessage(BindResponse); + } + if (HasContentHandleArray) { + output.WriteRawTag(42); + output.WriteMessage(ContentHandleArray); + } + if (HasServerTime) { + output.WriteRawTag(48); + output.WriteUInt64(ServerTime); + } + if (HasUseBindlessRpc) { + output.WriteRawTag(56); + output.WriteBool(UseBindlessRpc); + } + if (HasBinaryContentHandleArray) { + output.WriteRawTag(66); + output.WriteMessage(BinaryContentHandleArray); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasServerId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServerId); + } + if (HasClientId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientId); + } + if (HasBindResult) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BindResult); + } + if (HasBindResponse) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BindResponse); + } + if (HasContentHandleArray) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContentHandleArray); + } + if (HasServerTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ServerTime); + } + if (HasUseBindlessRpc) { + size += 1 + 1; + } + if (HasBinaryContentHandleArray) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryContentHandleArray); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ConnectResponse other) { + if (other == null) { + return; + } + if (other.HasServerId) { + if (!HasServerId) { + ServerId = new global::Bgs.Protocol.ProcessId(); + } + ServerId.MergeFrom(other.ServerId); + } + if (other.HasClientId) { + if (!HasClientId) { + ClientId = new global::Bgs.Protocol.ProcessId(); + } + ClientId.MergeFrom(other.ClientId); + } + if (other.HasBindResult) { + BindResult = other.BindResult; + } + if (other.HasBindResponse) { + if (!HasBindResponse) { + BindResponse = new global::Bgs.Protocol.Connection.V1.BindResponse(); + } + BindResponse.MergeFrom(other.BindResponse); + } + if (other.HasContentHandleArray) { + if (!HasContentHandleArray) { + ContentHandleArray = new global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles(); + } + ContentHandleArray.MergeFrom(other.ContentHandleArray); + } + if (other.HasServerTime) { + ServerTime = other.ServerTime; + } + if (other.HasUseBindlessRpc) { + UseBindlessRpc = other.UseBindlessRpc; + } + if (other.HasBinaryContentHandleArray) { + if (!HasBinaryContentHandleArray) { + BinaryContentHandleArray = new global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles(); + } + BinaryContentHandleArray.MergeFrom(other.BinaryContentHandleArray); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasServerId) { + ServerId = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(ServerId); + break; + } + case 18: { + if (!HasClientId) { + ClientId = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(ClientId); + break; + } + case 24: { + BindResult = input.ReadUInt32(); + break; + } + case 34: { + if (!HasBindResponse) { + BindResponse = new global::Bgs.Protocol.Connection.V1.BindResponse(); + } + input.ReadMessage(BindResponse); + break; + } + case 42: { + if (!HasContentHandleArray) { + ContentHandleArray = new global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles(); + } + input.ReadMessage(ContentHandleArray); + break; + } + case 48: { + ServerTime = input.ReadUInt64(); + break; + } + case 56: { + UseBindlessRpc = input.ReadBool(); + break; + } + case 66: { + if (!HasBinaryContentHandleArray) { + BinaryContentHandleArray = new global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles(); + } + input.ReadMessage(BinaryContentHandleArray); + break; + } + } + } + } + + } + + public sealed partial class BoundService : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BoundService()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BoundService() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BoundService(BoundService other) : this() { + _hasBits0 = other._hasBits0; + hash_ = other.hash_; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BoundService Clone() { + return new BoundService(this); + } + + /// Field number for the "hash" field. + public const int HashFieldNumber = 1; + private readonly static uint HashDefaultValue = 0; + + private uint hash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Hash { + get { if ((_hasBits0 & 1) != 0) { return hash_; } else { return HashDefaultValue; } } + set { + _hasBits0 |= 1; + hash_ = value; + } + } + /// Gets whether the "hash" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHash { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "hash" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHash() { + _hasBits0 &= ~1; + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 2; + private readonly static uint IdDefaultValue = 0; + + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 2; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BoundService); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BoundService other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Hash != other.Hash) return false; + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasHash) hash ^= Hash.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasHash) { + output.WriteRawTag(13); + output.WriteFixed32(Hash); + } + if (HasId) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasHash) { + size += 1 + 4; + } + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BoundService other) { + if (other == null) { + return; + } + if (other.HasHash) { + Hash = other.Hash; + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Hash = input.ReadFixed32(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class BindRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BindRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BindRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BindRequest(BindRequest other) : this() { + deprecatedImportedServiceHash_ = other.deprecatedImportedServiceHash_.Clone(); + deprecatedExportedService_ = other.deprecatedExportedService_.Clone(); + exportedService_ = other.exportedService_.Clone(); + importedService_ = other.importedService_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BindRequest Clone() { + return new BindRequest(this); + } + + /// Field number for the "deprecated_imported_service_hash" field. + public const int DeprecatedImportedServiceHashFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_deprecatedImportedServiceHash_codec + = pb::FieldCodec.ForFixed32(10); + private readonly pbc::RepeatedField deprecatedImportedServiceHash_ = new pbc::RepeatedField(); + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField DeprecatedImportedServiceHash { + get { return deprecatedImportedServiceHash_; } + } + + /// Field number for the "deprecated_exported_service" field. + public const int DeprecatedExportedServiceFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_deprecatedExportedService_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Connection.V1.BoundService.Parser); + private readonly pbc::RepeatedField deprecatedExportedService_ = new pbc::RepeatedField(); + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField DeprecatedExportedService { + get { return deprecatedExportedService_; } + } + + /// Field number for the "exported_service" field. + public const int ExportedServiceFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_exportedService_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Connection.V1.BoundService.Parser); + private readonly pbc::RepeatedField exportedService_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ExportedService { + get { return exportedService_; } + } + + /// Field number for the "imported_service" field. + public const int ImportedServiceFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_importedService_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Connection.V1.BoundService.Parser); + private readonly pbc::RepeatedField importedService_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ImportedService { + get { return importedService_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BindRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BindRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!deprecatedImportedServiceHash_.Equals(other.deprecatedImportedServiceHash_)) return false; + if(!deprecatedExportedService_.Equals(other.deprecatedExportedService_)) return false; + if(!exportedService_.Equals(other.exportedService_)) return false; + if(!importedService_.Equals(other.importedService_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= deprecatedImportedServiceHash_.GetHashCode(); + hash ^= deprecatedExportedService_.GetHashCode(); + hash ^= exportedService_.GetHashCode(); + hash ^= importedService_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + deprecatedImportedServiceHash_.WriteTo(output, _repeated_deprecatedImportedServiceHash_codec); + deprecatedExportedService_.WriteTo(output, _repeated_deprecatedExportedService_codec); + exportedService_.WriteTo(output, _repeated_exportedService_codec); + importedService_.WriteTo(output, _repeated_importedService_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += deprecatedImportedServiceHash_.CalculateSize(_repeated_deprecatedImportedServiceHash_codec); + size += deprecatedExportedService_.CalculateSize(_repeated_deprecatedExportedService_codec); + size += exportedService_.CalculateSize(_repeated_exportedService_codec); + size += importedService_.CalculateSize(_repeated_importedService_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BindRequest other) { + if (other == null) { + return; + } + deprecatedImportedServiceHash_.Add(other.deprecatedImportedServiceHash_); + deprecatedExportedService_.Add(other.deprecatedExportedService_); + exportedService_.Add(other.exportedService_); + importedService_.Add(other.importedService_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 13: { + deprecatedImportedServiceHash_.AddEntriesFrom(input, _repeated_deprecatedImportedServiceHash_codec); + break; + } + case 18: { + deprecatedExportedService_.AddEntriesFrom(input, _repeated_deprecatedExportedService_codec); + break; + } + case 26: { + exportedService_.AddEntriesFrom(input, _repeated_exportedService_codec); + break; + } + case 34: { + importedService_.AddEntriesFrom(input, _repeated_importedService_codec); + break; + } + } + } + } + + } + + public sealed partial class BindResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BindResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BindResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BindResponse(BindResponse other) : this() { + importedServiceId_ = other.importedServiceId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BindResponse Clone() { + return new BindResponse(this); + } + + /// Field number for the "imported_service_id" field. + public const int ImportedServiceIdFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_importedServiceId_codec + = pb::FieldCodec.ForUInt32(10); + private readonly pbc::RepeatedField importedServiceId_ = new pbc::RepeatedField(); + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ImportedServiceId { + get { return importedServiceId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BindResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BindResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!importedServiceId_.Equals(other.importedServiceId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= importedServiceId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + importedServiceId_.WriteTo(output, _repeated_importedServiceId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += importedServiceId_.CalculateSize(_repeated_importedServiceId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BindResponse other) { + if (other == null) { + return; + } + importedServiceId_.Add(other.importedServiceId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + importedServiceId_.AddEntriesFrom(input, _repeated_importedServiceId_codec); + break; + } + } + } + } + + } + + public sealed partial class EchoRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EchoRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EchoRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EchoRequest(EchoRequest other) : this() { + _hasBits0 = other._hasBits0; + time_ = other.time_; + networkOnly_ = other.networkOnly_; + payload_ = other.payload_; + forward_ = other.HasForward ? other.forward_.Clone() : null; + forwardClientId_ = other.forwardClientId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EchoRequest Clone() { + return new EchoRequest(this); + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 1; + private readonly static ulong TimeDefaultValue = 0UL; + + private ulong time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Time { + get { if ((_hasBits0 & 1) != 0) { return time_; } else { return TimeDefaultValue; } } + set { + _hasBits0 |= 1; + time_ = value; + } + } + /// Gets whether the "time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "network_only" field. + public const int NetworkOnlyFieldNumber = 2; + private readonly static bool NetworkOnlyDefaultValue = false; + + private bool networkOnly_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool NetworkOnly { + get { if ((_hasBits0 & 2) != 0) { return networkOnly_; } else { return NetworkOnlyDefaultValue; } } + set { + _hasBits0 |= 2; + networkOnly_ = value; + } + } + /// Gets whether the "network_only" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNetworkOnly { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "network_only" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNetworkOnly() { + _hasBits0 &= ~2; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 3; + private readonly static pb::ByteString PayloadDefaultValue = pb::ByteString.Empty; + + private pb::ByteString payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Payload { + get { return payload_ ?? PayloadDefaultValue; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "payload" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPayload { + get { return payload_ != null; } + } + /// Clears the value of the "payload" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPayload() { + payload_ = null; + } + + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 4; + private global::Bgs.Protocol.ProcessId forward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Forward { + get { return forward_; } + set { + forward_ = value; + } + } + /// Gets whether the forward field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForward { + get { return forward_ != null; } + } + /// Clears the value of the forward field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForward() { + forward_ = null; + } + + /// Field number for the "forward_client_id" field. + public const int ForwardClientIdFieldNumber = 5; + private readonly static string ForwardClientIdDefaultValue = ""; + + private string forwardClientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ForwardClientId { + get { return forwardClientId_ ?? ForwardClientIdDefaultValue; } + set { + forwardClientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "forward_client_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForwardClientId { + get { return forwardClientId_ != null; } + } + /// Clears the value of the "forward_client_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForwardClientId() { + forwardClientId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EchoRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EchoRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Time != other.Time) return false; + if (NetworkOnly != other.NetworkOnly) return false; + if (Payload != other.Payload) return false; + if (!object.Equals(Forward, other.Forward)) return false; + if (ForwardClientId != other.ForwardClientId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTime) hash ^= Time.GetHashCode(); + if (HasNetworkOnly) hash ^= NetworkOnly.GetHashCode(); + if (HasPayload) hash ^= Payload.GetHashCode(); + if (HasForward) hash ^= Forward.GetHashCode(); + if (HasForwardClientId) hash ^= ForwardClientId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTime) { + output.WriteRawTag(9); + output.WriteFixed64(Time); + } + if (HasNetworkOnly) { + output.WriteRawTag(16); + output.WriteBool(NetworkOnly); + } + if (HasPayload) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (HasForward) { + output.WriteRawTag(34); + output.WriteMessage(Forward); + } + if (HasForwardClientId) { + output.WriteRawTag(42); + output.WriteString(ForwardClientId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTime) { + size += 1 + 8; + } + if (HasNetworkOnly) { + size += 1 + 1; + } + if (HasPayload) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); + } + if (HasForward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (HasForwardClientId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ForwardClientId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EchoRequest other) { + if (other == null) { + return; + } + if (other.HasTime) { + Time = other.Time; + } + if (other.HasNetworkOnly) { + NetworkOnly = other.NetworkOnly; + } + if (other.HasPayload) { + Payload = other.Payload; + } + if (other.HasForward) { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ProcessId(); + } + Forward.MergeFrom(other.Forward); + } + if (other.HasForwardClientId) { + ForwardClientId = other.ForwardClientId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + Time = input.ReadFixed64(); + break; + } + case 16: { + NetworkOnly = input.ReadBool(); + break; + } + case 26: { + Payload = input.ReadBytes(); + break; + } + case 34: { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Forward); + break; + } + case 42: { + ForwardClientId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class EchoResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EchoResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EchoResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EchoResponse(EchoResponse other) : this() { + _hasBits0 = other._hasBits0; + time_ = other.time_; + payload_ = other.payload_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EchoResponse Clone() { + return new EchoResponse(this); + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 1; + private readonly static ulong TimeDefaultValue = 0UL; + + private ulong time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Time { + get { if ((_hasBits0 & 1) != 0) { return time_; } else { return TimeDefaultValue; } } + set { + _hasBits0 |= 1; + time_ = value; + } + } + /// Gets whether the "time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 2; + private readonly static pb::ByteString PayloadDefaultValue = pb::ByteString.Empty; + + private pb::ByteString payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Payload { + get { return payload_ ?? PayloadDefaultValue; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "payload" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPayload { + get { return payload_ != null; } + } + /// Clears the value of the "payload" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPayload() { + payload_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EchoResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EchoResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Time != other.Time) return false; + if (Payload != other.Payload) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTime) hash ^= Time.GetHashCode(); + if (HasPayload) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTime) { + output.WriteRawTag(9); + output.WriteFixed64(Time); + } + if (HasPayload) { + output.WriteRawTag(18); + output.WriteBytes(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTime) { + size += 1 + 8; + } + if (HasPayload) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EchoResponse other) { + if (other == null) { + return; + } + if (other.HasTime) { + Time = other.Time; + } + if (other.HasPayload) { + Payload = other.Payload; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + Time = input.ReadFixed64(); + break; + } + case 18: { + Payload = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class DisconnectRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisconnectRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DisconnectRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DisconnectRequest(DisconnectRequest other) : this() { + _hasBits0 = other._hasBits0; + errorCode_ = other.errorCode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DisconnectRequest Clone() { + return new DisconnectRequest(this); + } + + /// Field number for the "error_code" field. + public const int ErrorCodeFieldNumber = 1; + private readonly static uint ErrorCodeDefaultValue = 0; + + private uint errorCode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ErrorCode { + get { if ((_hasBits0 & 1) != 0) { return errorCode_; } else { return ErrorCodeDefaultValue; } } + set { + _hasBits0 |= 1; + errorCode_ = value; + } + } + /// Gets whether the "error_code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasErrorCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "error_code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearErrorCode() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DisconnectRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DisconnectRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ErrorCode != other.ErrorCode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasErrorCode) hash ^= ErrorCode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasErrorCode) { + output.WriteRawTag(8); + output.WriteUInt32(ErrorCode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasErrorCode) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DisconnectRequest other) { + if (other == null) { + return; + } + if (other.HasErrorCode) { + ErrorCode = other.ErrorCode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ErrorCode = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class DisconnectNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisconnectNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DisconnectNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DisconnectNotification(DisconnectNotification other) : this() { + _hasBits0 = other._hasBits0; + errorCode_ = other.errorCode_; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DisconnectNotification Clone() { + return new DisconnectNotification(this); + } + + /// Field number for the "error_code" field. + public const int ErrorCodeFieldNumber = 1; + private readonly static uint ErrorCodeDefaultValue = 0; + + private uint errorCode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ErrorCode { + get { if ((_hasBits0 & 1) != 0) { return errorCode_; } else { return ErrorCodeDefaultValue; } } + set { + _hasBits0 |= 1; + errorCode_ = value; + } + } + /// Gets whether the "error_code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasErrorCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "error_code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearErrorCode() { + _hasBits0 &= ~1; + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 2; + private readonly static string ReasonDefaultValue = ""; + + private string reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Reason { + get { return reason_ ?? ReasonDefaultValue; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return reason_ != null; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + reason_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DisconnectNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DisconnectNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ErrorCode != other.ErrorCode) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasErrorCode) hash ^= ErrorCode.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasErrorCode) { + output.WriteRawTag(8); + output.WriteUInt32(ErrorCode); + } + if (HasReason) { + output.WriteRawTag(18); + output.WriteString(Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasErrorCode) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode); + } + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DisconnectNotification other) { + if (other == null) { + return; + } + if (other.HasErrorCode) { + ErrorCode = other.ErrorCode; + } + if (other.HasReason) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ErrorCode = input.ReadUInt32(); + break; + } + case 18: { + Reason = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class EncryptRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EncryptRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EncryptRequest(EncryptRequest other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EncryptRequest Clone() { + return new EncryptRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EncryptRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EncryptRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EncryptRequest other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/ContentHandleTypes.cs b/Source/Framework/Proto/ContentHandleTypes.cs index edae52e1e..9d6bb7400 100644 --- a/Source/Framework/Proto/ContentHandleTypes.cs +++ b/Source/Framework/Proto/ContentHandleTypes.cs @@ -1,15 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/content_handle_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/content_handle_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/content_handle_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/content_handle_types.proto public static partial class ContentHandleTypesReflection { #region Descriptor @@ -20,97 +22,161 @@ namespace Bgs.Protocol private static pbr::FileDescriptor descriptor; static ContentHandleTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CixiZ3MvbG93L3BiL2NsaWVudC9jb250ZW50X2hhbmRsZV90eXBlcy5wcm90", "bxIMYmdzLnByb3RvY29sIk8KDUNvbnRlbnRIYW5kbGUSDgoGcmVnaW9uGAEg", - "ASgHEg0KBXVzYWdlGAIgASgHEgwKBGhhc2gYAyABKAwSEQoJcHJvdG9fdXJs", - "GAQgASgJQiUKDWJuZXQucHJvdG9jb2xCEkNvbnRlbnRIYW5kbGVQcm90b0gC", - "YgZwcm90bzM=")); + "AigHEg0KBXVzYWdlGAIgAigHEgwKBGhhc2gYAyACKAwSEQoJcHJvdG9fdXJs", + "GAQgASgJQiMKDWJuZXQucHJvdG9jb2xCEkNvbnRlbnRIYW5kbGVQcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.ContentHandle), Bgs.Protocol.ContentHandle.Parser, new[]{ "Region", "Usage", "Hash", "ProtoUrl" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.ContentHandle), global::Bgs.Protocol.ContentHandle.Parser, new[]{ "Region", "Usage", "Hash", "ProtoUrl" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ContentHandle : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContentHandle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.ContentHandleTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.ContentHandleTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ContentHandle() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ContentHandle(ContentHandle other) : this() { + _hasBits0 = other._hasBits0; region_ = other.region_; usage_ = other.usage_; hash_ = other.hash_; protoUrl_ = other.protoUrl_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ContentHandle Clone() { return new ContentHandle(this); } /// Field number for the "region" field. public const int RegionFieldNumber = 1; + private readonly static uint RegionDefaultValue = 0; + private uint region_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Region { - get { return region_; } + get { if ((_hasBits0 & 1) != 0) { return region_; } else { return RegionDefaultValue; } } set { + _hasBits0 |= 1; region_ = value; } } + /// Gets whether the "region" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegion { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "region" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegion() { + _hasBits0 &= ~1; + } /// Field number for the "usage" field. public const int UsageFieldNumber = 2; + private readonly static uint UsageDefaultValue = 0; + private uint usage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Usage { - get { return usage_; } + get { if ((_hasBits0 & 2) != 0) { return usage_; } else { return UsageDefaultValue; } } set { + _hasBits0 |= 2; usage_ = value; } } + /// Gets whether the "usage" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUsage { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "usage" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUsage() { + _hasBits0 &= ~2; + } /// Field number for the "hash" field. public const int HashFieldNumber = 3; - private pb::ByteString hash_ = pb::ByteString.Empty; + private readonly static pb::ByteString HashDefaultValue = pb::ByteString.Empty; + + private pb::ByteString hash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString Hash { - get { return hash_; } + get { return hash_ ?? HashDefaultValue; } set { hash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "hash" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHash { + get { return hash_ != null; } + } + /// Clears the value of the "hash" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHash() { + hash_ = null; + } /// Field number for the "proto_url" field. public const int ProtoUrlFieldNumber = 4; - private string protoUrl_ = ""; + private readonly static string ProtoUrlDefaultValue = ""; + + private string protoUrl_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ProtoUrl { - get { return protoUrl_; } + get { return protoUrl_ ?? ProtoUrlDefaultValue; } set { protoUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "proto_url" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProtoUrl { + get { return protoUrl_ != null; } + } + /// Clears the value of the "proto_url" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProtoUrl() { + protoUrl_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ContentHandle); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ContentHandle other) { if (ReferenceEquals(other, null)) { return false; @@ -122,82 +188,98 @@ namespace Bgs.Protocol if (Usage != other.Usage) return false; if (Hash != other.Hash) return false; if (ProtoUrl != other.ProtoUrl) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (Region != 0) hash ^= Region.GetHashCode(); - if (Usage != 0) hash ^= Usage.GetHashCode(); - if (Hash.Length != 0) hash ^= Hash.GetHashCode(); - if (ProtoUrl.Length != 0) hash ^= ProtoUrl.GetHashCode(); + if (HasRegion) hash ^= Region.GetHashCode(); + if (HasUsage) hash ^= Usage.GetHashCode(); + if (HasHash) hash ^= Hash.GetHashCode(); + if (HasProtoUrl) hash ^= ProtoUrl.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (Region != 0) { + if (HasRegion) { output.WriteRawTag(13); output.WriteFixed32(Region); } - if (Usage != 0) { + if (HasUsage) { output.WriteRawTag(21); output.WriteFixed32(Usage); } - if (Hash.Length != 0) { + if (HasHash) { output.WriteRawTag(26); output.WriteBytes(Hash); } - if (ProtoUrl.Length != 0) { + if (HasProtoUrl) { output.WriteRawTag(34); output.WriteString(ProtoUrl); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (Region != 0) { + if (HasRegion) { size += 1 + 4; } - if (Usage != 0) { + if (HasUsage) { size += 1 + 4; } - if (Hash.Length != 0) { + if (HasHash) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Hash); } - if (ProtoUrl.Length != 0) { + if (HasProtoUrl) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ProtoUrl); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ContentHandle other) { if (other == null) { return; } - if (other.Region != 0) { + if (other.HasRegion) { Region = other.Region; } - if (other.Usage != 0) { + if (other.HasUsage) { Usage = other.Usage; } - if (other.Hash.Length != 0) { + if (other.HasHash) { Hash = other.Hash; } - if (other.ProtoUrl.Length != 0) { + if (other.HasProtoUrl) { ProtoUrl = other.ProtoUrl; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Region = input.ReadFixed32(); diff --git a/Source/Framework/Proto/EmbedTypes.cs b/Source/Framework/Proto/EmbedTypes.cs new file mode 100644 index 000000000..5c0f823a5 --- /dev/null +++ b/Source/Framework/Proto/EmbedTypes.cs @@ -0,0 +1,1225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/embed_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { + + /// Holder for reflection information generated from bgs/low/pb/client/embed_types.proto + public static partial class EmbedTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/embed_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EmbedTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNiZ3MvbG93L3BiL2NsaWVudC9lbWJlZF90eXBlcy5wcm90bxIMYmdzLnBy", + "b3RvY29sIjgKCkVtYmVkSW1hZ2USCwoDdXJsGAEgASgJEg0KBXdpZHRoGAIg", + "ASgNEg4KBmhlaWdodBgDIAEoDSIYCghQcm92aWRlchIMCgRuYW1lGAEgASgJ", + "IhYKB0Zhdmljb24SCwoDdXJsGAEgASgJIjsKCUVtYmVkSFRNTBIPCgdjb250", + "ZW50GAEgASgJEg0KBXdpZHRoGAIgASgNEg4KBmhlaWdodBgDIAEoDSL5AQoJ", + "RW1iZWRJbmZvEg0KBXRpdGxlGAEgASgJEgwKBHR5cGUYAiABKAkSFAoMb3Jp", + "Z2luYWxfdXJsGAMgASgJEisKCXRodW1ibmFpbBgEIAEoCzIYLmJncy5wcm90", + "b2NvbC5FbWJlZEltYWdlEigKCHByb3ZpZGVyGAUgASgLMhYuYmdzLnByb3Rv", + "Y29sLlByb3ZpZGVyEhMKC2Rlc2NyaXB0aW9uGAYgASgJEiYKB2Zhdmljb24Y", + "ByABKAsyFS5iZ3MucHJvdG9jb2wuRmF2aWNvbhIlCgRodG1sGAggASgLMhcu", + "YmdzLnByb3RvY29sLkVtYmVkSFRNTA==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.EmbedImage), global::Bgs.Protocol.EmbedImage.Parser, new[]{ "Url", "Width", "Height" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Provider), global::Bgs.Protocol.Provider.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Favicon), global::Bgs.Protocol.Favicon.Parser, new[]{ "Url" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.EmbedHTML), global::Bgs.Protocol.EmbedHTML.Parser, new[]{ "Content", "Width", "Height" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.EmbedInfo), global::Bgs.Protocol.EmbedInfo.Parser, new[]{ "Title", "Type", "OriginalUrl", "Thumbnail", "Provider", "Description", "Favicon", "Html" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class EmbedImage : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmbedImage()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.EmbedTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedImage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedImage(EmbedImage other) : this() { + _hasBits0 = other._hasBits0; + url_ = other.url_; + width_ = other.width_; + height_ = other.height_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedImage Clone() { + return new EmbedImage(this); + } + + /// Field number for the "url" field. + public const int UrlFieldNumber = 1; + private readonly static string UrlDefaultValue = ""; + + private string url_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Url { + get { return url_ ?? UrlDefaultValue; } + set { + url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "url" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUrl { + get { return url_ != null; } + } + /// Clears the value of the "url" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUrl() { + url_ = null; + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 2; + private readonly static uint WidthDefaultValue = 0; + + private uint width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Width { + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } + set { + _hasBits0 |= 1; + width_ = value; + } + } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWidth() { + _hasBits0 &= ~1; + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 3; + private readonly static uint HeightDefaultValue = 0; + + private uint height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Height { + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } + set { + _hasBits0 |= 2; + height_ = value; + } + } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHeight() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EmbedImage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EmbedImage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Url != other.Url) return false; + if (Width != other.Width) return false; + if (Height != other.Height) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasUrl) hash ^= Url.GetHashCode(); + if (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasUrl) { + output.WriteRawTag(10); + output.WriteString(Url); + } + if (HasWidth) { + output.WriteRawTag(16); + output.WriteUInt32(Width); + } + if (HasHeight) { + output.WriteRawTag(24); + output.WriteUInt32(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasUrl) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); + } + if (HasWidth) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); + } + if (HasHeight) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EmbedImage other) { + if (other == null) { + return; + } + if (other.HasUrl) { + Url = other.Url; + } + if (other.HasWidth) { + Width = other.Width; + } + if (other.HasHeight) { + Height = other.Height; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Url = input.ReadString(); + break; + } + case 16: { + Width = input.ReadUInt32(); + break; + } + case 24: { + Height = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class Provider : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Provider()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.EmbedTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Provider() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Provider(Provider other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Provider Clone() { + return new Provider(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Provider); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Provider other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Provider other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class Favicon : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Favicon()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.EmbedTypesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Favicon() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Favicon(Favicon other) : this() { + url_ = other.url_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Favicon Clone() { + return new Favicon(this); + } + + /// Field number for the "url" field. + public const int UrlFieldNumber = 1; + private readonly static string UrlDefaultValue = ""; + + private string url_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Url { + get { return url_ ?? UrlDefaultValue; } + set { + url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "url" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUrl { + get { return url_ != null; } + } + /// Clears the value of the "url" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUrl() { + url_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Favicon); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Favicon other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Url != other.Url) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasUrl) hash ^= Url.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasUrl) { + output.WriteRawTag(10); + output.WriteString(Url); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasUrl) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Favicon other) { + if (other == null) { + return; + } + if (other.HasUrl) { + Url = other.Url; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Url = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class EmbedHTML : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmbedHTML()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.EmbedTypesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedHTML() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedHTML(EmbedHTML other) : this() { + _hasBits0 = other._hasBits0; + content_ = other.content_; + width_ = other.width_; + height_ = other.height_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedHTML Clone() { + return new EmbedHTML(this); + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 1; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 2; + private readonly static uint WidthDefaultValue = 0; + + private uint width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Width { + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } + set { + _hasBits0 |= 1; + width_ = value; + } + } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWidth() { + _hasBits0 &= ~1; + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 3; + private readonly static uint HeightDefaultValue = 0; + + private uint height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Height { + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } + set { + _hasBits0 |= 2; + height_ = value; + } + } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHeight() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EmbedHTML); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EmbedHTML other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Content != other.Content) return false; + if (Width != other.Width) return false; + if (Height != other.Height) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasContent) hash ^= Content.GetHashCode(); + if (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasContent) { + output.WriteRawTag(10); + output.WriteString(Content); + } + if (HasWidth) { + output.WriteRawTag(16); + output.WriteUInt32(Width); + } + if (HasHeight) { + output.WriteRawTag(24); + output.WriteUInt32(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (HasWidth) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); + } + if (HasHeight) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EmbedHTML other) { + if (other == null) { + return; + } + if (other.HasContent) { + Content = other.Content; + } + if (other.HasWidth) { + Width = other.Width; + } + if (other.HasHeight) { + Height = other.Height; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Content = input.ReadString(); + break; + } + case 16: { + Width = input.ReadUInt32(); + break; + } + case 24: { + Height = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class EmbedInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmbedInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.EmbedTypesReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedInfo(EmbedInfo other) : this() { + title_ = other.title_; + type_ = other.type_; + originalUrl_ = other.originalUrl_; + thumbnail_ = other.HasThumbnail ? other.thumbnail_.Clone() : null; + provider_ = other.HasProvider ? other.provider_.Clone() : null; + description_ = other.description_; + favicon_ = other.HasFavicon ? other.favicon_.Clone() : null; + html_ = other.HasHtml ? other.html_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EmbedInfo Clone() { + return new EmbedInfo(this); + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 1; + private readonly static string TitleDefaultValue = ""; + + private string title_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Title { + get { return title_ ?? TitleDefaultValue; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "title" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTitle { + get { return title_ != null; } + } + /// Clears the value of the "title" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTitle() { + title_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Type { + get { return type_ ?? TypeDefaultValue; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + + /// Field number for the "original_url" field. + public const int OriginalUrlFieldNumber = 3; + private readonly static string OriginalUrlDefaultValue = ""; + + private string originalUrl_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string OriginalUrl { + get { return originalUrl_ ?? OriginalUrlDefaultValue; } + set { + originalUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "original_url" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOriginalUrl { + get { return originalUrl_ != null; } + } + /// Clears the value of the "original_url" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOriginalUrl() { + originalUrl_ = null; + } + + /// Field number for the "thumbnail" field. + public const int ThumbnailFieldNumber = 4; + private global::Bgs.Protocol.EmbedImage thumbnail_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EmbedImage Thumbnail { + get { return thumbnail_; } + set { + thumbnail_ = value; + } + } + /// Gets whether the thumbnail field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasThumbnail { + get { return thumbnail_ != null; } + } + /// Clears the value of the thumbnail field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearThumbnail() { + thumbnail_ = null; + } + + /// Field number for the "provider" field. + public const int ProviderFieldNumber = 5; + private global::Bgs.Protocol.Provider provider_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Provider Provider { + get { return provider_; } + set { + provider_ = value; + } + } + /// Gets whether the provider field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProvider { + get { return provider_ != null; } + } + /// Clears the value of the provider field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProvider() { + provider_ = null; + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 6; + private readonly static string DescriptionDefaultValue = ""; + + private string description_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Description { + get { return description_ ?? DescriptionDefaultValue; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the "description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescription() { + description_ = null; + } + + /// Field number for the "favicon" field. + public const int FaviconFieldNumber = 7; + private global::Bgs.Protocol.Favicon favicon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Favicon Favicon { + get { return favicon_; } + set { + favicon_ = value; + } + } + /// Gets whether the favicon field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFavicon { + get { return favicon_ != null; } + } + /// Clears the value of the favicon field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFavicon() { + favicon_ = null; + } + + /// Field number for the "html" field. + public const int HtmlFieldNumber = 8; + private global::Bgs.Protocol.EmbedHTML html_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EmbedHTML Html { + get { return html_; } + set { + html_ = value; + } + } + /// Gets whether the html field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHtml { + get { return html_ != null; } + } + /// Clears the value of the html field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHtml() { + html_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EmbedInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EmbedInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Title != other.Title) return false; + if (Type != other.Type) return false; + if (OriginalUrl != other.OriginalUrl) return false; + if (!object.Equals(Thumbnail, other.Thumbnail)) return false; + if (!object.Equals(Provider, other.Provider)) return false; + if (Description != other.Description) return false; + if (!object.Equals(Favicon, other.Favicon)) return false; + if (!object.Equals(Html, other.Html)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTitle) hash ^= Title.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasOriginalUrl) hash ^= OriginalUrl.GetHashCode(); + if (HasThumbnail) hash ^= Thumbnail.GetHashCode(); + if (HasProvider) hash ^= Provider.GetHashCode(); + if (HasDescription) hash ^= Description.GetHashCode(); + if (HasFavicon) hash ^= Favicon.GetHashCode(); + if (HasHtml) hash ^= Html.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTitle) { + output.WriteRawTag(10); + output.WriteString(Title); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasOriginalUrl) { + output.WriteRawTag(26); + output.WriteString(OriginalUrl); + } + if (HasThumbnail) { + output.WriteRawTag(34); + output.WriteMessage(Thumbnail); + } + if (HasProvider) { + output.WriteRawTag(42); + output.WriteMessage(Provider); + } + if (HasDescription) { + output.WriteRawTag(50); + output.WriteString(Description); + } + if (HasFavicon) { + output.WriteRawTag(58); + output.WriteMessage(Favicon); + } + if (HasHtml) { + output.WriteRawTag(66); + output.WriteMessage(Html); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTitle) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (HasOriginalUrl) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginalUrl); + } + if (HasThumbnail) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Thumbnail); + } + if (HasProvider) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Provider); + } + if (HasDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (HasFavicon) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Favicon); + } + if (HasHtml) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Html); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EmbedInfo other) { + if (other == null) { + return; + } + if (other.HasTitle) { + Title = other.Title; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasOriginalUrl) { + OriginalUrl = other.OriginalUrl; + } + if (other.HasThumbnail) { + if (!HasThumbnail) { + Thumbnail = new global::Bgs.Protocol.EmbedImage(); + } + Thumbnail.MergeFrom(other.Thumbnail); + } + if (other.HasProvider) { + if (!HasProvider) { + Provider = new global::Bgs.Protocol.Provider(); + } + Provider.MergeFrom(other.Provider); + } + if (other.HasDescription) { + Description = other.Description; + } + if (other.HasFavicon) { + if (!HasFavicon) { + Favicon = new global::Bgs.Protocol.Favicon(); + } + Favicon.MergeFrom(other.Favicon); + } + if (other.HasHtml) { + if (!HasHtml) { + Html = new global::Bgs.Protocol.EmbedHTML(); + } + Html.MergeFrom(other.Html); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Title = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 26: { + OriginalUrl = input.ReadString(); + break; + } + case 34: { + if (!HasThumbnail) { + Thumbnail = new global::Bgs.Protocol.EmbedImage(); + } + input.ReadMessage(Thumbnail); + break; + } + case 42: { + if (!HasProvider) { + Provider = new global::Bgs.Protocol.Provider(); + } + input.ReadMessage(Provider); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 58: { + if (!HasFavicon) { + Favicon = new global::Bgs.Protocol.Favicon(); + } + input.ReadMessage(Favicon); + break; + } + case 66: { + if (!HasHtml) { + Html = new global::Bgs.Protocol.EmbedHTML(); + } + input.ReadMessage(Html); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/EntityTypes.cs b/Source/Framework/Proto/EntityTypes.cs index b543fb8bf..440e9c014 100644 --- a/Source/Framework/Proto/EntityTypes.cs +++ b/Source/Framework/Proto/EntityTypes.cs @@ -1,15 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/entity_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/entity_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/entity_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/entity_types.proto public static partial class EntityTypesReflection { #region Descriptor @@ -20,83 +22,119 @@ namespace Bgs.Protocol private static pbr::FileDescriptor descriptor; static EntityTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlwZXMucHJvdG8SDGJncy5w", "cm90b2NvbBo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMv", - "ZmllbGRfb3B0aW9ucy5wcm90byIlCghFbnRpdHlJZBIMCgRoaWdoGAEgASgG", - "EgsKA2xvdxgCIAEoBiJnCghJZGVudGl0eRIqCgphY2NvdW50X2lkGAEgASgL", - "MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEi8KD2dhbWVfYWNjb3VudF9pZBgC", - "IAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCKjAQoLQWNjb3VudEluZm8S", - "FAoMYWNjb3VudF9wYWlkGAEgASgIEhIKCmNvdW50cnlfaWQYAiABKAcSEgoK", - "YmF0dGxlX3RhZxgDIAEoCRIVCg1tYW51YWxfcmV2aWV3GAQgASgIEigKCGlk", - "ZW50aXR5GAUgASgLMhYuYmdzLnByb3RvY29sLklkZW50aXR5EhUKDWFjY291", - "bnRfbXV0ZWQYBiABKAhCHgoNYm5ldC5wcm90b2NvbEILRW50aXR5UHJvdG9I", - "AmIGcHJvdG8z")); + "ZmllbGRfb3B0aW9ucy5wcm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFs", + "X2V4dGVuc2lvbnMvbWVzc2FnZV9vcHRpb25zLnByb3RvIj0KCEVudGl0eUlk", + "EhQKBGhpZ2gYASACKAZCBoL5KwIIAhITCgNsb3cYAiACKAZCBoL5KwIIAjoG", + "gvkrAggBInsKCElkZW50aXR5EjQKCmFjY291bnRfaWQYASABKAsyFi5iZ3Mu", + "cHJvdG9jb2wuRW50aXR5SWRCCIr5KwQ6AhABEjkKD2dhbWVfYWNjb3VudF9p", + "ZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZEIIivkrBDoCEAJCHAoN", + "Ym5ldC5wcm90b2NvbEILRW50aXR5UHJvdG8=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.FieldOptionsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.EntityId), Bgs.Protocol.EntityId.Parser, new[]{ "High", "Low" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Identity), Bgs.Protocol.Identity.Parser, new[]{ "AccountId", "GameAccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.AccountInfo), Bgs.Protocol.AccountInfo.Parser, new[]{ "AccountPaid", "CountryId", "BattleTag", "ManualReview", "Identity", "AccountMuted" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.EntityId), global::Bgs.Protocol.EntityId.Parser, new[]{ "High", "Low" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Identity), global::Bgs.Protocol.Identity.Parser, new[]{ "AccountId", "GameAccountId" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class EntityId : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.EntityTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.EntityTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EntityId() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EntityId(EntityId other) : this() { + _hasBits0 = other._hasBits0; high_ = other.high_; low_ = other.low_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EntityId Clone() { return new EntityId(this); } /// Field number for the "high" field. public const int HighFieldNumber = 1; + private readonly static ulong HighDefaultValue = 0UL; + private ulong high_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong High { - get { return high_; } + get { if ((_hasBits0 & 1) != 0) { return high_; } else { return HighDefaultValue; } } set { + _hasBits0 |= 1; high_ = value; } } + /// Gets whether the "high" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHigh { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "high" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHigh() { + _hasBits0 &= ~1; + } /// Field number for the "low" field. public const int LowFieldNumber = 2; + private readonly static ulong LowDefaultValue = 0UL; + private ulong low_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong Low { - get { return low_; } + get { if ((_hasBits0 & 2) != 0) { return low_; } else { return LowDefaultValue; } } set { + _hasBits0 |= 2; low_ = value; } } + /// Gets whether the "low" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLow { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "low" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLow() { + _hasBits0 &= ~2; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as EntityId); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(EntityId other) { if (ReferenceEquals(other, null)) { return false; @@ -106,60 +144,76 @@ namespace Bgs.Protocol } if (High != other.High) return false; if (Low != other.Low) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (High != 0UL) hash ^= High.GetHashCode(); - if (Low != 0UL) hash ^= Low.GetHashCode(); + if (HasHigh) hash ^= High.GetHashCode(); + if (HasLow) hash ^= Low.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (High != 0UL) { + if (HasHigh) { output.WriteRawTag(9); output.WriteFixed64(High); } - if (Low != 0UL) { + if (HasLow) { output.WriteRawTag(17); output.WriteFixed64(Low); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (High != 0UL) { + if (HasHigh) { size += 1 + 8; } - if (Low != 0UL) { + if (HasLow) { size += 1 + 8; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(EntityId other) { if (other == null) { return; } - if (other.High != 0UL) { + if (other.HasHigh) { High = other.High; } - if (other.Low != 0UL) { + if (other.HasLow) { Low = other.Low; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9: { High = input.ReadFixed64(); @@ -175,58 +229,89 @@ namespace Bgs.Protocol } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class Identity : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Identity()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.EntityTypesReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.EntityTypesReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Identity() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Identity(Identity other) : this() { - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Identity Clone() { return new Identity(this); } /// Field number for the "account_id" field. public const int AccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId { + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { get { return accountId_; } set { accountId_ = value; } } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } /// Field number for the "game_account_id" field. public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId { + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { get { return gameAccountId_; } set { gameAccountId_ = value; } } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Identity); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Identity other) { if (ReferenceEquals(other, null)) { return false; @@ -236,323 +321,95 @@ namespace Bgs.Protocol } if (!object.Equals(AccountId, other.AccountId)) return false; if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (accountId_ != null) hash ^= AccountId.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (accountId_ != null) { + if (HasAccountId) { output.WriteRawTag(10); output.WriteMessage(AccountId); } - if (gameAccountId_ != null) { + if (HasGameAccountId) { output.WriteRawTag(18); output.WriteMessage(GameAccountId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (accountId_ != null) { + if (HasAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); } - if (gameAccountId_ != null) { + if (HasGameAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Identity other) { if (other == null) { return; } - if (other.accountId_ != null) { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } AccountId.MergeFrom(other.AccountId); } - if (other.gameAccountId_ != null) { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); } GameAccountId.MergeFrom(other.GameAccountId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(accountId_); + input.ReadMessage(AccountId); break; } case 18: { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(gameAccountId_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AccountInfo : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.EntityTypesReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public AccountInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - public AccountInfo(AccountInfo other) : this() { - accountPaid_ = other.accountPaid_; - countryId_ = other.countryId_; - battleTag_ = other.battleTag_; - manualReview_ = other.manualReview_; - Identity = other.identity_ != null ? other.Identity.Clone() : null; - accountMuted_ = other.accountMuted_; - } - - public AccountInfo Clone() { - return new AccountInfo(this); - } - - /// Field number for the "account_paid" field. - public const int AccountPaidFieldNumber = 1; - private bool accountPaid_; - public bool AccountPaid { - get { return accountPaid_; } - set { - accountPaid_ = value; - } - } - - /// Field number for the "country_id" field. - public const int CountryIdFieldNumber = 2; - private uint countryId_; - public uint CountryId { - get { return countryId_; } - set { - countryId_ = value; - } - } - - /// Field number for the "battle_tag" field. - public const int BattleTagFieldNumber = 3; - private string battleTag_ = ""; - public string BattleTag { - get { return battleTag_; } - set { - battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "manual_review" field. - public const int ManualReviewFieldNumber = 4; - private bool manualReview_; - public bool ManualReview { - get { return manualReview_; } - set { - manualReview_ = value; - } - } - - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 5; - private Bgs.Protocol.Identity identity_; - public Bgs.Protocol.Identity Identity { - get { return identity_; } - set { - identity_ = value; - } - } - - /// Field number for the "account_muted" field. - public const int AccountMutedFieldNumber = 6; - private bool accountMuted_; - public bool AccountMuted { - get { return accountMuted_; } - set { - accountMuted_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as AccountInfo); - } - - public bool Equals(AccountInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AccountPaid != other.AccountPaid) return false; - if (CountryId != other.CountryId) return false; - if (BattleTag != other.BattleTag) return false; - if (ManualReview != other.ManualReview) return false; - if (!object.Equals(Identity, other.Identity)) return false; - if (AccountMuted != other.AccountMuted) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (AccountPaid != false) hash ^= AccountPaid.GetHashCode(); - if (CountryId != 0) hash ^= CountryId.GetHashCode(); - if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode(); - if (ManualReview != false) hash ^= ManualReview.GetHashCode(); - if (identity_ != null) hash ^= Identity.GetHashCode(); - if (AccountMuted != false) hash ^= AccountMuted.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (AccountPaid != false) { - output.WriteRawTag(8); - output.WriteBool(AccountPaid); - } - if (CountryId != 0) { - output.WriteRawTag(21); - output.WriteFixed32(CountryId); - } - if (BattleTag.Length != 0) { - output.WriteRawTag(26); - output.WriteString(BattleTag); - } - if (ManualReview != false) { - output.WriteRawTag(32); - output.WriteBool(ManualReview); - } - if (identity_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Identity); - } - if (AccountMuted != false) { - output.WriteRawTag(48); - output.WriteBool(AccountMuted); - } - } - - public int CalculateSize() { - int size = 0; - if (AccountPaid != false) { - size += 1 + 1; - } - if (CountryId != 0) { - size += 1 + 4; - } - if (BattleTag.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); - } - if (ManualReview != false) { - size += 1 + 1; - } - if (identity_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity); - } - if (AccountMuted != false) { - size += 1 + 1; - } - return size; - } - - public void MergeFrom(AccountInfo other) { - if (other == null) { - return; - } - if (other.AccountPaid != false) { - AccountPaid = other.AccountPaid; - } - if (other.CountryId != 0) { - CountryId = other.CountryId; - } - if (other.BattleTag.Length != 0) { - BattleTag = other.BattleTag; - } - if (other.ManualReview != false) { - ManualReview = other.ManualReview; - } - if (other.identity_ != null) { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Identity(); - } - Identity.MergeFrom(other.Identity); - } - if (other.AccountMuted != false) { - AccountMuted = other.AccountMuted; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - AccountPaid = input.ReadBool(); - break; - } - case 21: { - CountryId = input.ReadFixed32(); - break; - } - case 26: { - BattleTag = input.ReadString(); - break; - } - case 32: { - ManualReview = input.ReadBool(); - break; - } - case 42: { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Identity(); - } - input.ReadMessage(identity_); - break; - } - case 48: { - AccountMuted = input.ReadBool(); + input.ReadMessage(GameAccountId); break; } } diff --git a/Source/Framework/Proto/EtsTypes.cs b/Source/Framework/Proto/EtsTypes.cs new file mode 100644 index 000000000..98f37e5ab --- /dev/null +++ b/Source/Framework/Proto/EtsTypes.cs @@ -0,0 +1,229 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/ets_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { + + /// Holder for reflection information generated from bgs/low/pb/client/ets_types.proto + public static partial class EtsTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/ets_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EtsTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFiZ3MvbG93L3BiL2NsaWVudC9ldHNfdHlwZXMucHJvdG8SDGJncy5wcm90", + "b2NvbCIvCgxUaW1lU2VyaWVzSWQSDQoFZXBvY2gYASABKAQSEAoIcG9zaXRp", + "b24YAiABKAQ=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.TimeSeriesId), global::Bgs.Protocol.TimeSeriesId.Parser, new[]{ "Epoch", "Position" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class TimeSeriesId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TimeSeriesId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.EtsTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TimeSeriesId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TimeSeriesId(TimeSeriesId other) : this() { + _hasBits0 = other._hasBits0; + epoch_ = other.epoch_; + position_ = other.position_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TimeSeriesId Clone() { + return new TimeSeriesId(this); + } + + /// Field number for the "epoch" field. + public const int EpochFieldNumber = 1; + private readonly static ulong EpochDefaultValue = 0UL; + + private ulong epoch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Epoch { + get { if ((_hasBits0 & 1) != 0) { return epoch_; } else { return EpochDefaultValue; } } + set { + _hasBits0 |= 1; + epoch_ = value; + } + } + /// Gets whether the "epoch" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEpoch { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "epoch" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEpoch() { + _hasBits0 &= ~1; + } + + /// Field number for the "position" field. + public const int PositionFieldNumber = 2; + private readonly static ulong PositionDefaultValue = 0UL; + + private ulong position_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Position { + get { if ((_hasBits0 & 2) != 0) { return position_; } else { return PositionDefaultValue; } } + set { + _hasBits0 |= 2; + position_ = value; + } + } + /// Gets whether the "position" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPosition { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "position" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPosition() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as TimeSeriesId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(TimeSeriesId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Epoch != other.Epoch) return false; + if (Position != other.Position) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasEpoch) hash ^= Epoch.GetHashCode(); + if (HasPosition) hash ^= Position.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasEpoch) { + output.WriteRawTag(8); + output.WriteUInt64(Epoch); + } + if (HasPosition) { + output.WriteRawTag(16); + output.WriteUInt64(Position); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasEpoch) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Epoch); + } + if (HasPosition) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Position); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(TimeSeriesId other) { + if (other == null) { + return; + } + if (other.HasEpoch) { + Epoch = other.Epoch; + } + if (other.HasPosition) { + Position = other.Position; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Epoch = input.ReadUInt64(); + break; + } + case 16: { + Position = input.ReadUInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/EventViewTypes.cs b/Source/Framework/Proto/EventViewTypes.cs new file mode 100644 index 000000000..395980055 --- /dev/null +++ b/Source/Framework/Proto/EventViewTypes.cs @@ -0,0 +1,510 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/event_view_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { + + /// Holder for reflection information generated from bgs/low/pb/client/event_view_types.proto + public static partial class EventViewTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/event_view_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EventViewTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CihiZ3MvbG93L3BiL2NsaWVudC9ldmVudF92aWV3X3R5cGVzLnByb3RvEgxi", + "Z3MucHJvdG9jb2wiiQEKD0dldEV2ZW50T3B0aW9ucxISCgpmZXRjaF9mcm9t", + "GAEgASgEEhMKC2ZldGNoX3VudGlsGAIgASgEEhIKCm1heF9ldmVudHMYAyAB", + "KA0SOQoFb3JkZXIYBCABKA4yGC5iZ3MucHJvdG9jb2wuRXZlbnRPcmRlcjoQ", + "RVZFTlRfREVTQ0VORElORyI/CgpWaWV3TWFya2VyEhYKDmxhc3RfcmVhZF90", + "aW1lGAEgASgEEhkKEWxhc3RfbWVzc2FnZV90aW1lGAIgASgEKjcKCkV2ZW50", + "T3JkZXISFAoQRVZFTlRfREVTQ0VORElORxAAEhMKD0VWRU5UX0FTQ0VORElO", + "RxAB")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.EventOrder), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GetEventOptions), global::Bgs.Protocol.GetEventOptions.Parser, new[]{ "FetchFrom", "FetchUntil", "MaxEvents", "Order" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.ViewMarker), global::Bgs.Protocol.ViewMarker.Parser, new[]{ "LastReadTime", "LastMessageTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum EventOrder { + [pbr::OriginalName("EVENT_DESCENDING")] EventDescending = 0, + [pbr::OriginalName("EVENT_ASCENDING")] EventAscending = 1, + } + + #endregion + + #region Messages + public sealed partial class GetEventOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetEventOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.EventViewTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetEventOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetEventOptions(GetEventOptions other) : this() { + _hasBits0 = other._hasBits0; + fetchFrom_ = other.fetchFrom_; + fetchUntil_ = other.fetchUntil_; + maxEvents_ = other.maxEvents_; + order_ = other.order_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetEventOptions Clone() { + return new GetEventOptions(this); + } + + /// Field number for the "fetch_from" field. + public const int FetchFromFieldNumber = 1; + private readonly static ulong FetchFromDefaultValue = 0UL; + + private ulong fetchFrom_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong FetchFrom { + get { if ((_hasBits0 & 1) != 0) { return fetchFrom_; } else { return FetchFromDefaultValue; } } + set { + _hasBits0 |= 1; + fetchFrom_ = value; + } + } + /// Gets whether the "fetch_from" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFetchFrom { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "fetch_from" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFetchFrom() { + _hasBits0 &= ~1; + } + + /// Field number for the "fetch_until" field. + public const int FetchUntilFieldNumber = 2; + private readonly static ulong FetchUntilDefaultValue = 0UL; + + private ulong fetchUntil_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong FetchUntil { + get { if ((_hasBits0 & 2) != 0) { return fetchUntil_; } else { return FetchUntilDefaultValue; } } + set { + _hasBits0 |= 2; + fetchUntil_ = value; + } + } + /// Gets whether the "fetch_until" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFetchUntil { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "fetch_until" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFetchUntil() { + _hasBits0 &= ~2; + } + + /// Field number for the "max_events" field. + public const int MaxEventsFieldNumber = 3; + private readonly static uint MaxEventsDefaultValue = 0; + + private uint maxEvents_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MaxEvents { + get { if ((_hasBits0 & 4) != 0) { return maxEvents_; } else { return MaxEventsDefaultValue; } } + set { + _hasBits0 |= 4; + maxEvents_ = value; + } + } + /// Gets whether the "max_events" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxEvents { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "max_events" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxEvents() { + _hasBits0 &= ~4; + } + + /// Field number for the "order" field. + public const int OrderFieldNumber = 4; + private readonly static global::Bgs.Protocol.EventOrder OrderDefaultValue = global::Bgs.Protocol.EventOrder.EventDescending; + + private global::Bgs.Protocol.EventOrder order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EventOrder Order { + get { if ((_hasBits0 & 8) != 0) { return order_; } else { return OrderDefaultValue; } } + set { + _hasBits0 |= 8; + order_ = value; + } + } + /// Gets whether the "order" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOrder { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "order" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOrder() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetEventOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetEventOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FetchFrom != other.FetchFrom) return false; + if (FetchUntil != other.FetchUntil) return false; + if (MaxEvents != other.MaxEvents) return false; + if (Order != other.Order) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasFetchFrom) hash ^= FetchFrom.GetHashCode(); + if (HasFetchUntil) hash ^= FetchUntil.GetHashCode(); + if (HasMaxEvents) hash ^= MaxEvents.GetHashCode(); + if (HasOrder) hash ^= Order.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasFetchFrom) { + output.WriteRawTag(8); + output.WriteUInt64(FetchFrom); + } + if (HasFetchUntil) { + output.WriteRawTag(16); + output.WriteUInt64(FetchUntil); + } + if (HasMaxEvents) { + output.WriteRawTag(24); + output.WriteUInt32(MaxEvents); + } + if (HasOrder) { + output.WriteRawTag(32); + output.WriteEnum((int) Order); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasFetchFrom) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FetchFrom); + } + if (HasFetchUntil) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FetchUntil); + } + if (HasMaxEvents) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxEvents); + } + if (HasOrder) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Order); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetEventOptions other) { + if (other == null) { + return; + } + if (other.HasFetchFrom) { + FetchFrom = other.FetchFrom; + } + if (other.HasFetchUntil) { + FetchUntil = other.FetchUntil; + } + if (other.HasMaxEvents) { + MaxEvents = other.MaxEvents; + } + if (other.HasOrder) { + Order = other.Order; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + FetchFrom = input.ReadUInt64(); + break; + } + case 16: { + FetchUntil = input.ReadUInt64(); + break; + } + case 24: { + MaxEvents = input.ReadUInt32(); + break; + } + case 32: { + Order = (global::Bgs.Protocol.EventOrder) input.ReadEnum(); + break; + } + } + } + } + + } + + public sealed partial class ViewMarker : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ViewMarker()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.EventViewTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ViewMarker() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ViewMarker(ViewMarker other) : this() { + _hasBits0 = other._hasBits0; + lastReadTime_ = other.lastReadTime_; + lastMessageTime_ = other.lastMessageTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ViewMarker Clone() { + return new ViewMarker(this); + } + + /// Field number for the "last_read_time" field. + public const int LastReadTimeFieldNumber = 1; + private readonly static ulong LastReadTimeDefaultValue = 0UL; + + private ulong lastReadTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong LastReadTime { + get { if ((_hasBits0 & 1) != 0) { return lastReadTime_; } else { return LastReadTimeDefaultValue; } } + set { + _hasBits0 |= 1; + lastReadTime_ = value; + } + } + /// Gets whether the "last_read_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLastReadTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "last_read_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLastReadTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "last_message_time" field. + public const int LastMessageTimeFieldNumber = 2; + private readonly static ulong LastMessageTimeDefaultValue = 0UL; + + private ulong lastMessageTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong LastMessageTime { + get { if ((_hasBits0 & 2) != 0) { return lastMessageTime_; } else { return LastMessageTimeDefaultValue; } } + set { + _hasBits0 |= 2; + lastMessageTime_ = value; + } + } + /// Gets whether the "last_message_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLastMessageTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "last_message_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLastMessageTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ViewMarker); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ViewMarker other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LastReadTime != other.LastReadTime) return false; + if (LastMessageTime != other.LastMessageTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasLastReadTime) hash ^= LastReadTime.GetHashCode(); + if (HasLastMessageTime) hash ^= LastMessageTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasLastReadTime) { + output.WriteRawTag(8); + output.WriteUInt64(LastReadTime); + } + if (HasLastMessageTime) { + output.WriteRawTag(16); + output.WriteUInt64(LastMessageTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasLastReadTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LastReadTime); + } + if (HasLastMessageTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LastMessageTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ViewMarker other) { + if (other == null) { + return; + } + if (other.HasLastReadTime) { + LastReadTime = other.LastReadTime; + } + if (other.HasLastMessageTime) { + LastMessageTime = other.LastMessageTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LastReadTime = input.ReadUInt64(); + break; + } + case 16: { + LastMessageTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/FriendsService.cs b/Source/Framework/Proto/FriendsService.cs index 38ba1c8cb..451a8f1b3 100644 --- a/Source/Framework/Proto/FriendsService.cs +++ b/Source/Framework/Proto/FriendsService.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/friends_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/friends_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Friends.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Friends.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/friends_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/friends_service.proto public static partial class FriendsServiceReflection { #region Descriptor @@ -21,170 +22,271 @@ namespace Bgs.Protocol.Friends.V1 private static pbr::FileDescriptor descriptor; static FriendsServiceReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CidiZ3MvbG93L3BiL2NsaWVudC9mcmllbmRzX3NlcnZpY2UucHJvdG8SF2Jn", "cy5wcm90b2NvbC5mcmllbmRzLnYxGidiZ3MvbG93L3BiL2NsaWVudC9hdHRy", "aWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xpZW50L2VudGl0eV90", "eXBlcy5wcm90bxolYmdzL2xvdy9wYi9jbGllbnQvZnJpZW5kc190eXBlcy5w", "cm90bxooYmdzL2xvdy9wYi9jbGllbnQvaW52aXRhdGlvbl90eXBlcy5wcm90", - "bxoiYmdzL2xvdy9wYi9jbGllbnQvcm9sZV90eXBlcy5wcm90bxohYmdzL2xv", - "dy9wYi9jbGllbnQvcnBjX3R5cGVzLnByb3RvIk8KEFN1YnNjcmliZVJlcXVl", - "c3QSKAoIYWdlbnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQS", - "EQoJb2JqZWN0X2lkGAIgASgEIqgCChFTdWJzY3JpYmVSZXNwb25zZRITCgtt", - "YXhfZnJpZW5kcxgBIAEoDRIgChhtYXhfcmVjZWl2ZWRfaW52aXRhdGlvbnMY", - "AiABKA0SHAoUbWF4X3NlbnRfaW52aXRhdGlvbnMYAyABKA0SIAoEcm9sZRgE", - "IAMoCzISLmJncy5wcm90b2NvbC5Sb2xlEjAKB2ZyaWVuZHMYBSADKAsyHy5i", - "Z3MucHJvdG9jb2wuZnJpZW5kcy52MS5GcmllbmQSMgoQc2VudF9pbnZpdGF0", - "aW9ucxgGIAMoCzIYLmJncy5wcm90b2NvbC5JbnZpdGF0aW9uEjYKFHJlY2Vp", - "dmVkX2ludml0YXRpb25zGAcgAygLMhguYmdzLnByb3RvY29sLkludml0YXRp", - "b24iUQoSVW5zdWJzY3JpYmVSZXF1ZXN0EigKCGFnZW50X2lkGAEgASgLMhYu", - "YmdzLnByb3RvY29sLkVudGl0eUlkEhEKCW9iamVjdF9pZBgCIAEoBCJrChRH", - "ZW5lcmljRnJpZW5kUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5w", - "cm90b2NvbC5FbnRpdHlJZBIpCgl0YXJnZXRfaWQYAiABKAsyFi5iZ3MucHJv", - "dG9jb2wuRW50aXR5SWQiTwoVR2VuZXJpY0ZyaWVuZFJlc3BvbnNlEjYKDXRh", - "cmdldF9mcmllbmQYASABKAsyHy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5G", - "cmllbmQidgoRQXNzaWduUm9sZVJlcXVlc3QSKAoIYWdlbnRfaWQYASABKAsy", - "Fi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSKQoJdGFyZ2V0X2lkGAIgASgLMhYu", - "YmdzLnByb3RvY29sLkVudGl0eUlkEgwKBHJvbGUYAyADKAUiewoSVmlld0Zy", - "aWVuZHNSZXF1ZXN0EigKCGFnZW50X2lkGAEgASgLMhYuYmdzLnByb3RvY29s", - "LkVudGl0eUlkEikKCXRhcmdldF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5F", - "bnRpdHlJZBIQCgRyb2xlGAMgAygNQgIQASJHChNWaWV3RnJpZW5kc1Jlc3Bv", - "bnNlEjAKB2ZyaWVuZHMYASADKAsyHy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52", - "MS5GcmllbmQitQEKGFVwZGF0ZUZyaWVuZFN0YXRlUmVxdWVzdBIoCghhZ2Vu", - "dF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0YXJnZXRf", - "aWQYAiABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSKgoJYXR0cmlidXRl", - "GAMgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0ZRIYChBhdHRyaWJ1dGVz", - "X2Vwb2NoGAQgASgEIskBChJGcmllbmROb3RpZmljYXRpb24SLwoGdGFyZ2V0", - "GAEgASgLMh8uYmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5kEi8KD2dh", - "bWVfYWNjb3VudF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIl", - "CgRwZWVyGAQgASgLMhcuYmdzLnByb3RvY29sLlByb2Nlc3NJZBIqCgphY2Nv", - "dW50X2lkGAUgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkItwBCh1VcGRh", - "dGVGcmllbmRTdGF0ZU5vdGlmaWNhdGlvbhI3Cg5jaGFuZ2VkX2ZyaWVuZBgB", - "IAEoCzIfLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkZyaWVuZBIvCg9nYW1l", - "X2FjY291bnRfaWQYAiABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSJQoE", - "cGVlchgEIAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQSKgoKYWNjb3Vu", - "dF9pZBgFIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCLaAQoWSW52aXRh", - "dGlvbk5vdGlmaWNhdGlvbhIsCgppbnZpdGF0aW9uGAEgASgLMhguYmdzLnBy", - "b3RvY29sLkludml0YXRpb24SLwoPZ2FtZV9hY2NvdW50X2lkGAIgASgLMhYu", - "YmdzLnByb3RvY29sLkVudGl0eUlkEg4KBnJlYXNvbhgDIAEoDRIlCgRwZWVy", - "GAQgASgLMhcuYmdzLnByb3RvY29sLlByb2Nlc3NJZBIqCgphY2NvdW50X2lk", - "GAUgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkMsUICg5GcmllbmRzU2Vy", - "dmljZRJiCglTdWJzY3JpYmUSKS5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5T", - "dWJzY3JpYmVSZXF1ZXN0GiouYmdzLnByb3RvY29sLmZyaWVuZHMudjEuU3Vi", - "c2NyaWJlUmVzcG9uc2USSwoOU2VuZEludml0YXRpb24SIy5iZ3MucHJvdG9j", - "b2wuU2VuZEludml0YXRpb25SZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0", - "YRJQChBBY2NlcHRJbnZpdGF0aW9uEiYuYmdzLnByb3RvY29sLkdlbmVyaWNJ", - "bnZpdGF0aW9uUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGESVQoQUmV2", - "b2tlSW52aXRhdGlvbhImLmJncy5wcm90b2NvbC5HZW5lcmljSW52aXRhdGlv", - "blJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgOIAgESUQoRRGVjbGlu", - "ZUludml0YXRpb24SJi5iZ3MucHJvdG9jb2wuR2VuZXJpY0ludml0YXRpb25S", - "ZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YRJQChBJZ25vcmVJbnZpdGF0", - "aW9uEiYuYmdzLnByb3RvY29sLkdlbmVyaWNJbnZpdGF0aW9uUmVxdWVzdBoU", - "LmJncy5wcm90b2NvbC5Ob0RhdGESTgoKQXNzaWduUm9sZRIqLmJncy5wcm90", - "b2NvbC5mcmllbmRzLnYxLkFzc2lnblJvbGVSZXF1ZXN0GhQuYmdzLnByb3Rv", - "Y29sLk5vRGF0YRJtCgxSZW1vdmVGcmllbmQSLS5iZ3MucHJvdG9jb2wuZnJp", - "ZW5kcy52MS5HZW5lcmljRnJpZW5kUmVxdWVzdBouLmJncy5wcm90b2NvbC5m", - "cmllbmRzLnYxLkdlbmVyaWNGcmllbmRSZXNwb25zZRJoCgtWaWV3RnJpZW5k", - "cxIrLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLlZpZXdGcmllbmRzUmVxdWVz", - "dBosLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLlZpZXdGcmllbmRzUmVzcG9u", - "c2USXAoRVXBkYXRlRnJpZW5kU3RhdGUSMS5iZ3MucHJvdG9jb2wuZnJpZW5k", - "cy52MS5VcGRhdGVGcmllbmRTdGF0ZVJlcXVlc3QaFC5iZ3MucHJvdG9jb2wu", - "Tm9EYXRhElAKC1Vuc3Vic2NyaWJlEisuYmdzLnByb3RvY29sLmZyaWVuZHMu", - "djEuVW5zdWJzY3JpYmVSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YRJb", - "ChRSZXZva2VBbGxJbnZpdGF0aW9ucxItLmJncy5wcm90b2NvbC5mcmllbmRz", - "LnYxLkdlbmVyaWNGcmllbmRSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0", - "YTLZBQoPRnJpZW5kc0xpc3RlbmVyElcKDU9uRnJpZW5kQWRkZWQSKy5iZ3Mu", - "cHJvdG9jb2wuZnJpZW5kcy52MS5GcmllbmROb3RpZmljYXRpb24aGS5iZ3Mu", - "cHJvdG9jb2wuTk9fUkVTUE9OU0USWQoPT25GcmllbmRSZW1vdmVkEisuYmdz", - "LnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5kTm90aWZpY2F0aW9uGhkuYmdz", - "LnByb3RvY29sLk5PX1JFU1BPTlNFEmcKGU9uUmVjZWl2ZWRJbnZpdGF0aW9u", - "QWRkZWQSLy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5JbnZpdGF0aW9uTm90", - "aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFEmkKG09uUmVj", - "ZWl2ZWRJbnZpdGF0aW9uUmVtb3ZlZBIvLmJncy5wcm90b2NvbC5mcmllbmRz", - "LnYxLkludml0YXRpb25Ob3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9f", - "UkVTUE9OU0USaAoVT25TZW50SW52aXRhdGlvbkFkZGVkEi8uYmdzLnByb3Rv", + "bxohYmdzL2xvdy9wYi9jbGllbnQvcnBjX3R5cGVzLnByb3RvGjliZ3MvbG93", + "L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMu", + "cHJvdG8aN2Jncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL2Zp", + "ZWxkX29wdGlvbnMucHJvdG8aOGJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9l", + "eHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2Ns", + "aWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNlX29wdGlvbnMucHJvdG8i", + "gQEKEFN1YnNjcmliZVJlcXVlc3QSKAoIYWdlbnRfaWQYASABKAsyFi5iZ3Mu", + "cHJvdG9jb2wuRW50aXR5SWQSEQoJb2JqZWN0X2lkGAIgAigEEjAKB2Zvcndh", + "cmQYAyABKAsyGy5iZ3MucHJvdG9jb2wuT2JqZWN0QWRkcmVzc0ICGAEigwEK", + "ElVuc3Vic2NyaWJlUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5w", + "cm90b2NvbC5FbnRpdHlJZBIRCglvYmplY3RfaWQYAiABKAQSMAoHZm9yd2Fy", + "ZBgDIAEoCzIbLmJncy5wcm90b2NvbC5PYmplY3RBZGRyZXNzQgIYASKiAQoV", + "U2VuZEludml0YXRpb25SZXF1ZXN0Ei4KDmFnZW50X2lkZW50aXR5GAEgASgL", + "MhYuYmdzLnByb3RvY29sLklkZW50aXR5EikKCXRhcmdldF9pZBgCIAIoCzIW", + "LmJncy5wcm90b2NvbC5FbnRpdHlJZBIuCgZwYXJhbXMYAyACKAsyHi5iZ3Mu", + "cHJvdG9jb2wuSW52aXRhdGlvblBhcmFtcyJaChdSZXZva2VJbnZpdGF0aW9u", + "UmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp", + "dHlJZBIVCg1pbnZpdGF0aW9uX2lkGAIgASgGIp0BChdBY2NlcHRJbnZpdGF0", + "aW9uUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5F", + "bnRpdHlJZBIVCg1pbnZpdGF0aW9uX2lkGAMgAigGEkEKB29wdGlvbnMYBCAB", + "KAsyMC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5BY2NlcHRJbnZpdGF0aW9u", + "T3B0aW9ucyJbChhEZWNsaW5lSW52aXRhdGlvblJlcXVlc3QSKAoIYWdlbnRf", + "aWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSFQoNaW52aXRhdGlv", + "bl9pZBgDIAIoBiJrChdJZ25vcmVJbnZpdGF0aW9uUmVxdWVzdBIoCghhZ2Vu", + "dF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIVCg1pbnZpdGF0", + "aW9uX2lkGAMgAigGEg8KB3Byb2dyYW0YBCABKAciagoTUmVtb3ZlRnJpZW5k", + "UmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp", + "dHlJZBIpCgl0YXJnZXRfaWQYAiACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5", + "SWQiRwobUmV2b2tlQWxsSW52aXRhdGlvbnNSZXF1ZXN0EigKCGFnZW50X2lk", + "GAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkImkKElZpZXdGcmllbmRz", + "UmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp", + "dHlJZBIpCgl0YXJnZXRfaWQYAiACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5", + "SWQiTwoTVmlld0ZyaWVuZHNSZXNwb25zZRI4CgdmcmllbmRzGAEgAygLMicu", + "YmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5kT2ZGcmllbmQimwEKGFVw", + "ZGF0ZUZyaWVuZFN0YXRlUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJn", + "cy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0YXJnZXRfaWQYAiACKAsyFi5iZ3Mu", + "cHJvdG9jb2wuRW50aXR5SWQSKgoJYXR0cmlidXRlGAMgAygLMhcuYmdzLnBy", + "b3RvY29sLkF0dHJpYnV0ZSJAChRHZXRGcmllbmRMaXN0UmVxdWVzdBIoCghh", + "Z2VudF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCJJChVHZXRG", + "cmllbmRMaXN0UmVzcG9uc2USMAoHZnJpZW5kcxgBIAMoCzIfLmJncy5wcm90", + "b2NvbC5mcmllbmRzLnYxLkZyaWVuZCKAAQoXQ3JlYXRlRnJpZW5kc2hpcFJl", + "cXVlc3QSKAoIYWdlbnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5", + "SWQSKQoJdGFyZ2V0X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlk", + "EhAKBHJvbGUYAyADKA1CAhABIqMBChJGcmllbmROb3RpZmljYXRpb24SLwoG", + "dGFyZ2V0GAEgAigLMh8uYmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5k", + "EioKCmFjY291bnRfaWQYBSABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQS", + "MAoHZm9yd2FyZBgGIAEoCzIbLmJncy5wcm90b2NvbC5PYmplY3RBZGRyZXNz", + "QgIYASK2AQodVXBkYXRlRnJpZW5kU3RhdGVOb3RpZmljYXRpb24SNwoOY2hh", + "bmdlZF9mcmllbmQYASACKAsyHy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5G", + "cmllbmQSKgoKYWNjb3VudF9pZBgFIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp", + "dHlJZBIwCgdmb3J3YXJkGAYgASgLMhsuYmdzLnByb3RvY29sLk9iamVjdEFk", + "ZHJlc3NCAhgBIsoBChZJbnZpdGF0aW9uTm90aWZpY2F0aW9uEj8KCmludml0", + "YXRpb24YASACKAsyKy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5SZWNlaXZl", + "ZEludml0YXRpb24SEQoGcmVhc29uGAMgASgNOgEwEioKCmFjY291bnRfaWQY", + "BSABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSMAoHZm9yd2FyZBgGIAEo", + "CzIbLmJncy5wcm90b2NvbC5PYmplY3RBZGRyZXNzQgIYASK8AQofU2VudElu", + "dml0YXRpb25BZGRlZE5vdGlmaWNhdGlvbhIqCgphY2NvdW50X2lkGAEgASgL", + "MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEjsKCmludml0YXRpb24YAiABKAsy", + "Jy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5TZW50SW52aXRhdGlvbhIwCgdm", + "b3J3YXJkGAMgASgLMhsuYmdzLnByb3RvY29sLk9iamVjdEFkZHJlc3NCAhgB", + "IqgBCiFTZW50SW52aXRhdGlvblJlbW92ZWROb3RpZmljYXRpb24SKgoKYWNj", + "b3VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIVCg1pbnZp", + "dGF0aW9uX2lkGAIgASgGEg4KBnJlYXNvbhgDIAEoDRIwCgdmb3J3YXJkGAQg", + "ASgLMhsuYmdzLnByb3RvY29sLk9iamVjdEFkZHJlc3NCAhgBMoYLCg5Gcmll", + "bmRzU2VydmljZRJqCglTdWJzY3JpYmUSKS5iZ3MucHJvdG9jb2wuZnJpZW5k", + "cy52MS5TdWJzY3JpYmVSZXF1ZXN0GiouYmdzLnByb3RvY29sLmZyaWVuZHMu", + "djEuU3Vic2NyaWJlUmVzcG9uc2UiBoL5KwIIARJeCg5TZW5kSW52aXRhdGlv", + "bhIuLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLlNlbmRJbnZpdGF0aW9uUmVx", + "dWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIAhJiChBBY2NlcHRJ", + "bnZpdGF0aW9uEjAuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuQWNjZXB0SW52", + "aXRhdGlvblJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCAMS", + "YgoQUmV2b2tlSW52aXRhdGlvbhIwLmJncy5wcm90b2NvbC5mcmllbmRzLnYx", + "LlJldm9rZUludml0YXRpb25SZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0", + "YSIGgvkrAggEEmcKEURlY2xpbmVJbnZpdGF0aW9uEjEuYmdzLnByb3RvY29s", + "LmZyaWVuZHMudjEuRGVjbGluZUludml0YXRpb25SZXF1ZXN0GhQuYmdzLnBy", + "b3RvY29sLk5vRGF0YSIJiAIBgvkrAggFEmIKEElnbm9yZUludml0YXRpb24S", + "MC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5JZ25vcmVJbnZpdGF0aW9uUmVx", + "dWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIBhJaCgxSZW1vdmVG", + "cmllbmQSLC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5SZW1vdmVGcmllbmRS", + "ZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggIEnAKC1ZpZXdG", + "cmllbmRzEisuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuVmlld0ZyaWVuZHNS", + "ZXF1ZXN0GiwuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuVmlld0ZyaWVuZHNS", + "ZXNwb25zZSIGgvkrAggJEmQKEVVwZGF0ZUZyaWVuZFN0YXRlEjEuYmdzLnBy", + "b3RvY29sLmZyaWVuZHMudjEuVXBkYXRlRnJpZW5kU3RhdGVSZXF1ZXN0GhQu", + "YmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggKElgKC1Vuc3Vic2NyaWJlEisu", + "YmdzLnByb3RvY29sLmZyaWVuZHMudjEuVW5zdWJzY3JpYmVSZXF1ZXN0GhQu", + "YmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggLEmoKFFJldm9rZUFsbEludml0", + "YXRpb25zEjQuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuUmV2b2tlQWxsSW52", + "aXRhdGlvbnNSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggM", + "EnYKDUdldEZyaWVuZExpc3QSLS5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5H", + "ZXRGcmllbmRMaXN0UmVxdWVzdBouLmJncy5wcm90b2NvbC5mcmllbmRzLnYx", + "LkdldEZyaWVuZExpc3RSZXNwb25zZSIGgvkrAggNEmIKEENyZWF0ZUZyaWVu", + "ZHNoaXASMC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5DcmVhdGVGcmllbmRz", + "aGlwUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIDho9gvkr", + "JgokYm5ldC5wcm90b2NvbC5mcmllbmRzLkZyaWVuZHNTZXJ2aWNlgvkrCSoH", + "ZnJpZW5kc4r5KwIQATLMBgoPRnJpZW5kc0xpc3RlbmVyEl8KDU9uRnJpZW5k", + "QWRkZWQSKy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5GcmllbmROb3RpZmlj", + "YXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIARJhCg9P", + "bkZyaWVuZFJlbW92ZWQSKy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5Gcmll", + "bmROb3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5", + "KwIIAhJvChlPblJlY2VpdmVkSW52aXRhdGlvbkFkZGVkEi8uYmdzLnByb3Rv", "Y29sLmZyaWVuZHMudjEuSW52aXRhdGlvbk5vdGlmaWNhdGlvbhoZLmJncy5w", - "cm90b2NvbC5OT19SRVNQT05TRSIDiAIBEmoKF09uU2VudEludml0YXRpb25S", - "ZW1vdmVkEi8uYmdzLnByb3RvY29sLmZyaWVuZHMudjEuSW52aXRhdGlvbk5v", - "dGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIDiAIBEmgK", - "E09uVXBkYXRlRnJpZW5kU3RhdGUSNi5iZ3MucHJvdG9jb2wuZnJpZW5kcy52", - "MS5VcGRhdGVGcmllbmRTdGF0ZU5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2Nv", - "bC5OT19SRVNQT05TRUI3ChhibmV0LnByb3RvY29sLmZyaWVuZHMudjFCE0Zy", - "aWVuZHNTZXJ2aWNlUHJvdG9IAoABAIgBAWIGcHJvdG8z")); + "cm90b2NvbC5OT19SRVNQT05TRSIGgvkrAggDEnEKG09uUmVjZWl2ZWRJbnZp", + "dGF0aW9uUmVtb3ZlZBIvLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkludml0", + "YXRpb25Ob3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0Ui", + "BoL5KwIIBBJ0ChVPblNlbnRJbnZpdGF0aW9uQWRkZWQSOC5iZ3MucHJvdG9j", + "b2wuZnJpZW5kcy52MS5TZW50SW52aXRhdGlvbkFkZGVkTm90aWZpY2F0aW9u", + "GhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAUSeAoXT25TZW50", + "SW52aXRhdGlvblJlbW92ZWQSOi5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5T", + "ZW50SW52aXRhdGlvblJlbW92ZWROb3RpZmljYXRpb24aGS5iZ3MucHJvdG9j", + "b2wuTk9fUkVTUE9OU0UiBoL5KwIIBhJwChNPblVwZGF0ZUZyaWVuZFN0YXRl", + "EjYuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuVXBkYXRlRnJpZW5kU3RhdGVO", + "b3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwII", + "BxovgvkrJQojYm5ldC5wcm90b2NvbC5mcmllbmRzLkZyaWVuZHNOb3RpZnmK", + "+SsCCAFCNQoYYm5ldC5wcm90b2NvbC5mcmllbmRzLnYxQhNGcmllbmRzU2Vy", + "dmljZVByb3RvgAEAiAEB")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor, Bgs.Protocol.InvitationTypesReflection.Descriptor, Bgs.Protocol.RoleTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.SubscribeRequest), Bgs.Protocol.Friends.V1.SubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.SubscribeResponse), Bgs.Protocol.Friends.V1.SubscribeResponse.Parser, new[]{ "MaxFriends", "MaxReceivedInvitations", "MaxSentInvitations", "Role", "Friends", "SentInvitations", "ReceivedInvitations" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.UnsubscribeRequest), Bgs.Protocol.Friends.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.GenericFriendRequest), Bgs.Protocol.Friends.V1.GenericFriendRequest.Parser, new[]{ "AgentId", "TargetId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.GenericFriendResponse), Bgs.Protocol.Friends.V1.GenericFriendResponse.Parser, new[]{ "TargetFriend" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.AssignRoleRequest), Bgs.Protocol.Friends.V1.AssignRoleRequest.Parser, new[]{ "AgentId", "TargetId", "Role" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.ViewFriendsRequest), Bgs.Protocol.Friends.V1.ViewFriendsRequest.Parser, new[]{ "AgentId", "TargetId", "Role" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.ViewFriendsResponse), Bgs.Protocol.Friends.V1.ViewFriendsResponse.Parser, new[]{ "Friends" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.UpdateFriendStateRequest), Bgs.Protocol.Friends.V1.UpdateFriendStateRequest.Parser, new[]{ "AgentId", "TargetId", "Attribute", "AttributesEpoch" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.FriendNotification), Bgs.Protocol.Friends.V1.FriendNotification.Parser, new[]{ "Target", "GameAccountId", "Peer", "AccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.UpdateFriendStateNotification), Bgs.Protocol.Friends.V1.UpdateFriendStateNotification.Parser, new[]{ "ChangedFriend", "GameAccountId", "Peer", "AccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.InvitationNotification), Bgs.Protocol.Friends.V1.InvitationNotification.Parser, new[]{ "Invitation", "GameAccountId", "Reason", "Peer", "AccountId" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor, global::Bgs.Protocol.InvitationTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SubscribeRequest), global::Bgs.Protocol.Friends.V1.SubscribeRequest.Parser, new[]{ "AgentId", "ObjectId", "Forward" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.UnsubscribeRequest), global::Bgs.Protocol.Friends.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "ObjectId", "Forward" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SendInvitationRequest), global::Bgs.Protocol.Friends.V1.SendInvitationRequest.Parser, new[]{ "AgentIdentity", "TargetId", "Params" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.RevokeInvitationRequest), global::Bgs.Protocol.Friends.V1.RevokeInvitationRequest.Parser, new[]{ "AgentId", "InvitationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.AcceptInvitationRequest), global::Bgs.Protocol.Friends.V1.AcceptInvitationRequest.Parser, new[]{ "AgentId", "InvitationId", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.DeclineInvitationRequest), global::Bgs.Protocol.Friends.V1.DeclineInvitationRequest.Parser, new[]{ "AgentId", "InvitationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.IgnoreInvitationRequest), global::Bgs.Protocol.Friends.V1.IgnoreInvitationRequest.Parser, new[]{ "AgentId", "InvitationId", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.RemoveFriendRequest), global::Bgs.Protocol.Friends.V1.RemoveFriendRequest.Parser, new[]{ "AgentId", "TargetId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.RevokeAllInvitationsRequest), global::Bgs.Protocol.Friends.V1.RevokeAllInvitationsRequest.Parser, new[]{ "AgentId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.ViewFriendsRequest), global::Bgs.Protocol.Friends.V1.ViewFriendsRequest.Parser, new[]{ "AgentId", "TargetId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.ViewFriendsResponse), global::Bgs.Protocol.Friends.V1.ViewFriendsResponse.Parser, new[]{ "Friends" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.UpdateFriendStateRequest), global::Bgs.Protocol.Friends.V1.UpdateFriendStateRequest.Parser, new[]{ "AgentId", "TargetId", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.GetFriendListRequest), global::Bgs.Protocol.Friends.V1.GetFriendListRequest.Parser, new[]{ "AgentId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.GetFriendListResponse), global::Bgs.Protocol.Friends.V1.GetFriendListResponse.Parser, new[]{ "Friends" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.CreateFriendshipRequest), global::Bgs.Protocol.Friends.V1.CreateFriendshipRequest.Parser, new[]{ "AgentId", "TargetId", "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.FriendNotification), global::Bgs.Protocol.Friends.V1.FriendNotification.Parser, new[]{ "Target", "AccountId", "Forward" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.UpdateFriendStateNotification), global::Bgs.Protocol.Friends.V1.UpdateFriendStateNotification.Parser, new[]{ "ChangedFriend", "AccountId", "Forward" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.InvitationNotification), global::Bgs.Protocol.Friends.V1.InvitationNotification.Parser, new[]{ "Invitation", "Reason", "AccountId", "Forward" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SentInvitationAddedNotification), global::Bgs.Protocol.Friends.V1.SentInvitationAddedNotification.Parser, new[]{ "AccountId", "Invitation", "Forward" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SentInvitationRemovedNotification), global::Bgs.Protocol.Friends.V1.SentInvitationRemovedNotification.Parser, new[]{ "AccountId", "InvitationId", "Reason", "Forward" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class SubscribeRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest(SubscribeRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; objectId_ = other.objectId_; + forward_ = other.HasForward ? other.forward_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest Clone() { return new SubscribeRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "object_id" field. public const int ObjectIdFieldNumber = 2; + private readonly static ulong ObjectIdDefaultValue = 0UL; + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ObjectId { - get { return objectId_; } + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } set { + _hasBits0 |= 1; objectId_ = value; } } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 3; + private global::Bgs.Protocol.ObjectAddress forward_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ObjectAddress Forward { + get { return forward_; } + set { + forward_ = value; + } + } + /// Gets whether the forward field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForward { + get { return forward_ != null; } + } + /// Clears the value of the forward field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForward() { + forward_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SubscribeRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SubscribeRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -194,306 +296,111 @@ namespace Bgs.Protocol.Friends.V1 } if (!object.Equals(AgentId, other.AgentId)) return false; if (ObjectId != other.ObjectId) return false; - return true; + if (!object.Equals(Forward, other.Forward)) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (HasForward) hash ^= Forward.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (ObjectId != 0UL) { + if (HasObjectId) { output.WriteRawTag(16); output.WriteUInt64(ObjectId); } + if (HasForward) { + output.WriteRawTag(26); + output.WriteMessage(Forward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (ObjectId != 0UL) { + if (HasObjectId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); } + if (HasForward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SubscribeRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.ObjectId != 0UL) { + if (other.HasObjectId) { ObjectId = other.ObjectId; } + if (other.HasForward) { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + Forward.MergeFrom(other.Forward); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 16: { ObjectId = input.ReadUInt64(); break; } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SubscribeResponse : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public SubscribeResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - public SubscribeResponse(SubscribeResponse other) : this() { - maxFriends_ = other.maxFriends_; - maxReceivedInvitations_ = other.maxReceivedInvitations_; - maxSentInvitations_ = other.maxSentInvitations_; - role_ = other.role_.Clone(); - friends_ = other.friends_.Clone(); - sentInvitations_ = other.sentInvitations_.Clone(); - receivedInvitations_ = other.receivedInvitations_.Clone(); - } - - public SubscribeResponse Clone() { - return new SubscribeResponse(this); - } - - /// Field number for the "max_friends" field. - public const int MaxFriendsFieldNumber = 1; - private uint maxFriends_; - public uint MaxFriends { - get { return maxFriends_; } - set { - maxFriends_ = value; - } - } - - /// Field number for the "max_received_invitations" field. - public const int MaxReceivedInvitationsFieldNumber = 2; - private uint maxReceivedInvitations_; - public uint MaxReceivedInvitations { - get { return maxReceivedInvitations_; } - set { - maxReceivedInvitations_ = value; - } - } - - /// Field number for the "max_sent_invitations" field. - public const int MaxSentInvitationsFieldNumber = 3; - private uint maxSentInvitations_; - public uint MaxSentInvitations { - get { return maxSentInvitations_; } - set { - maxSentInvitations_ = value; - } - } - - /// Field number for the "role" field. - public const int RoleFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_role_codec - = pb::FieldCodec.ForMessage(34, Bgs.Protocol.Role.Parser); - private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); - public pbc::RepeatedField Role { - get { return role_; } - } - - /// Field number for the "friends" field. - public const int FriendsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_friends_codec - = pb::FieldCodec.ForMessage(42, Bgs.Protocol.Friends.V1.Friend.Parser); - private readonly pbc::RepeatedField friends_ = new pbc::RepeatedField(); - public pbc::RepeatedField Friends { - get { return friends_; } - } - - /// Field number for the "sent_invitations" field. - public const int SentInvitationsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_sentInvitations_codec - = pb::FieldCodec.ForMessage(50, Bgs.Protocol.Invitation.Parser); - private readonly pbc::RepeatedField sentInvitations_ = new pbc::RepeatedField(); - public pbc::RepeatedField SentInvitations { - get { return sentInvitations_; } - } - - /// Field number for the "received_invitations" field. - public const int ReceivedInvitationsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_receivedInvitations_codec - = pb::FieldCodec.ForMessage(58, Bgs.Protocol.Invitation.Parser); - private readonly pbc::RepeatedField receivedInvitations_ = new pbc::RepeatedField(); - public pbc::RepeatedField ReceivedInvitations { - get { return receivedInvitations_; } - } - - public override bool Equals(object other) { - return Equals(other as SubscribeResponse); - } - - public bool Equals(SubscribeResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MaxFriends != other.MaxFriends) return false; - if (MaxReceivedInvitations != other.MaxReceivedInvitations) return false; - if (MaxSentInvitations != other.MaxSentInvitations) return false; - if(!role_.Equals(other.role_)) return false; - if(!friends_.Equals(other.friends_)) return false; - if(!sentInvitations_.Equals(other.sentInvitations_)) return false; - if(!receivedInvitations_.Equals(other.receivedInvitations_)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (MaxFriends != 0) hash ^= MaxFriends.GetHashCode(); - if (MaxReceivedInvitations != 0) hash ^= MaxReceivedInvitations.GetHashCode(); - if (MaxSentInvitations != 0) hash ^= MaxSentInvitations.GetHashCode(); - hash ^= role_.GetHashCode(); - hash ^= friends_.GetHashCode(); - hash ^= sentInvitations_.GetHashCode(); - hash ^= receivedInvitations_.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (MaxFriends != 0) { - output.WriteRawTag(8); - output.WriteUInt32(MaxFriends); - } - if (MaxReceivedInvitations != 0) { - output.WriteRawTag(16); - output.WriteUInt32(MaxReceivedInvitations); - } - if (MaxSentInvitations != 0) { - output.WriteRawTag(24); - output.WriteUInt32(MaxSentInvitations); - } - role_.WriteTo(output, _repeated_role_codec); - friends_.WriteTo(output, _repeated_friends_codec); - sentInvitations_.WriteTo(output, _repeated_sentInvitations_codec); - receivedInvitations_.WriteTo(output, _repeated_receivedInvitations_codec); - } - - public int CalculateSize() { - int size = 0; - if (MaxFriends != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxFriends); - } - if (MaxReceivedInvitations != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxReceivedInvitations); - } - if (MaxSentInvitations != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxSentInvitations); - } - size += role_.CalculateSize(_repeated_role_codec); - size += friends_.CalculateSize(_repeated_friends_codec); - size += sentInvitations_.CalculateSize(_repeated_sentInvitations_codec); - size += receivedInvitations_.CalculateSize(_repeated_receivedInvitations_codec); - return size; - } - - public void MergeFrom(SubscribeResponse other) { - if (other == null) { - return; - } - if (other.MaxFriends != 0) { - MaxFriends = other.MaxFriends; - } - if (other.MaxReceivedInvitations != 0) { - MaxReceivedInvitations = other.MaxReceivedInvitations; - } - if (other.MaxSentInvitations != 0) { - MaxSentInvitations = other.MaxSentInvitations; - } - role_.Add(other.role_); - friends_.Add(other.friends_); - sentInvitations_.Add(other.sentInvitations_); - receivedInvitations_.Add(other.receivedInvitations_); - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - MaxFriends = input.ReadUInt32(); - break; - } - case 16: { - MaxReceivedInvitations = input.ReadUInt32(); - break; - } - case 24: { - MaxSentInvitations = input.ReadUInt32(); - break; - } - case 34: { - role_.AddEntriesFrom(input, _repeated_role_codec); - break; - } - case 42: { - friends_.AddEntriesFrom(input, _repeated_friends_codec); - break; - } - case 50: { - sentInvitations_.AddEntriesFrom(input, _repeated_sentInvitations_codec); - break; - } - case 58: { - receivedInvitations_.AddEntriesFrom(input, _repeated_receivedInvitations_codec); + case 26: { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + input.ReadMessage(Forward); break; } } @@ -502,58 +409,119 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class UnsubscribeRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[2]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest(UnsubscribeRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; objectId_ = other.objectId_; + forward_ = other.HasForward ? other.forward_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest Clone() { return new UnsubscribeRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "object_id" field. public const int ObjectIdFieldNumber = 2; + private readonly static ulong ObjectIdDefaultValue = 0UL; + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ObjectId { - get { return objectId_; } + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } set { + _hasBits0 |= 1; objectId_ = value; } } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 3; + private global::Bgs.Protocol.ObjectAddress forward_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ObjectAddress Forward { + get { return forward_; } + set { + forward_ = value; + } + } + /// Gets whether the forward field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForward { + get { return forward_ != null; } + } + /// Clears the value of the forward field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForward() { + forward_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UnsubscribeRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UnsubscribeRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -563,134 +531,1273 @@ namespace Bgs.Protocol.Friends.V1 } if (!object.Equals(AgentId, other.AgentId)) return false; if (ObjectId != other.ObjectId) return false; - return true; + if (!object.Equals(Forward, other.Forward)) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (HasForward) hash ^= Forward.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (ObjectId != 0UL) { + if (HasObjectId) { output.WriteRawTag(16); output.WriteUInt64(ObjectId); } + if (HasForward) { + output.WriteRawTag(26); + output.WriteMessage(Forward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (ObjectId != 0UL) { + if (HasObjectId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); } + if (HasForward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UnsubscribeRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.ObjectId != 0UL) { + if (other.HasObjectId) { ObjectId = other.ObjectId; } + if (other.HasForward) { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + Forward.MergeFrom(other.Forward); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 16: { ObjectId = input.ReadUInt64(); break; } + case 26: { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + input.ReadMessage(Forward); + break; + } } } } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GenericFriendRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenericFriendRequest()); - public static pb::MessageParser Parser { get { return _parser; } } + public sealed partial class SendInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[3]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[2]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } - public GenericFriendRequest() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationRequest() { OnConstruction(); } partial void OnConstruction(); - public GenericFriendRequest(GenericFriendRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationRequest(SendInvitationRequest other) : this() { + agentIdentity_ = other.HasAgentIdentity ? other.agentIdentity_.Clone() : null; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + params_ = other.HasParams ? other.params_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - public GenericFriendRequest Clone() { - return new GenericFriendRequest(this); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendInvitationRequest Clone() { + return new SendInvitationRequest(this); } - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } + /// Field number for the "agent_identity" field. + public const int AgentIdentityFieldNumber = 1; + private global::Bgs.Protocol.Identity agentIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Identity AgentIdentity { + get { return agentIdentity_; } set { - agentId_ = value; + agentIdentity_ = value; } } + /// Gets whether the agent_identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentIdentity { + get { return agentIdentity_ != null; } + } + /// Clears the value of the agent_identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentIdentity() { + agentIdentity_ = null; + } /// Field number for the "target_id" field. public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId { + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { get { return targetId_; } set { targetId_ = value; } } - - public override bool Equals(object other) { - return Equals(other as GenericFriendRequest); + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; } - public bool Equals(GenericFriendRequest other) { + /// Field number for the "params" field. + public const int ParamsFieldNumber = 3; + private global::Bgs.Protocol.InvitationParams params_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.InvitationParams Params { + get { return params_; } + set { + params_ = value; + } + } + /// Gets whether the params field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasParams { + get { return params_ != null; } + } + /// Clears the value of the params field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearParams() { + params_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SendInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SendInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentIdentity, other.AgentIdentity)) return false; + if (!object.Equals(TargetId, other.TargetId)) return false; + if (!object.Equals(Params, other.Params)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentIdentity) hash ^= AgentIdentity.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (HasParams) hash ^= Params.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentIdentity) { + output.WriteRawTag(10); + output.WriteMessage(AgentIdentity); + } + if (HasTargetId) { + output.WriteRawTag(18); + output.WriteMessage(TargetId); + } + if (HasParams) { + output.WriteRawTag(26); + output.WriteMessage(Params); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentIdentity) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentIdentity); + } + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + if (HasParams) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Params); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SendInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentIdentity) { + if (!HasAgentIdentity) { + AgentIdentity = new global::Bgs.Protocol.Identity(); + } + AgentIdentity.MergeFrom(other.AgentIdentity); + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); + } + TargetId.MergeFrom(other.TargetId); + } + if (other.HasParams) { + if (!HasParams) { + Params = new global::Bgs.Protocol.InvitationParams(); + } + Params.MergeFrom(other.Params); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentIdentity) { + AgentIdentity = new global::Bgs.Protocol.Identity(); + } + input.ReadMessage(AgentIdentity); + break; + } + case 18: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(TargetId); + break; + } + case 26: { + if (!HasParams) { + Params = new global::Bgs.Protocol.InvitationParams(); + } + input.ReadMessage(Params); + break; + } + } + } + } + + } + + public sealed partial class RevokeInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RevokeInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeInvitationRequest(RevokeInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + invitationId_ = other.invitationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeInvitationRequest Clone() { + return new RevokeInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 2; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 1; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RevokeInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RevokeInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (InvitationId != other.InvitationId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasInvitationId) { + output.WriteRawTag(17); + output.WriteFixed64(InvitationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RevokeInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + case 17: { + InvitationId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class AcceptInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcceptInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationRequest(AcceptInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + invitationId_ = other.invitationId_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationRequest Clone() { + return new AcceptInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 3; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 1; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 4; + private global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AcceptInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AcceptInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (InvitationId != other.InvitationId) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasInvitationId) { + output.WriteRawTag(25); + output.WriteFixed64(InvitationId); + } + if (HasOptions) { + output.WriteRawTag(34); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AcceptInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + case 25: { + InvitationId = input.ReadFixed64(); + break; + } + case 34: { + if (!HasOptions) { + Options = new global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class DeclineInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeclineInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineInvitationRequest(DeclineInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + invitationId_ = other.invitationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeclineInvitationRequest Clone() { + return new DeclineInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 3; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 1; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DeclineInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DeclineInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (InvitationId != other.InvitationId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasInvitationId) { + output.WriteRawTag(25); + output.WriteFixed64(InvitationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DeclineInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + case 25: { + InvitationId = input.ReadFixed64(); + break; + } + } + } + } + + } + + public sealed partial class IgnoreInvitationRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IgnoreInvitationRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgnoreInvitationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgnoreInvitationRequest(IgnoreInvitationRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + invitationId_ = other.invitationId_; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IgnoreInvitationRequest Clone() { + return new IgnoreInvitationRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 3; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 1; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~1; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 4; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 2) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 2; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IgnoreInvitationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(IgnoreInvitationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (InvitationId != other.InvitationId) return false; + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasInvitationId) { + output.WriteRawTag(25); + output.WriteFixed64(InvitationId); + } + if (HasProgram) { + output.WriteRawTag(37); + output.WriteFixed32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (HasProgram) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(IgnoreInvitationRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + case 25: { + InvitationId = input.ReadFixed64(); + break; + } + case 37: { + Program = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class RemoveFriendRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveFriendRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveFriendRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveFriendRequest(RemoveFriendRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RemoveFriendRequest Clone() { + return new RemoveFriendRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RemoveFriendRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RemoveFriendRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -699,79 +1806,95 @@ namespace Bgs.Protocol.Friends.V1 } if (!object.Equals(AgentId, other.AgentId)) return false; if (!object.Equals(TargetId, other.TargetId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { output.WriteRawTag(18); output.WriteMessage(TargetId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } - public void MergeFrom(GenericFriendRequest other) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RemoveFriendRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } TargetId.MergeFrom(other.TargetId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(targetId_); + input.ReadMessage(TargetId); break; } } @@ -780,178 +1903,68 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GenericFriendResponse : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenericFriendResponse()); - public static pb::MessageParser Parser { get { return _parser; } } + public sealed partial class RevokeAllInvitationsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RevokeAllInvitationsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[4]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[8]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } - public GenericFriendResponse() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeAllInvitationsRequest() { OnConstruction(); } partial void OnConstruction(); - public GenericFriendResponse(GenericFriendResponse other) : this() { - TargetFriend = other.targetFriend_ != null ? other.TargetFriend.Clone() : null; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeAllInvitationsRequest(RevokeAllInvitationsRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - public GenericFriendResponse Clone() { - return new GenericFriendResponse(this); - } - - /// Field number for the "target_friend" field. - public const int TargetFriendFieldNumber = 1; - private Bgs.Protocol.Friends.V1.Friend targetFriend_; - public Bgs.Protocol.Friends.V1.Friend TargetFriend { - get { return targetFriend_; } - set { - targetFriend_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as GenericFriendResponse); - } - - public bool Equals(GenericFriendResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(TargetFriend, other.TargetFriend)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (targetFriend_ != null) hash ^= TargetFriend.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (targetFriend_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TargetFriend); - } - } - - public int CalculateSize() { - int size = 0; - if (targetFriend_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetFriend); - } - return size; - } - - public void MergeFrom(GenericFriendResponse other) { - if (other == null) { - return; - } - if (other.targetFriend_ != null) { - if (targetFriend_ == null) { - targetFriend_ = new Bgs.Protocol.Friends.V1.Friend(); - } - TargetFriend.MergeFrom(other.TargetFriend); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (targetFriend_ == null) { - targetFriend_ = new Bgs.Protocol.Friends.V1.Friend(); - } - input.ReadMessage(targetFriend_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AssignRoleRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssignRoleRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public AssignRoleRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public AssignRoleRequest(AssignRoleRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; - role_ = other.role_.Clone(); - } - - public AssignRoleRequest Clone() { - return new AssignRoleRequest(this); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RevokeAllInvitationsRequest Clone() { + return new RevokeAllInvitationsRequest(this); } /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + public const int AgentIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } - - /// Field number for the "target_id" field. - public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId { - get { return targetId_; } - set { - targetId_ = value; - } - } - - /// Field number for the "role" field. - public const int RoleFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_role_codec - = pb::FieldCodec.ForInt32(26); - private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); - public pbc::RepeatedField Role { - get { return role_; } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { - return Equals(other as AssignRoleRequest); + return Equals(other as RevokeAllInvitationsRequest); } - public bool Equals(AssignRoleRequest other) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RevokeAllInvitationsRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -959,90 +1972,74 @@ namespace Bgs.Protocol.Friends.V1 return true; } if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(TargetId, other.TargetId)) return false; - if(!role_.Equals(other.role_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); - hash ^= role_.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); + if (HasAgentId) { + output.WriteRawTag(18); output.WriteMessage(AgentId); } - if (targetId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TargetId); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - role_.WriteTo(output, _repeated_role_codec); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (targetId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } - size += role_.CalculateSize(_repeated_role_codec); return size; } - public void MergeFrom(AssignRoleRequest other) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RevokeAllInvitationsRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); - } - TargetId.MergeFrom(other.TargetId); - } - role_.Add(other.role_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(targetId_); - break; - } - case 26: - case 24: { - role_.AddEntriesFrom(input, _repeated_role_codec); + input.ReadMessage(AgentId); break; } } @@ -1051,68 +2048,89 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ViewFriendsRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ViewFriendsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[6]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[9]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ViewFriendsRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ViewFriendsRequest(ViewFriendsRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; - role_ = other.role_.Clone(); + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ViewFriendsRequest Clone() { return new ViewFriendsRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "target_id" field. public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId { + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { get { return targetId_; } set { targetId_ = value; } } - - /// Field number for the "role" field. - public const int RoleFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_role_codec - = pb::FieldCodec.ForUInt32(26); - private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); - public pbc::RepeatedField Role { - get { return role_; } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ViewFriendsRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ViewFriendsRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -1122,89 +2140,95 @@ namespace Bgs.Protocol.Friends.V1 } if (!object.Equals(AgentId, other.AgentId)) return false; if (!object.Equals(TargetId, other.TargetId)) return false; - if(!role_.Equals(other.role_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); - hash ^= role_.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { output.WriteRawTag(18); output.WriteMessage(TargetId); } - role_.WriteTo(output, _repeated_role_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); } - size += role_.CalculateSize(_repeated_role_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ViewFriendsRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } TargetId.MergeFrom(other.TargetId); } - role_.Add(other.role_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(targetId_); - break; - } - case 26: - case 24: { - role_.AddEntriesFrom(input, _repeated_role_codec); + input.ReadMessage(TargetId); break; } } @@ -1213,46 +2237,56 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ViewFriendsResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ViewFriendsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[7]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[10]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ViewFriendsResponse() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ViewFriendsResponse(ViewFriendsResponse other) : this() { friends_ = other.friends_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ViewFriendsResponse Clone() { return new ViewFriendsResponse(this); } /// Field number for the "friends" field. public const int FriendsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_friends_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Friends.V1.Friend.Parser); - private readonly pbc::RepeatedField friends_ = new pbc::RepeatedField(); - public pbc::RepeatedField Friends { + private static readonly pb::FieldCodec _repeated_friends_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Friends.V1.FriendOfFriend.Parser); + private readonly pbc::RepeatedField friends_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Friends { get { return friends_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ViewFriendsResponse); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ViewFriendsResponse other) { if (ReferenceEquals(other, null)) { return false; @@ -1261,42 +2295,58 @@ namespace Bgs.Protocol.Friends.V1 return true; } if(!friends_.Equals(other.friends_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= friends_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { friends_.WriteTo(output, _repeated_friends_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += friends_.CalculateSize(_repeated_friends_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ViewFriendsResponse other) { if (other == null) { return; } friends_.Add(other.friends_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { friends_.AddEntriesFrom(input, _repeated_friends_codec); @@ -1308,79 +2358,100 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class UpdateFriendStateRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateFriendStateRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[8]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[11]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateFriendStateRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateFriendStateRequest(UpdateFriendStateRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; attribute_ = other.attribute_.Clone(); - attributesEpoch_ = other.attributesEpoch_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateFriendStateRequest Clone() { return new UpdateFriendStateRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "target_id" field. public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId { + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { get { return targetId_; } set { targetId_ = value; } } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { get { return attribute_; } } - /// Field number for the "attributes_epoch" field. - public const int AttributesEpochFieldNumber = 4; - private ulong attributesEpoch_; - public ulong AttributesEpoch { - get { return attributesEpoch_; } - set { - attributesEpoch_ = value; - } - } - + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UpdateFriendStateRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UpdateFriendStateRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -1391,185 +2462,695 @@ namespace Bgs.Protocol.Friends.V1 if (!object.Equals(AgentId, other.AgentId)) return false; if (!object.Equals(TargetId, other.TargetId)) return false; if(!attribute_.Equals(other.attribute_)) return false; - if (AttributesEpoch != other.AttributesEpoch) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); hash ^= attribute_.GetHashCode(); - if (AttributesEpoch != 0UL) hash ^= AttributesEpoch.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { output.WriteRawTag(18); output.WriteMessage(TargetId); } attribute_.WriteTo(output, _repeated_attribute_codec); - if (AttributesEpoch != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(AttributesEpoch); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); } size += attribute_.CalculateSize(_repeated_attribute_codec); - if (AttributesEpoch != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AttributesEpoch); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UpdateFriendStateRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } TargetId.MergeFrom(other.TargetId); } attribute_.Add(other.attribute_); - if (other.AttributesEpoch != 0UL) { - AttributesEpoch = other.AttributesEpoch; - } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(targetId_); + input.ReadMessage(TargetId); break; } case 26: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } - case 32: { - AttributesEpoch = input.ReadUInt64(); - break; - } } } } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class FriendNotification : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendNotification()); - public static pb::MessageParser Parser { get { return _parser; } } + public sealed partial class GetFriendListRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFriendListRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[9]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[12]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetFriendListRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetFriendListRequest(GetFriendListRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetFriendListRequest Clone() { + return new GetFriendListRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetFriendListRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetFriendListRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(18); + output.WriteMessage(AgentId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetFriendListRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + } + } + } + + } + + public sealed partial class GetFriendListResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFriendListResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetFriendListResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetFriendListResponse(GetFriendListResponse other) : this() { + friends_ = other.friends_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetFriendListResponse Clone() { + return new GetFriendListResponse(this); + } + + /// Field number for the "friends" field. + public const int FriendsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_friends_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Friends.V1.Friend.Parser); + private readonly pbc::RepeatedField friends_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Friends { + get { return friends_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetFriendListResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetFriendListResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!friends_.Equals(other.friends_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= friends_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + friends_.WriteTo(output, _repeated_friends_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += friends_.CalculateSize(_repeated_friends_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetFriendListResponse other) { + if (other == null) { + return; + } + friends_.Add(other.friends_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + friends_.AddEntriesFrom(input, _repeated_friends_codec); + break; + } + } + } + } + + } + + public sealed partial class CreateFriendshipRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateFriendshipRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateFriendshipRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateFriendshipRequest(CreateFriendshipRequest other) : this() { + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + role_ = other.role_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CreateFriendshipRequest Clone() { + return new CreateFriendshipRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "target_id" field. + public const int TargetIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { + get { return targetId_; } + set { + targetId_ = value; + } + } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForUInt32(26); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CreateFriendshipRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CreateFriendshipRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(TargetId, other.TargetId)) return false; + if(!role_.Equals(other.role_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + hash ^= role_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasTargetId) { + output.WriteRawTag(18); + output.WriteMessage(TargetId); + } + role_.WriteTo(output, _repeated_role_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasTargetId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); + } + size += role_.CalculateSize(_repeated_role_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CreateFriendshipRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); + } + TargetId.MergeFrom(other.TargetId); + } + role_.Add(other.role_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(TargetId); + break; + } + case 26: + case 24: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + } + } + } + + } + + public sealed partial class FriendNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendNotification() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendNotification(FriendNotification other) : this() { - Target = other.target_ != null ? other.Target.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - Peer = other.peer_ != null ? other.Peer.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; + target_ = other.HasTarget ? other.target_.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + forward_ = other.HasForward ? other.forward_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendNotification Clone() { return new FriendNotification(this); } /// Field number for the "target" field. public const int TargetFieldNumber = 1; - private Bgs.Protocol.Friends.V1.Friend target_; - public Bgs.Protocol.Friends.V1.Friend Target { + private global::Bgs.Protocol.Friends.V1.Friend target_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Friends.V1.Friend Target { get { return target_; } set { target_ = value; } } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId { - get { return gameAccountId_; } - set { - gameAccountId_ = value; - } + /// Gets whether the target field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTarget { + get { return target_ != null; } } - - /// Field number for the "peer" field. - public const int PeerFieldNumber = 4; - private Bgs.Protocol.ProcessId peer_; - public Bgs.Protocol.ProcessId Peer { - get { return peer_; } - set { - peer_ = value; - } + /// Clears the value of the target field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTarget() { + target_ = null; } /// Field number for the "account_id" field. public const int AccountIdFieldNumber = 5; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId { + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { get { return accountId_; } set { accountId_ = value; } } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 6; + private global::Bgs.Protocol.ObjectAddress forward_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ObjectAddress Forward { + get { return forward_; } + set { + forward_ = value; + } + } + /// Gets whether the forward field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForward { + get { return forward_ != null; } + } + /// Clears the value of the forward field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForward() { + forward_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FriendNotification); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FriendNotification other) { if (ReferenceEquals(other, null)) { return false; @@ -1578,124 +3159,118 @@ namespace Bgs.Protocol.Friends.V1 return true; } if (!object.Equals(Target, other.Target)) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (!object.Equals(Peer, other.Peer)) return false; if (!object.Equals(AccountId, other.AccountId)) return false; - return true; + if (!object.Equals(Forward, other.Forward)) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (target_ != null) hash ^= Target.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (peer_ != null) hash ^= Peer.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); + if (HasTarget) hash ^= Target.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasForward) hash ^= Forward.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (target_ != null) { + if (HasTarget) { output.WriteRawTag(10); output.WriteMessage(Target); } - if (gameAccountId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(GameAccountId); - } - if (peer_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Peer); - } - if (accountId_ != null) { + if (HasAccountId) { output.WriteRawTag(42); output.WriteMessage(AccountId); } + if (HasForward) { + output.WriteRawTag(50); + output.WriteMessage(Forward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (target_ != null) { + if (HasTarget) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target); } - if (gameAccountId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (peer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Peer); - } - if (accountId_ != null) { + if (HasAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); } + if (HasForward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FriendNotification other) { if (other == null) { return; } - if (other.target_ != null) { - if (target_ == null) { - target_ = new Bgs.Protocol.Friends.V1.Friend(); + if (other.HasTarget) { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Friends.V1.Friend(); } Target.MergeFrom(other.Target); } - if (other.gameAccountId_ != null) { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.peer_ != null) { - if (peer_ == null) { - peer_ = new Bgs.Protocol.ProcessId(); - } - Peer.MergeFrom(other.Peer); - } - if (other.accountId_ != null) { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } AccountId.MergeFrom(other.AccountId); } + if (other.HasForward) { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + Forward.MergeFrom(other.Forward); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (target_ == null) { - target_ = new Bgs.Protocol.Friends.V1.Friend(); + if (!HasTarget) { + Target = new global::Bgs.Protocol.Friends.V1.Friend(); } - input.ReadMessage(target_); - break; - } - case 18: { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 34: { - if (peer_ == null) { - peer_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(peer_); + input.ReadMessage(Target); break; } case 42: { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(accountId_); + input.ReadMessage(AccountId); + break; + } + case 50: { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + input.ReadMessage(Forward); break; } } @@ -1704,80 +3279,114 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class UpdateFriendStateNotification : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateFriendStateNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[10]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[16]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateFriendStateNotification() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateFriendStateNotification(UpdateFriendStateNotification other) : this() { - ChangedFriend = other.changedFriend_ != null ? other.ChangedFriend.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - Peer = other.peer_ != null ? other.Peer.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; + changedFriend_ = other.HasChangedFriend ? other.changedFriend_.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + forward_ = other.HasForward ? other.forward_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateFriendStateNotification Clone() { return new UpdateFriendStateNotification(this); } /// Field number for the "changed_friend" field. public const int ChangedFriendFieldNumber = 1; - private Bgs.Protocol.Friends.V1.Friend changedFriend_; - public Bgs.Protocol.Friends.V1.Friend ChangedFriend { + private global::Bgs.Protocol.Friends.V1.Friend changedFriend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Friends.V1.Friend ChangedFriend { get { return changedFriend_; } set { changedFriend_ = value; } } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId { - get { return gameAccountId_; } - set { - gameAccountId_ = value; - } + /// Gets whether the changed_friend field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasChangedFriend { + get { return changedFriend_ != null; } } - - /// Field number for the "peer" field. - public const int PeerFieldNumber = 4; - private Bgs.Protocol.ProcessId peer_; - public Bgs.Protocol.ProcessId Peer { - get { return peer_; } - set { - peer_ = value; - } + /// Clears the value of the changed_friend field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearChangedFriend() { + changedFriend_ = null; } /// Field number for the "account_id" field. public const int AccountIdFieldNumber = 5; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId { + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { get { return accountId_; } set { accountId_ = value; } } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 6; + private global::Bgs.Protocol.ObjectAddress forward_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ObjectAddress Forward { + get { return forward_; } + set { + forward_ = value; + } + } + /// Gets whether the forward field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForward { + get { return forward_ != null; } + } + /// Clears the value of the forward field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForward() { + forward_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UpdateFriendStateNotification); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UpdateFriendStateNotification other) { if (ReferenceEquals(other, null)) { return false; @@ -1786,124 +3395,118 @@ namespace Bgs.Protocol.Friends.V1 return true; } if (!object.Equals(ChangedFriend, other.ChangedFriend)) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (!object.Equals(Peer, other.Peer)) return false; if (!object.Equals(AccountId, other.AccountId)) return false; - return true; + if (!object.Equals(Forward, other.Forward)) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (changedFriend_ != null) hash ^= ChangedFriend.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (peer_ != null) hash ^= Peer.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); + if (HasChangedFriend) hash ^= ChangedFriend.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasForward) hash ^= Forward.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (changedFriend_ != null) { + if (HasChangedFriend) { output.WriteRawTag(10); output.WriteMessage(ChangedFriend); } - if (gameAccountId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(GameAccountId); - } - if (peer_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Peer); - } - if (accountId_ != null) { + if (HasAccountId) { output.WriteRawTag(42); output.WriteMessage(AccountId); } + if (HasForward) { + output.WriteRawTag(50); + output.WriteMessage(Forward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (changedFriend_ != null) { + if (HasChangedFriend) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedFriend); } - if (gameAccountId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (peer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Peer); - } - if (accountId_ != null) { + if (HasAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); } + if (HasForward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UpdateFriendStateNotification other) { if (other == null) { return; } - if (other.changedFriend_ != null) { - if (changedFriend_ == null) { - changedFriend_ = new Bgs.Protocol.Friends.V1.Friend(); + if (other.HasChangedFriend) { + if (!HasChangedFriend) { + ChangedFriend = new global::Bgs.Protocol.Friends.V1.Friend(); } ChangedFriend.MergeFrom(other.ChangedFriend); } - if (other.gameAccountId_ != null) { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.peer_ != null) { - if (peer_ == null) { - peer_ = new Bgs.Protocol.ProcessId(); - } - Peer.MergeFrom(other.Peer); - } - if (other.accountId_ != null) { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } AccountId.MergeFrom(other.AccountId); } + if (other.HasForward) { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + Forward.MergeFrom(other.Forward); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (changedFriend_ == null) { - changedFriend_ = new Bgs.Protocol.Friends.V1.Friend(); + if (!HasChangedFriend) { + ChangedFriend = new global::Bgs.Protocol.Friends.V1.Friend(); } - input.ReadMessage(changedFriend_); - break; - } - case 18: { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 34: { - if (peer_ == null) { - peer_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(peer_); + input.ReadMessage(ChangedFriend); break; } case 42: { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(accountId_); + input.ReadMessage(AccountId); + break; + } + case 50: { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + input.ReadMessage(Forward); break; } } @@ -1912,91 +3515,141 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class InvitationNotification : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvitationNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[11]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[17]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public InvitationNotification() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public InvitationNotification(InvitationNotification other) : this() { - Invitation = other.invitation_ != null ? other.Invitation.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; + _hasBits0 = other._hasBits0; + invitation_ = other.HasInvitation ? other.invitation_.Clone() : null; reason_ = other.reason_; - Peer = other.peer_ != null ? other.Peer.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + forward_ = other.HasForward ? other.forward_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public InvitationNotification Clone() { return new InvitationNotification(this); } /// Field number for the "invitation" field. public const int InvitationFieldNumber = 1; - private Bgs.Protocol.Invitation invitation_; - public Bgs.Protocol.Invitation Invitation { + private global::Bgs.Protocol.Friends.V1.ReceivedInvitation invitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Friends.V1.ReceivedInvitation Invitation { get { return invitation_; } set { invitation_ = value; } } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId { - get { return gameAccountId_; } - set { - gameAccountId_ = value; - } + /// Gets whether the invitation field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitation { + get { return invitation_ != null; } + } + /// Clears the value of the invitation field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitation() { + invitation_ = null; } /// Field number for the "reason" field. public const int ReasonFieldNumber = 3; + private readonly static uint ReasonDefaultValue = 0; + private uint reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Reason { - get { return reason_; } + get { if ((_hasBits0 & 1) != 0) { return reason_; } else { return ReasonDefaultValue; } } set { + _hasBits0 |= 1; reason_ = value; } } - - /// Field number for the "peer" field. - public const int PeerFieldNumber = 4; - private Bgs.Protocol.ProcessId peer_; - public Bgs.Protocol.ProcessId Peer { - get { return peer_; } - set { - peer_ = value; - } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~1; } /// Field number for the "account_id" field. public const int AccountIdFieldNumber = 5; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId { + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { get { return accountId_; } set { accountId_ = value; } } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 6; + private global::Bgs.Protocol.ObjectAddress forward_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ObjectAddress Forward { + get { return forward_; } + set { + forward_ = value; + } + } + /// Gets whether the forward field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForward { + get { return forward_ != null; } + } + /// Clears the value of the forward field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForward() { + forward_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as InvitationNotification); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(InvitationNotification other) { if (ReferenceEquals(other, null)) { return false; @@ -2005,122 +3658,635 @@ namespace Bgs.Protocol.Friends.V1 return true; } if (!object.Equals(Invitation, other.Invitation)) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; if (Reason != other.Reason) return false; - if (!object.Equals(Peer, other.Peer)) return false; if (!object.Equals(AccountId, other.AccountId)) return false; - return true; + if (!object.Equals(Forward, other.Forward)) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (invitation_ != null) hash ^= Invitation.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (Reason != 0) hash ^= Reason.GetHashCode(); - if (peer_ != null) hash ^= Peer.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); + if (HasInvitation) hash ^= Invitation.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasForward) hash ^= Forward.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (invitation_ != null) { + if (HasInvitation) { output.WriteRawTag(10); output.WriteMessage(Invitation); } - if (gameAccountId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(GameAccountId); - } - if (Reason != 0) { + if (HasReason) { output.WriteRawTag(24); output.WriteUInt32(Reason); } - if (peer_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Peer); - } - if (accountId_ != null) { + if (HasAccountId) { output.WriteRawTag(42); output.WriteMessage(AccountId); } + if (HasForward) { + output.WriteRawTag(50); + output.WriteMessage(Forward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (invitation_ != null) { + if (HasInvitation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation); } - if (gameAccountId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (Reason != 0) { + if (HasReason) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason); } - if (peer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Peer); - } - if (accountId_ != null) { + if (HasAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); } + if (HasForward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(InvitationNotification other) { if (other == null) { return; } - if (other.invitation_ != null) { - if (invitation_ == null) { - invitation_ = new Bgs.Protocol.Invitation(); + if (other.HasInvitation) { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Friends.V1.ReceivedInvitation(); } Invitation.MergeFrom(other.Invitation); } - if (other.gameAccountId_ != null) { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.Reason != 0) { + if (other.HasReason) { Reason = other.Reason; } - if (other.peer_ != null) { - if (peer_ == null) { - peer_ = new Bgs.Protocol.ProcessId(); - } - Peer.MergeFrom(other.Peer); - } - if (other.accountId_ != null) { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } AccountId.MergeFrom(other.AccountId); } + if (other.HasForward) { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + Forward.MergeFrom(other.Forward); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (invitation_ == null) { - invitation_ = new Bgs.Protocol.Invitation(); + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Friends.V1.ReceivedInvitation(); } - input.ReadMessage(invitation_); + input.ReadMessage(Invitation); + break; + } + case 24: { + Reason = input.ReadUInt32(); + break; + } + case 42: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); + break; + } + case 50: { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + input.ReadMessage(Forward); + break; + } + } + } + } + + } + + public sealed partial class SentInvitationAddedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SentInvitationAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitationAddedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitationAddedNotification(SentInvitationAddedNotification other) : this() { + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + invitation_ = other.HasInvitation ? other.invitation_.Clone() : null; + forward_ = other.HasForward ? other.forward_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitationAddedNotification Clone() { + return new SentInvitationAddedNotification(this); + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + /// Field number for the "invitation" field. + public const int InvitationFieldNumber = 2; + private global::Bgs.Protocol.Friends.V1.SentInvitation invitation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Friends.V1.SentInvitation Invitation { + get { return invitation_; } + set { + invitation_ = value; + } + } + /// Gets whether the invitation field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitation { + get { return invitation_ != null; } + } + /// Clears the value of the invitation field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitation() { + invitation_ = null; + } + + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 3; + private global::Bgs.Protocol.ObjectAddress forward_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ObjectAddress Forward { + get { return forward_; } + set { + forward_ = value; + } + } + /// Gets whether the forward field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForward { + get { return forward_ != null; } + } + /// Clears the value of the forward field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForward() { + forward_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SentInvitationAddedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SentInvitationAddedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountId, other.AccountId)) return false; + if (!object.Equals(Invitation, other.Invitation)) return false; + if (!object.Equals(Forward, other.Forward)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasInvitation) hash ^= Invitation.GetHashCode(); + if (HasForward) hash ^= Forward.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountId) { + output.WriteRawTag(10); + output.WriteMessage(AccountId); + } + if (HasInvitation) { + output.WriteRawTag(18); + output.WriteMessage(Invitation); + } + if (HasForward) { + output.WriteRawTag(26); + output.WriteMessage(Forward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + if (HasInvitation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation); + } + if (HasForward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SentInvitationAddedNotification other) { + if (other == null) { + return; + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + AccountId.MergeFrom(other.AccountId); + } + if (other.HasInvitation) { + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Friends.V1.SentInvitation(); + } + Invitation.MergeFrom(other.Invitation); + } + if (other.HasForward) { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + Forward.MergeFrom(other.Forward); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); break; } case 18: { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); + if (!HasInvitation) { + Invitation = new global::Bgs.Protocol.Friends.V1.SentInvitation(); } - input.ReadMessage(gameAccountId_); + input.ReadMessage(Invitation); + break; + } + case 26: { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + input.ReadMessage(Forward); + break; + } + } + } + } + + } + + public sealed partial class SentInvitationRemovedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SentInvitationRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitationRemovedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitationRemovedNotification(SentInvitationRemovedNotification other) : this() { + _hasBits0 = other._hasBits0; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + invitationId_ = other.invitationId_; + reason_ = other.reason_; + forward_ = other.HasForward ? other.forward_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitationRemovedNotification Clone() { + return new SentInvitationRemovedNotification(this); + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + /// Field number for the "invitation_id" field. + public const int InvitationIdFieldNumber = 2; + private readonly static ulong InvitationIdDefaultValue = 0UL; + + private ulong invitationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong InvitationId { + get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } } + set { + _hasBits0 |= 1; + invitationId_ = value; + } + } + /// Gets whether the "invitation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "invitation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationId() { + _hasBits0 &= ~1; + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 3; + private readonly static uint ReasonDefaultValue = 0; + + private uint reason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Reason { + get { if ((_hasBits0 & 2) != 0) { return reason_; } else { return ReasonDefaultValue; } } + set { + _hasBits0 |= 2; + reason_ = value; + } + } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReason { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReason() { + _hasBits0 &= ~2; + } + + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 4; + private global::Bgs.Protocol.ObjectAddress forward_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ObjectAddress Forward { + get { return forward_; } + set { + forward_ = value; + } + } + /// Gets whether the forward field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForward { + get { return forward_ != null; } + } + /// Clears the value of the forward field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForward() { + forward_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SentInvitationRemovedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SentInvitationRemovedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountId, other.AccountId)) return false; + if (InvitationId != other.InvitationId) return false; + if (Reason != other.Reason) return false; + if (!object.Equals(Forward, other.Forward)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasInvitationId) hash ^= InvitationId.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); + if (HasForward) hash ^= Forward.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountId) { + output.WriteRawTag(10); + output.WriteMessage(AccountId); + } + if (HasInvitationId) { + output.WriteRawTag(17); + output.WriteFixed64(InvitationId); + } + if (HasReason) { + output.WriteRawTag(24); + output.WriteUInt32(Reason); + } + if (HasForward) { + output.WriteRawTag(34); + output.WriteMessage(Forward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + if (HasInvitationId) { + size += 1 + 8; + } + if (HasReason) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason); + } + if (HasForward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SentInvitationRemovedNotification other) { + if (other == null) { + return; + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + AccountId.MergeFrom(other.AccountId); + } + if (other.HasInvitationId) { + InvitationId = other.InvitationId; + } + if (other.HasReason) { + Reason = other.Reason; + } + if (other.HasForward) { + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); + } + Forward.MergeFrom(other.Forward); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); + break; + } + case 17: { + InvitationId = input.ReadFixed64(); break; } case 24: { @@ -2128,17 +4294,10 @@ namespace Bgs.Protocol.Friends.V1 break; } case 34: { - if (peer_ == null) { - peer_ = new Bgs.Protocol.ProcessId(); + if (!HasForward) { + Forward = new global::Bgs.Protocol.ObjectAddress(); } - input.ReadMessage(peer_); - break; - } - case 42: { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(accountId_); + input.ReadMessage(Forward); break; } } diff --git a/Source/Framework/Proto/FriendsTypes.cs b/Source/Framework/Proto/FriendsTypes.cs index 7abc6a42b..bc18595ae 100644 --- a/Source/Framework/Proto/FriendsTypes.cs +++ b/Source/Framework/Proto/FriendsTypes.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/friends_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/friends_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Friends.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Friends.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/friends_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/friends_types.proto public static partial class FriendsTypesReflection { #region Descriptor @@ -21,89 +22,131 @@ namespace Bgs.Protocol.Friends.V1 private static pbr::FileDescriptor descriptor; static FriendsTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiViZ3MvbG93L3BiL2NsaWVudC9mcmllbmRzX3R5cGVzLnByb3RvEhdiZ3Mu", "cHJvdG9jb2wuZnJpZW5kcy52MRonYmdzL2xvdy9wYi9jbGllbnQvYXR0cmli", "dXRlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw", "ZXMucHJvdG8aKGJncy9sb3cvcGIvY2xpZW50L2ludml0YXRpb25fdHlwZXMu", - "cHJvdG8ixwEKBkZyaWVuZBIqCgphY2NvdW50X2lkGAEgASgLMhYuYmdzLnBy", - "b3RvY29sLkVudGl0eUlkEioKCWF0dHJpYnV0ZRgCIAMoCzIXLmJncy5wcm90", - "b2NvbC5BdHRyaWJ1dGUSEAoEcm9sZRgDIAMoDUICEAESEgoKcHJpdmlsZWdl", - "cxgEIAEoBBIYChBhdHRyaWJ1dGVzX2Vwb2NoGAUgASgEEhEKCWZ1bGxfbmFt", - "ZRgGIAEoCRISCgpiYXR0bGVfdGFnGAcgASgJIoIBChBGcmllbmRJbnZpdGF0", - "aW9uEhYKDmZpcnN0X3JlY2VpdmVkGAEgASgIEhAKBHJvbGUYAiADKA1CAhAB", - "EkQKEWZyaWVuZF9pbnZpdGF0aW9uGGcgASgLMikuYmdzLnByb3RvY29sLmZy", - "aWVuZHMudjEuRnJpZW5kSW52aXRhdGlvbiKgAgoWRnJpZW5kSW52aXRhdGlv", - "blBhcmFtcxIUCgx0YXJnZXRfZW1haWwYASABKAkSGQoRdGFyZ2V0X2JhdHRs", - "ZV90YWcYAiABKAkSGgoSaW52aXRlcl9iYXR0bGVfdGFnGAMgASgJEhkKEWlu", - "dml0ZXJfZnVsbF9uYW1lGAQgASgJEhwKFGludml0ZWVfZGlzcGxheV9uYW1l", - "GAUgASgJEhAKBHJvbGUYBiADKA1CAhABEiYKGHByZXZpb3VzX3JvbGVfZGVw", - "cmVjYXRlZBgHIAMoDUIEEAEYARJGCg1mcmllbmRfcGFyYW1zGGcgASgLMi8u", - "YmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5kSW52aXRhdGlvblBhcmFt", - "c0IvChhibmV0LnByb3RvY29sLmZyaWVuZHMudjFCEUZyaWVuZHNUeXBlc1By", - "b3RvSAJiBnByb3RvMw==")); + "cHJvdG8aImJncy9sb3cvcGIvY2xpZW50L3JvbGVfdHlwZXMucHJvdG8iuwEK", + "BkZyaWVuZBIqCgphY2NvdW50X2lkGAEgAigLMhYuYmdzLnByb3RvY29sLkVu", + "dGl0eUlkEioKCWF0dHJpYnV0ZRgCIAMoCzIXLmJncy5wcm90b2NvbC5BdHRy", + "aWJ1dGUSEAoEcm9sZRgDIAMoDUICEAESEgoKcHJpdmlsZWdlcxgEIAEoBBIc", + "ChBhdHRyaWJ1dGVzX2Vwb2NoGAUgASgEQgIYARIVCg1jcmVhdGlvbl90aW1l", + "GAYgASgEIokBCg5GcmllbmRPZkZyaWVuZBIqCgphY2NvdW50X2lkGAEgASgL", + "MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEhAKBHJvbGUYAyADKA1CAhABEhIK", + "CnByaXZpbGVnZXMYBCABKAQSEQoJZnVsbF9uYW1lGAYgASgJEhIKCmJhdHRs", + "ZV90YWcYByABKAki3wEKElJlY2VpdmVkSW52aXRhdGlvbhIKCgJpZBgBIAIo", + "BhIwChBpbnZpdGVyX2lkZW50aXR5GAIgAigLMhYuYmdzLnByb3RvY29sLklk", + "ZW50aXR5EjAKEGludml0ZWVfaWRlbnRpdHkYAyACKAsyFi5iZ3MucHJvdG9j", + "b2wuSWRlbnRpdHkSFAoMaW52aXRlcl9uYW1lGAQgASgJEhQKDGludml0ZWVf", + "bmFtZRgFIAEoCRIVCg1jcmVhdGlvbl90aW1lGAcgASgEEg8KB3Byb2dyYW0Y", + "CSABKAcqBQhkEJFOIlAKEEZyaWVuZEludml0YXRpb24SEAoEcm9sZRgCIAMo", + "DUICEAESKgoJYXR0cmlidXRlGAMgAygLMhcuYmdzLnByb3RvY29sLkF0dHJp", + "YnV0ZSKTAQoOU2VudEludml0YXRpb24SCgoCaWQYASABKAYSEwoLdGFyZ2V0", + "X25hbWUYAiABKAkSDAoEcm9sZRgDIAEoDRIqCglhdHRyaWJ1dGUYBCADKAsy", + "Fy5iZ3MucHJvdG9jb2wuQXR0cmlidXRlEhUKDWNyZWF0aW9uX3RpbWUYBSAB", + "KAQSDwoHcHJvZ3JhbRgGIAEoByKxAQoWRnJpZW5kSW52aXRhdGlvblBhcmFt", + "cxIUCgx0YXJnZXRfZW1haWwYASABKAkSGQoRdGFyZ2V0X2JhdHRsZV90YWcY", + "AiABKAkSEAoEcm9sZRgGIAMoDUICEAESKgoJYXR0cmlidXRlGAggAygLMhcu", + "YmdzLnByb3RvY29sLkF0dHJpYnV0ZRITCgt0YXJnZXRfbmFtZRgJIAEoCRIT", + "Cgdwcm9ncmFtGAogASgHQgIYASLWAgoRU3Vic2NyaWJlUmVzcG9uc2USFwoL", + "bWF4X2ZyaWVuZHMYASABKA1CAhgBEiQKGG1heF9yZWNlaXZlZF9pbnZpdGF0", + "aW9ucxgCIAEoDUICGAESIAoUbWF4X3NlbnRfaW52aXRhdGlvbnMYAyABKA1C", + "AhgBEiAKBHJvbGUYBCADKAsyEi5iZ3MucHJvdG9jb2wuUm9sZRIwCgdmcmll", + "bmRzGAUgAygLMh8uYmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5kEkkK", + "FHJlY2VpdmVkX2ludml0YXRpb25zGAcgAygLMisuYmdzLnByb3RvY29sLmZy", + "aWVuZHMudjEuUmVjZWl2ZWRJbnZpdGF0aW9uEkEKEHNlbnRfaW52aXRhdGlv", + "bnMYCCADKAsyJy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5TZW50SW52aXRh", + "dGlvbiI4ChdBY2NlcHRJbnZpdGF0aW9uT3B0aW9ucxIMCgRyb2xlGAEgASgN", + "Eg8KB3Byb2dyYW0YAiABKAdCLQoYYm5ldC5wcm90b2NvbC5mcmllbmRzLnYx", + "QhFGcmllbmRzVHlwZXNQcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.InvitationTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.Friend), Bgs.Protocol.Friends.V1.Friend.Parser, new[]{ "AccountId", "Attribute", "Role", "Privileges", "AttributesEpoch", "FullName", "BattleTag" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.FriendInvitation), Bgs.Protocol.Friends.V1.FriendInvitation.Parser, new[]{ "FirstReceived", "Role", "FriendInvitation_" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.FriendInvitationParams), Bgs.Protocol.Friends.V1.FriendInvitationParams.Parser, new[]{ "TargetEmail", "TargetBattleTag", "InviterBattleTag", "InviterFullName", "InviteeDisplayName", "Role", "PreviousRoleDeprecated", "FriendParams" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.InvitationTypesReflection.Descriptor, global::Bgs.Protocol.RoleTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.Friend), global::Bgs.Protocol.Friends.V1.Friend.Parser, new[]{ "AccountId", "Attribute", "Role", "Privileges", "AttributesEpoch", "CreationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.FriendOfFriend), global::Bgs.Protocol.Friends.V1.FriendOfFriend.Parser, new[]{ "AccountId", "Role", "Privileges", "FullName", "BattleTag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.ReceivedInvitation), global::Bgs.Protocol.Friends.V1.ReceivedInvitation.Parser, new[]{ "Id", "InviterIdentity", "InviteeIdentity", "InviterName", "InviteeName", "CreationTime", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.FriendInvitation), global::Bgs.Protocol.Friends.V1.FriendInvitation.Parser, new[]{ "Role", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SentInvitation), global::Bgs.Protocol.Friends.V1.SentInvitation.Parser, new[]{ "Id", "TargetName", "Role", "Attribute", "CreationTime", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.FriendInvitationParams), global::Bgs.Protocol.Friends.V1.FriendInvitationParams.Parser, new[]{ "TargetEmail", "TargetBattleTag", "Role", "Attribute", "TargetName", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SubscribeResponse), global::Bgs.Protocol.Friends.V1.SubscribeResponse.Parser, new[]{ "MaxFriends", "MaxReceivedInvitations", "MaxSentInvitations", "Role", "Friends", "ReceivedInvitations", "SentInvitations" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions), global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions.Parser, new[]{ "Role", "Program" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class Friend : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Friend()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Friend() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Friend(Friend other) : this() { - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; + _hasBits0 = other._hasBits0; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; attribute_ = other.attribute_.Clone(); role_ = other.role_.Clone(); privileges_ = other.privileges_; attributesEpoch_ = other.attributesEpoch_; - fullName_ = other.fullName_; - battleTag_ = other.battleTag_; + creationTime_ = other.creationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Friend Clone() { return new Friend(this); } /// Field number for the "account_id" field. public const int AccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId { + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { get { return accountId_; } set { accountId_ = value; } } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { get { return attribute_; } } @@ -112,54 +155,92 @@ namespace Bgs.Protocol.Friends.V1 private static readonly pb::FieldCodec _repeated_role_codec = pb::FieldCodec.ForUInt32(26); private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Role { get { return role_; } } /// Field number for the "privileges" field. public const int PrivilegesFieldNumber = 4; + private readonly static ulong PrivilegesDefaultValue = 0UL; + private ulong privileges_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong Privileges { - get { return privileges_; } + get { if ((_hasBits0 & 1) != 0) { return privileges_; } else { return PrivilegesDefaultValue; } } set { + _hasBits0 |= 1; privileges_ = value; } } + /// Gets whether the "privileges" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivileges { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "privileges" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivileges() { + _hasBits0 &= ~1; + } /// Field number for the "attributes_epoch" field. public const int AttributesEpochFieldNumber = 5; + private readonly static ulong AttributesEpochDefaultValue = 0UL; + private ulong attributesEpoch_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong AttributesEpoch { - get { return attributesEpoch_; } + get { if ((_hasBits0 & 2) != 0) { return attributesEpoch_; } else { return AttributesEpochDefaultValue; } } set { + _hasBits0 |= 2; attributesEpoch_ = value; } } - - /// Field number for the "full_name" field. - public const int FullNameFieldNumber = 6; - private string fullName_ = ""; - public string FullName { - get { return fullName_; } - set { - fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + /// Gets whether the "attributes_epoch" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAttributesEpoch { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attributes_epoch" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAttributesEpoch() { + _hasBits0 &= ~2; } - /// Field number for the "battle_tag" field. - public const int BattleTagFieldNumber = 7; - private string battleTag_ = ""; - public string BattleTag { - get { return battleTag_; } + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 6; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 4) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } set { - battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + _hasBits0 |= 4; + creationTime_ = value; } } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~4; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Friend); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Friend other) { if (ReferenceEquals(other, null)) { return false; @@ -172,112 +253,116 @@ namespace Bgs.Protocol.Friends.V1 if(!role_.Equals(other.role_)) return false; if (Privileges != other.Privileges) return false; if (AttributesEpoch != other.AttributesEpoch) return false; - if (FullName != other.FullName) return false; - if (BattleTag != other.BattleTag) return false; - return true; + if (CreationTime != other.CreationTime) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (accountId_ != null) hash ^= AccountId.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); hash ^= attribute_.GetHashCode(); hash ^= role_.GetHashCode(); - if (Privileges != 0UL) hash ^= Privileges.GetHashCode(); - if (AttributesEpoch != 0UL) hash ^= AttributesEpoch.GetHashCode(); - if (FullName.Length != 0) hash ^= FullName.GetHashCode(); - if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode(); + if (HasPrivileges) hash ^= Privileges.GetHashCode(); + if (HasAttributesEpoch) hash ^= AttributesEpoch.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (accountId_ != null) { + if (HasAccountId) { output.WriteRawTag(10); output.WriteMessage(AccountId); } attribute_.WriteTo(output, _repeated_attribute_codec); role_.WriteTo(output, _repeated_role_codec); - if (Privileges != 0UL) { + if (HasPrivileges) { output.WriteRawTag(32); output.WriteUInt64(Privileges); } - if (AttributesEpoch != 0UL) { + if (HasAttributesEpoch) { output.WriteRawTag(40); output.WriteUInt64(AttributesEpoch); } - if (FullName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(FullName); + if (HasCreationTime) { + output.WriteRawTag(48); + output.WriteUInt64(CreationTime); } - if (BattleTag.Length != 0) { - output.WriteRawTag(58); - output.WriteString(BattleTag); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (accountId_ != null) { + if (HasAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); } size += attribute_.CalculateSize(_repeated_attribute_codec); size += role_.CalculateSize(_repeated_role_codec); - if (Privileges != 0UL) { + if (HasPrivileges) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Privileges); } - if (AttributesEpoch != 0UL) { + if (HasAttributesEpoch) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AttributesEpoch); } - if (FullName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName); + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); } - if (BattleTag.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Friend other) { if (other == null) { return; } - if (other.accountId_ != null) { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } AccountId.MergeFrom(other.AccountId); } attribute_.Add(other.attribute_); role_.Add(other.role_); - if (other.Privileges != 0UL) { + if (other.HasPrivileges) { Privileges = other.Privileges; } - if (other.AttributesEpoch != 0UL) { + if (other.HasAttributesEpoch) { AttributesEpoch = other.AttributesEpoch; } - if (other.FullName.Length != 0) { - FullName = other.FullName; - } - if (other.BattleTag.Length != 0) { - BattleTag = other.BattleTag; + if (other.HasCreationTime) { + CreationTime = other.CreationTime; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(accountId_); + input.ReadMessage(AccountId); break; } case 18: { @@ -297,6 +382,291 @@ namespace Bgs.Protocol.Friends.V1 AttributesEpoch = input.ReadUInt64(); break; } + case 48: { + CreationTime = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class FriendOfFriend : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendOfFriend()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FriendOfFriend() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FriendOfFriend(FriendOfFriend other) : this() { + _hasBits0 = other._hasBits0; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + role_ = other.role_.Clone(); + privileges_ = other.privileges_; + fullName_ = other.fullName_; + battleTag_ = other.battleTag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FriendOfFriend Clone() { + return new FriendOfFriend(this); + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForUInt32(26); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + /// Field number for the "privileges" field. + public const int PrivilegesFieldNumber = 4; + private readonly static ulong PrivilegesDefaultValue = 0UL; + + private ulong privileges_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Privileges { + get { if ((_hasBits0 & 1) != 0) { return privileges_; } else { return PrivilegesDefaultValue; } } + set { + _hasBits0 |= 1; + privileges_ = value; + } + } + /// Gets whether the "privileges" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivileges { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "privileges" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivileges() { + _hasBits0 &= ~1; + } + + /// Field number for the "full_name" field. + public const int FullNameFieldNumber = 6; + private readonly static string FullNameDefaultValue = ""; + + private string fullName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string FullName { + get { return fullName_ ?? FullNameDefaultValue; } + set { + fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "full_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFullName { + get { return fullName_ != null; } + } + /// Clears the value of the "full_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFullName() { + fullName_ = null; + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 7; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FriendOfFriend); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FriendOfFriend other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountId, other.AccountId)) return false; + if(!role_.Equals(other.role_)) return false; + if (Privileges != other.Privileges) return false; + if (FullName != other.FullName) return false; + if (BattleTag != other.BattleTag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAccountId) hash ^= AccountId.GetHashCode(); + hash ^= role_.GetHashCode(); + if (HasPrivileges) hash ^= Privileges.GetHashCode(); + if (HasFullName) hash ^= FullName.GetHashCode(); + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAccountId) { + output.WriteRawTag(10); + output.WriteMessage(AccountId); + } + role_.WriteTo(output, _repeated_role_codec); + if (HasPrivileges) { + output.WriteRawTag(32); + output.WriteUInt64(Privileges); + } + if (HasFullName) { + output.WriteRawTag(50); + output.WriteString(FullName); + } + if (HasBattleTag) { + output.WriteRawTag(58); + output.WriteString(BattleTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + size += role_.CalculateSize(_repeated_role_codec); + if (HasPrivileges) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Privileges); + } + if (HasFullName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName); + } + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FriendOfFriend other) { + if (other == null) { + return; + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + AccountId.MergeFrom(other.AccountId); + } + role_.Add(other.role_); + if (other.HasPrivileges) { + Privileges = other.Privileges; + } + if (other.HasFullName) { + FullName = other.FullName; + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); + break; + } + case 26: + case 24: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + case 32: { + Privileges = input.ReadUInt64(); + break; + } case 50: { FullName = input.ReadString(); break; @@ -311,68 +681,501 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class FriendInvitation : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendInvitation()); - public static pb::MessageParser Parser { get { return _parser; } } + public sealed partial class ReceivedInvitation : pb::IExtendableMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceivedInvitation()); + private pb::UnknownFieldSet _unknownFields; + private pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[2]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitation(ReceivedInvitation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + inviterIdentity_ = other.HasInviterIdentity ? other.inviterIdentity_.Clone() : null; + inviteeIdentity_ = other.HasInviteeIdentity ? other.inviteeIdentity_.Clone() : null; + inviterName_ = other.inviterName_; + inviteeName_ = other.inviteeName_; + creationTime_ = other.creationTime_; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReceivedInvitation Clone() { + return new ReceivedInvitation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static ulong IdDefaultValue = 0UL; + + private ulong id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "inviter_identity" field. + public const int InviterIdentityFieldNumber = 2; + private global::Bgs.Protocol.Identity inviterIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Identity InviterIdentity { + get { return inviterIdentity_; } + set { + inviterIdentity_ = value; + } + } + /// Gets whether the inviter_identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviterIdentity { + get { return inviterIdentity_ != null; } + } + /// Clears the value of the inviter_identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviterIdentity() { + inviterIdentity_ = null; + } + + /// Field number for the "invitee_identity" field. + public const int InviteeIdentityFieldNumber = 3; + private global::Bgs.Protocol.Identity inviteeIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Identity InviteeIdentity { + get { return inviteeIdentity_; } + set { + inviteeIdentity_ = value; + } + } + /// Gets whether the invitee_identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviteeIdentity { + get { return inviteeIdentity_ != null; } + } + /// Clears the value of the invitee_identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviteeIdentity() { + inviteeIdentity_ = null; + } + + /// Field number for the "inviter_name" field. + public const int InviterNameFieldNumber = 4; + private readonly static string InviterNameDefaultValue = ""; + + private string inviterName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string InviterName { + get { return inviterName_ ?? InviterNameDefaultValue; } + set { + inviterName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "inviter_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviterName { + get { return inviterName_ != null; } + } + /// Clears the value of the "inviter_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviterName() { + inviterName_ = null; + } + + /// Field number for the "invitee_name" field. + public const int InviteeNameFieldNumber = 5; + private readonly static string InviteeNameDefaultValue = ""; + + private string inviteeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string InviteeName { + get { return inviteeName_ ?? InviteeNameDefaultValue; } + set { + inviteeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "invitee_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviteeName { + get { return inviteeName_ != null; } + } + /// Clears the value of the "invitee_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviteeName() { + inviteeName_ = null; + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 7; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 2) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 2; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~2; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 9; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 4) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 4; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReceivedInvitation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReceivedInvitation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(InviterIdentity, other.InviterIdentity)) return false; + if (!object.Equals(InviteeIdentity, other.InviteeIdentity)) return false; + if (InviterName != other.InviterName) return false; + if (InviteeName != other.InviteeName) return false; + if (CreationTime != other.CreationTime) return false; + if (Program != other.Program) return false; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasInviterIdentity) hash ^= InviterIdentity.GetHashCode(); + if (HasInviteeIdentity) hash ^= InviteeIdentity.GetHashCode(); + if (HasInviterName) hash ^= InviterName.GetHashCode(); + if (HasInviteeName) hash ^= InviteeName.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(9); + output.WriteFixed64(Id); + } + if (HasInviterIdentity) { + output.WriteRawTag(18); + output.WriteMessage(InviterIdentity); + } + if (HasInviteeIdentity) { + output.WriteRawTag(26); + output.WriteMessage(InviteeIdentity); + } + if (HasInviterName) { + output.WriteRawTag(34); + output.WriteString(InviterName); + } + if (HasInviteeName) { + output.WriteRawTag(42); + output.WriteString(InviteeName); + } + if (HasCreationTime) { + output.WriteRawTag(56); + output.WriteUInt64(CreationTime); + } + if (HasProgram) { + output.WriteRawTag(77); + output.WriteFixed32(Program); + } + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + 8; + } + if (HasInviterIdentity) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InviterIdentity); + } + if (HasInviteeIdentity) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InviteeIdentity); + } + if (HasInviterName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterName); + } + if (HasInviteeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InviteeName); + } + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (HasProgram) { + size += 1 + 4; + } + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReceivedInvitation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasInviterIdentity) { + if (!HasInviterIdentity) { + InviterIdentity = new global::Bgs.Protocol.Identity(); + } + InviterIdentity.MergeFrom(other.InviterIdentity); + } + if (other.HasInviteeIdentity) { + if (!HasInviteeIdentity) { + InviteeIdentity = new global::Bgs.Protocol.Identity(); + } + InviteeIdentity.MergeFrom(other.InviteeIdentity); + } + if (other.HasInviterName) { + InviterName = other.InviterName; + } + if (other.HasInviteeName) { + InviteeName = other.InviteeName; + } + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + if (other.HasProgram) { + Program = other.Program; + } + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } + break; + case 9: { + Id = input.ReadFixed64(); + break; + } + case 18: { + if (!HasInviterIdentity) { + InviterIdentity = new global::Bgs.Protocol.Identity(); + } + input.ReadMessage(InviterIdentity); + break; + } + case 26: { + if (!HasInviteeIdentity) { + InviteeIdentity = new global::Bgs.Protocol.Identity(); + } + input.ReadMessage(InviteeIdentity); + break; + } + case 34: { + InviterName = input.ReadString(); + break; + } + case 42: { + InviteeName = input.ReadString(); + break; + } + case 56: { + CreationTime = input.ReadUInt64(); + break; + } + case 77: { + Program = input.ReadFixed32(); + break; + } + } + } + } + + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + + } + + public sealed partial class FriendInvitation : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendInvitation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendInvitation() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendInvitation(FriendInvitation other) : this() { - firstReceived_ = other.firstReceived_; role_ = other.role_.Clone(); - FriendInvitation_ = other.friendInvitation_ != null ? other.FriendInvitation_.Clone() : null; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendInvitation Clone() { return new FriendInvitation(this); } - /// Field number for the "first_received" field. - public const int FirstReceivedFieldNumber = 1; - private bool firstReceived_; - public bool FirstReceived { - get { return firstReceived_; } - set { - firstReceived_ = value; - } - } - /// Field number for the "role" field. public const int RoleFieldNumber = 2; private static readonly pb::FieldCodec _repeated_role_codec = pb::FieldCodec.ForUInt32(18); private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Role { get { return role_; } } - /// Field number for the "friend_invitation" field. - public const int FriendInvitation_FieldNumber = 103; - private Bgs.Protocol.Friends.V1.FriendInvitation friendInvitation_; - public Bgs.Protocol.Friends.V1.FriendInvitation FriendInvitation_ { - get { return friendInvitation_; } - set { - friendInvitation_ = value; - } + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FriendInvitation); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FriendInvitation other) { if (ReferenceEquals(other, null)) { return false; @@ -380,85 +1183,72 @@ namespace Bgs.Protocol.Friends.V1 if (ReferenceEquals(other, this)) { return true; } - if (FirstReceived != other.FirstReceived) return false; if(!role_.Equals(other.role_)) return false; - if (!object.Equals(FriendInvitation_, other.FriendInvitation_)) return false; - return true; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (FirstReceived != false) hash ^= FirstReceived.GetHashCode(); hash ^= role_.GetHashCode(); - if (friendInvitation_ != null) hash ^= FriendInvitation_.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (FirstReceived != false) { - output.WriteRawTag(8); - output.WriteBool(FirstReceived); - } role_.WriteTo(output, _repeated_role_codec); - if (friendInvitation_ != null) { - output.WriteRawTag(186, 6); - output.WriteMessage(FriendInvitation_); + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (FirstReceived != false) { - size += 1 + 1; - } size += role_.CalculateSize(_repeated_role_codec); - if (friendInvitation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FriendInvitation_); + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FriendInvitation other) { if (other == null) { return; } - if (other.FirstReceived != false) { - FirstReceived = other.FirstReceived; - } role_.Add(other.role_); - if (other.friendInvitation_ != null) { - if (friendInvitation_ == null) { - friendInvitation_ = new Bgs.Protocol.Friends.V1.FriendInvitation(); - } - FriendInvitation_.MergeFrom(other.FriendInvitation_); - } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - FirstReceived = input.ReadBool(); - break; - } case 18: case 16: { role_.AddEntriesFrom(input, _repeated_role_codec); break; } - case 826: { - if (friendInvitation_ == null) { - friendInvitation_ = new Bgs.Protocol.Friends.V1.FriendInvitation(); - } - input.ReadMessage(friendInvitation_); + case 26: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } } @@ -467,88 +1257,418 @@ namespace Bgs.Protocol.Friends.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class FriendInvitationParams : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendInvitationParams()); - public static pb::MessageParser Parser { get { return _parser; } } + public sealed partial class SentInvitation : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SentInvitation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[2]; } + get { return global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[4]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitation(SentInvitation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + targetName_ = other.targetName_; + role_ = other.role_; + attribute_ = other.attribute_.Clone(); + creationTime_ = other.creationTime_; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SentInvitation Clone() { + return new SentInvitation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static ulong IdDefaultValue = 0UL; + + private ulong id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "target_name" field. + public const int TargetNameFieldNumber = 2; + private readonly static string TargetNameDefaultValue = ""; + + private string targetName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TargetName { + get { return targetName_ ?? TargetNameDefaultValue; } + set { + targetName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetName { + get { return targetName_ != null; } + } + /// Clears the value of the "target_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetName() { + targetName_ = null; + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 3; + private readonly static uint RoleDefaultValue = 0; + + private uint role_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Role { + get { if ((_hasBits0 & 2) != 0) { return role_; } else { return RoleDefaultValue; } } + set { + _hasBits0 |= 2; + role_ = value; + } + } + /// Gets whether the "role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRole { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRole() { + _hasBits0 &= ~2; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "creation_time" field. + public const int CreationTimeFieldNumber = 5; + private readonly static ulong CreationTimeDefaultValue = 0UL; + + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong CreationTime { + get { if ((_hasBits0 & 4) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } + set { + _hasBits0 |= 4; + creationTime_ = value; + } + } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 6; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 8) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 8; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SentInvitation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SentInvitation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (TargetName != other.TargetName) return false; + if (Role != other.Role) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (CreationTime != other.CreationTime) return false; + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasTargetName) hash ^= TargetName.GetHashCode(); + if (HasRole) hash ^= Role.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(9); + output.WriteFixed64(Id); + } + if (HasTargetName) { + output.WriteRawTag(18); + output.WriteString(TargetName); + } + if (HasRole) { + output.WriteRawTag(24); + output.WriteUInt32(Role); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasCreationTime) { + output.WriteRawTag(40); + output.WriteUInt64(CreationTime); + } + if (HasProgram) { + output.WriteRawTag(53); + output.WriteFixed32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + 8; + } + if (HasTargetName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetName); + } + if (HasRole) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Role); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasCreationTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); + } + if (HasProgram) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SentInvitation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasTargetName) { + TargetName = other.TargetName; + } + if (other.HasRole) { + Role = other.Role; + } + attribute_.Add(other.attribute_); + if (other.HasCreationTime) { + CreationTime = other.CreationTime; + } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + Id = input.ReadFixed64(); + break; + } + case 18: { + TargetName = input.ReadString(); + break; + } + case 24: { + Role = input.ReadUInt32(); + break; + } + case 34: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 40: { + CreationTime = input.ReadUInt64(); + break; + } + case 53: { + Program = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class FriendInvitationParams : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendInvitationParams()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendInvitationParams() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendInvitationParams(FriendInvitationParams other) : this() { + _hasBits0 = other._hasBits0; targetEmail_ = other.targetEmail_; targetBattleTag_ = other.targetBattleTag_; - inviterBattleTag_ = other.inviterBattleTag_; - inviterFullName_ = other.inviterFullName_; - inviteeDisplayName_ = other.inviteeDisplayName_; role_ = other.role_.Clone(); - previousRoleDeprecated_ = other.previousRoleDeprecated_.Clone(); - FriendParams = other.friendParams_ != null ? other.FriendParams.Clone() : null; + attribute_ = other.attribute_.Clone(); + targetName_ = other.targetName_; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FriendInvitationParams Clone() { return new FriendInvitationParams(this); } /// Field number for the "target_email" field. public const int TargetEmailFieldNumber = 1; - private string targetEmail_ = ""; + private readonly static string TargetEmailDefaultValue = ""; + + private string targetEmail_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string TargetEmail { - get { return targetEmail_; } + get { return targetEmail_ ?? TargetEmailDefaultValue; } set { targetEmail_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "target_email" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetEmail { + get { return targetEmail_ != null; } + } + /// Clears the value of the "target_email" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetEmail() { + targetEmail_ = null; + } /// Field number for the "target_battle_tag" field. public const int TargetBattleTagFieldNumber = 2; - private string targetBattleTag_ = ""; + private readonly static string TargetBattleTagDefaultValue = ""; + + private string targetBattleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string TargetBattleTag { - get { return targetBattleTag_; } + get { return targetBattleTag_ ?? TargetBattleTagDefaultValue; } set { targetBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "inviter_battle_tag" field. - public const int InviterBattleTagFieldNumber = 3; - private string inviterBattleTag_ = ""; - public string InviterBattleTag { - get { return inviterBattleTag_; } - set { - inviterBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + /// Gets whether the "target_battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetBattleTag { + get { return targetBattleTag_ != null; } } - - /// Field number for the "inviter_full_name" field. - public const int InviterFullNameFieldNumber = 4; - private string inviterFullName_ = ""; - public string InviterFullName { - get { return inviterFullName_; } - set { - inviterFullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "invitee_display_name" field. - public const int InviteeDisplayNameFieldNumber = 5; - private string inviteeDisplayName_ = ""; - public string InviteeDisplayName { - get { return inviteeDisplayName_; } - set { - inviteeDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + /// Clears the value of the "target_battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetBattleTag() { + targetBattleTag_ = null; } /// Field number for the "role" field. @@ -556,34 +1676,77 @@ namespace Bgs.Protocol.Friends.V1 private static readonly pb::FieldCodec _repeated_role_codec = pb::FieldCodec.ForUInt32(50); private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Role { get { return role_; } } - /// Field number for the "previous_role_deprecated" field. - public const int PreviousRoleDeprecatedFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_previousRoleDeprecated_codec - = pb::FieldCodec.ForUInt32(58); - private readonly pbc::RepeatedField previousRoleDeprecated_ = new pbc::RepeatedField(); - [System.ObsoleteAttribute()] - public pbc::RepeatedField PreviousRoleDeprecated { - get { return previousRoleDeprecated_; } + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(66, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } } - /// Field number for the "friend_params" field. - public const int FriendParamsFieldNumber = 103; - private Bgs.Protocol.Friends.V1.FriendInvitationParams friendParams_; - public Bgs.Protocol.Friends.V1.FriendInvitationParams FriendParams { - get { return friendParams_; } + /// Field number for the "target_name" field. + public const int TargetNameFieldNumber = 9; + private readonly static string TargetNameDefaultValue = ""; + + private string targetName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TargetName { + get { return targetName_ ?? TargetNameDefaultValue; } set { - friendParams_ = value; + targetName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "target_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetName { + get { return targetName_ != null; } + } + /// Clears the value of the "target_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetName() { + targetName_ = null; + } + /// Field number for the "program" field. + public const int ProgramFieldNumber = 10; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FriendInvitationParams); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FriendInvitationParams other) { if (ReferenceEquals(other, null)) { return false; @@ -593,121 +1756,110 @@ namespace Bgs.Protocol.Friends.V1 } if (TargetEmail != other.TargetEmail) return false; if (TargetBattleTag != other.TargetBattleTag) return false; - if (InviterBattleTag != other.InviterBattleTag) return false; - if (InviterFullName != other.InviterFullName) return false; - if (InviteeDisplayName != other.InviteeDisplayName) return false; if(!role_.Equals(other.role_)) return false; - if(!previousRoleDeprecated_.Equals(other.previousRoleDeprecated_)) return false; - if (!object.Equals(FriendParams, other.FriendParams)) return false; - return true; + if(!attribute_.Equals(other.attribute_)) return false; + if (TargetName != other.TargetName) return false; + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (TargetEmail.Length != 0) hash ^= TargetEmail.GetHashCode(); - if (TargetBattleTag.Length != 0) hash ^= TargetBattleTag.GetHashCode(); - if (InviterBattleTag.Length != 0) hash ^= InviterBattleTag.GetHashCode(); - if (InviterFullName.Length != 0) hash ^= InviterFullName.GetHashCode(); - if (InviteeDisplayName.Length != 0) hash ^= InviteeDisplayName.GetHashCode(); + if (HasTargetEmail) hash ^= TargetEmail.GetHashCode(); + if (HasTargetBattleTag) hash ^= TargetBattleTag.GetHashCode(); hash ^= role_.GetHashCode(); - hash ^= previousRoleDeprecated_.GetHashCode(); - if (friendParams_ != null) hash ^= FriendParams.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasTargetName) hash ^= TargetName.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (TargetEmail.Length != 0) { + if (HasTargetEmail) { output.WriteRawTag(10); output.WriteString(TargetEmail); } - if (TargetBattleTag.Length != 0) { + if (HasTargetBattleTag) { output.WriteRawTag(18); output.WriteString(TargetBattleTag); } - if (InviterBattleTag.Length != 0) { - output.WriteRawTag(26); - output.WriteString(InviterBattleTag); - } - if (InviterFullName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(InviterFullName); - } - if (InviteeDisplayName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(InviteeDisplayName); - } role_.WriteTo(output, _repeated_role_codec); - previousRoleDeprecated_.WriteTo(output, _repeated_previousRoleDeprecated_codec); - if (friendParams_ != null) { - output.WriteRawTag(186, 6); - output.WriteMessage(FriendParams); + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasTargetName) { + output.WriteRawTag(74); + output.WriteString(TargetName); + } + if (HasProgram) { + output.WriteRawTag(85); + output.WriteFixed32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (TargetEmail.Length != 0) { + if (HasTargetEmail) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetEmail); } - if (TargetBattleTag.Length != 0) { + if (HasTargetBattleTag) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetBattleTag); } - if (InviterBattleTag.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterBattleTag); - } - if (InviterFullName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterFullName); - } - if (InviteeDisplayName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InviteeDisplayName); - } size += role_.CalculateSize(_repeated_role_codec); - size += previousRoleDeprecated_.CalculateSize(_repeated_previousRoleDeprecated_codec); - if (friendParams_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FriendParams); + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasTargetName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetName); + } + if (HasProgram) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FriendInvitationParams other) { if (other == null) { return; } - if (other.TargetEmail.Length != 0) { + if (other.HasTargetEmail) { TargetEmail = other.TargetEmail; } - if (other.TargetBattleTag.Length != 0) { + if (other.HasTargetBattleTag) { TargetBattleTag = other.TargetBattleTag; } - if (other.InviterBattleTag.Length != 0) { - InviterBattleTag = other.InviterBattleTag; - } - if (other.InviterFullName.Length != 0) { - InviterFullName = other.InviterFullName; - } - if (other.InviteeDisplayName.Length != 0) { - InviteeDisplayName = other.InviteeDisplayName; - } role_.Add(other.role_); - previousRoleDeprecated_.Add(other.previousRoleDeprecated_); - if (other.friendParams_ != null) { - if (friendParams_ == null) { - friendParams_ = new Bgs.Protocol.Friends.V1.FriendInvitationParams(); - } - FriendParams.MergeFrom(other.FriendParams); + attribute_.Add(other.attribute_); + if (other.HasTargetName) { + TargetName = other.TargetName; } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { TargetEmail = input.ReadString(); @@ -717,33 +1869,521 @@ namespace Bgs.Protocol.Friends.V1 TargetBattleTag = input.ReadString(); break; } - case 26: { - InviterBattleTag = input.ReadString(); - break; - } - case 34: { - InviterFullName = input.ReadString(); - break; - } - case 42: { - InviteeDisplayName = input.ReadString(); - break; - } case 50: case 48: { role_.AddEntriesFrom(input, _repeated_role_codec); break; } - case 58: - case 56: { - previousRoleDeprecated_.AddEntriesFrom(input, _repeated_previousRoleDeprecated_codec); + case 66: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } - case 826: { - if (friendParams_ == null) { - friendParams_ = new Bgs.Protocol.Friends.V1.FriendInvitationParams(); - } - input.ReadMessage(friendParams_); + case 74: { + TargetName = input.ReadString(); + break; + } + case 85: { + Program = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class SubscribeResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResponse(SubscribeResponse other) : this() { + _hasBits0 = other._hasBits0; + maxFriends_ = other.maxFriends_; + maxReceivedInvitations_ = other.maxReceivedInvitations_; + maxSentInvitations_ = other.maxSentInvitations_; + role_ = other.role_.Clone(); + friends_ = other.friends_.Clone(); + receivedInvitations_ = other.receivedInvitations_.Clone(); + sentInvitations_ = other.sentInvitations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResponse Clone() { + return new SubscribeResponse(this); + } + + /// Field number for the "max_friends" field. + public const int MaxFriendsFieldNumber = 1; + private readonly static uint MaxFriendsDefaultValue = 0; + + private uint maxFriends_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MaxFriends { + get { if ((_hasBits0 & 1) != 0) { return maxFriends_; } else { return MaxFriendsDefaultValue; } } + set { + _hasBits0 |= 1; + maxFriends_ = value; + } + } + /// Gets whether the "max_friends" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxFriends { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "max_friends" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxFriends() { + _hasBits0 &= ~1; + } + + /// Field number for the "max_received_invitations" field. + public const int MaxReceivedInvitationsFieldNumber = 2; + private readonly static uint MaxReceivedInvitationsDefaultValue = 0; + + private uint maxReceivedInvitations_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MaxReceivedInvitations { + get { if ((_hasBits0 & 2) != 0) { return maxReceivedInvitations_; } else { return MaxReceivedInvitationsDefaultValue; } } + set { + _hasBits0 |= 2; + maxReceivedInvitations_ = value; + } + } + /// Gets whether the "max_received_invitations" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxReceivedInvitations { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max_received_invitations" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxReceivedInvitations() { + _hasBits0 &= ~2; + } + + /// Field number for the "max_sent_invitations" field. + public const int MaxSentInvitationsFieldNumber = 3; + private readonly static uint MaxSentInvitationsDefaultValue = 0; + + private uint maxSentInvitations_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MaxSentInvitations { + get { if ((_hasBits0 & 4) != 0) { return maxSentInvitations_; } else { return MaxSentInvitationsDefaultValue; } } + set { + _hasBits0 |= 4; + maxSentInvitations_ = value; + } + } + /// Gets whether the "max_sent_invitations" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxSentInvitations { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "max_sent_invitations" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxSentInvitations() { + _hasBits0 &= ~4; + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Role.Parser); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { + get { return role_; } + } + + /// Field number for the "friends" field. + public const int FriendsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_friends_codec + = pb::FieldCodec.ForMessage(42, global::Bgs.Protocol.Friends.V1.Friend.Parser); + private readonly pbc::RepeatedField friends_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Friends { + get { return friends_; } + } + + /// Field number for the "received_invitations" field. + public const int ReceivedInvitationsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_receivedInvitations_codec + = pb::FieldCodec.ForMessage(58, global::Bgs.Protocol.Friends.V1.ReceivedInvitation.Parser); + private readonly pbc::RepeatedField receivedInvitations_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ReceivedInvitations { + get { return receivedInvitations_; } + } + + /// Field number for the "sent_invitations" field. + public const int SentInvitationsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_sentInvitations_codec + = pb::FieldCodec.ForMessage(66, global::Bgs.Protocol.Friends.V1.SentInvitation.Parser); + private readonly pbc::RepeatedField sentInvitations_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SentInvitations { + get { return sentInvitations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscribeResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscribeResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxFriends != other.MaxFriends) return false; + if (MaxReceivedInvitations != other.MaxReceivedInvitations) return false; + if (MaxSentInvitations != other.MaxSentInvitations) return false; + if(!role_.Equals(other.role_)) return false; + if(!friends_.Equals(other.friends_)) return false; + if(!receivedInvitations_.Equals(other.receivedInvitations_)) return false; + if(!sentInvitations_.Equals(other.sentInvitations_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMaxFriends) hash ^= MaxFriends.GetHashCode(); + if (HasMaxReceivedInvitations) hash ^= MaxReceivedInvitations.GetHashCode(); + if (HasMaxSentInvitations) hash ^= MaxSentInvitations.GetHashCode(); + hash ^= role_.GetHashCode(); + hash ^= friends_.GetHashCode(); + hash ^= receivedInvitations_.GetHashCode(); + hash ^= sentInvitations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMaxFriends) { + output.WriteRawTag(8); + output.WriteUInt32(MaxFriends); + } + if (HasMaxReceivedInvitations) { + output.WriteRawTag(16); + output.WriteUInt32(MaxReceivedInvitations); + } + if (HasMaxSentInvitations) { + output.WriteRawTag(24); + output.WriteUInt32(MaxSentInvitations); + } + role_.WriteTo(output, _repeated_role_codec); + friends_.WriteTo(output, _repeated_friends_codec); + receivedInvitations_.WriteTo(output, _repeated_receivedInvitations_codec); + sentInvitations_.WriteTo(output, _repeated_sentInvitations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMaxFriends) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxFriends); + } + if (HasMaxReceivedInvitations) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxReceivedInvitations); + } + if (HasMaxSentInvitations) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxSentInvitations); + } + size += role_.CalculateSize(_repeated_role_codec); + size += friends_.CalculateSize(_repeated_friends_codec); + size += receivedInvitations_.CalculateSize(_repeated_receivedInvitations_codec); + size += sentInvitations_.CalculateSize(_repeated_sentInvitations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscribeResponse other) { + if (other == null) { + return; + } + if (other.HasMaxFriends) { + MaxFriends = other.MaxFriends; + } + if (other.HasMaxReceivedInvitations) { + MaxReceivedInvitations = other.MaxReceivedInvitations; + } + if (other.HasMaxSentInvitations) { + MaxSentInvitations = other.MaxSentInvitations; + } + role_.Add(other.role_); + friends_.Add(other.friends_); + receivedInvitations_.Add(other.receivedInvitations_); + sentInvitations_.Add(other.sentInvitations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MaxFriends = input.ReadUInt32(); + break; + } + case 16: { + MaxReceivedInvitations = input.ReadUInt32(); + break; + } + case 24: { + MaxSentInvitations = input.ReadUInt32(); + break; + } + case 34: { + role_.AddEntriesFrom(input, _repeated_role_codec); + break; + } + case 42: { + friends_.AddEntriesFrom(input, _repeated_friends_codec); + break; + } + case 58: { + receivedInvitations_.AddEntriesFrom(input, _repeated_receivedInvitations_codec); + break; + } + case 66: { + sentInvitations_.AddEntriesFrom(input, _repeated_sentInvitations_codec); + break; + } + } + } + } + + } + + public sealed partial class AcceptInvitationOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcceptInvitationOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationOptions(AcceptInvitationOptions other) : this() { + _hasBits0 = other._hasBits0; + role_ = other.role_; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AcceptInvitationOptions Clone() { + return new AcceptInvitationOptions(this); + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 1; + private readonly static uint RoleDefaultValue = 0; + + private uint role_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Role { + get { if ((_hasBits0 & 1) != 0) { return role_; } else { return RoleDefaultValue; } } + set { + _hasBits0 |= 1; + role_ = value; + } + } + /// Gets whether the "role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRole { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRole() { + _hasBits0 &= ~1; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 2; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 2) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 2; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AcceptInvitationOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AcceptInvitationOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Role != other.Role) return false; + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasRole) hash ^= Role.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasRole) { + output.WriteRawTag(8); + output.WriteUInt32(Role); + } + if (HasProgram) { + output.WriteRawTag(21); + output.WriteFixed32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasRole) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Role); + } + if (HasProgram) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AcceptInvitationOptions other) { + if (other == null) { + return; + } + if (other.HasRole) { + Role = other.Role; + } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Role = input.ReadUInt32(); + break; + } + case 21: { + Program = input.ReadFixed32(); break; } } diff --git a/Source/Framework/Proto/GameUtilitiesService.cs b/Source/Framework/Proto/GameUtilitiesService.cs index a7778bfb3..d58fac7f0 100644 --- a/Source/Framework/Proto/GameUtilitiesService.cs +++ b/Source/Framework/Proto/GameUtilitiesService.cs @@ -1,2398 +1,2997 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/game_utilities_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/game_utilities_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.GameUtilities.V1 -{ - /// Holder for reflection information generated from bgs/low/pb/client/game_utilities_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class GameUtilitiesServiceReflection - { +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.GameUtilities.V1 { - #region Descriptor - /// File descriptor for bgs/low/pb/client/game_utilities_service.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GameUtilitiesServiceReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "Ci5iZ3MvbG93L3BiL2NsaWVudC9nYW1lX3V0aWxpdGllc19zZXJ2aWNlLnBy", - "b3RvEh5iZ3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEaJ2Jncy9sb3cv", - "cGIvY2xpZW50L2F0dHJpYnV0ZV90eXBlcy5wcm90bxosYmdzL2xvdy9wYi9j", - "bGllbnQvY29udGVudF9oYW5kbGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIv", - "Y2xpZW50L2VudGl0eV90eXBlcy5wcm90bxosYmdzL2xvdy9wYi9jbGllbnQv", - "Z2FtZV91dGlsaXRpZXNfdHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50", - "L3JwY190eXBlcy5wcm90byKRAgoNQ2xpZW50UmVxdWVzdBIqCglhdHRyaWJ1", - "dGUYASADKAsyFy5iZ3MucHJvdG9jb2wuQXR0cmlidXRlEiUKBGhvc3QYAiAB", - "KAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vzc0lkEioKCmFjY291bnRfaWQYAyAB", - "KAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSLwoPZ2FtZV9hY2NvdW50X2lk", - "GAQgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEg8KB3Byb2dyYW0YBSAB", - "KAcSPwoLY2xpZW50X2luZm8YBiABKAsyKi5iZ3MucHJvdG9jb2wuZ2FtZV91", - "dGlsaXRpZXMudjEuQ2xpZW50SW5mbyI8Cg5DbGllbnRSZXNwb25zZRIqCglh", - "dHRyaWJ1dGUYASADKAsyFy5iZ3MucHJvdG9jb2wuQXR0cmlidXRlInMKDVNl", - "cnZlclJlcXVlc3QSKgoJYXR0cmlidXRlGAEgAygLMhcuYmdzLnByb3RvY29s", - "LkF0dHJpYnV0ZRIPCgdwcm9ncmFtGAIgASgHEiUKBGhvc3QYAyABKAsyFy5i", - "Z3MucHJvdG9jb2wuUHJvY2Vzc0lkIjwKDlNlcnZlclJlc3BvbnNlEioKCWF0", - "dHJpYnV0ZRgBIAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUixwEKHVBy", - "ZXNlbmNlQ2hhbm5lbENyZWF0ZWRSZXF1ZXN0EiIKAmlkGAEgASgLMhYuYmdz", - "LnByb3RvY29sLkVudGl0eUlkEi8KD2dhbWVfYWNjb3VudF9pZBgDIAEoCzIW", - "LmJncy5wcm90b2NvbC5FbnRpdHlJZBIqCgphY2NvdW50X2lkGAQgASgLMhYu", - "YmdzLnByb3RvY29sLkVudGl0eUlkEiUKBGhvc3QYBSABKAsyFy5iZ3MucHJv", - "dG9jb2wuUHJvY2Vzc0lkIo0BChlHZXRQbGF5ZXJWYXJpYWJsZXNSZXF1ZXN0", - "EkkKEHBsYXllcl92YXJpYWJsZXMYASADKAsyLy5iZ3MucHJvdG9jb2wuZ2Ft", - "ZV91dGlsaXRpZXMudjEuUGxheWVyVmFyaWFibGVzEiUKBGhvc3QYAiABKAsy", - "Fy5iZ3MucHJvdG9jb2wuUHJvY2Vzc0lkImcKGkdldFBsYXllclZhcmlhYmxl", - "c1Jlc3BvbnNlEkkKEHBsYXllcl92YXJpYWJsZXMYASADKAsyLy5iZ3MucHJv", - "dG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuUGxheWVyVmFyaWFibGVzIosBCh1H", - "YW1lQWNjb3VudE9ubGluZU5vdGlmaWNhdGlvbhIvCg9nYW1lX2FjY291bnRf", - "aWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSJQoEaG9zdBgCIAEo", - "CzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQSEgoKc2Vzc2lvbl9pZBgDIAEo", - "CSKMAQoeR2FtZUFjY291bnRPZmZsaW5lTm90aWZpY2F0aW9uEi8KD2dhbWVf", - "YWNjb3VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIlCgRo", - "b3N0GAIgASgLMhcuYmdzLnByb3RvY29sLlByb2Nlc3NJZBISCgpzZXNzaW9u", - "X2lkGAMgASgJIkMKGkdldEFjaGlldmVtZW50c0ZpbGVSZXF1ZXN0EiUKBGhv", - "c3QYASABKAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vzc0lkIlIKG0dldEFjaGll", - "dmVtZW50c0ZpbGVSZXNwb25zZRIzCg5jb250ZW50X2hhbmRsZRgBIAEoCzIb", - "LmJncy5wcm90b2NvbC5Db250ZW50SGFuZGxlInMKH0dldEFsbFZhbHVlc0Zv", - "ckF0dHJpYnV0ZVJlcXVlc3QSFQoNYXR0cmlidXRlX2tleRgBIAEoCRIoCghh", - "Z2VudF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIPCgdwcm9n", - "cmFtGAUgASgHIlIKIEdldEFsbFZhbHVlc0ZvckF0dHJpYnV0ZVJlc3BvbnNl", - "Ei4KD2F0dHJpYnV0ZV92YWx1ZRgBIAMoCzIVLmJncy5wcm90b2NvbC5WYXJp", - "YW50MpYIChRHYW1lVXRpbGl0aWVzU2VydmljZRJ1ChRQcm9jZXNzQ2xpZW50", - "UmVxdWVzdBItLmJncy5wcm90b2NvbC5nYW1lX3V0aWxpdGllcy52MS5DbGll", - "bnRSZXF1ZXN0Gi4uYmdzLnByb3RvY29sLmdhbWVfdXRpbGl0aWVzLnYxLkNs", - "aWVudFJlc3BvbnNlEm0KFlByZXNlbmNlQ2hhbm5lbENyZWF0ZWQSPS5iZ3Mu", - "cHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuUHJlc2VuY2VDaGFubmVsQ3Jl", - "YXRlZFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhEosBChJHZXRQbGF5", - "ZXJWYXJpYWJsZXMSOS5iZ3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEu", - "R2V0UGxheWVyVmFyaWFibGVzUmVxdWVzdBo6LmJncy5wcm90b2NvbC5nYW1l", - "X3V0aWxpdGllcy52MS5HZXRQbGF5ZXJWYXJpYWJsZXNSZXNwb25zZRJ1ChRQ", - "cm9jZXNzU2VydmVyUmVxdWVzdBItLmJncy5wcm90b2NvbC5nYW1lX3V0aWxp", - "dGllcy52MS5TZXJ2ZXJSZXF1ZXN0Gi4uYmdzLnByb3RvY29sLmdhbWVfdXRp", - "bGl0aWVzLnYxLlNlcnZlclJlc3BvbnNlEm8KE09uR2FtZUFjY291bnRPbmxp", - "bmUSPS5iZ3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuR2FtZUFjY291", - "bnRPbmxpbmVOb3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9O", - "U0UScQoUT25HYW1lQWNjb3VudE9mZmxpbmUSPi5iZ3MucHJvdG9jb2wuZ2Ft", - "ZV91dGlsaXRpZXMudjEuR2FtZUFjY291bnRPZmZsaW5lTm90aWZpY2F0aW9u", - "GhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFEo4BChNHZXRBY2hpZXZlbWVu", - "dHNGaWxlEjouYmdzLnByb3RvY29sLmdhbWVfdXRpbGl0aWVzLnYxLkdldEFj", - "aGlldmVtZW50c0ZpbGVSZXF1ZXN0GjsuYmdzLnByb3RvY29sLmdhbWVfdXRp", - "bGl0aWVzLnYxLkdldEFjaGlldmVtZW50c0ZpbGVSZXNwb25zZRKdAQoYR2V0", - "QWxsVmFsdWVzRm9yQXR0cmlidXRlEj8uYmdzLnByb3RvY29sLmdhbWVfdXRp", - "bGl0aWVzLnYxLkdldEFsbFZhbHVlc0ZvckF0dHJpYnV0ZVJlcXVlc3QaQC5i", - "Z3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuR2V0QWxsVmFsdWVzRm9y", - "QXR0cmlidXRlUmVzcG9uc2VCRAofYm5ldC5wcm90b2NvbC5nYW1lX3V0aWxp", - "dGllcy52MUIZR2FtZVV0aWxpdGllc1NlcnZpY2VQcm90b0gCgAEAiAEBYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.ContentHandleTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.GameUtilities.V1.GameUtilitiesTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.ClientRequest), Bgs.Protocol.GameUtilities.V1.ClientRequest.Parser, new[]{ "Attribute", "Host", "AccountId", "GameAccountId", "Program", "ClientInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.ClientResponse), Bgs.Protocol.GameUtilities.V1.ClientResponse.Parser, new[]{ "Attribute" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.ServerRequest), Bgs.Protocol.GameUtilities.V1.ServerRequest.Parser, new[]{ "Attribute", "Program", "Host" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.ServerResponse), Bgs.Protocol.GameUtilities.V1.ServerResponse.Parser, new[]{ "Attribute" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.PresenceChannelCreatedRequest), Bgs.Protocol.GameUtilities.V1.PresenceChannelCreatedRequest.Parser, new[]{ "Id", "GameAccountId", "AccountId", "Host" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.GetPlayerVariablesRequest), Bgs.Protocol.GameUtilities.V1.GetPlayerVariablesRequest.Parser, new[]{ "PlayerVariables", "Host" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.GetPlayerVariablesResponse), Bgs.Protocol.GameUtilities.V1.GetPlayerVariablesResponse.Parser, new[]{ "PlayerVariables" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.GameAccountOnlineNotification), Bgs.Protocol.GameUtilities.V1.GameAccountOnlineNotification.Parser, new[]{ "GameAccountId", "Host", "SessionId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.GameAccountOfflineNotification), Bgs.Protocol.GameUtilities.V1.GameAccountOfflineNotification.Parser, new[]{ "GameAccountId", "Host", "SessionId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.GetAchievementsFileRequest), Bgs.Protocol.GameUtilities.V1.GetAchievementsFileRequest.Parser, new[]{ "Host" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.GetAchievementsFileResponse), Bgs.Protocol.GameUtilities.V1.GetAchievementsFileResponse.Parser, new[]{ "ContentHandle" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.GetAllValuesForAttributeRequest), Bgs.Protocol.GameUtilities.V1.GetAllValuesForAttributeRequest.Parser, new[]{ "AttributeKey", "AgentId", "Program" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.GetAllValuesForAttributeResponse), Bgs.Protocol.GameUtilities.V1.GetAllValuesForAttributeResponse.Parser, new[]{ "AttributeValue" }, null, null, null) - })); - } - #endregion + /// Holder for reflection information generated from bgs/low/pb/client/game_utilities_service.proto + public static partial class GameUtilitiesServiceReflection { + #region Descriptor + /// File descriptor for bgs/low/pb/client/game_utilities_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ClientRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ClientRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ClientRequest(ClientRequest other) : this() - { - attribute_ = other.attribute_.Clone(); - Host = other.host_ != null ? other.Host.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - program_ = other.program_; - ClientInfo = other.clientInfo_ != null ? other.ClientInfo.Clone() : null; - } - - public ClientRequest Clone() - { - return new ClientRequest(this); - } - - /// Field number for the "attribute" field. - public const int AttributeFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute - { - get { return attribute_; } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 2; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - /// Field number for the "account_id" field. - public const int AccountIdFieldNumber = 3; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId - { - get { return accountId_; } - set - { - accountId_ = value; - } - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 4; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 5; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "client_info" field. - public const int ClientInfoFieldNumber = 6; - private Bgs.Protocol.GameUtilities.V1.ClientInfo clientInfo_; - public Bgs.Protocol.GameUtilities.V1.ClientInfo ClientInfo - { - get { return clientInfo_; } - set - { - clientInfo_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ClientRequest); - } - - public bool Equals(ClientRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!attribute_.Equals(other.attribute_)) return false; - if (!object.Equals(Host, other.Host)) return false; - if (!object.Equals(AccountId, other.AccountId)) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (Program != other.Program) return false; - if (!object.Equals(ClientInfo, other.ClientInfo)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= attribute_.GetHashCode(); - if (host_ != null) hash ^= Host.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (clientInfo_ != null) hash ^= ClientInfo.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - attribute_.WriteTo(output, _repeated_attribute_codec); - if (host_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(Host); - } - if (accountId_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(AccountId); - } - if (gameAccountId_ != null) - { - output.WriteRawTag(34); - output.WriteMessage(GameAccountId); - } - if (Program != 0) - { - output.WriteRawTag(45); - output.WriteFixed32(Program); - } - if (clientInfo_ != null) - { - output.WriteRawTag(50); - output.WriteMessage(ClientInfo); - } - } - - public int CalculateSize() - { - int size = 0; - size += attribute_.CalculateSize(_repeated_attribute_codec); - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - if (accountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); - } - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (Program != 0) - { - size += 1 + 4; - } - if (clientInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientInfo); - } - return size; - } - - public void MergeFrom(ClientRequest other) - { - if (other == null) - { - return; - } - attribute_.Add(other.attribute_); - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - if (other.accountId_ != null) - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - AccountId.MergeFrom(other.AccountId); - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.Program != 0) - { - Program = other.Program; - } - if (other.clientInfo_ != null) - { - if (clientInfo_ == null) - { - clientInfo_ = new Bgs.Protocol.GameUtilities.V1.ClientInfo(); - } - ClientInfo.MergeFrom(other.ClientInfo); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - attribute_.AddEntriesFrom(input, _repeated_attribute_codec); - break; - } - case 18: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - case 26: - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(accountId_); - break; - } - case 34: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 45: - { - Program = input.ReadFixed32(); - break; - } - case 50: - { - if (clientInfo_ == null) - { - clientInfo_ = new Bgs.Protocol.GameUtilities.V1.ClientInfo(); - } - input.ReadMessage(clientInfo_); - break; - } - } - } - } + private static pbr::FileDescriptor descriptor; + static GameUtilitiesServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci5iZ3MvbG93L3BiL2NsaWVudC9nYW1lX3V0aWxpdGllc19zZXJ2aWNlLnBy", + "b3RvEh5iZ3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEaJ2Jncy9sb3cv", + "cGIvY2xpZW50L2F0dHJpYnV0ZV90eXBlcy5wcm90bxosYmdzL2xvdy9wYi9j", + "bGllbnQvY29udGVudF9oYW5kbGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIv", + "Y2xpZW50L2VudGl0eV90eXBlcy5wcm90bxosYmdzL2xvdy9wYi9jbGllbnQv", + "Z2FtZV91dGlsaXRpZXNfdHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50", + "L3JwY190eXBlcy5wcm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4", + "dGVuc2lvbnMvbWVzc2FnZV9vcHRpb25zLnByb3RvGjdiZ3MvbG93L3BiL2Ns", + "aWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjhi", + "Z3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rfb3B0", + "aW9ucy5wcm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lv", + "bnMvc2VydmljZV9vcHRpb25zLnByb3RvIpECCg1DbGllbnRSZXF1ZXN0EioK", + "CWF0dHJpYnV0ZRgBIAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUSJQoE", + "aG9zdBgCIAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQSKgoKYWNjb3Vu", + "dF9pZBgDIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIvCg9nYW1lX2Fj", + "Y291bnRfaWQYBCABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSDwoHcHJv", + "Z3JhbRgFIAEoBxI/CgtjbGllbnRfaW5mbxgGIAEoCzIqLmJncy5wcm90b2Nv", + "bC5nYW1lX3V0aWxpdGllcy52MS5DbGllbnRJbmZvIjwKDkNsaWVudFJlc3Bv", + "bnNlEioKCWF0dHJpYnV0ZRgBIAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1", + "dGUicwoNU2VydmVyUmVxdWVzdBIqCglhdHRyaWJ1dGUYASADKAsyFy5iZ3Mu", + "cHJvdG9jb2wuQXR0cmlidXRlEg8KB3Byb2dyYW0YAiACKAcSJQoEaG9zdBgD", + "IAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQiPAoOU2VydmVyUmVzcG9u", + "c2USKgoJYXR0cmlidXRlGAEgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0", + "ZSLHAQodUHJlc2VuY2VDaGFubmVsQ3JlYXRlZFJlcXVlc3QSIgoCaWQYASAC", + "KAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSLwoPZ2FtZV9hY2NvdW50X2lk", + "GAMgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEioKCmFjY291bnRfaWQY", + "BCABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSJQoEaG9zdBgFIAEoCzIX", + "LmJncy5wcm90b2NvbC5Qcm9jZXNzSWQijQEKGUdldFBsYXllclZhcmlhYmxl", + "c1JlcXVlc3QSSQoQcGxheWVyX3ZhcmlhYmxlcxgBIAMoCzIvLmJncy5wcm90", + "b2NvbC5nYW1lX3V0aWxpdGllcy52MS5QbGF5ZXJWYXJpYWJsZXMSJQoEaG9z", + "dBgCIAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQiZwoaR2V0UGxheWVy", + "VmFyaWFibGVzUmVzcG9uc2USSQoQcGxheWVyX3ZhcmlhYmxlcxgBIAMoCzIv", + "LmJncy5wcm90b2NvbC5nYW1lX3V0aWxpdGllcy52MS5QbGF5ZXJWYXJpYWJs", + "ZXMiiwEKHUdhbWVBY2NvdW50T25saW5lTm90aWZpY2F0aW9uEi8KD2dhbWVf", + "YWNjb3VudF9pZBgBIAIoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIlCgRo", + "b3N0GAIgASgLMhcuYmdzLnByb3RvY29sLlByb2Nlc3NJZBISCgpzZXNzaW9u", + "X2lkGAMgASgJIowBCh5HYW1lQWNjb3VudE9mZmxpbmVOb3RpZmljYXRpb24S", + "LwoPZ2FtZV9hY2NvdW50X2lkGAEgAigLMhYuYmdzLnByb3RvY29sLkVudGl0", + "eUlkEiUKBGhvc3QYAiABKAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vzc0lkEhIK", + "CnNlc3Npb25faWQYAyABKAkiQwoaR2V0QWNoaWV2ZW1lbnRzRmlsZVJlcXVl", + "c3QSJQoEaG9zdBgBIAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQiUgob", + "R2V0QWNoaWV2ZW1lbnRzRmlsZVJlc3BvbnNlEjMKDmNvbnRlbnRfaGFuZGxl", + "GAEgASgLMhsuYmdzLnByb3RvY29sLkNvbnRlbnRIYW5kbGUicwofR2V0QWxs", + "VmFsdWVzRm9yQXR0cmlidXRlUmVxdWVzdBIVCg1hdHRyaWJ1dGVfa2V5GAEg", + "ASgJEigKCGFnZW50X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlk", + "Eg8KB3Byb2dyYW0YBSABKAciUgogR2V0QWxsVmFsdWVzRm9yQXR0cmlidXRl", + "UmVzcG9uc2USLgoPYXR0cmlidXRlX3ZhbHVlGAEgAygLMhUuYmdzLnByb3Rv", + "Y29sLlZhcmlhbnQiVwoYUmVnaXN0ZXJVdGlsaXRpZXNSZXF1ZXN0EioKCWF0", + "dHJpYnV0ZRgBIAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUSDwoHcHJv", + "Z3JhbRgCIAEoByIuChlSZWdpc3RlclV0aWxpdGllc1Jlc3BvbnNlEhEKCWNs", + "aWVudF9pZBgBIAEoCSIcChpVbnJlZ2lzdGVyVXRpbGl0aWVzUmVxdWVzdDKx", + "CwoUR2FtZVV0aWxpdGllc1NlcnZpY2USfQoUUHJvY2Vzc0NsaWVudFJlcXVl", + "c3QSLS5iZ3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuQ2xpZW50UmVx", + "dWVzdBouLmJncy5wcm90b2NvbC5nYW1lX3V0aWxpdGllcy52MS5DbGllbnRS", + "ZXNwb25zZSIGgvkrAggBEnUKFlByZXNlbmNlQ2hhbm5lbENyZWF0ZWQSPS5i", + "Z3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuUHJlc2VuY2VDaGFubmVs", + "Q3JlYXRlZFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCAIS", + "kwEKEkdldFBsYXllclZhcmlhYmxlcxI5LmJncy5wcm90b2NvbC5nYW1lX3V0", + "aWxpdGllcy52MS5HZXRQbGF5ZXJWYXJpYWJsZXNSZXF1ZXN0GjouYmdzLnBy", + "b3RvY29sLmdhbWVfdXRpbGl0aWVzLnYxLkdldFBsYXllclZhcmlhYmxlc1Jl", + "c3BvbnNlIgaC+SsCCAMSfQoUUHJvY2Vzc1NlcnZlclJlcXVlc3QSLS5iZ3Mu", + "cHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuU2VydmVyUmVxdWVzdBouLmJn", + "cy5wcm90b2NvbC5nYW1lX3V0aWxpdGllcy52MS5TZXJ2ZXJSZXNwb25zZSIG", + "gvkrAggGEncKE09uR2FtZUFjY291bnRPbmxpbmUSPS5iZ3MucHJvdG9jb2wu", + "Z2FtZV91dGlsaXRpZXMudjEuR2FtZUFjY291bnRPbmxpbmVOb3RpZmljYXRp", + "b24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIBxJ5ChRPbkdh", + "bWVBY2NvdW50T2ZmbGluZRI+LmJncy5wcm90b2NvbC5nYW1lX3V0aWxpdGll", + "cy52MS5HYW1lQWNjb3VudE9mZmxpbmVOb3RpZmljYXRpb24aGS5iZ3MucHJv", + "dG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIICBKWAQoTR2V0QWNoaWV2ZW1lbnRz", + "RmlsZRI6LmJncy5wcm90b2NvbC5nYW1lX3V0aWxpdGllcy52MS5HZXRBY2hp", + "ZXZlbWVudHNGaWxlUmVxdWVzdBo7LmJncy5wcm90b2NvbC5nYW1lX3V0aWxp", + "dGllcy52MS5HZXRBY2hpZXZlbWVudHNGaWxlUmVzcG9uc2UiBoL5KwIICRKl", + "AQoYR2V0QWxsVmFsdWVzRm9yQXR0cmlidXRlEj8uYmdzLnByb3RvY29sLmdh", + "bWVfdXRpbGl0aWVzLnYxLkdldEFsbFZhbHVlc0ZvckF0dHJpYnV0ZVJlcXVl", + "c3QaQC5iZ3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuR2V0QWxsVmFs", + "dWVzRm9yQXR0cmlidXRlUmVzcG9uc2UiBoL5KwIIChKQAQoRUmVnaXN0ZXJV", + "dGlsaXRpZXMSOC5iZ3MucHJvdG9jb2wuZ2FtZV91dGlsaXRpZXMudjEuUmVn", + "aXN0ZXJVdGlsaXRpZXNSZXF1ZXN0GjkuYmdzLnByb3RvY29sLmdhbWVfdXRp", + "bGl0aWVzLnYxLlJlZ2lzdGVyVXRpbGl0aWVzUmVzcG9uc2UiBoL5KwIICxJ0", + "ChNVbnJlZ2lzdGVyVXRpbGl0aWVzEjouYmdzLnByb3RvY29sLmdhbWVfdXRp", + "bGl0aWVzLnYxLlVucmVnaXN0ZXJVdGlsaXRpZXNSZXF1ZXN0GhkuYmdzLnBy", + "b3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAwaUIL5KywKKmJuZXQucHJvdG9j", + "b2wuZ2FtZV91dGlsaXRpZXMuR2FtZVV0aWxpdGllc4L5KxAqDmdhbWVfdXRp", + "bGl0aWVzivkrAggBivkrAhABQkIKH2JuZXQucHJvdG9jb2wuZ2FtZV91dGls", + "aXRpZXMudjFCGUdhbWVVdGlsaXRpZXNTZXJ2aWNlUHJvdG+AAQCIAQE=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.ContentHandleTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.ClientRequest), global::Bgs.Protocol.GameUtilities.V1.ClientRequest.Parser, new[]{ "Attribute", "Host", "AccountId", "GameAccountId", "Program", "ClientInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.ClientResponse), global::Bgs.Protocol.GameUtilities.V1.ClientResponse.Parser, new[]{ "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.ServerRequest), global::Bgs.Protocol.GameUtilities.V1.ServerRequest.Parser, new[]{ "Attribute", "Program", "Host" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.ServerResponse), global::Bgs.Protocol.GameUtilities.V1.ServerResponse.Parser, new[]{ "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.PresenceChannelCreatedRequest), global::Bgs.Protocol.GameUtilities.V1.PresenceChannelCreatedRequest.Parser, new[]{ "Id", "GameAccountId", "AccountId", "Host" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.GetPlayerVariablesRequest), global::Bgs.Protocol.GameUtilities.V1.GetPlayerVariablesRequest.Parser, new[]{ "PlayerVariables", "Host" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.GetPlayerVariablesResponse), global::Bgs.Protocol.GameUtilities.V1.GetPlayerVariablesResponse.Parser, new[]{ "PlayerVariables" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.GameAccountOnlineNotification), global::Bgs.Protocol.GameUtilities.V1.GameAccountOnlineNotification.Parser, new[]{ "GameAccountId", "Host", "SessionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.GameAccountOfflineNotification), global::Bgs.Protocol.GameUtilities.V1.GameAccountOfflineNotification.Parser, new[]{ "GameAccountId", "Host", "SessionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.GetAchievementsFileRequest), global::Bgs.Protocol.GameUtilities.V1.GetAchievementsFileRequest.Parser, new[]{ "Host" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.GetAchievementsFileResponse), global::Bgs.Protocol.GameUtilities.V1.GetAchievementsFileResponse.Parser, new[]{ "ContentHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.GetAllValuesForAttributeRequest), global::Bgs.Protocol.GameUtilities.V1.GetAllValuesForAttributeRequest.Parser, new[]{ "AttributeKey", "AgentId", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.GetAllValuesForAttributeResponse), global::Bgs.Protocol.GameUtilities.V1.GetAllValuesForAttributeResponse.Parser, new[]{ "AttributeValue" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.RegisterUtilitiesRequest), global::Bgs.Protocol.GameUtilities.V1.RegisterUtilitiesRequest.Parser, new[]{ "Attribute", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.RegisterUtilitiesResponse), global::Bgs.Protocol.GameUtilities.V1.RegisterUtilitiesResponse.Parser, new[]{ "ClientId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.UnregisterUtilitiesRequest), global::Bgs.Protocol.GameUtilities.V1.UnregisterUtilitiesRequest.Parser, null, null, null, null, null) + })); } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ClientResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ClientResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ClientResponse(ClientResponse other) : this() - { - attribute_ = other.attribute_.Clone(); - } - - public ClientResponse Clone() - { - return new ClientResponse(this); - } - - /// Field number for the "attribute" field. - public const int AttributeFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute - { - get { return attribute_; } - } - - public override bool Equals(object other) - { - return Equals(other as ClientResponse); - } - - public bool Equals(ClientResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!attribute_.Equals(other.attribute_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= attribute_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - attribute_.WriteTo(output, _repeated_attribute_codec); - } - - public int CalculateSize() - { - int size = 0; - size += attribute_.CalculateSize(_repeated_attribute_codec); - return size; - } - - public void MergeFrom(ClientResponse other) - { - if (other == null) - { - return; - } - attribute_.Add(other.attribute_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - attribute_.AddEntriesFrom(input, _repeated_attribute_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ServerRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServerRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ServerRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ServerRequest(ServerRequest other) : this() - { - attribute_ = other.attribute_.Clone(); - program_ = other.program_; - Host = other.host_ != null ? other.Host.Clone() : null; - } - - public ServerRequest Clone() - { - return new ServerRequest(this); - } - - /// Field number for the "attribute" field. - public const int AttributeFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute - { - get { return attribute_; } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 2; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 3; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ServerRequest); - } - - public bool Equals(ServerRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!attribute_.Equals(other.attribute_)) return false; - if (Program != other.Program) return false; - if (!object.Equals(Host, other.Host)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= attribute_.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - if (host_ != null) hash ^= Host.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - attribute_.WriteTo(output, _repeated_attribute_codec); - if (Program != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(Program); - } - if (host_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(Host); - } - } - - public int CalculateSize() - { - int size = 0; - size += attribute_.CalculateSize(_repeated_attribute_codec); - if (Program != 0) - { - size += 1 + 4; - } - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - return size; - } - - public void MergeFrom(ServerRequest other) - { - if (other == null) - { - return; - } - attribute_.Add(other.attribute_); - if (other.Program != 0) - { - Program = other.Program; - } - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - attribute_.AddEntriesFrom(input, _repeated_attribute_codec); - break; - } - case 21: - { - Program = input.ReadFixed32(); - break; - } - case 26: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ServerResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServerResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[3]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ServerResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ServerResponse(ServerResponse other) : this() - { - attribute_ = other.attribute_.Clone(); - } - - public ServerResponse Clone() - { - return new ServerResponse(this); - } - - /// Field number for the "attribute" field. - public const int AttributeFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute - { - get { return attribute_; } - } - - public override bool Equals(object other) - { - return Equals(other as ServerResponse); - } - - public bool Equals(ServerResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!attribute_.Equals(other.attribute_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= attribute_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - attribute_.WriteTo(output, _repeated_attribute_codec); - } - - public int CalculateSize() - { - int size = 0; - size += attribute_.CalculateSize(_repeated_attribute_codec); - return size; - } - - public void MergeFrom(ServerResponse other) - { - if (other == null) - { - return; - } - attribute_.Add(other.attribute_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - attribute_.AddEntriesFrom(input, _repeated_attribute_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class PresenceChannelCreatedRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PresenceChannelCreatedRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public PresenceChannelCreatedRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public PresenceChannelCreatedRequest(PresenceChannelCreatedRequest other) : this() - { - Id = other.id_ != null ? other.Id.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; - Host = other.host_ != null ? other.Host.Clone() : null; - } - - public PresenceChannelCreatedRequest Clone() - { - return new PresenceChannelCreatedRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private Bgs.Protocol.EntityId id_; - public Bgs.Protocol.EntityId Id - { - get { return id_; } - set - { - id_ = value; - } - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 3; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - /// Field number for the "account_id" field. - public const int AccountIdFieldNumber = 4; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId - { - get { return accountId_; } - set - { - accountId_ = value; - } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 5; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as PresenceChannelCreatedRequest); - } - - public bool Equals(PresenceChannelCreatedRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Id, other.Id)) return false; - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (!object.Equals(AccountId, other.AccountId)) return false; - if (!object.Equals(Host, other.Host)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (id_ != null) hash ^= Id.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); - if (host_ != null) hash ^= Host.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (id_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Id); - } - if (gameAccountId_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(GameAccountId); - } - if (accountId_ != null) - { - output.WriteRawTag(34); - output.WriteMessage(AccountId); - } - if (host_ != null) - { - output.WriteRawTag(42); - output.WriteMessage(Host); - } - } - - public int CalculateSize() - { - int size = 0; - if (id_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); - } - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (accountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); - } - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - return size; - } - - public void MergeFrom(PresenceChannelCreatedRequest other) - { - if (other == null) - { - return; - } - if (other.id_ != null) - { - if (id_ == null) - { - id_ = new Bgs.Protocol.EntityId(); - } - Id.MergeFrom(other.Id); - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.accountId_ != null) - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - AccountId.MergeFrom(other.AccountId); - } - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (id_ == null) - { - id_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(id_); - break; - } - case 26: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 34: - { - if (accountId_ == null) - { - accountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(accountId_); - break; - } - case 42: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetPlayerVariablesRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlayerVariablesRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetPlayerVariablesRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetPlayerVariablesRequest(GetPlayerVariablesRequest other) : this() - { - playerVariables_ = other.playerVariables_.Clone(); - Host = other.host_ != null ? other.Host.Clone() : null; - } - - public GetPlayerVariablesRequest Clone() - { - return new GetPlayerVariablesRequest(this); - } - - /// Field number for the "player_variables" field. - public const int PlayerVariablesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_playerVariables_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.GameUtilities.V1.PlayerVariables.Parser); - private readonly pbc::RepeatedField playerVariables_ = new pbc::RepeatedField(); - public pbc::RepeatedField PlayerVariables - { - get { return playerVariables_; } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 2; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetPlayerVariablesRequest); - } - - public bool Equals(GetPlayerVariablesRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!playerVariables_.Equals(other.playerVariables_)) return false; - if (!object.Equals(Host, other.Host)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= playerVariables_.GetHashCode(); - if (host_ != null) hash ^= Host.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - playerVariables_.WriteTo(output, _repeated_playerVariables_codec); - if (host_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(Host); - } - } - - public int CalculateSize() - { - int size = 0; - size += playerVariables_.CalculateSize(_repeated_playerVariables_codec); - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - return size; - } - - public void MergeFrom(GetPlayerVariablesRequest other) - { - if (other == null) - { - return; - } - playerVariables_.Add(other.playerVariables_); - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - playerVariables_.AddEntriesFrom(input, _repeated_playerVariables_codec); - break; - } - case 18: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetPlayerVariablesResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlayerVariablesResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetPlayerVariablesResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetPlayerVariablesResponse(GetPlayerVariablesResponse other) : this() - { - playerVariables_ = other.playerVariables_.Clone(); - } - - public GetPlayerVariablesResponse Clone() - { - return new GetPlayerVariablesResponse(this); - } - - /// Field number for the "player_variables" field. - public const int PlayerVariablesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_playerVariables_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.GameUtilities.V1.PlayerVariables.Parser); - private readonly pbc::RepeatedField playerVariables_ = new pbc::RepeatedField(); - public pbc::RepeatedField PlayerVariables - { - get { return playerVariables_; } - } - - public override bool Equals(object other) - { - return Equals(other as GetPlayerVariablesResponse); - } - - public bool Equals(GetPlayerVariablesResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!playerVariables_.Equals(other.playerVariables_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= playerVariables_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - playerVariables_.WriteTo(output, _repeated_playerVariables_codec); - } - - public int CalculateSize() - { - int size = 0; - size += playerVariables_.CalculateSize(_repeated_playerVariables_codec); - return size; - } - - public void MergeFrom(GetPlayerVariablesResponse other) - { - if (other == null) - { - return; - } - playerVariables_.Add(other.playerVariables_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - playerVariables_.AddEntriesFrom(input, _repeated_playerVariables_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountOnlineNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountOnlineNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[7]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountOnlineNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountOnlineNotification(GameAccountOnlineNotification other) : this() - { - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - Host = other.host_ != null ? other.Host.Clone() : null; - sessionId_ = other.sessionId_; - } - - public GameAccountOnlineNotification Clone() - { - return new GameAccountOnlineNotification(this); - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 2; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - /// Field number for the "session_id" field. - public const int SessionIdFieldNumber = 3; - private string sessionId_ = ""; - public string SessionId - { - get { return sessionId_; } - set - { - sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountOnlineNotification); - } - - public bool Equals(GameAccountOnlineNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (!object.Equals(Host, other.Host)) return false; - if (SessionId != other.SessionId) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (host_ != null) hash ^= Host.GetHashCode(); - if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccountId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccountId); - } - if (host_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(Host); - } - if (SessionId.Length != 0) - { - output.WriteRawTag(26); - output.WriteString(SessionId); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - if (SessionId.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); - } - return size; - } - - public void MergeFrom(GameAccountOnlineNotification other) - { - if (other == null) - { - return; - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - if (other.SessionId.Length != 0) - { - SessionId = other.SessionId; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 18: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - case 26: - { - SessionId = input.ReadString(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GameAccountOfflineNotification : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountOfflineNotification()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[8]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GameAccountOfflineNotification() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GameAccountOfflineNotification(GameAccountOfflineNotification other) : this() - { - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - Host = other.host_ != null ? other.Host.Clone() : null; - sessionId_ = other.sessionId_; - } - - public GameAccountOfflineNotification Clone() - { - return new GameAccountOfflineNotification(this); - } - - /// Field number for the "game_account_id" field. - public const int GameAccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId - { - get { return gameAccountId_; } - set - { - gameAccountId_ = value; - } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 2; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - /// Field number for the "session_id" field. - public const int SessionIdFieldNumber = 3; - private string sessionId_ = ""; - public string SessionId - { - get { return sessionId_; } - set - { - sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) - { - return Equals(other as GameAccountOfflineNotification); - } - - public bool Equals(GameAccountOfflineNotification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(GameAccountId, other.GameAccountId)) return false; - if (!object.Equals(Host, other.Host)) return false; - if (SessionId != other.SessionId) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (host_ != null) hash ^= Host.GetHashCode(); - if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (gameAccountId_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(GameAccountId); - } - if (host_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(Host); - } - if (SessionId.Length != 0) - { - output.WriteRawTag(26); - output.WriteString(SessionId); - } - } - - public int CalculateSize() - { - int size = 0; - if (gameAccountId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); - } - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - if (SessionId.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); - } - return size; - } - - public void MergeFrom(GameAccountOfflineNotification other) - { - if (other == null) - { - return; - } - if (other.gameAccountId_ != null) - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - GameAccountId.MergeFrom(other.GameAccountId); - } - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - if (other.SessionId.Length != 0) - { - SessionId = other.SessionId; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (gameAccountId_ == null) - { - gameAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(gameAccountId_); - break; - } - case 18: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - case 26: - { - SessionId = input.ReadString(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAchievementsFileRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAchievementsFileRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[9]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAchievementsFileRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAchievementsFileRequest(GetAchievementsFileRequest other) : this() - { - Host = other.host_ != null ? other.Host.Clone() : null; - } - - public GetAchievementsFileRequest Clone() - { - return new GetAchievementsFileRequest(this); - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 1; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetAchievementsFileRequest); - } - - public bool Equals(GetAchievementsFileRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Host, other.Host)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (host_ != null) hash ^= Host.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (host_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Host); - } - } - - public int CalculateSize() - { - int size = 0; - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - return size; - } - - public void MergeFrom(GetAchievementsFileRequest other) - { - if (other == null) - { - return; - } - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAchievementsFileResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAchievementsFileResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[10]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAchievementsFileResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAchievementsFileResponse(GetAchievementsFileResponse other) : this() - { - ContentHandle = other.contentHandle_ != null ? other.ContentHandle.Clone() : null; - } - - public GetAchievementsFileResponse Clone() - { - return new GetAchievementsFileResponse(this); - } - - /// Field number for the "content_handle" field. - public const int ContentHandleFieldNumber = 1; - private Bgs.Protocol.ContentHandle contentHandle_; - public Bgs.Protocol.ContentHandle ContentHandle - { - get { return contentHandle_; } - set - { - contentHandle_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetAchievementsFileResponse); - } - - public bool Equals(GetAchievementsFileResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(ContentHandle, other.ContentHandle)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (contentHandle_ != null) hash ^= ContentHandle.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (contentHandle_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(ContentHandle); - } - } - - public int CalculateSize() - { - int size = 0; - if (contentHandle_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContentHandle); - } - return size; - } - - public void MergeFrom(GetAchievementsFileResponse other) - { - if (other == null) - { - return; - } - if (other.contentHandle_ != null) - { - if (contentHandle_ == null) - { - contentHandle_ = new Bgs.Protocol.ContentHandle(); - } - ContentHandle.MergeFrom(other.ContentHandle); - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (contentHandle_ == null) - { - contentHandle_ = new Bgs.Protocol.ContentHandle(); - } - input.ReadMessage(contentHandle_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAllValuesForAttributeRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllValuesForAttributeRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[11]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAllValuesForAttributeRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAllValuesForAttributeRequest(GetAllValuesForAttributeRequest other) : this() - { - attributeKey_ = other.attributeKey_; - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - program_ = other.program_; - } - - public GetAllValuesForAttributeRequest Clone() - { - return new GetAllValuesForAttributeRequest(this); - } - - /// Field number for the "attribute_key" field. - public const int AttributeKeyFieldNumber = 1; - private string attributeKey_ = ""; - public string AttributeKey - { - get { return attributeKey_; } - set - { - attributeKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 2; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId - { - get { return agentId_; } - set - { - agentId_ = value; - } - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 5; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as GetAllValuesForAttributeRequest); - } - - public bool Equals(GetAllValuesForAttributeRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (AttributeKey != other.AttributeKey) return false; - if (!object.Equals(AgentId, other.AgentId)) return false; - if (Program != other.Program) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (AttributeKey.Length != 0) hash ^= AttributeKey.GetHashCode(); - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (AttributeKey.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(AttributeKey); - } - if (agentId_ != null) - { - output.WriteRawTag(18); - output.WriteMessage(AgentId); - } - if (Program != 0) - { - output.WriteRawTag(45); - output.WriteFixed32(Program); - } - } - - public int CalculateSize() - { - int size = 0; - if (AttributeKey.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AttributeKey); - } - if (agentId_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (Program != 0) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(GetAllValuesForAttributeRequest other) - { - if (other == null) - { - return; - } - if (other.AttributeKey.Length != 0) - { - AttributeKey = other.AttributeKey; - } - if (other.agentId_ != null) - { - if (agentId_ == null) - { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.Program != 0) - { - Program = other.Program; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - AttributeKey = input.ReadString(); - break; - } - case 18: - { - if (agentId_ == null) - { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 45: - { - Program = input.ReadFixed32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GetAllValuesForAttributeResponse : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllValuesForAttributeResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[12]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public GetAllValuesForAttributeResponse() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public GetAllValuesForAttributeResponse(GetAllValuesForAttributeResponse other) : this() - { - attributeValue_ = other.attributeValue_.Clone(); - } - - public GetAllValuesForAttributeResponse Clone() - { - return new GetAllValuesForAttributeResponse(this); - } - - /// Field number for the "attribute_value" field. - public const int AttributeValueFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attributeValue_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Variant.Parser); - private readonly pbc::RepeatedField attributeValue_ = new pbc::RepeatedField(); - public pbc::RepeatedField AttributeValue - { - get { return attributeValue_; } - } - - public override bool Equals(object other) - { - return Equals(other as GetAllValuesForAttributeResponse); - } - - public bool Equals(GetAllValuesForAttributeResponse other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!attributeValue_.Equals(other.attributeValue_)) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - hash ^= attributeValue_.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - attributeValue_.WriteTo(output, _repeated_attributeValue_codec); - } - - public int CalculateSize() - { - int size = 0; - size += attributeValue_.CalculateSize(_repeated_attributeValue_codec); - return size; - } - - public void MergeFrom(GetAllValuesForAttributeResponse other) - { - if (other == null) - { - return; - } - attributeValue_.Add(other.attributeValue_); - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - attributeValue_.AddEntriesFrom(input, _repeated_attributeValue_codec); - break; - } - } - } - } - - } - #endregion + + } + #region Messages + public sealed partial class ClientRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClientRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClientRequest(ClientRequest other) : this() { + _hasBits0 = other._hasBits0; + attribute_ = other.attribute_.Clone(); + host_ = other.HasHost ? other.host_.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + program_ = other.program_; + clientInfo_ = other.HasClientInfo ? other.clientInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClientRequest Clone() { + return new ClientRequest(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 2; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 3; + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 4; + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { + get { return gameAccountId_; } + set { + gameAccountId_ = value; + } + } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 5; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + /// Field number for the "client_info" field. + public const int ClientInfoFieldNumber = 6; + private global::Bgs.Protocol.GameUtilities.V1.ClientInfo clientInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.GameUtilities.V1.ClientInfo ClientInfo { + get { return clientInfo_; } + set { + clientInfo_ = value; + } + } + /// Gets whether the client_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientInfo { + get { return clientInfo_ != null; } + } + /// Clears the value of the client_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientInfo() { + clientInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClientRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClientRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + if (!object.Equals(Host, other.Host)) return false; + if (!object.Equals(AccountId, other.AccountId)) return false; + if (!object.Equals(GameAccountId, other.GameAccountId)) return false; + if (Program != other.Program) return false; + if (!object.Equals(ClientInfo, other.ClientInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (HasHost) hash ^= Host.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasClientInfo) hash ^= ClientInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasHost) { + output.WriteRawTag(18); + output.WriteMessage(Host); + } + if (HasAccountId) { + output.WriteRawTag(26); + output.WriteMessage(AccountId); + } + if (HasGameAccountId) { + output.WriteRawTag(34); + output.WriteMessage(GameAccountId); + } + if (HasProgram) { + output.WriteRawTag(45); + output.WriteFixed32(Program); + } + if (HasClientInfo) { + output.WriteRawTag(50); + output.WriteMessage(ClientInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + if (HasGameAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); + } + if (HasProgram) { + size += 1 + 4; + } + if (HasClientInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClientRequest other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + AccountId.MergeFrom(other.AccountId); + } + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + GameAccountId.MergeFrom(other.GameAccountId); + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasClientInfo) { + if (!HasClientInfo) { + ClientInfo = new global::Bgs.Protocol.GameUtilities.V1.ClientInfo(); + } + ClientInfo.MergeFrom(other.ClientInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 18: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + case 26: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); + break; + } + case 34: { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(GameAccountId); + break; + } + case 45: { + Program = input.ReadFixed32(); + break; + } + case 50: { + if (!HasClientInfo) { + ClientInfo = new global::Bgs.Protocol.GameUtilities.V1.ClientInfo(); + } + input.ReadMessage(ClientInfo); + break; + } + } + } + } + + } + + public sealed partial class ClientResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClientResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClientResponse(ClientResponse other) : this() { + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ClientResponse Clone() { + return new ClientResponse(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ClientResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ClientResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ClientResponse other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + } + + public sealed partial class ServerRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServerRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerRequest(ServerRequest other) : this() { + _hasBits0 = other._hasBits0; + attribute_ = other.attribute_.Clone(); + program_ = other.program_; + host_ = other.HasHost ? other.host_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerRequest Clone() { + return new ServerRequest(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 2; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 3; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ServerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ServerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + if (Program != other.Program) return false; + if (!object.Equals(Host, other.Host)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasHost) hash ^= Host.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasProgram) { + output.WriteRawTag(21); + output.WriteFixed32(Program); + } + if (HasHost) { + output.WriteRawTag(26); + output.WriteMessage(Host); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasProgram) { + size += 1 + 4; + } + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ServerRequest other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 21: { + Program = input.ReadFixed32(); + break; + } + case 26: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + } + } + } + + } + + public sealed partial class ServerResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServerResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerResponse(ServerResponse other) : this() { + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServerResponse Clone() { + return new ServerResponse(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ServerResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ServerResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ServerResponse other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + } + + public sealed partial class PresenceChannelCreatedRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PresenceChannelCreatedRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PresenceChannelCreatedRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PresenceChannelCreatedRequest(PresenceChannelCreatedRequest other) : this() { + id_ = other.HasId ? other.id_.Clone() : null; + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + host_ = other.HasHost ? other.host_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PresenceChannelCreatedRequest Clone() { + return new PresenceChannelCreatedRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private global::Bgs.Protocol.EntityId id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId Id { + get { return id_; } + set { + id_ = value; + } + } + /// Gets whether the id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + id_ = null; + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 3; + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { + get { return gameAccountId_; } + set { + gameAccountId_ = value; + } + } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + + /// Field number for the "account_id" field. + public const int AccountIdFieldNumber = 4; + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { + get { return accountId_; } + set { + accountId_ = value; + } + } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 5; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as PresenceChannelCreatedRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(PresenceChannelCreatedRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Id, other.Id)) return false; + if (!object.Equals(GameAccountId, other.GameAccountId)) return false; + if (!object.Equals(AccountId, other.AccountId)) return false; + if (!object.Equals(Host, other.Host)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasHost) hash ^= Host.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteMessage(Id); + } + if (HasGameAccountId) { + output.WriteRawTag(26); + output.WriteMessage(GameAccountId); + } + if (HasAccountId) { + output.WriteRawTag(34); + output.WriteMessage(AccountId); + } + if (HasHost) { + output.WriteRawTag(42); + output.WriteMessage(Host); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (HasGameAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); + } + if (HasAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); + } + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(PresenceChannelCreatedRequest other) { + if (other == null) { + return; + } + if (other.HasId) { + if (!HasId) { + Id = new global::Bgs.Protocol.EntityId(); + } + Id.MergeFrom(other.Id); + } + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + GameAccountId.MergeFrom(other.GameAccountId); + } + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + AccountId.MergeFrom(other.AccountId); + } + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasId) { + Id = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(Id); + break; + } + case 26: { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(GameAccountId); + break; + } + case 34: { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AccountId); + break; + } + case 42: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + } + } + } + + } + + public sealed partial class GetPlayerVariablesRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlayerVariablesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPlayerVariablesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPlayerVariablesRequest(GetPlayerVariablesRequest other) : this() { + playerVariables_ = other.playerVariables_.Clone(); + host_ = other.HasHost ? other.host_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPlayerVariablesRequest Clone() { + return new GetPlayerVariablesRequest(this); + } + + /// Field number for the "player_variables" field. + public const int PlayerVariablesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_playerVariables_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.GameUtilities.V1.PlayerVariables.Parser); + private readonly pbc::RepeatedField playerVariables_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField PlayerVariables { + get { return playerVariables_; } + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 2; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetPlayerVariablesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetPlayerVariablesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!playerVariables_.Equals(other.playerVariables_)) return false; + if (!object.Equals(Host, other.Host)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= playerVariables_.GetHashCode(); + if (HasHost) hash ^= Host.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + playerVariables_.WriteTo(output, _repeated_playerVariables_codec); + if (HasHost) { + output.WriteRawTag(18); + output.WriteMessage(Host); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += playerVariables_.CalculateSize(_repeated_playerVariables_codec); + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetPlayerVariablesRequest other) { + if (other == null) { + return; + } + playerVariables_.Add(other.playerVariables_); + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + playerVariables_.AddEntriesFrom(input, _repeated_playerVariables_codec); + break; + } + case 18: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + } + } + } + + } + + public sealed partial class GetPlayerVariablesResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlayerVariablesResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPlayerVariablesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPlayerVariablesResponse(GetPlayerVariablesResponse other) : this() { + playerVariables_ = other.playerVariables_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetPlayerVariablesResponse Clone() { + return new GetPlayerVariablesResponse(this); + } + + /// Field number for the "player_variables" field. + public const int PlayerVariablesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_playerVariables_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.GameUtilities.V1.PlayerVariables.Parser); + private readonly pbc::RepeatedField playerVariables_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField PlayerVariables { + get { return playerVariables_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetPlayerVariablesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetPlayerVariablesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!playerVariables_.Equals(other.playerVariables_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= playerVariables_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + playerVariables_.WriteTo(output, _repeated_playerVariables_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += playerVariables_.CalculateSize(_repeated_playerVariables_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetPlayerVariablesResponse other) { + if (other == null) { + return; + } + playerVariables_.Add(other.playerVariables_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + playerVariables_.AddEntriesFrom(input, _repeated_playerVariables_codec); + break; + } + } + } + } + + } + + public sealed partial class GameAccountOnlineNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountOnlineNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountOnlineNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountOnlineNotification(GameAccountOnlineNotification other) : this() { + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + host_ = other.HasHost ? other.host_.Clone() : null; + sessionId_ = other.sessionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountOnlineNotification Clone() { + return new GameAccountOnlineNotification(this); + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { + get { return gameAccountId_; } + set { + gameAccountId_ = value; + } + } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 2; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 3; + private readonly static string SessionIdDefaultValue = ""; + + private string sessionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string SessionId { + get { return sessionId_ ?? SessionIdDefaultValue; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "session_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSessionId { + get { return sessionId_ != null; } + } + /// Clears the value of the "session_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSessionId() { + sessionId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountOnlineNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountOnlineNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccountId, other.GameAccountId)) return false; + if (!object.Equals(Host, other.Host)) return false; + if (SessionId != other.SessionId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (HasHost) hash ^= Host.GetHashCode(); + if (HasSessionId) hash ^= SessionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccountId) { + output.WriteRawTag(10); + output.WriteMessage(GameAccountId); + } + if (HasHost) { + output.WriteRawTag(18); + output.WriteMessage(Host); + } + if (HasSessionId) { + output.WriteRawTag(26); + output.WriteString(SessionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); + } + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (HasSessionId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountOnlineNotification other) { + if (other == null) { + return; + } + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + GameAccountId.MergeFrom(other.GameAccountId); + } + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + if (other.HasSessionId) { + SessionId = other.SessionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(GameAccountId); + break; + } + case 18: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + case 26: { + SessionId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class GameAccountOfflineNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameAccountOfflineNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountOfflineNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountOfflineNotification(GameAccountOfflineNotification other) : this() { + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + host_ = other.HasHost ? other.host_.Clone() : null; + sessionId_ = other.sessionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GameAccountOfflineNotification Clone() { + return new GameAccountOfflineNotification(this); + } + + /// Field number for the "game_account_id" field. + public const int GameAccountIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { + get { return gameAccountId_; } + set { + gameAccountId_ = value; + } + } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 2; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 3; + private readonly static string SessionIdDefaultValue = ""; + + private string sessionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string SessionId { + get { return sessionId_ ?? SessionIdDefaultValue; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "session_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSessionId { + get { return sessionId_ != null; } + } + /// Clears the value of the "session_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSessionId() { + sessionId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GameAccountOfflineNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GameAccountOfflineNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GameAccountId, other.GameAccountId)) return false; + if (!object.Equals(Host, other.Host)) return false; + if (SessionId != other.SessionId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (HasHost) hash ^= Host.GetHashCode(); + if (HasSessionId) hash ^= SessionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasGameAccountId) { + output.WriteRawTag(10); + output.WriteMessage(GameAccountId); + } + if (HasHost) { + output.WriteRawTag(18); + output.WriteMessage(Host); + } + if (HasSessionId) { + output.WriteRawTag(26); + output.WriteString(SessionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGameAccountId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); + } + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (HasSessionId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GameAccountOfflineNotification other) { + if (other == null) { + return; + } + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + GameAccountId.MergeFrom(other.GameAccountId); + } + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + if (other.HasSessionId) { + SessionId = other.SessionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(GameAccountId); + break; + } + case 18: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + case 26: { + SessionId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class GetAchievementsFileRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAchievementsFileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAchievementsFileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAchievementsFileRequest(GetAchievementsFileRequest other) : this() { + host_ = other.HasHost ? other.host_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAchievementsFileRequest Clone() { + return new GetAchievementsFileRequest(this); + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 1; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAchievementsFileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetAchievementsFileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Host, other.Host)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasHost) hash ^= Host.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasHost) { + output.WriteRawTag(10); + output.WriteMessage(Host); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetAchievementsFileRequest other) { + if (other == null) { + return; + } + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + } + } + } + + } + + public sealed partial class GetAchievementsFileResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAchievementsFileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAchievementsFileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAchievementsFileResponse(GetAchievementsFileResponse other) : this() { + contentHandle_ = other.HasContentHandle ? other.contentHandle_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAchievementsFileResponse Clone() { + return new GetAchievementsFileResponse(this); + } + + /// Field number for the "content_handle" field. + public const int ContentHandleFieldNumber = 1; + private global::Bgs.Protocol.ContentHandle contentHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ContentHandle ContentHandle { + get { return contentHandle_; } + set { + contentHandle_ = value; + } + } + /// Gets whether the content_handle field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContentHandle { + get { return contentHandle_ != null; } + } + /// Clears the value of the content_handle field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContentHandle() { + contentHandle_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAchievementsFileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetAchievementsFileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ContentHandle, other.ContentHandle)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasContentHandle) hash ^= ContentHandle.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasContentHandle) { + output.WriteRawTag(10); + output.WriteMessage(ContentHandle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasContentHandle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContentHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetAchievementsFileResponse other) { + if (other == null) { + return; + } + if (other.HasContentHandle) { + if (!HasContentHandle) { + ContentHandle = new global::Bgs.Protocol.ContentHandle(); + } + ContentHandle.MergeFrom(other.ContentHandle); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasContentHandle) { + ContentHandle = new global::Bgs.Protocol.ContentHandle(); + } + input.ReadMessage(ContentHandle); + break; + } + } + } + } + + } + + public sealed partial class GetAllValuesForAttributeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllValuesForAttributeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAllValuesForAttributeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAllValuesForAttributeRequest(GetAllValuesForAttributeRequest other) : this() { + _hasBits0 = other._hasBits0; + attributeKey_ = other.attributeKey_; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAllValuesForAttributeRequest Clone() { + return new GetAllValuesForAttributeRequest(this); + } + + /// Field number for the "attribute_key" field. + public const int AttributeKeyFieldNumber = 1; + private readonly static string AttributeKeyDefaultValue = ""; + + private string attributeKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string AttributeKey { + get { return attributeKey_ ?? AttributeKeyDefaultValue; } + set { + attributeKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "attribute_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAttributeKey { + get { return attributeKey_ != null; } + } + /// Clears the value of the "attribute_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAttributeKey() { + attributeKey_ = null; + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 2; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 5; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAllValuesForAttributeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetAllValuesForAttributeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AttributeKey != other.AttributeKey) return false; + if (!object.Equals(AgentId, other.AgentId)) return false; + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAttributeKey) hash ^= AttributeKey.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAttributeKey) { + output.WriteRawTag(10); + output.WriteString(AttributeKey); + } + if (HasAgentId) { + output.WriteRawTag(18); + output.WriteMessage(AgentId); + } + if (HasProgram) { + output.WriteRawTag(45); + output.WriteFixed32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAttributeKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AttributeKey); + } + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasProgram) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetAllValuesForAttributeRequest other) { + if (other == null) { + return; + } + if (other.HasAttributeKey) { + AttributeKey = other.AttributeKey; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + AttributeKey = input.ReadString(); + break; + } + case 18: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + case 45: { + Program = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class GetAllValuesForAttributeResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllValuesForAttributeResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAllValuesForAttributeResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAllValuesForAttributeResponse(GetAllValuesForAttributeResponse other) : this() { + attributeValue_ = other.attributeValue_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetAllValuesForAttributeResponse Clone() { + return new GetAllValuesForAttributeResponse(this); + } + + /// Field number for the "attribute_value" field. + public const int AttributeValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attributeValue_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Variant.Parser); + private readonly pbc::RepeatedField attributeValue_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField AttributeValue { + get { return attributeValue_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetAllValuesForAttributeResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetAllValuesForAttributeResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attributeValue_.Equals(other.attributeValue_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attributeValue_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attributeValue_.WriteTo(output, _repeated_attributeValue_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attributeValue_.CalculateSize(_repeated_attributeValue_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetAllValuesForAttributeResponse other) { + if (other == null) { + return; + } + attributeValue_.Add(other.attributeValue_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attributeValue_.AddEntriesFrom(input, _repeated_attributeValue_codec); + break; + } + } + } + } + + } + + public sealed partial class RegisterUtilitiesRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterUtilitiesRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterUtilitiesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterUtilitiesRequest(RegisterUtilitiesRequest other) : this() { + _hasBits0 = other._hasBits0; + attribute_ = other.attribute_.Clone(); + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterUtilitiesRequest Clone() { + return new RegisterUtilitiesRequest(this); + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 2; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RegisterUtilitiesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RegisterUtilitiesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!attribute_.Equals(other.attribute_)) return false; + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= attribute_.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasProgram) { + output.WriteRawTag(21); + output.WriteFixed32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasProgram) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RegisterUtilitiesRequest other) { + if (other == null) { + return; + } + attribute_.Add(other.attribute_); + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 21: { + Program = input.ReadFixed32(); + break; + } + } + } + } + + } + + public sealed partial class RegisterUtilitiesResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterUtilitiesResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterUtilitiesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterUtilitiesResponse(RegisterUtilitiesResponse other) : this() { + clientId_ = other.clientId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RegisterUtilitiesResponse Clone() { + return new RegisterUtilitiesResponse(this); + } + + /// Field number for the "client_id" field. + public const int ClientIdFieldNumber = 1; + private readonly static string ClientIdDefaultValue = ""; + + private string clientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ClientId { + get { return clientId_ ?? ClientIdDefaultValue; } + set { + clientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "client_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientId { + get { return clientId_ != null; } + } + /// Clears the value of the "client_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientId() { + clientId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RegisterUtilitiesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RegisterUtilitiesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientId != other.ClientId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClientId) hash ^= ClientId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClientId) { + output.WriteRawTag(10); + output.WriteString(ClientId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClientId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RegisterUtilitiesResponse other) { + if (other == null) { + return; + } + if (other.HasClientId) { + ClientId = other.ClientId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ClientId = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class UnregisterUtilitiesRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnregisterUtilitiesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesServiceReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnregisterUtilitiesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnregisterUtilitiesRequest(UnregisterUtilitiesRequest other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnregisterUtilitiesRequest Clone() { + return new UnregisterUtilitiesRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnregisterUtilitiesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnregisterUtilitiesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnregisterUtilitiesRequest other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/GameUtilitiesTypes.cs b/Source/Framework/Proto/GameUtilitiesTypes.cs index 0b56ca7ea..93c6981a6 100644 --- a/Source/Framework/Proto/GameUtilitiesTypes.cs +++ b/Source/Framework/Proto/GameUtilitiesTypes.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/game_utilities_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/game_utilities_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.GameUtilities.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.GameUtilities.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/game_utilities_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/game_utilities_types.proto public static partial class GameUtilitiesTypesReflection { #region Descriptor @@ -21,91 +22,127 @@ namespace Bgs.Protocol.GameUtilities.V1 private static pbr::FileDescriptor descriptor; static GameUtilitiesTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CixiZ3MvbG93L3BiL2NsaWVudC9nYW1lX3V0aWxpdGllc190eXBlcy5wcm90", "bxIeYmdzLnByb3RvY29sLmdhbWVfdXRpbGl0aWVzLnYxGidiZ3MvbG93L3Bi", "L2NsaWVudC9hdHRyaWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xp", "ZW50L2VudGl0eV90eXBlcy5wcm90byJ3Cg9QbGF5ZXJWYXJpYWJsZXMSKAoI", - "aWRlbnRpdHkYASABKAsyFi5iZ3MucHJvdG9jb2wuSWRlbnRpdHkSDgoGcmF0", + "aWRlbnRpdHkYASACKAsyFi5iZ3MucHJvdG9jb2wuSWRlbnRpdHkSDgoGcmF0", "aW5nGAIgASgBEioKCWF0dHJpYnV0ZRgDIAMoCzIXLmJncy5wcm90b2NvbC5B", "dHRyaWJ1dGUiQAoKQ2xpZW50SW5mbxIWCg5jbGllbnRfYWRkcmVzcxgBIAEo", - "CRIaChJwcml2aWxlZ2VkX25ldHdvcmsYAiABKAhCPAofYm5ldC5wcm90b2Nv", - "bC5nYW1lX3V0aWxpdGllcy52MUIXR2FtZVV0aWxpdGllc1R5cGVzUHJvdG9I", - "AmIGcHJvdG8z")); + "CRIaChJwcml2aWxlZ2VkX25ldHdvcmsYAiABKAhCOgofYm5ldC5wcm90b2Nv", + "bC5nYW1lX3V0aWxpdGllcy52MUIXR2FtZVV0aWxpdGllc1R5cGVzUHJvdG8=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.PlayerVariables), Bgs.Protocol.GameUtilities.V1.PlayerVariables.Parser, new[]{ "Identity", "Rating", "Attribute" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.ClientInfo), Bgs.Protocol.GameUtilities.V1.ClientInfo.Parser, new[]{ "ClientAddress", "PrivilegedNetwork" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.PlayerVariables), global::Bgs.Protocol.GameUtilities.V1.PlayerVariables.Parser, new[]{ "Identity", "Rating", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GameUtilities.V1.ClientInfo), global::Bgs.Protocol.GameUtilities.V1.ClientInfo.Parser, new[]{ "ClientAddress", "PrivilegedNetwork" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class PlayerVariables : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerVariables()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PlayerVariables() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PlayerVariables(PlayerVariables other) : this() { - Identity = other.identity_ != null ? other.Identity.Clone() : null; + _hasBits0 = other._hasBits0; + identity_ = other.HasIdentity ? other.identity_.Clone() : null; rating_ = other.rating_; attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PlayerVariables Clone() { return new PlayerVariables(this); } /// Field number for the "identity" field. public const int IdentityFieldNumber = 1; - private Bgs.Protocol.Identity identity_; - public Bgs.Protocol.Identity Identity { + private global::Bgs.Protocol.Identity identity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Identity Identity { get { return identity_; } set { identity_ = value; } } + /// Gets whether the identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIdentity { + get { return identity_ != null; } + } + /// Clears the value of the identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIdentity() { + identity_ = null; + } /// Field number for the "rating" field. public const int RatingFieldNumber = 2; + private readonly static double RatingDefaultValue = 0D; + private double rating_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Rating { - get { return rating_; } + get { if ((_hasBits0 & 1) != 0) { return rating_; } else { return RatingDefaultValue; } } set { + _hasBits0 |= 1; rating_ = value; } } + /// Gets whether the "rating" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRating { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "rating" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRating() { + _hasBits0 &= ~1; + } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { get { return attribute_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as PlayerVariables); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(PlayerVariables other) { if (ReferenceEquals(other, null)) { return false; @@ -114,75 +151,91 @@ namespace Bgs.Protocol.GameUtilities.V1 return true; } if (!object.Equals(Identity, other.Identity)) return false; - if (Rating != other.Rating) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Rating, other.Rating)) return false; if(!attribute_.Equals(other.attribute_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (identity_ != null) hash ^= Identity.GetHashCode(); - if (Rating != 0D) hash ^= Rating.GetHashCode(); + if (HasIdentity) hash ^= Identity.GetHashCode(); + if (HasRating) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Rating); hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (identity_ != null) { + if (HasIdentity) { output.WriteRawTag(10); output.WriteMessage(Identity); } - if (Rating != 0D) { + if (HasRating) { output.WriteRawTag(17); output.WriteDouble(Rating); } attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (identity_ != null) { + if (HasIdentity) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity); } - if (Rating != 0D) { + if (HasRating) { size += 1 + 8; } size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(PlayerVariables other) { if (other == null) { return; } - if (other.identity_ != null) { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Identity(); + if (other.HasIdentity) { + if (!HasIdentity) { + Identity = new global::Bgs.Protocol.Identity(); } Identity.MergeFrom(other.Identity); } - if (other.Rating != 0D) { + if (other.HasRating) { Rating = other.Rating; } attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Identity(); + if (!HasIdentity) { + Identity = new global::Bgs.Protocol.Identity(); } - input.ReadMessage(identity_); + input.ReadMessage(Identity); break; } case 17: { @@ -199,58 +252,96 @@ namespace Bgs.Protocol.GameUtilities.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ClientInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesTypesReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.GameUtilities.V1.GameUtilitiesTypesReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClientInfo() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClientInfo(ClientInfo other) : this() { + _hasBits0 = other._hasBits0; clientAddress_ = other.clientAddress_; privilegedNetwork_ = other.privilegedNetwork_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClientInfo Clone() { return new ClientInfo(this); } /// Field number for the "client_address" field. public const int ClientAddressFieldNumber = 1; - private string clientAddress_ = ""; + private readonly static string ClientAddressDefaultValue = ""; + + private string clientAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ClientAddress { - get { return clientAddress_; } + get { return clientAddress_ ?? ClientAddressDefaultValue; } set { clientAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "client_address" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientAddress { + get { return clientAddress_ != null; } + } + /// Clears the value of the "client_address" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientAddress() { + clientAddress_ = null; + } /// Field number for the "privileged_network" field. public const int PrivilegedNetworkFieldNumber = 2; + private readonly static bool PrivilegedNetworkDefaultValue = false; + private bool privilegedNetwork_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool PrivilegedNetwork { - get { return privilegedNetwork_; } + get { if ((_hasBits0 & 1) != 0) { return privilegedNetwork_; } else { return PrivilegedNetworkDefaultValue; } } set { + _hasBits0 |= 1; privilegedNetwork_ = value; } } + /// Gets whether the "privileged_network" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivilegedNetwork { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "privileged_network" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivilegedNetwork() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ClientInfo); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ClientInfo other) { if (ReferenceEquals(other, null)) { return false; @@ -260,60 +351,76 @@ namespace Bgs.Protocol.GameUtilities.V1 } if (ClientAddress != other.ClientAddress) return false; if (PrivilegedNetwork != other.PrivilegedNetwork) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (ClientAddress.Length != 0) hash ^= ClientAddress.GetHashCode(); - if (PrivilegedNetwork != false) hash ^= PrivilegedNetwork.GetHashCode(); + if (HasClientAddress) hash ^= ClientAddress.GetHashCode(); + if (HasPrivilegedNetwork) hash ^= PrivilegedNetwork.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (ClientAddress.Length != 0) { + if (HasClientAddress) { output.WriteRawTag(10); output.WriteString(ClientAddress); } - if (PrivilegedNetwork != false) { + if (HasPrivilegedNetwork) { output.WriteRawTag(16); output.WriteBool(PrivilegedNetwork); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (ClientAddress.Length != 0) { + if (HasClientAddress) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientAddress); } - if (PrivilegedNetwork != false) { + if (HasPrivilegedNetwork) { size += 1 + 1; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ClientInfo other) { if (other == null) { return; } - if (other.ClientAddress.Length != 0) { + if (other.HasClientAddress) { ClientAddress = other.ClientAddress; } - if (other.PrivilegedNetwork != false) { + if (other.HasPrivilegedNetwork) { PrivilegedNetwork = other.PrivilegedNetwork; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ClientAddress = input.ReadString(); diff --git a/Source/Framework/Proto/GlobalExtensions/FieldOptions.cs b/Source/Framework/Proto/GlobalExtensions/FieldOptions.cs index eaaf9c99e..b93d1dbbf 100644 --- a/Source/Framework/Proto/GlobalExtensions/FieldOptions.cs +++ b/Source/Framework/Proto/GlobalExtensions/FieldOptions.cs @@ -1,14 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/global_extensions/field_options.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/global_extensions/field_options.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/field_options.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/field_options.proto public static partial class FieldOptionsReflection { #region Descriptor @@ -19,26 +22,2268 @@ namespace Bgs.Protocol private static pbr::FileDescriptor descriptor; static FieldOptionsReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9maWVsZF9v", "cHRpb25zLnByb3RvEgxiZ3MucHJvdG9jb2waIGdvb2dsZS9wcm90b2J1Zi9k", - "ZXNjcmlwdG9yLnByb3RvKioKCUxvZ09wdGlvbhIICgROT05FEAASCgoGSElE", - "REVOEAESBwoDSEVYEAI6RQoDbG9nEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxk", - "T3B0aW9ucxjQhgMgASgOMhcuYmdzLnByb3RvY29sLkxvZ09wdGlvbkIkCg1i", - "bmV0LnByb3RvY29sQhFGaWVsZE9wdGlvbnNQcm90b0gCYgZwcm90bzM=")); + "ZXNjcmlwdG9yLnByb3RvGi9iZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0", + "ZW5zaW9ucy9yYW5nZS5wcm90byJmCg9CR1NGaWVsZE9wdGlvbnMSLAoDbG9n", + "GAEgASgOMhcuYmdzLnByb3RvY29sLkxvZ09wdGlvbjoGSElEREVOEhEKCXNo", + "YXJkX2tleRgCIAEoCBISCgpmYW5vdXRfa2V5GAMgASgIIqoDChBGaWVsZFJl", + "c3RyaWN0aW9uEjYKBnNpZ25lZBgBIAEoCzIkLmJncy5wcm90b2NvbC5TaWdu", + "ZWRGaWVsZFJlc3RyaWN0aW9uSAASOgoIdW5zaWduZWQYAiABKAsyJi5iZ3Mu", + "cHJvdG9jb2wuVW5zaWduZWRGaWVsZFJlc3RyaWN0aW9uSAASNAoFZmxvYXQY", + "AyABKAsyIy5iZ3MucHJvdG9jb2wuRmxvYXRGaWVsZFJlc3RyaWN0aW9uSAAS", + "NgoGc3RyaW5nGAQgASgLMiQuYmdzLnByb3RvY29sLlN0cmluZ0ZpZWxkUmVz", + "dHJpY3Rpb25IABI6CghyZXBlYXRlZBgFIAEoCzImLmJncy5wcm90b2NvbC5S", + "ZXBlYXRlZEZpZWxkUmVzdHJpY3Rpb25IABI4CgdtZXNzYWdlGAYgASgLMiUu", + "YmdzLnByb3RvY29sLk1lc3NhZ2VGaWVsZFJlc3RyaWN0aW9uSAASNgoJZW50", + "aXR5X2lkGAcgASgLMiEuYmdzLnByb3RvY29sLkVudGl0eUlkUmVzdHJpY3Rp", + "b25IAEIGCgR0eXBlIvoCChhSZXBlYXRlZEZpZWxkUmVzdHJpY3Rpb24SLAoE", + "c2l6ZRgBIAEoCzIeLmJncy5wcm90b2NvbC5VbnNpZ25lZEludFJhbmdlEg4K", + "BnVuaXF1ZRgCIAEoCBI2CgZzaWduZWQYAyABKAsyJC5iZ3MucHJvdG9jb2wu", + "U2lnbmVkRmllbGRSZXN0cmljdGlvbkgAEjoKCHVuc2lnbmVkGAQgASgLMiYu", + "YmdzLnByb3RvY29sLlVuc2lnbmVkRmllbGRSZXN0cmljdGlvbkgAEjQKBWZs", + "b2F0GAUgASgLMiMuYmdzLnByb3RvY29sLkZsb2F0RmllbGRSZXN0cmljdGlv", + "bkgAEjYKBnN0cmluZxgGIAEoCzIkLmJncy5wcm90b2NvbC5TdHJpbmdGaWVs", + "ZFJlc3RyaWN0aW9uSAASNgoJZW50aXR5X2lkGAcgASgLMiEuYmdzLnByb3Rv", + "Y29sLkVudGl0eUlkUmVzdHJpY3Rpb25IAEIGCgR0eXBlIlcKFlNpZ25lZEZp", + "ZWxkUmVzdHJpY3Rpb24SLAoGbGltaXRzGAEgASgLMhwuYmdzLnByb3RvY29s", + "LlNpZ25lZEludFJhbmdlEg8KB2V4Y2x1ZGUYAiADKBIiWwoYVW5zaWduZWRG", + "aWVsZFJlc3RyaWN0aW9uEi4KBmxpbWl0cxgBIAEoCzIeLmJncy5wcm90b2Nv", + "bC5VbnNpZ25lZEludFJhbmdlEg8KB2V4Y2x1ZGUYAiADKAQiUgoVRmxvYXRG", + "aWVsZFJlc3RyaWN0aW9uEigKBmxpbWl0cxgBIAEoCzIYLmJncy5wcm90b2Nv", + "bC5GbG9hdFJhbmdlEg8KB2V4Y2x1ZGUYAiADKAIiVwoWU3RyaW5nRmllbGRS", + "ZXN0cmljdGlvbhIsCgRzaXplGAEgASgLMh4uYmdzLnByb3RvY29sLlVuc2ln", + "bmVkSW50UmFuZ2USDwoHZXhjbHVkZRgCIAMoCSLHAQoTRW50aXR5SWRSZXN0", + "cmljdGlvbhIOCgZuZWVkZWQYASABKAgSOQoEa2luZBgCIAEoDjImLmJncy5w", + "cm90b2NvbC5FbnRpdHlJZFJlc3RyaWN0aW9uLktpbmQ6A0FOWSJlCgRLaW5k", + "EgcKA0FOWRAAEgsKB0FDQ09VTlQQARIQCgxHQU1FX0FDQ09VTlQQAhIbChdB", + "Q0NPVU5UX09SX0dBTUVfQUNDT1VOVBADEgsKB1NFUlZJQ0UQBBILCgdDSEFO", + "TkVMEAUiKQoXTWVzc2FnZUZpZWxkUmVzdHJpY3Rpb24SDgoGbmVlZGVkGAEg", + "ASgIKiAKCUxvZ09wdGlvbhIKCgZISURERU4QARIHCgNIRVgQAjpVCg1maWVs", + "ZF9vcHRpb25zEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxiQvwUg", + "ASgLMh0uYmdzLnByb3RvY29sLkJHU0ZpZWxkT3B0aW9uczpOCgV2YWxpZBId", + "Lmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYkb8FIAEoCzIeLmJncy5w", + "cm90b2NvbC5GaWVsZFJlc3RyaWN0aW9uQiIKDWJuZXQucHJvdG9jb2xCEUZp", + "ZWxkT3B0aW9uc1Byb3Rv")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(Bgs.Protocol.LogOption), }, null)); + new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, global::Bgs.Protocol.RangeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.LogOption), }, new pb::Extension[] { FieldOptionsExtensions.FieldOptions_, FieldOptionsExtensions.Valid }, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.BGSFieldOptions), global::Bgs.Protocol.BGSFieldOptions.Parser, new[]{ "Log", "ShardKey", "FanoutKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.FieldRestriction), global::Bgs.Protocol.FieldRestriction.Parser, new[]{ "Signed", "Unsigned", "Float", "String", "Repeated", "Message", "EntityId" }, new[]{ "Type" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.RepeatedFieldRestriction), global::Bgs.Protocol.RepeatedFieldRestriction.Parser, new[]{ "Size", "Unique", "Signed", "Unsigned", "Float", "String", "EntityId" }, new[]{ "Type" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.SignedFieldRestriction), global::Bgs.Protocol.SignedFieldRestriction.Parser, new[]{ "Limits", "Exclude" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UnsignedFieldRestriction), global::Bgs.Protocol.UnsignedFieldRestriction.Parser, new[]{ "Limits", "Exclude" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.FloatFieldRestriction), global::Bgs.Protocol.FloatFieldRestriction.Parser, new[]{ "Limits", "Exclude" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.StringFieldRestriction), global::Bgs.Protocol.StringFieldRestriction.Parser, new[]{ "Size", "Exclude" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.EntityIdRestriction), global::Bgs.Protocol.EntityIdRestriction.Parser, new[]{ "Needed", "Kind" }, null, new[]{ typeof(global::Bgs.Protocol.EntityIdRestriction.Types.Kind) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.MessageFieldRestriction), global::Bgs.Protocol.MessageFieldRestriction.Parser, new[]{ "Needed" }, null, null, null, null) + })); } #endregion } + /// Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/field_options.proto + public static partial class FieldOptionsExtensions { + public static readonly pb::Extension FieldOptions_ = + new pb::Extension(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSFieldOptions.Parser)); + public static readonly pb::Extension Valid = + new pb::Extension(90001, pb::FieldCodec.ForMessage(720010, global::Bgs.Protocol.FieldRestriction.Parser)); + } + #region Enums public enum LogOption { - NONE = 0, - HIDDEN = 1, - HEX = 2, + [pbr::OriginalName("HIDDEN")] Hidden = 1, + [pbr::OriginalName("HEX")] Hex = 2, + } + + #endregion + + #region Messages + public sealed partial class BGSFieldOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BGSFieldOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSFieldOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSFieldOptions(BGSFieldOptions other) : this() { + _hasBits0 = other._hasBits0; + log_ = other.log_; + shardKey_ = other.shardKey_; + fanoutKey_ = other.fanoutKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSFieldOptions Clone() { + return new BGSFieldOptions(this); + } + + /// Field number for the "log" field. + public const int LogFieldNumber = 1; + private readonly static global::Bgs.Protocol.LogOption LogDefaultValue = global::Bgs.Protocol.LogOption.Hidden; + + private global::Bgs.Protocol.LogOption log_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.LogOption Log { + get { if ((_hasBits0 & 1) != 0) { return log_; } else { return LogDefaultValue; } } + set { + _hasBits0 |= 1; + log_ = value; + } + } + /// Gets whether the "log" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLog { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "log" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLog() { + _hasBits0 &= ~1; + } + + /// Field number for the "shard_key" field. + public const int ShardKeyFieldNumber = 2; + private readonly static bool ShardKeyDefaultValue = false; + + private bool shardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ShardKey { + get { if ((_hasBits0 & 2) != 0) { return shardKey_; } else { return ShardKeyDefaultValue; } } + set { + _hasBits0 |= 2; + shardKey_ = value; + } + } + /// Gets whether the "shard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShardKey { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "shard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShardKey() { + _hasBits0 &= ~2; + } + + /// Field number for the "fanout_key" field. + public const int FanoutKeyFieldNumber = 3; + private readonly static bool FanoutKeyDefaultValue = false; + + private bool fanoutKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool FanoutKey { + get { if ((_hasBits0 & 4) != 0) { return fanoutKey_; } else { return FanoutKeyDefaultValue; } } + set { + _hasBits0 |= 4; + fanoutKey_ = value; + } + } + /// Gets whether the "fanout_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFanoutKey { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "fanout_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFanoutKey() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BGSFieldOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BGSFieldOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Log != other.Log) return false; + if (ShardKey != other.ShardKey) return false; + if (FanoutKey != other.FanoutKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasLog) hash ^= Log.GetHashCode(); + if (HasShardKey) hash ^= ShardKey.GetHashCode(); + if (HasFanoutKey) hash ^= FanoutKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasLog) { + output.WriteRawTag(8); + output.WriteEnum((int) Log); + } + if (HasShardKey) { + output.WriteRawTag(16); + output.WriteBool(ShardKey); + } + if (HasFanoutKey) { + output.WriteRawTag(24); + output.WriteBool(FanoutKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasLog) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Log); + } + if (HasShardKey) { + size += 1 + 1; + } + if (HasFanoutKey) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BGSFieldOptions other) { + if (other == null) { + return; + } + if (other.HasLog) { + Log = other.Log; + } + if (other.HasShardKey) { + ShardKey = other.ShardKey; + } + if (other.HasFanoutKey) { + FanoutKey = other.FanoutKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Log = (global::Bgs.Protocol.LogOption) input.ReadEnum(); + break; + } + case 16: { + ShardKey = input.ReadBool(); + break; + } + case 24: { + FanoutKey = input.ReadBool(); + break; + } + } + } + } + + } + + public sealed partial class FieldRestriction : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldRestriction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldRestriction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldRestriction(FieldRestriction other) : this() { + switch (other.TypeCase) { + case TypeOneofCase.Signed: + Signed = other.Signed.Clone(); + break; + case TypeOneofCase.Unsigned: + Unsigned = other.Unsigned.Clone(); + break; + case TypeOneofCase.Float: + Float = other.Float.Clone(); + break; + case TypeOneofCase.String: + String = other.String.Clone(); + break; + case TypeOneofCase.Repeated: + Repeated = other.Repeated.Clone(); + break; + case TypeOneofCase.Message: + Message = other.Message.Clone(); + break; + case TypeOneofCase.EntityId: + EntityId = other.EntityId.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldRestriction Clone() { + return new FieldRestriction(this); + } + + /// Field number for the "signed" field. + public const int SignedFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.SignedFieldRestriction Signed { + get { return HasSigned ? (global::Bgs.Protocol.SignedFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Signed; + } + } + /// Gets whether the "signed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSigned { + get { return typeCase_ == TypeOneofCase.Signed; } + } + /// Clears the value of the oneof if it's currently set to "signed" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSigned() { + if (HasSigned) { + ClearType(); + } + } + + /// Field number for the "unsigned" field. + public const int UnsignedFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedFieldRestriction Unsigned { + get { return HasUnsigned ? (global::Bgs.Protocol.UnsignedFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Unsigned; + } + } + /// Gets whether the "unsigned" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnsigned { + get { return typeCase_ == TypeOneofCase.Unsigned; } + } + /// Clears the value of the oneof if it's currently set to "unsigned" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnsigned() { + if (HasUnsigned) { + ClearType(); + } + } + + /// Field number for the "float" field. + public const int FloatFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.FloatFieldRestriction Float { + get { return HasFloat ? (global::Bgs.Protocol.FloatFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Float; + } + } + /// Gets whether the "float" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFloat { + get { return typeCase_ == TypeOneofCase.Float; } + } + /// Clears the value of the oneof if it's currently set to "float" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFloat() { + if (HasFloat) { + ClearType(); + } + } + + /// Field number for the "string" field. + public const int StringFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.StringFieldRestriction String { + get { return HasString ? (global::Bgs.Protocol.StringFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.String; + } + } + /// Gets whether the "string" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasString { + get { return typeCase_ == TypeOneofCase.String; } + } + /// Clears the value of the oneof if it's currently set to "string" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearString() { + if (HasString) { + ClearType(); + } + } + + /// Field number for the "repeated" field. + public const int RepeatedFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.RepeatedFieldRestriction Repeated { + get { return HasRepeated ? (global::Bgs.Protocol.RepeatedFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Repeated; + } + } + /// Gets whether the "repeated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRepeated { + get { return typeCase_ == TypeOneofCase.Repeated; } + } + /// Clears the value of the oneof if it's currently set to "repeated" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRepeated() { + if (HasRepeated) { + ClearType(); + } + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.MessageFieldRestriction Message { + get { return HasMessage ? (global::Bgs.Protocol.MessageFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Message; + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessage { + get { return typeCase_ == TypeOneofCase.Message; } + } + /// Clears the value of the oneof if it's currently set to "message" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() { + if (HasMessage) { + ClearType(); + } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityIdRestriction EntityId { + get { return HasEntityId ? (global::Bgs.Protocol.EntityIdRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.EntityId; + } + } + /// Gets whether the "entity_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return typeCase_ == TypeOneofCase.EntityId; } + } + /// Clears the value of the oneof if it's currently set to "entity_id" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + if (HasEntityId) { + ClearType(); + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + Signed = 1, + Unsigned = 2, + Float = 3, + String = 4, + Repeated = 5, + Message = 6, + EntityId = 7, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FieldRestriction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FieldRestriction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Signed, other.Signed)) return false; + if (!object.Equals(Unsigned, other.Unsigned)) return false; + if (!object.Equals(Float, other.Float)) return false; + if (!object.Equals(String, other.String)) return false; + if (!object.Equals(Repeated, other.Repeated)) return false; + if (!object.Equals(Message, other.Message)) return false; + if (!object.Equals(EntityId, other.EntityId)) return false; + if (TypeCase != other.TypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSigned) hash ^= Signed.GetHashCode(); + if (HasUnsigned) hash ^= Unsigned.GetHashCode(); + if (HasFloat) hash ^= Float.GetHashCode(); + if (HasString) hash ^= String.GetHashCode(); + if (HasRepeated) hash ^= Repeated.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + hash ^= (int) typeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSigned) { + output.WriteRawTag(10); + output.WriteMessage(Signed); + } + if (HasUnsigned) { + output.WriteRawTag(18); + output.WriteMessage(Unsigned); + } + if (HasFloat) { + output.WriteRawTag(26); + output.WriteMessage(Float); + } + if (HasString) { + output.WriteRawTag(34); + output.WriteMessage(String); + } + if (HasRepeated) { + output.WriteRawTag(42); + output.WriteMessage(Repeated); + } + if (HasMessage) { + output.WriteRawTag(50); + output.WriteMessage(Message); + } + if (HasEntityId) { + output.WriteRawTag(58); + output.WriteMessage(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSigned) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Signed); + } + if (HasUnsigned) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unsigned); + } + if (HasFloat) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Float); + } + if (HasString) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(String); + } + if (HasRepeated) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Repeated); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FieldRestriction other) { + if (other == null) { + return; + } + switch (other.TypeCase) { + case TypeOneofCase.Signed: + if (Signed == null) { + Signed = new global::Bgs.Protocol.SignedFieldRestriction(); + } + Signed.MergeFrom(other.Signed); + break; + case TypeOneofCase.Unsigned: + if (Unsigned == null) { + Unsigned = new global::Bgs.Protocol.UnsignedFieldRestriction(); + } + Unsigned.MergeFrom(other.Unsigned); + break; + case TypeOneofCase.Float: + if (Float == null) { + Float = new global::Bgs.Protocol.FloatFieldRestriction(); + } + Float.MergeFrom(other.Float); + break; + case TypeOneofCase.String: + if (String == null) { + String = new global::Bgs.Protocol.StringFieldRestriction(); + } + String.MergeFrom(other.String); + break; + case TypeOneofCase.Repeated: + if (Repeated == null) { + Repeated = new global::Bgs.Protocol.RepeatedFieldRestriction(); + } + Repeated.MergeFrom(other.Repeated); + break; + case TypeOneofCase.Message: + if (Message == null) { + Message = new global::Bgs.Protocol.MessageFieldRestriction(); + } + Message.MergeFrom(other.Message); + break; + case TypeOneofCase.EntityId: + if (EntityId == null) { + EntityId = new global::Bgs.Protocol.EntityIdRestriction(); + } + EntityId.MergeFrom(other.EntityId); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Bgs.Protocol.SignedFieldRestriction subBuilder = new global::Bgs.Protocol.SignedFieldRestriction(); + if (HasSigned) { + subBuilder.MergeFrom(Signed); + } + input.ReadMessage(subBuilder); + Signed = subBuilder; + break; + } + case 18: { + global::Bgs.Protocol.UnsignedFieldRestriction subBuilder = new global::Bgs.Protocol.UnsignedFieldRestriction(); + if (HasUnsigned) { + subBuilder.MergeFrom(Unsigned); + } + input.ReadMessage(subBuilder); + Unsigned = subBuilder; + break; + } + case 26: { + global::Bgs.Protocol.FloatFieldRestriction subBuilder = new global::Bgs.Protocol.FloatFieldRestriction(); + if (HasFloat) { + subBuilder.MergeFrom(Float); + } + input.ReadMessage(subBuilder); + Float = subBuilder; + break; + } + case 34: { + global::Bgs.Protocol.StringFieldRestriction subBuilder = new global::Bgs.Protocol.StringFieldRestriction(); + if (HasString) { + subBuilder.MergeFrom(String); + } + input.ReadMessage(subBuilder); + String = subBuilder; + break; + } + case 42: { + global::Bgs.Protocol.RepeatedFieldRestriction subBuilder = new global::Bgs.Protocol.RepeatedFieldRestriction(); + if (HasRepeated) { + subBuilder.MergeFrom(Repeated); + } + input.ReadMessage(subBuilder); + Repeated = subBuilder; + break; + } + case 50: { + global::Bgs.Protocol.MessageFieldRestriction subBuilder = new global::Bgs.Protocol.MessageFieldRestriction(); + if (HasMessage) { + subBuilder.MergeFrom(Message); + } + input.ReadMessage(subBuilder); + Message = subBuilder; + break; + } + case 58: { + global::Bgs.Protocol.EntityIdRestriction subBuilder = new global::Bgs.Protocol.EntityIdRestriction(); + if (HasEntityId) { + subBuilder.MergeFrom(EntityId); + } + input.ReadMessage(subBuilder); + EntityId = subBuilder; + break; + } + } + } + } + + } + + public sealed partial class RepeatedFieldRestriction : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RepeatedFieldRestriction()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RepeatedFieldRestriction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RepeatedFieldRestriction(RepeatedFieldRestriction other) : this() { + _hasBits0 = other._hasBits0; + size_ = other.HasSize ? other.size_.Clone() : null; + unique_ = other.unique_; + switch (other.TypeCase) { + case TypeOneofCase.Signed: + Signed = other.Signed.Clone(); + break; + case TypeOneofCase.Unsigned: + Unsigned = other.Unsigned.Clone(); + break; + case TypeOneofCase.Float: + Float = other.Float.Clone(); + break; + case TypeOneofCase.String: + String = other.String.Clone(); + break; + case TypeOneofCase.EntityId: + EntityId = other.EntityId.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RepeatedFieldRestriction Clone() { + return new RepeatedFieldRestriction(this); + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange size_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Size { + get { return size_; } + set { + size_ = value; + } + } + /// Gets whether the size field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSize { + get { return size_ != null; } + } + /// Clears the value of the size field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSize() { + size_ = null; + } + + /// Field number for the "unique" field. + public const int UniqueFieldNumber = 2; + private readonly static bool UniqueDefaultValue = false; + + private bool unique_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Unique { + get { if ((_hasBits0 & 1) != 0) { return unique_; } else { return UniqueDefaultValue; } } + set { + _hasBits0 |= 1; + unique_ = value; + } + } + /// Gets whether the "unique" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnique { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unique" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnique() { + _hasBits0 &= ~1; + } + + /// Field number for the "signed" field. + public const int SignedFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.SignedFieldRestriction Signed { + get { return HasSigned ? (global::Bgs.Protocol.SignedFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Signed; + } + } + /// Gets whether the "signed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSigned { + get { return typeCase_ == TypeOneofCase.Signed; } + } + /// Clears the value of the oneof if it's currently set to "signed" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSigned() { + if (HasSigned) { + ClearType(); + } + } + + /// Field number for the "unsigned" field. + public const int UnsignedFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedFieldRestriction Unsigned { + get { return HasUnsigned ? (global::Bgs.Protocol.UnsignedFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Unsigned; + } + } + /// Gets whether the "unsigned" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnsigned { + get { return typeCase_ == TypeOneofCase.Unsigned; } + } + /// Clears the value of the oneof if it's currently set to "unsigned" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnsigned() { + if (HasUnsigned) { + ClearType(); + } + } + + /// Field number for the "float" field. + public const int FloatFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.FloatFieldRestriction Float { + get { return HasFloat ? (global::Bgs.Protocol.FloatFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Float; + } + } + /// Gets whether the "float" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFloat { + get { return typeCase_ == TypeOneofCase.Float; } + } + /// Clears the value of the oneof if it's currently set to "float" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFloat() { + if (HasFloat) { + ClearType(); + } + } + + /// Field number for the "string" field. + public const int StringFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.StringFieldRestriction String { + get { return HasString ? (global::Bgs.Protocol.StringFieldRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.String; + } + } + /// Gets whether the "string" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasString { + get { return typeCase_ == TypeOneofCase.String; } + } + /// Clears the value of the oneof if it's currently set to "string" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearString() { + if (HasString) { + ClearType(); + } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityIdRestriction EntityId { + get { return HasEntityId ? (global::Bgs.Protocol.EntityIdRestriction) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.EntityId; + } + } + /// Gets whether the "entity_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return typeCase_ == TypeOneofCase.EntityId; } + } + /// Clears the value of the oneof if it's currently set to "entity_id" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + if (HasEntityId) { + ClearType(); + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + Signed = 3, + Unsigned = 4, + Float = 5, + String = 6, + EntityId = 7, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RepeatedFieldRestriction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RepeatedFieldRestriction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Size, other.Size)) return false; + if (Unique != other.Unique) return false; + if (!object.Equals(Signed, other.Signed)) return false; + if (!object.Equals(Unsigned, other.Unsigned)) return false; + if (!object.Equals(Float, other.Float)) return false; + if (!object.Equals(String, other.String)) return false; + if (!object.Equals(EntityId, other.EntityId)) return false; + if (TypeCase != other.TypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSize) hash ^= Size.GetHashCode(); + if (HasUnique) hash ^= Unique.GetHashCode(); + if (HasSigned) hash ^= Signed.GetHashCode(); + if (HasUnsigned) hash ^= Unsigned.GetHashCode(); + if (HasFloat) hash ^= Float.GetHashCode(); + if (HasString) hash ^= String.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + hash ^= (int) typeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSize) { + output.WriteRawTag(10); + output.WriteMessage(Size); + } + if (HasUnique) { + output.WriteRawTag(16); + output.WriteBool(Unique); + } + if (HasSigned) { + output.WriteRawTag(26); + output.WriteMessage(Signed); + } + if (HasUnsigned) { + output.WriteRawTag(34); + output.WriteMessage(Unsigned); + } + if (HasFloat) { + output.WriteRawTag(42); + output.WriteMessage(Float); + } + if (HasString) { + output.WriteRawTag(50); + output.WriteMessage(String); + } + if (HasEntityId) { + output.WriteRawTag(58); + output.WriteMessage(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSize) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Size); + } + if (HasUnique) { + size += 1 + 1; + } + if (HasSigned) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Signed); + } + if (HasUnsigned) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unsigned); + } + if (HasFloat) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Float); + } + if (HasString) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(String); + } + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RepeatedFieldRestriction other) { + if (other == null) { + return; + } + if (other.HasSize) { + if (!HasSize) { + Size = new global::Bgs.Protocol.UnsignedIntRange(); + } + Size.MergeFrom(other.Size); + } + if (other.HasUnique) { + Unique = other.Unique; + } + switch (other.TypeCase) { + case TypeOneofCase.Signed: + if (Signed == null) { + Signed = new global::Bgs.Protocol.SignedFieldRestriction(); + } + Signed.MergeFrom(other.Signed); + break; + case TypeOneofCase.Unsigned: + if (Unsigned == null) { + Unsigned = new global::Bgs.Protocol.UnsignedFieldRestriction(); + } + Unsigned.MergeFrom(other.Unsigned); + break; + case TypeOneofCase.Float: + if (Float == null) { + Float = new global::Bgs.Protocol.FloatFieldRestriction(); + } + Float.MergeFrom(other.Float); + break; + case TypeOneofCase.String: + if (String == null) { + String = new global::Bgs.Protocol.StringFieldRestriction(); + } + String.MergeFrom(other.String); + break; + case TypeOneofCase.EntityId: + if (EntityId == null) { + EntityId = new global::Bgs.Protocol.EntityIdRestriction(); + } + EntityId.MergeFrom(other.EntityId); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasSize) { + Size = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Size); + break; + } + case 16: { + Unique = input.ReadBool(); + break; + } + case 26: { + global::Bgs.Protocol.SignedFieldRestriction subBuilder = new global::Bgs.Protocol.SignedFieldRestriction(); + if (HasSigned) { + subBuilder.MergeFrom(Signed); + } + input.ReadMessage(subBuilder); + Signed = subBuilder; + break; + } + case 34: { + global::Bgs.Protocol.UnsignedFieldRestriction subBuilder = new global::Bgs.Protocol.UnsignedFieldRestriction(); + if (HasUnsigned) { + subBuilder.MergeFrom(Unsigned); + } + input.ReadMessage(subBuilder); + Unsigned = subBuilder; + break; + } + case 42: { + global::Bgs.Protocol.FloatFieldRestriction subBuilder = new global::Bgs.Protocol.FloatFieldRestriction(); + if (HasFloat) { + subBuilder.MergeFrom(Float); + } + input.ReadMessage(subBuilder); + Float = subBuilder; + break; + } + case 50: { + global::Bgs.Protocol.StringFieldRestriction subBuilder = new global::Bgs.Protocol.StringFieldRestriction(); + if (HasString) { + subBuilder.MergeFrom(String); + } + input.ReadMessage(subBuilder); + String = subBuilder; + break; + } + case 58: { + global::Bgs.Protocol.EntityIdRestriction subBuilder = new global::Bgs.Protocol.EntityIdRestriction(); + if (HasEntityId) { + subBuilder.MergeFrom(EntityId); + } + input.ReadMessage(subBuilder); + EntityId = subBuilder; + break; + } + } + } + } + + } + + public sealed partial class SignedFieldRestriction : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SignedFieldRestriction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignedFieldRestriction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignedFieldRestriction(SignedFieldRestriction other) : this() { + limits_ = other.HasLimits ? other.limits_.Clone() : null; + exclude_ = other.exclude_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignedFieldRestriction Clone() { + return new SignedFieldRestriction(this); + } + + /// Field number for the "limits" field. + public const int LimitsFieldNumber = 1; + private global::Bgs.Protocol.SignedIntRange limits_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.SignedIntRange Limits { + get { return limits_; } + set { + limits_ = value; + } + } + /// Gets whether the limits field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLimits { + get { return limits_ != null; } + } + /// Clears the value of the limits field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLimits() { + limits_ = null; + } + + /// Field number for the "exclude" field. + public const int ExcludeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_exclude_codec + = pb::FieldCodec.ForSInt64(16); + private readonly pbc::RepeatedField exclude_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Exclude { + get { return exclude_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SignedFieldRestriction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SignedFieldRestriction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Limits, other.Limits)) return false; + if(!exclude_.Equals(other.exclude_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasLimits) hash ^= Limits.GetHashCode(); + hash ^= exclude_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasLimits) { + output.WriteRawTag(10); + output.WriteMessage(Limits); + } + exclude_.WriteTo(output, _repeated_exclude_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasLimits) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limits); + } + size += exclude_.CalculateSize(_repeated_exclude_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SignedFieldRestriction other) { + if (other == null) { + return; + } + if (other.HasLimits) { + if (!HasLimits) { + Limits = new global::Bgs.Protocol.SignedIntRange(); + } + Limits.MergeFrom(other.Limits); + } + exclude_.Add(other.exclude_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasLimits) { + Limits = new global::Bgs.Protocol.SignedIntRange(); + } + input.ReadMessage(Limits); + break; + } + case 18: + case 16: { + exclude_.AddEntriesFrom(input, _repeated_exclude_codec); + break; + } + } + } + } + + } + + public sealed partial class UnsignedFieldRestriction : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsignedFieldRestriction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsignedFieldRestriction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsignedFieldRestriction(UnsignedFieldRestriction other) : this() { + limits_ = other.HasLimits ? other.limits_.Clone() : null; + exclude_ = other.exclude_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsignedFieldRestriction Clone() { + return new UnsignedFieldRestriction(this); + } + + /// Field number for the "limits" field. + public const int LimitsFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange limits_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Limits { + get { return limits_; } + set { + limits_ = value; + } + } + /// Gets whether the limits field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLimits { + get { return limits_ != null; } + } + /// Clears the value of the limits field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLimits() { + limits_ = null; + } + + /// Field number for the "exclude" field. + public const int ExcludeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_exclude_codec + = pb::FieldCodec.ForUInt64(16); + private readonly pbc::RepeatedField exclude_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Exclude { + get { return exclude_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnsignedFieldRestriction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnsignedFieldRestriction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Limits, other.Limits)) return false; + if(!exclude_.Equals(other.exclude_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasLimits) hash ^= Limits.GetHashCode(); + hash ^= exclude_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasLimits) { + output.WriteRawTag(10); + output.WriteMessage(Limits); + } + exclude_.WriteTo(output, _repeated_exclude_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasLimits) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limits); + } + size += exclude_.CalculateSize(_repeated_exclude_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnsignedFieldRestriction other) { + if (other == null) { + return; + } + if (other.HasLimits) { + if (!HasLimits) { + Limits = new global::Bgs.Protocol.UnsignedIntRange(); + } + Limits.MergeFrom(other.Limits); + } + exclude_.Add(other.exclude_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasLimits) { + Limits = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Limits); + break; + } + case 18: + case 16: { + exclude_.AddEntriesFrom(input, _repeated_exclude_codec); + break; + } + } + } + } + + } + + public sealed partial class FloatFieldRestriction : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FloatFieldRestriction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FloatFieldRestriction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FloatFieldRestriction(FloatFieldRestriction other) : this() { + limits_ = other.HasLimits ? other.limits_.Clone() : null; + exclude_ = other.exclude_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FloatFieldRestriction Clone() { + return new FloatFieldRestriction(this); + } + + /// Field number for the "limits" field. + public const int LimitsFieldNumber = 1; + private global::Bgs.Protocol.FloatRange limits_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.FloatRange Limits { + get { return limits_; } + set { + limits_ = value; + } + } + /// Gets whether the limits field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLimits { + get { return limits_ != null; } + } + /// Clears the value of the limits field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLimits() { + limits_ = null; + } + + /// Field number for the "exclude" field. + public const int ExcludeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_exclude_codec + = pb::FieldCodec.ForFloat(21); + private readonly pbc::RepeatedField exclude_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Exclude { + get { return exclude_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FloatFieldRestriction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FloatFieldRestriction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Limits, other.Limits)) return false; + if(!exclude_.Equals(other.exclude_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasLimits) hash ^= Limits.GetHashCode(); + hash ^= exclude_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasLimits) { + output.WriteRawTag(10); + output.WriteMessage(Limits); + } + exclude_.WriteTo(output, _repeated_exclude_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasLimits) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limits); + } + size += exclude_.CalculateSize(_repeated_exclude_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FloatFieldRestriction other) { + if (other == null) { + return; + } + if (other.HasLimits) { + if (!HasLimits) { + Limits = new global::Bgs.Protocol.FloatRange(); + } + Limits.MergeFrom(other.Limits); + } + exclude_.Add(other.exclude_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasLimits) { + Limits = new global::Bgs.Protocol.FloatRange(); + } + input.ReadMessage(Limits); + break; + } + case 18: + case 21: { + exclude_.AddEntriesFrom(input, _repeated_exclude_codec); + break; + } + } + } + } + + } + + public sealed partial class StringFieldRestriction : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringFieldRestriction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StringFieldRestriction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StringFieldRestriction(StringFieldRestriction other) : this() { + size_ = other.HasSize ? other.size_.Clone() : null; + exclude_ = other.exclude_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StringFieldRestriction Clone() { + return new StringFieldRestriction(this); + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 1; + private global::Bgs.Protocol.UnsignedIntRange size_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UnsignedIntRange Size { + get { return size_; } + set { + size_ = value; + } + } + /// Gets whether the size field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSize { + get { return size_ != null; } + } + /// Clears the value of the size field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSize() { + size_ = null; + } + + /// Field number for the "exclude" field. + public const int ExcludeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_exclude_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField exclude_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Exclude { + get { return exclude_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StringFieldRestriction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StringFieldRestriction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Size, other.Size)) return false; + if(!exclude_.Equals(other.exclude_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSize) hash ^= Size.GetHashCode(); + hash ^= exclude_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSize) { + output.WriteRawTag(10); + output.WriteMessage(Size); + } + exclude_.WriteTo(output, _repeated_exclude_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSize) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Size); + } + size += exclude_.CalculateSize(_repeated_exclude_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StringFieldRestriction other) { + if (other == null) { + return; + } + if (other.HasSize) { + if (!HasSize) { + Size = new global::Bgs.Protocol.UnsignedIntRange(); + } + Size.MergeFrom(other.Size); + } + exclude_.Add(other.exclude_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasSize) { + Size = new global::Bgs.Protocol.UnsignedIntRange(); + } + input.ReadMessage(Size); + break; + } + case 18: { + exclude_.AddEntriesFrom(input, _repeated_exclude_codec); + break; + } + } + } + } + + } + + public sealed partial class EntityIdRestriction : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityIdRestriction()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EntityIdRestriction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EntityIdRestriction(EntityIdRestriction other) : this() { + _hasBits0 = other._hasBits0; + needed_ = other.needed_; + kind_ = other.kind_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EntityIdRestriction Clone() { + return new EntityIdRestriction(this); + } + + /// Field number for the "needed" field. + public const int NeededFieldNumber = 1; + private readonly static bool NeededDefaultValue = false; + + private bool needed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Needed { + get { if ((_hasBits0 & 1) != 0) { return needed_; } else { return NeededDefaultValue; } } + set { + _hasBits0 |= 1; + needed_ = value; + } + } + /// Gets whether the "needed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNeeded { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "needed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNeeded() { + _hasBits0 &= ~1; + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 2; + private readonly static global::Bgs.Protocol.EntityIdRestriction.Types.Kind KindDefaultValue = global::Bgs.Protocol.EntityIdRestriction.Types.Kind.Any; + + private global::Bgs.Protocol.EntityIdRestriction.Types.Kind kind_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityIdRestriction.Types.Kind Kind { + get { if ((_hasBits0 & 2) != 0) { return kind_; } else { return KindDefaultValue; } } + set { + _hasBits0 |= 2; + kind_ = value; + } + } + /// Gets whether the "kind" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasKind { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "kind" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearKind() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EntityIdRestriction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EntityIdRestriction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Needed != other.Needed) return false; + if (Kind != other.Kind) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasNeeded) hash ^= Needed.GetHashCode(); + if (HasKind) hash ^= Kind.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasNeeded) { + output.WriteRawTag(8); + output.WriteBool(Needed); + } + if (HasKind) { + output.WriteRawTag(16); + output.WriteEnum((int) Kind); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasNeeded) { + size += 1 + 1; + } + if (HasKind) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EntityIdRestriction other) { + if (other == null) { + return; + } + if (other.HasNeeded) { + Needed = other.Needed; + } + if (other.HasKind) { + Kind = other.Kind; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Needed = input.ReadBool(); + break; + } + case 16: { + Kind = (global::Bgs.Protocol.EntityIdRestriction.Types.Kind) input.ReadEnum(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the EntityIdRestriction message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum Kind { + [pbr::OriginalName("ANY")] Any = 0, + [pbr::OriginalName("ACCOUNT")] Account = 1, + [pbr::OriginalName("GAME_ACCOUNT")] GameAccount = 2, + [pbr::OriginalName("ACCOUNT_OR_GAME_ACCOUNT")] AccountOrGameAccount = 3, + [pbr::OriginalName("SERVICE")] Service = 4, + [pbr::OriginalName("CHANNEL")] Channel = 5, + } + + } + #endregion + + } + + public sealed partial class MessageFieldRestriction : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageFieldRestriction()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageFieldRestriction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageFieldRestriction(MessageFieldRestriction other) : this() { + _hasBits0 = other._hasBits0; + needed_ = other.needed_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageFieldRestriction Clone() { + return new MessageFieldRestriction(this); + } + + /// Field number for the "needed" field. + public const int NeededFieldNumber = 1; + private readonly static bool NeededDefaultValue = false; + + private bool needed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Needed { + get { if ((_hasBits0 & 1) != 0) { return needed_; } else { return NeededDefaultValue; } } + set { + _hasBits0 |= 1; + needed_ = value; + } + } + /// Gets whether the "needed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNeeded { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "needed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNeeded() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MessageFieldRestriction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageFieldRestriction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Needed != other.Needed) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasNeeded) hash ^= Needed.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasNeeded) { + output.WriteRawTag(8); + output.WriteBool(Needed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasNeeded) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageFieldRestriction other) { + if (other == null) { + return; + } + if (other.HasNeeded) { + Needed = other.Needed; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Needed = input.ReadBool(); + break; + } + } + } + } + } #endregion diff --git a/Source/Framework/Proto/GlobalExtensions/MessageOptions.cs b/Source/Framework/Proto/GlobalExtensions/MessageOptions.cs new file mode 100644 index 000000000..56d2231f2 --- /dev/null +++ b/Source/Framework/Proto/GlobalExtensions/MessageOptions.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/global_extensions/message_options.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { + + /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/message_options.proto + public static partial class MessageOptionsReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/global_extensions/message_options.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MessageOptionsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdl", + "X29wdGlvbnMucHJvdG8SDGJncy5wcm90b2NvbBogZ29vZ2xlL3Byb3RvYnVm", + "L2Rlc2NyaXB0b3IucHJvdG8iZAoRQkdTTWVzc2FnZU9wdGlvbnMSGwoTY3Vz", + "dG9tX3NlbGVjdF9zaGFyZBgBIAEoCBIYChBjdXN0b21fdmFsaWRhdG9yGAIg", + "ASgIEhgKEGNsaWVudF9pZF9mYW5vdXQYAyABKAg6WwoPbWVzc2FnZV9vcHRp", + "b25zEh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGJC/BSABKAsy", + "Hy5iZ3MucHJvdG9jb2wuQkdTTWVzc2FnZU9wdGlvbnNCJAoNYm5ldC5wcm90", + "b2NvbEITTWVzc2FnZU9wdGlvbnNQcm90bw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { MessageOptionsExtensions.MessageOptions_ }, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.BGSMessageOptions), global::Bgs.Protocol.BGSMessageOptions.Parser, new[]{ "CustomSelectShard", "CustomValidator", "ClientIdFanout" }, null, null, null, null) + })); + } + #endregion + + } + /// Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/message_options.proto + public static partial class MessageOptionsExtensions { + public static readonly pb::Extension MessageOptions_ = + new pb::Extension(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSMessageOptions.Parser)); + } + + #region Messages + public sealed partial class BGSMessageOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BGSMessageOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.MessageOptionsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSMessageOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSMessageOptions(BGSMessageOptions other) : this() { + _hasBits0 = other._hasBits0; + customSelectShard_ = other.customSelectShard_; + customValidator_ = other.customValidator_; + clientIdFanout_ = other.clientIdFanout_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSMessageOptions Clone() { + return new BGSMessageOptions(this); + } + + /// Field number for the "custom_select_shard" field. + public const int CustomSelectShardFieldNumber = 1; + private readonly static bool CustomSelectShardDefaultValue = false; + + private bool customSelectShard_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CustomSelectShard { + get { if ((_hasBits0 & 1) != 0) { return customSelectShard_; } else { return CustomSelectShardDefaultValue; } } + set { + _hasBits0 |= 1; + customSelectShard_ = value; + } + } + /// Gets whether the "custom_select_shard" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCustomSelectShard { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "custom_select_shard" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCustomSelectShard() { + _hasBits0 &= ~1; + } + + /// Field number for the "custom_validator" field. + public const int CustomValidatorFieldNumber = 2; + private readonly static bool CustomValidatorDefaultValue = false; + + private bool customValidator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CustomValidator { + get { if ((_hasBits0 & 2) != 0) { return customValidator_; } else { return CustomValidatorDefaultValue; } } + set { + _hasBits0 |= 2; + customValidator_ = value; + } + } + /// Gets whether the "custom_validator" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCustomValidator { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "custom_validator" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCustomValidator() { + _hasBits0 &= ~2; + } + + /// Field number for the "client_id_fanout" field. + public const int ClientIdFanoutFieldNumber = 3; + private readonly static bool ClientIdFanoutDefaultValue = false; + + private bool clientIdFanout_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ClientIdFanout { + get { if ((_hasBits0 & 4) != 0) { return clientIdFanout_; } else { return ClientIdFanoutDefaultValue; } } + set { + _hasBits0 |= 4; + clientIdFanout_ = value; + } + } + /// Gets whether the "client_id_fanout" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientIdFanout { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "client_id_fanout" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientIdFanout() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BGSMessageOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BGSMessageOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CustomSelectShard != other.CustomSelectShard) return false; + if (CustomValidator != other.CustomValidator) return false; + if (ClientIdFanout != other.ClientIdFanout) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCustomSelectShard) hash ^= CustomSelectShard.GetHashCode(); + if (HasCustomValidator) hash ^= CustomValidator.GetHashCode(); + if (HasClientIdFanout) hash ^= ClientIdFanout.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCustomSelectShard) { + output.WriteRawTag(8); + output.WriteBool(CustomSelectShard); + } + if (HasCustomValidator) { + output.WriteRawTag(16); + output.WriteBool(CustomValidator); + } + if (HasClientIdFanout) { + output.WriteRawTag(24); + output.WriteBool(ClientIdFanout); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCustomSelectShard) { + size += 1 + 1; + } + if (HasCustomValidator) { + size += 1 + 1; + } + if (HasClientIdFanout) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BGSMessageOptions other) { + if (other == null) { + return; + } + if (other.HasCustomSelectShard) { + CustomSelectShard = other.CustomSelectShard; + } + if (other.HasCustomValidator) { + CustomValidator = other.CustomValidator; + } + if (other.HasClientIdFanout) { + ClientIdFanout = other.ClientIdFanout; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CustomSelectShard = input.ReadBool(); + break; + } + case 16: { + CustomValidator = input.ReadBool(); + break; + } + case 24: { + ClientIdFanout = input.ReadBool(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/GlobalExtensions/MethodOptions.cs b/Source/Framework/Proto/GlobalExtensions/MethodOptions.cs index 800557cca..33fe309f2 100644 --- a/Source/Framework/Proto/GlobalExtensions/MethodOptions.cs +++ b/Source/Framework/Proto/GlobalExtensions/MethodOptions.cs @@ -1,14 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/global_extensions/method_options.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/global_extensions/method_options.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/method_options.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/method_options.proto public static partial class MethodOptionsReflection { #region Descriptor @@ -19,20 +22,176 @@ namespace Bgs.Protocol private static pbr::FileDescriptor descriptor; static MethodOptionsReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjhiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rf", "b3B0aW9ucy5wcm90bxIMYmdzLnByb3RvY29sGiBnb29nbGUvcHJvdG9idWYv", - "ZGVzY3JpcHRvci5wcm90bzozCgltZXRob2RfaWQSHi5nb29nbGUucHJvdG9i", - "dWYuTWV0aG9kT3B0aW9ucxjQhgMgASgNQiUKDWJuZXQucHJvdG9jb2xCEk1l", - "dGhvZE9wdGlvbnNQcm90b0gCYgZwcm90bzM=")); + "ZGVzY3JpcHRvci5wcm90byIeChBCR1NNZXRob2RPcHRpb25zEgoKAmlkGAEg", + "ASgNOlgKDm1ldGhvZF9vcHRpb25zEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhv", + "ZE9wdGlvbnMYkL8FIAEoCzIeLmJncy5wcm90b2NvbC5CR1NNZXRob2RPcHRp", + "b25zQiMKDWJuZXQucHJvdG9jb2xCEk1ldGhvZE9wdGlvbnNQcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, }, - new pbr::GeneratedClrTypeInfo(null, null)); + new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { MethodOptionsExtensions.MethodOptions_ }, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.BGSMethodOptions), global::Bgs.Protocol.BGSMethodOptions.Parser, new[]{ "Id" }, null, null, null, null) + })); } #endregion } + /// Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/method_options.proto + public static partial class MethodOptionsExtensions { + public static readonly pb::Extension MethodOptions_ = + new pb::Extension(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSMethodOptions.Parser)); + } + + #region Messages + public sealed partial class BGSMethodOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BGSMethodOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.MethodOptionsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSMethodOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSMethodOptions(BGSMethodOptions other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSMethodOptions Clone() { + return new BGSMethodOptions(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; + + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BGSMethodOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BGSMethodOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BGSMethodOptions other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/GlobalExtensions/Range.cs b/Source/Framework/Proto/GlobalExtensions/Range.cs new file mode 100644 index 000000000..b24a99637 --- /dev/null +++ b/Source/Framework/Proto/GlobalExtensions/Range.cs @@ -0,0 +1,603 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/global_extensions/range.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { + + /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/range.proto + public static partial class RangeReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/global_extensions/range.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RangeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci9iZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9yYW5nZS5w", + "cm90bxIMYmdzLnByb3RvY29sIiwKEFVuc2lnbmVkSW50UmFuZ2USCwoDbWlu", + "GAEgASgEEgsKA21heBgCIAEoBCIqCg5TaWduZWRJbnRSYW5nZRILCgNtaW4Y", + "ASABKAMSCwoDbWF4GAIgASgDIiYKCkZsb2F0UmFuZ2USCwoDbWluGAEgASgC", + "EgsKA21heBgCIAEoAg==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UnsignedIntRange), global::Bgs.Protocol.UnsignedIntRange.Parser, new[]{ "Min", "Max" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.SignedIntRange), global::Bgs.Protocol.SignedIntRange.Parser, new[]{ "Min", "Max" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.FloatRange), global::Bgs.Protocol.FloatRange.Parser, new[]{ "Min", "Max" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class UnsignedIntRange : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsignedIntRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RangeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsignedIntRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsignedIntRange(UnsignedIntRange other) : this() { + _hasBits0 = other._hasBits0; + min_ = other.min_; + max_ = other.max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnsignedIntRange Clone() { + return new UnsignedIntRange(this); + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 1; + private readonly static ulong MinDefaultValue = 0UL; + + private ulong min_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Min { + get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } } + set { + _hasBits0 |= 1; + min_ = value; + } + } + /// Gets whether the "min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 2; + private readonly static ulong MaxDefaultValue = 0UL; + + private ulong max_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Max { + get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } } + set { + _hasBits0 |= 2; + max_ = value; + } + } + /// Gets whether the "max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnsignedIntRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnsignedIntRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Min != other.Min) return false; + if (Max != other.Max) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMin) hash ^= Min.GetHashCode(); + if (HasMax) hash ^= Max.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMin) { + output.WriteRawTag(8); + output.WriteUInt64(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteUInt64(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMin) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Min); + } + if (HasMax) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Max); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnsignedIntRange other) { + if (other == null) { + return; + } + if (other.HasMin) { + Min = other.Min; + } + if (other.HasMax) { + Max = other.Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Min = input.ReadUInt64(); + break; + } + case 16: { + Max = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class SignedIntRange : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SignedIntRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RangeReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignedIntRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignedIntRange(SignedIntRange other) : this() { + _hasBits0 = other._hasBits0; + min_ = other.min_; + max_ = other.max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignedIntRange Clone() { + return new SignedIntRange(this); + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 1; + private readonly static long MinDefaultValue = 0L; + + private long min_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Min { + get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } } + set { + _hasBits0 |= 1; + min_ = value; + } + } + /// Gets whether the "min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 2; + private readonly static long MaxDefaultValue = 0L; + + private long max_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Max { + get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } } + set { + _hasBits0 |= 2; + max_ = value; + } + } + /// Gets whether the "max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SignedIntRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SignedIntRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Min != other.Min) return false; + if (Max != other.Max) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMin) hash ^= Min.GetHashCode(); + if (HasMax) hash ^= Max.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt64(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt64(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMin) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Min); + } + if (HasMax) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Max); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SignedIntRange other) { + if (other == null) { + return; + } + if (other.HasMin) { + Min = other.Min; + } + if (other.HasMax) { + Max = other.Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Min = input.ReadInt64(); + break; + } + case 16: { + Max = input.ReadInt64(); + break; + } + } + } + } + + } + + public sealed partial class FloatRange : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FloatRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RangeReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FloatRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FloatRange(FloatRange other) : this() { + _hasBits0 = other._hasBits0; + min_ = other.min_; + max_ = other.max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FloatRange Clone() { + return new FloatRange(this); + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 1; + private readonly static float MinDefaultValue = 0F; + + private float min_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public float Min { + get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } } + set { + _hasBits0 |= 1; + min_ = value; + } + } + /// Gets whether the "min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 2; + private readonly static float MaxDefaultValue = 0F; + + private float max_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public float Max { + get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } } + set { + _hasBits0 |= 2; + max_ = value; + } + } + /// Gets whether the "max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FloatRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FloatRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Min, other.Min)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Max, other.Max)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMin) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Min); + if (HasMax) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Max); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMin) { + output.WriteRawTag(13); + output.WriteFloat(Min); + } + if (HasMax) { + output.WriteRawTag(21); + output.WriteFloat(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMin) { + size += 1 + 4; + } + if (HasMax) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FloatRange other) { + if (other == null) { + return; + } + if (other.HasMin) { + Min = other.Min; + } + if (other.HasMax) { + Max = other.Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Min = input.ReadFloat(); + break; + } + case 21: { + Max = input.ReadFloat(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/GlobalExtensions/ServiceOptions.cs b/Source/Framework/Proto/GlobalExtensions/ServiceOptions.cs index c0403b888..08c0c7943 100644 --- a/Source/Framework/Proto/GlobalExtensions/ServiceOptions.cs +++ b/Source/Framework/Proto/GlobalExtensions/ServiceOptions.cs @@ -1,14 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/global_extensions/service_options.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/global_extensions/service_options.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/service_options.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/service_options.proto public static partial class ServiceOptionsReflection { #region Descriptor @@ -19,22 +22,491 @@ namespace Bgs.Protocol private static pbr::FileDescriptor descriptor; static ServiceOptionsReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNl", "X29wdGlvbnMucHJvdG8SDGJncy5wcm90b2NvbBogZ29vZ2xlL3Byb3RvYnVm", - "L2Rlc2NyaXB0b3IucHJvdG86Ugoob3JpZ2luYWxfZnVsbHlfcXVhbGlmaWVk", - "X2Rlc2NyaXB0b3JfbmFtZRIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0", - "aW9ucxjpByABKAk6NQoKc2VydmljZV9pZBIfLmdvb2dsZS5wcm90b2J1Zi5T", - "ZXJ2aWNlT3B0aW9ucxjQhgMgASgNQiYKDWJuZXQucHJvdG9jb2xCE1NlcnZp", - "Y2VPcHRpb25zUHJvdG9IAmIGcHJvdG8z")); + "L2Rlc2NyaXB0b3IucHJvdG8iUQoRQkdTU2VydmljZU9wdGlvbnMSFwoPZGVz", + "Y3JpcHRvcl9uYW1lGAEgASgJEg8KB3ZlcnNpb24YBCABKA0SEgoKc2hhcmRf", + "bmFtZRgFIAEoCSJNChFTREtTZXJ2aWNlT3B0aW9ucxIPCgdpbmJvdW5kGAEg", + "ASgIEhAKCG91dGJvdW5kGAIgASgIEhUKDXVzZV9jbGllbnRfaWQYAyABKAg6", + "WwoPc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP", + "cHRpb25zGJC/BSABKAsyHy5iZ3MucHJvdG9jb2wuQkdTU2VydmljZU9wdGlv", + "bnM6XwoTc2RrX3NlcnZpY2Vfb3B0aW9ucxIfLmdvb2dsZS5wcm90b2J1Zi5T", + "ZXJ2aWNlT3B0aW9ucxiRvwUgASgLMh8uYmdzLnByb3RvY29sLlNES1NlcnZp", + "Y2VPcHRpb25zQiQKDWJuZXQucHJvdG9jb2xCE1NlcnZpY2VPcHRpb25zUHJv", + "dG8=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, }, - new pbr::GeneratedClrTypeInfo(null, null)); + new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { ServiceOptionsExtensions.ServiceOptions_, ServiceOptionsExtensions.SdkServiceOptions }, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.BGSServiceOptions), global::Bgs.Protocol.BGSServiceOptions.Parser, new[]{ "DescriptorName", "Version", "ShardName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.SDKServiceOptions), global::Bgs.Protocol.SDKServiceOptions.Parser, new[]{ "Inbound", "Outbound", "UseClientId" }, null, null, null, null) + })); } #endregion } + /// Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/service_options.proto + public static partial class ServiceOptionsExtensions { + public static readonly pb::Extension ServiceOptions_ = + new pb::Extension(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSServiceOptions.Parser)); + public static readonly pb::Extension SdkServiceOptions = + new pb::Extension(90001, pb::FieldCodec.ForMessage(720010, global::Bgs.Protocol.SDKServiceOptions.Parser)); + } + + #region Messages + public sealed partial class BGSServiceOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BGSServiceOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.ServiceOptionsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSServiceOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSServiceOptions(BGSServiceOptions other) : this() { + _hasBits0 = other._hasBits0; + descriptorName_ = other.descriptorName_; + version_ = other.version_; + shardName_ = other.shardName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BGSServiceOptions Clone() { + return new BGSServiceOptions(this); + } + + /// Field number for the "descriptor_name" field. + public const int DescriptorNameFieldNumber = 1; + private readonly static string DescriptorNameDefaultValue = ""; + + private string descriptorName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DescriptorName { + get { return descriptorName_ ?? DescriptorNameDefaultValue; } + set { + descriptorName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "descriptor_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescriptorName { + get { return descriptorName_ != null; } + } + /// Clears the value of the "descriptor_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescriptorName() { + descriptorName_ = null; + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 4; + private readonly static uint VersionDefaultValue = 0; + + private uint version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Version { + get { if ((_hasBits0 & 1) != 0) { return version_; } else { return VersionDefaultValue; } } + set { + _hasBits0 |= 1; + version_ = value; + } + } + /// Gets whether the "version" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVersion { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "version" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVersion() { + _hasBits0 &= ~1; + } + + /// Field number for the "shard_name" field. + public const int ShardNameFieldNumber = 5; + private readonly static string ShardNameDefaultValue = ""; + + private string shardName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ShardName { + get { return shardName_ ?? ShardNameDefaultValue; } + set { + shardName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "shard_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShardName { + get { return shardName_ != null; } + } + /// Clears the value of the "shard_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShardName() { + shardName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BGSServiceOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BGSServiceOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DescriptorName != other.DescriptorName) return false; + if (Version != other.Version) return false; + if (ShardName != other.ShardName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasDescriptorName) hash ^= DescriptorName.GetHashCode(); + if (HasVersion) hash ^= Version.GetHashCode(); + if (HasShardName) hash ^= ShardName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasDescriptorName) { + output.WriteRawTag(10); + output.WriteString(DescriptorName); + } + if (HasVersion) { + output.WriteRawTag(32); + output.WriteUInt32(Version); + } + if (HasShardName) { + output.WriteRawTag(42); + output.WriteString(ShardName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasDescriptorName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DescriptorName); + } + if (HasVersion) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Version); + } + if (HasShardName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ShardName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BGSServiceOptions other) { + if (other == null) { + return; + } + if (other.HasDescriptorName) { + DescriptorName = other.DescriptorName; + } + if (other.HasVersion) { + Version = other.Version; + } + if (other.HasShardName) { + ShardName = other.ShardName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + DescriptorName = input.ReadString(); + break; + } + case 32: { + Version = input.ReadUInt32(); + break; + } + case 42: { + ShardName = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class SDKServiceOptions : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SDKServiceOptions()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.ServiceOptionsReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SDKServiceOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SDKServiceOptions(SDKServiceOptions other) : this() { + _hasBits0 = other._hasBits0; + inbound_ = other.inbound_; + outbound_ = other.outbound_; + useClientId_ = other.useClientId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SDKServiceOptions Clone() { + return new SDKServiceOptions(this); + } + + /// Field number for the "inbound" field. + public const int InboundFieldNumber = 1; + private readonly static bool InboundDefaultValue = false; + + private bool inbound_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Inbound { + get { if ((_hasBits0 & 1) != 0) { return inbound_; } else { return InboundDefaultValue; } } + set { + _hasBits0 |= 1; + inbound_ = value; + } + } + /// Gets whether the "inbound" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInbound { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "inbound" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInbound() { + _hasBits0 &= ~1; + } + + /// Field number for the "outbound" field. + public const int OutboundFieldNumber = 2; + private readonly static bool OutboundDefaultValue = false; + + private bool outbound_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Outbound { + get { if ((_hasBits0 & 2) != 0) { return outbound_; } else { return OutboundDefaultValue; } } + set { + _hasBits0 |= 2; + outbound_ = value; + } + } + /// Gets whether the "outbound" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOutbound { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "outbound" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOutbound() { + _hasBits0 &= ~2; + } + + /// Field number for the "use_client_id" field. + public const int UseClientIdFieldNumber = 3; + private readonly static bool UseClientIdDefaultValue = false; + + private bool useClientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool UseClientId { + get { if ((_hasBits0 & 4) != 0) { return useClientId_; } else { return UseClientIdDefaultValue; } } + set { + _hasBits0 |= 4; + useClientId_ = value; + } + } + /// Gets whether the "use_client_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUseClientId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "use_client_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUseClientId() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SDKServiceOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SDKServiceOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Inbound != other.Inbound) return false; + if (Outbound != other.Outbound) return false; + if (UseClientId != other.UseClientId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasInbound) hash ^= Inbound.GetHashCode(); + if (HasOutbound) hash ^= Outbound.GetHashCode(); + if (HasUseClientId) hash ^= UseClientId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasInbound) { + output.WriteRawTag(8); + output.WriteBool(Inbound); + } + if (HasOutbound) { + output.WriteRawTag(16); + output.WriteBool(Outbound); + } + if (HasUseClientId) { + output.WriteRawTag(24); + output.WriteBool(UseClientId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasInbound) { + size += 1 + 1; + } + if (HasOutbound) { + size += 1 + 1; + } + if (HasUseClientId) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SDKServiceOptions other) { + if (other == null) { + return; + } + if (other.HasInbound) { + Inbound = other.Inbound; + } + if (other.HasOutbound) { + Outbound = other.Outbound; + } + if (other.HasUseClientId) { + UseClientId = other.UseClientId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Inbound = input.ReadBool(); + break; + } + case 16: { + Outbound = input.ReadBool(); + break; + } + case 24: { + UseClientId = input.ReadBool(); + break; + } + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/Google/Protobuf/Descriptor.cs b/Source/Framework/Proto/Google/Protobuf/Descriptor.cs new file mode 100644 index 000000000..95ad24b6b --- /dev/null +++ b/Source/Framework/Proto/Google/Protobuf/Descriptor.cs @@ -0,0 +1,5832 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/protobuf/descriptor.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Protobuf { + + /// Holder for reflection information generated from google/protobuf/descriptor.proto + public static partial class DescriptorReflection { + + #region Descriptor + /// File descriptor for google/protobuf/descriptor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DescriptorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy", + "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n", + "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLLAwoTRmlsZURl", + "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS", + "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo", + "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg", + "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt", + "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ", + "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp", + "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl", + "LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB", + "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv", + "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m", + "byLkAwoPRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSNAoFZmllbGQY", + "AiADKAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8S", + "OAoJZXh0ZW5zaW9uGAYgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVz", + "Y3JpcHRvclByb3RvEjUKC25lc3RlZF90eXBlGAMgAygLMiAuZ29vZ2xlLnBy", + "b3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVtX3R5cGUYBCADKAsyJC5n", + "b29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQcm90bxJICg9leHRlbnNp", + "b25fcmFuZ2UYBSADKAsyLy5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRvclBy", + "b3RvLkV4dGVuc2lvblJhbmdlEjkKCm9uZW9mX2RlY2wYCCADKAsyJS5nb29n", + "bGUucHJvdG9idWYuT25lb2ZEZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgH", + "IAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxosCg5FeHRl", + "bnNpb25SYW5nZRINCgVzdGFydBgBIAEoBRILCgNlbmQYAiABKAUixgUKFEZp", + "ZWxkRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDgoGbnVtYmVyGAMg", + "ASgFEkoKBWxhYmVsGAQgASgOMisuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVz", + "Y3JpcHRvclByb3RvLkxhYmVsOg5MQUJFTF9PUFRJT05BTBJFCgR0eXBlGAUg", + "ASgOMiouZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLlR5", + "cGU6C1RZUEVfRE9VQkxFEhEKCXR5cGVfbmFtZRgGIAEoCRIQCghleHRlbmRl", + "ZRgCIAEoCRIVCg1kZWZhdWx0X3ZhbHVlGAcgASgJEhMKC29uZW9mX2luZGV4", + "GAkgASgFEi4KB29wdGlvbnMYCCABKAsyHS5nb29nbGUucHJvdG9idWYuRmll", + "bGRPcHRpb25zIrYCCgRUeXBlEg8KC1RZUEVfRE9VQkxFEAESDgoKVFlQRV9G", + "TE9BVBACEg4KClRZUEVfSU5UNjQQAxIPCgtUWVBFX1VJTlQ2NBAEEg4KClRZ", + "UEVfSU5UMzIQBRIQCgxUWVBFX0ZJWEVENjQQBhIQCgxUWVBFX0ZJWEVEMzIQ", + "BxINCglUWVBFX0JPT0wQCBIPCgtUWVBFX1NUUklORxAJEg4KClRZUEVfR1JP", + "VVAQChIQCgxUWVBFX01FU1NBR0UQCxIOCgpUWVBFX0JZVEVTEAwSDwoLVFlQ", + "RV9VSU5UMzIQDRINCglUWVBFX0VOVU0QDhIRCg1UWVBFX1NGSVhFRDMyEA8S", + "EQoNVFlQRV9TRklYRUQ2NBAQEg8KC1RZUEVfU0lOVDMyEBESDwoLVFlQRV9T", + "SU5UNjQQEiJDCgVMYWJlbBISCg5MQUJFTF9PUFRJT05BTBABEhIKDkxBQkVM", + "X1JFUVVJUkVEEAISEgoOTEFCRUxfUkVQRUFURUQQAyIkChRPbmVvZkRlc2Ny", + "aXB0b3JQcm90bxIMCgRuYW1lGAEgASgJIowBChNFbnVtRGVzY3JpcHRvclBy", + "b3RvEgwKBG5hbWUYASABKAkSOAoFdmFsdWUYAiADKAsyKS5nb29nbGUucHJv", + "dG9idWYuRW51bVZhbHVlRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYAyAB", + "KAsyHC5nb29nbGUucHJvdG9idWYuRW51bU9wdGlvbnMibAoYRW51bVZhbHVl", + "RGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDgoGbnVtYmVyGAIgASgF", + "EjIKB29wdGlvbnMYAyABKAsyIS5nb29nbGUucHJvdG9idWYuRW51bVZhbHVl", + "T3B0aW9ucyKQAQoWU2VydmljZURlc2NyaXB0b3JQcm90bxIMCgRuYW1lGAEg", + "ASgJEjYKBm1ldGhvZBgCIAMoCzImLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RE", + "ZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgDIAEoCzIfLmdvb2dsZS5wcm90", + "b2J1Zi5TZXJ2aWNlT3B0aW9ucyJ/ChVNZXRob2REZXNjcmlwdG9yUHJvdG8S", + "DAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIgASgJEhMKC291dHB1dF90", + "eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5nb29nbGUucHJvdG9idWYu", + "TWV0aG9kT3B0aW9ucyKrBAoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdl", + "GAEgASgJEhwKFGphdmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFf", + "bXVsdGlwbGVfZmlsZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVf", + "ZXF1YWxzX2FuZF9oYXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19j", + "aGVja191dGY4GBsgASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4y", + "KS5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVT", + "UEVFRBISCgpnb19wYWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2Vydmlj", + "ZXMYECABKAg6BWZhbHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEo", + "CDoFZmFsc2USIgoTcHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2US", + "GQoKZGVwcmVjYXRlZBgXIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9v", + "cHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRP", + "cHRpb24iOgoMT3B0aW1pemVNb2RlEgkKBVNQRUVEEAESDQoJQ09ERV9TSVpF", + "EAISEAoMTElURV9SVU5USU1FEAMqCQjoBxCAgICAAiLTAQoOTWVzc2FnZU9w", + "dGlvbnMSJgoXbWVzc2FnZV9zZXRfd2lyZV9mb3JtYXQYASABKAg6BWZhbHNl", + "Ei4KH25vX3N0YW5kYXJkX2Rlc2NyaXB0b3JfYWNjZXNzb3IYAiABKAg6BWZh", + "bHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0", + "ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJl", + "dGVkT3B0aW9uKgkI6AcQgICAgAIivgIKDEZpZWxkT3B0aW9ucxI6CgVjdHlw", + "ZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMuQ1R5cGU6", + "BlNUUklORxIOCgZwYWNrZWQYAiABKAgSEwoEbGF6eRgFIAEoCDoFZmFsc2US", + "GQoKZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2USHAoUZXhwZXJpbWVudGFsX21h", + "cF9rZXkYCSABKAkSEwoEd2VhaxgKIAEoCDoFZmFsc2USQwoUdW5pbnRlcnBy", + "ZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJw", + "cmV0ZWRPcHRpb24iLwoFQ1R5cGUSCgoGU1RSSU5HEAASCAoEQ09SRBABEhAK", + "DFNUUklOR19QSUVDRRACKgkI6AcQgICAgAIijQEKC0VudW1PcHRpb25zEhMK", + "C2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNl", + "EkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90", + "b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIifQoQRW51bVZh", + "bHVlT3B0aW9ucxIZCgpkZXByZWNhdGVkGAEgASgIOgVmYWxzZRJDChR1bmlu", + "dGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5p", + "bnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACInsKDlNlcnZpY2VPcHRpb25z", + "EhkKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRf", + "b3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVk", + "T3B0aW9uKgkI6AcQgICAgAIiegoNTWV0aG9kT3B0aW9ucxIZCgpkZXByZWNh", + "dGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByAD", + "KAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgH", + "EICAgIACIp4CChNVbmludGVycHJldGVkT3B0aW9uEjsKBG5hbWUYAiADKAsy", + "LS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbi5OYW1lUGFy", + "dBIYChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJEhoKEnBvc2l0aXZlX2ludF92", + "YWx1ZRgEIAEoBBIaChJuZWdhdGl2ZV9pbnRfdmFsdWUYBSABKAMSFAoMZG91", + "YmxlX3ZhbHVlGAYgASgBEhQKDHN0cmluZ192YWx1ZRgHIAEoDBIXCg9hZ2dy", + "ZWdhdGVfdmFsdWUYCCABKAkaMwoITmFtZVBhcnQSEQoJbmFtZV9wYXJ0GAEg", + "AigJEhQKDGlzX2V4dGVuc2lvbhgCIAIoCCKxAQoOU291cmNlQ29kZUluZm8S", + "OgoIbG9jYXRpb24YASADKAsyKC5nb29nbGUucHJvdG9idWYuU291cmNlQ29k", + "ZUluZm8uTG9jYXRpb24aYwoITG9jYXRpb24SEAoEcGF0aBgBIAMoBUICEAES", + "EAoEc3BhbhgCIAMoBUICEAESGAoQbGVhZGluZ19jb21tZW50cxgDIAEoCRIZ", + "ChF0cmFpbGluZ19jb21tZW50cxgEIAEoCUIpChNjb20uZ29vZ2xlLnByb3Rv", + "YnVmQhBEZXNjcmlwdG9yUHJvdG9zSAE=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.FileDescriptorSet), global::Google.Protobuf.FileDescriptorSet.Parser, new[]{ "File" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.FileDescriptorProto), global::Google.Protobuf.FileDescriptorProto.Parser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.DescriptorProto), global::Google.Protobuf.DescriptorProto.Parser, new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.DescriptorProto.Types.ExtensionRange), global::Google.Protobuf.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.FieldDescriptorProto), global::Google.Protobuf.FieldDescriptorProto.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "Options" }, null, new[]{ typeof(global::Google.Protobuf.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.FieldDescriptorProto.Types.Label) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.OneofDescriptorProto), global::Google.Protobuf.OneofDescriptorProto.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.EnumDescriptorProto), global::Google.Protobuf.EnumDescriptorProto.Parser, new[]{ "Name", "Value", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.EnumValueDescriptorProto), global::Google.Protobuf.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.ServiceDescriptorProto), global::Google.Protobuf.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.MethodDescriptorProto), global::Google.Protobuf.MethodDescriptorProto.Parser, new[]{ "Name", "InputType", "OutputType", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.FileOptions), global::Google.Protobuf.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.FileOptions.Types.OptimizeMode) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.MessageOptions), global::Google.Protobuf.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "UninterpretedOption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.FieldOptions), global::Google.Protobuf.FieldOptions.Parser, new[]{ "Ctype", "Packed", "Lazy", "Deprecated", "ExperimentalMapKey", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.FieldOptions.Types.CType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.EnumOptions), global::Google.Protobuf.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.EnumValueOptions), global::Google.Protobuf.EnumValueOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.ServiceOptions), global::Google.Protobuf.ServiceOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.MethodOptions), global::Google.Protobuf.MethodOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.UninterpretedOption), global::Google.Protobuf.UninterpretedOption.Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.UninterpretedOption.Types.NamePart), global::Google.Protobuf.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.SourceCodeInfo), global::Google.Protobuf.SourceCodeInfo.Parser, new[]{ "Location" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.SourceCodeInfo.Types.Location), global::Google.Protobuf.SourceCodeInfo.Types.Location.Parser, new[]{ "Path", "Span", "LeadingComments", "TrailingComments" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + public sealed partial class FileDescriptorSet : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileDescriptorSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileDescriptorSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileDescriptorSet(FileDescriptorSet other) : this() { + file_ = other.file_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileDescriptorSet Clone() { + return new FileDescriptorSet(this); + } + + /// Field number for the "file" field. + public const int FileFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_file_codec + = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.FileDescriptorProto.Parser); + private readonly pbc::RepeatedField file_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField File { + get { return file_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FileDescriptorSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FileDescriptorSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!file_.Equals(other.file_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= file_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + file_.WriteTo(output, _repeated_file_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += file_.CalculateSize(_repeated_file_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FileDescriptorSet other) { + if (other == null) { + return; + } + file_.Add(other.file_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + file_.AddEntriesFrom(input, _repeated_file_codec); + break; + } + } + } + } + + } + + public sealed partial class FileDescriptorProto : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileDescriptorProto()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileDescriptorProto() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileDescriptorProto(FileDescriptorProto other) : this() { + name_ = other.name_; + package_ = other.package_; + dependency_ = other.dependency_.Clone(); + publicDependency_ = other.publicDependency_.Clone(); + weakDependency_ = other.weakDependency_.Clone(); + messageType_ = other.messageType_.Clone(); + enumType_ = other.enumType_.Clone(); + service_ = other.service_.Clone(); + extension_ = other.extension_.Clone(); + options_ = other.HasOptions ? other.options_.Clone() : null; + sourceCodeInfo_ = other.HasSourceCodeInfo ? other.sourceCodeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileDescriptorProto Clone() { + return new FileDescriptorProto(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "package" field. + public const int PackageFieldNumber = 2; + private readonly static string PackageDefaultValue = ""; + + private string package_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Package { + get { return package_ ?? PackageDefaultValue; } + set { + package_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "package" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPackage { + get { return package_ != null; } + } + /// Clears the value of the "package" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPackage() { + package_ = null; + } + + /// Field number for the "dependency" field. + public const int DependencyFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_dependency_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField dependency_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Dependency { + get { return dependency_; } + } + + /// Field number for the "public_dependency" field. + public const int PublicDependencyFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_publicDependency_codec + = pb::FieldCodec.ForInt32(80); + private readonly pbc::RepeatedField publicDependency_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField PublicDependency { + get { return publicDependency_; } + } + + /// Field number for the "weak_dependency" field. + public const int WeakDependencyFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_weakDependency_codec + = pb::FieldCodec.ForInt32(88); + private readonly pbc::RepeatedField weakDependency_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField WeakDependency { + get { return weakDependency_; } + } + + /// Field number for the "message_type" field. + public const int MessageTypeFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_messageType_codec + = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.DescriptorProto.Parser); + private readonly pbc::RepeatedField messageType_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField MessageType { + get { return messageType_; } + } + + /// Field number for the "enum_type" field. + public const int EnumTypeFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_enumType_codec + = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.EnumDescriptorProto.Parser); + private readonly pbc::RepeatedField enumType_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField EnumType { + get { return enumType_; } + } + + /// Field number for the "service" field. + public const int ServiceFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_service_codec + = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.ServiceDescriptorProto.Parser); + private readonly pbc::RepeatedField service_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Service { + get { return service_; } + } + + /// Field number for the "extension" field. + public const int ExtensionFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_extension_codec + = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.FieldDescriptorProto.Parser); + private readonly pbc::RepeatedField extension_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Extension { + get { return extension_; } + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 8; + private global::Google.Protobuf.FileOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.FileOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + /// Field number for the "source_code_info" field. + public const int SourceCodeInfoFieldNumber = 9; + private global::Google.Protobuf.SourceCodeInfo sourceCodeInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.SourceCodeInfo SourceCodeInfo { + get { return sourceCodeInfo_; } + set { + sourceCodeInfo_ = value; + } + } + /// Gets whether the source_code_info field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSourceCodeInfo { + get { return sourceCodeInfo_ != null; } + } + /// Clears the value of the source_code_info field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSourceCodeInfo() { + sourceCodeInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FileDescriptorProto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FileDescriptorProto other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Package != other.Package) return false; + if(!dependency_.Equals(other.dependency_)) return false; + if(!publicDependency_.Equals(other.publicDependency_)) return false; + if(!weakDependency_.Equals(other.weakDependency_)) return false; + if(!messageType_.Equals(other.messageType_)) return false; + if(!enumType_.Equals(other.enumType_)) return false; + if(!service_.Equals(other.service_)) return false; + if(!extension_.Equals(other.extension_)) return false; + if (!object.Equals(Options, other.Options)) return false; + if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasPackage) hash ^= Package.GetHashCode(); + hash ^= dependency_.GetHashCode(); + hash ^= publicDependency_.GetHashCode(); + hash ^= weakDependency_.GetHashCode(); + hash ^= messageType_.GetHashCode(); + hash ^= enumType_.GetHashCode(); + hash ^= service_.GetHashCode(); + hash ^= extension_.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (HasSourceCodeInfo) hash ^= SourceCodeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasPackage) { + output.WriteRawTag(18); + output.WriteString(Package); + } + dependency_.WriteTo(output, _repeated_dependency_codec); + messageType_.WriteTo(output, _repeated_messageType_codec); + enumType_.WriteTo(output, _repeated_enumType_codec); + service_.WriteTo(output, _repeated_service_codec); + extension_.WriteTo(output, _repeated_extension_codec); + if (HasOptions) { + output.WriteRawTag(66); + output.WriteMessage(Options); + } + if (HasSourceCodeInfo) { + output.WriteRawTag(74); + output.WriteMessage(SourceCodeInfo); + } + publicDependency_.WriteTo(output, _repeated_publicDependency_codec); + weakDependency_.WriteTo(output, _repeated_weakDependency_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasPackage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Package); + } + size += dependency_.CalculateSize(_repeated_dependency_codec); + size += publicDependency_.CalculateSize(_repeated_publicDependency_codec); + size += weakDependency_.CalculateSize(_repeated_weakDependency_codec); + size += messageType_.CalculateSize(_repeated_messageType_codec); + size += enumType_.CalculateSize(_repeated_enumType_codec); + size += service_.CalculateSize(_repeated_service_codec); + size += extension_.CalculateSize(_repeated_extension_codec); + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (HasSourceCodeInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FileDescriptorProto other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasPackage) { + Package = other.Package; + } + dependency_.Add(other.dependency_); + publicDependency_.Add(other.publicDependency_); + weakDependency_.Add(other.weakDependency_); + messageType_.Add(other.messageType_); + enumType_.Add(other.enumType_); + service_.Add(other.service_); + extension_.Add(other.extension_); + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Google.Protobuf.FileOptions(); + } + Options.MergeFrom(other.Options); + } + if (other.HasSourceCodeInfo) { + if (!HasSourceCodeInfo) { + SourceCodeInfo = new global::Google.Protobuf.SourceCodeInfo(); + } + SourceCodeInfo.MergeFrom(other.SourceCodeInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Package = input.ReadString(); + break; + } + case 26: { + dependency_.AddEntriesFrom(input, _repeated_dependency_codec); + break; + } + case 34: { + messageType_.AddEntriesFrom(input, _repeated_messageType_codec); + break; + } + case 42: { + enumType_.AddEntriesFrom(input, _repeated_enumType_codec); + break; + } + case 50: { + service_.AddEntriesFrom(input, _repeated_service_codec); + break; + } + case 58: { + extension_.AddEntriesFrom(input, _repeated_extension_codec); + break; + } + case 66: { + if (!HasOptions) { + Options = new global::Google.Protobuf.FileOptions(); + } + input.ReadMessage(Options); + break; + } + case 74: { + if (!HasSourceCodeInfo) { + SourceCodeInfo = new global::Google.Protobuf.SourceCodeInfo(); + } + input.ReadMessage(SourceCodeInfo); + break; + } + case 82: + case 80: { + publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec); + break; + } + case 90: + case 88: { + weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec); + break; + } + } + } + } + + } + + public sealed partial class DescriptorProto : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescriptorProto()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DescriptorProto() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DescriptorProto(DescriptorProto other) : this() { + name_ = other.name_; + field_ = other.field_.Clone(); + extension_ = other.extension_.Clone(); + nestedType_ = other.nestedType_.Clone(); + enumType_ = other.enumType_.Clone(); + extensionRange_ = other.extensionRange_.Clone(); + oneofDecl_ = other.oneofDecl_.Clone(); + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DescriptorProto Clone() { + return new DescriptorProto(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "field" field. + public const int FieldFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_field_codec + = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.FieldDescriptorProto.Parser); + private readonly pbc::RepeatedField field_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Field { + get { return field_; } + } + + /// Field number for the "extension" field. + public const int ExtensionFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_extension_codec + = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.FieldDescriptorProto.Parser); + private readonly pbc::RepeatedField extension_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Extension { + get { return extension_; } + } + + /// Field number for the "nested_type" field. + public const int NestedTypeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_nestedType_codec + = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.DescriptorProto.Parser); + private readonly pbc::RepeatedField nestedType_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField NestedType { + get { return nestedType_; } + } + + /// Field number for the "enum_type" field. + public const int EnumTypeFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_enumType_codec + = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.EnumDescriptorProto.Parser); + private readonly pbc::RepeatedField enumType_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField EnumType { + get { return enumType_; } + } + + /// Field number for the "extension_range" field. + public const int ExtensionRangeFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_extensionRange_codec + = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.DescriptorProto.Types.ExtensionRange.Parser); + private readonly pbc::RepeatedField extensionRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ExtensionRange { + get { return extensionRange_; } + } + + /// Field number for the "oneof_decl" field. + public const int OneofDeclFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_oneofDecl_codec + = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.OneofDescriptorProto.Parser); + private readonly pbc::RepeatedField oneofDecl_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField OneofDecl { + get { return oneofDecl_; } + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 7; + private global::Google.Protobuf.MessageOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.MessageOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DescriptorProto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DescriptorProto other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!field_.Equals(other.field_)) return false; + if(!extension_.Equals(other.extension_)) return false; + if(!nestedType_.Equals(other.nestedType_)) return false; + if(!enumType_.Equals(other.enumType_)) return false; + if(!extensionRange_.Equals(other.extensionRange_)) return false; + if(!oneofDecl_.Equals(other.oneofDecl_)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + hash ^= field_.GetHashCode(); + hash ^= extension_.GetHashCode(); + hash ^= nestedType_.GetHashCode(); + hash ^= enumType_.GetHashCode(); + hash ^= extensionRange_.GetHashCode(); + hash ^= oneofDecl_.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + field_.WriteTo(output, _repeated_field_codec); + nestedType_.WriteTo(output, _repeated_nestedType_codec); + enumType_.WriteTo(output, _repeated_enumType_codec); + extensionRange_.WriteTo(output, _repeated_extensionRange_codec); + extension_.WriteTo(output, _repeated_extension_codec); + if (HasOptions) { + output.WriteRawTag(58); + output.WriteMessage(Options); + } + oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += field_.CalculateSize(_repeated_field_codec); + size += extension_.CalculateSize(_repeated_extension_codec); + size += nestedType_.CalculateSize(_repeated_nestedType_codec); + size += enumType_.CalculateSize(_repeated_enumType_codec); + size += extensionRange_.CalculateSize(_repeated_extensionRange_codec); + size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec); + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DescriptorProto other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + field_.Add(other.field_); + extension_.Add(other.extension_); + nestedType_.Add(other.nestedType_); + enumType_.Add(other.enumType_); + extensionRange_.Add(other.extensionRange_); + oneofDecl_.Add(other.oneofDecl_); + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Google.Protobuf.MessageOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + field_.AddEntriesFrom(input, _repeated_field_codec); + break; + } + case 26: { + nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec); + break; + } + case 34: { + enumType_.AddEntriesFrom(input, _repeated_enumType_codec); + break; + } + case 42: { + extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec); + break; + } + case 50: { + extension_.AddEntriesFrom(input, _repeated_extension_codec); + break; + } + case 58: { + if (!HasOptions) { + Options = new global::Google.Protobuf.MessageOptions(); + } + input.ReadMessage(Options); + break; + } + case 66: { + oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the DescriptorProto message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public sealed partial class ExtensionRange : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtensionRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorProto.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ExtensionRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ExtensionRange(ExtensionRange other) : this() { + _hasBits0 = other._hasBits0; + start_ = other.start_; + end_ = other.end_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ExtensionRange Clone() { + return new ExtensionRange(this); + } + + /// Field number for the "start" field. + public const int StartFieldNumber = 1; + private readonly static int StartDefaultValue = 0; + + private int start_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Start { + get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } } + set { + _hasBits0 |= 1; + start_ = value; + } + } + /// Gets whether the "start" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStart { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStart() { + _hasBits0 &= ~1; + } + + /// Field number for the "end" field. + public const int EndFieldNumber = 2; + private readonly static int EndDefaultValue = 0; + + private int end_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int End { + get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } } + set { + _hasBits0 |= 2; + end_ = value; + } + } + /// Gets whether the "end" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEnd { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEnd() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ExtensionRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ExtensionRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Start != other.Start) return false; + if (End != other.End) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasStart) hash ^= Start.GetHashCode(); + if (HasEnd) hash ^= End.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasStart) { + output.WriteRawTag(8); + output.WriteInt32(Start); + } + if (HasEnd) { + output.WriteRawTag(16); + output.WriteInt32(End); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasStart) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start); + } + if (HasEnd) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ExtensionRange other) { + if (other == null) { + return; + } + if (other.HasStart) { + Start = other.Start; + } + if (other.HasEnd) { + End = other.End; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Start = input.ReadInt32(); + break; + } + case 16: { + End = input.ReadInt32(); + break; + } + } + } + } + + } + + } + #endregion + + } + + public sealed partial class FieldDescriptorProto : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldDescriptorProto()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldDescriptorProto() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldDescriptorProto(FieldDescriptorProto other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + number_ = other.number_; + label_ = other.label_; + type_ = other.type_; + typeName_ = other.typeName_; + extendee_ = other.extendee_; + defaultValue_ = other.defaultValue_; + oneofIndex_ = other.oneofIndex_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldDescriptorProto Clone() { + return new FieldDescriptorProto(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "number" field. + public const int NumberFieldNumber = 3; + private readonly static int NumberDefaultValue = 0; + + private int number_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Number { + get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } } + set { + _hasBits0 |= 1; + number_ = value; + } + } + /// Gets whether the "number" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNumber { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "number" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNumber() { + _hasBits0 &= ~1; + } + + /// Field number for the "label" field. + public const int LabelFieldNumber = 4; + private readonly static global::Google.Protobuf.FieldDescriptorProto.Types.Label LabelDefaultValue = global::Google.Protobuf.FieldDescriptorProto.Types.Label.Optional; + + private global::Google.Protobuf.FieldDescriptorProto.Types.Label label_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.FieldDescriptorProto.Types.Label Label { + get { if ((_hasBits0 & 2) != 0) { return label_; } else { return LabelDefaultValue; } } + set { + _hasBits0 |= 2; + label_ = value; + } + } + /// Gets whether the "label" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLabel { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "label" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLabel() { + _hasBits0 &= ~2; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 5; + private readonly static global::Google.Protobuf.FieldDescriptorProto.Types.Type TypeDefaultValue = global::Google.Protobuf.FieldDescriptorProto.Types.Type.Double; + + private global::Google.Protobuf.FieldDescriptorProto.Types.Type type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.FieldDescriptorProto.Types.Type Type { + get { if ((_hasBits0 & 4) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 4; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + _hasBits0 &= ~4; + } + + /// Field number for the "type_name" field. + public const int TypeNameFieldNumber = 6; + private readonly static string TypeNameDefaultValue = ""; + + private string typeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TypeName { + get { return typeName_ ?? TypeNameDefaultValue; } + set { + typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTypeName { + get { return typeName_ != null; } + } + /// Clears the value of the "type_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTypeName() { + typeName_ = null; + } + + /// Field number for the "extendee" field. + public const int ExtendeeFieldNumber = 2; + private readonly static string ExtendeeDefaultValue = ""; + + private string extendee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Extendee { + get { return extendee_ ?? ExtendeeDefaultValue; } + set { + extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "extendee" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExtendee { + get { return extendee_ != null; } + } + /// Clears the value of the "extendee" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExtendee() { + extendee_ = null; + } + + /// Field number for the "default_value" field. + public const int DefaultValueFieldNumber = 7; + private readonly static string DefaultValueDefaultValue = ""; + + private string defaultValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DefaultValue { + get { return defaultValue_ ?? DefaultValueDefaultValue; } + set { + defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "default_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDefaultValue { + get { return defaultValue_ != null; } + } + /// Clears the value of the "default_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDefaultValue() { + defaultValue_ = null; + } + + /// Field number for the "oneof_index" field. + public const int OneofIndexFieldNumber = 9; + private readonly static int OneofIndexDefaultValue = 0; + + private int oneofIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int OneofIndex { + get { if ((_hasBits0 & 8) != 0) { return oneofIndex_; } else { return OneofIndexDefaultValue; } } + set { + _hasBits0 |= 8; + oneofIndex_ = value; + } + } + /// Gets whether the "oneof_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOneofIndex { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "oneof_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOneofIndex() { + _hasBits0 &= ~8; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 8; + private global::Google.Protobuf.FieldOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.FieldOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FieldDescriptorProto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FieldDescriptorProto other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Number != other.Number) return false; + if (Label != other.Label) return false; + if (Type != other.Type) return false; + if (TypeName != other.TypeName) return false; + if (Extendee != other.Extendee) return false; + if (DefaultValue != other.DefaultValue) return false; + if (OneofIndex != other.OneofIndex) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasNumber) hash ^= Number.GetHashCode(); + if (HasLabel) hash ^= Label.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasTypeName) hash ^= TypeName.GetHashCode(); + if (HasExtendee) hash ^= Extendee.GetHashCode(); + if (HasDefaultValue) hash ^= DefaultValue.GetHashCode(); + if (HasOneofIndex) hash ^= OneofIndex.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasExtendee) { + output.WriteRawTag(18); + output.WriteString(Extendee); + } + if (HasNumber) { + output.WriteRawTag(24); + output.WriteInt32(Number); + } + if (HasLabel) { + output.WriteRawTag(32); + output.WriteEnum((int) Label); + } + if (HasType) { + output.WriteRawTag(40); + output.WriteEnum((int) Type); + } + if (HasTypeName) { + output.WriteRawTag(50); + output.WriteString(TypeName); + } + if (HasDefaultValue) { + output.WriteRawTag(58); + output.WriteString(DefaultValue); + } + if (HasOptions) { + output.WriteRawTag(66); + output.WriteMessage(Options); + } + if (HasOneofIndex) { + output.WriteRawTag(72); + output.WriteInt32(OneofIndex); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasNumber) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); + } + if (HasLabel) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasTypeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName); + } + if (HasExtendee) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee); + } + if (HasDefaultValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); + } + if (HasOneofIndex) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FieldDescriptorProto other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasNumber) { + Number = other.Number; + } + if (other.HasLabel) { + Label = other.Label; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasTypeName) { + TypeName = other.TypeName; + } + if (other.HasExtendee) { + Extendee = other.Extendee; + } + if (other.HasDefaultValue) { + DefaultValue = other.DefaultValue; + } + if (other.HasOneofIndex) { + OneofIndex = other.OneofIndex; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Google.Protobuf.FieldOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Extendee = input.ReadString(); + break; + } + case 24: { + Number = input.ReadInt32(); + break; + } + case 32: { + Label = (global::Google.Protobuf.FieldDescriptorProto.Types.Label) input.ReadEnum(); + break; + } + case 40: { + Type = (global::Google.Protobuf.FieldDescriptorProto.Types.Type) input.ReadEnum(); + break; + } + case 50: { + TypeName = input.ReadString(); + break; + } + case 58: { + DefaultValue = input.ReadString(); + break; + } + case 66: { + if (!HasOptions) { + Options = new global::Google.Protobuf.FieldOptions(); + } + input.ReadMessage(Options); + break; + } + case 72: { + OneofIndex = input.ReadInt32(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the FieldDescriptorProto message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum Type { + [pbr::OriginalName("TYPE_DOUBLE")] Double = 1, + [pbr::OriginalName("TYPE_FLOAT")] Float = 2, + [pbr::OriginalName("TYPE_INT64")] Int64 = 3, + [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4, + [pbr::OriginalName("TYPE_INT32")] Int32 = 5, + [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6, + [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7, + [pbr::OriginalName("TYPE_BOOL")] Bool = 8, + [pbr::OriginalName("TYPE_STRING")] String = 9, + [pbr::OriginalName("TYPE_GROUP")] Group = 10, + [pbr::OriginalName("TYPE_MESSAGE")] Message = 11, + [pbr::OriginalName("TYPE_BYTES")] Bytes = 12, + [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13, + [pbr::OriginalName("TYPE_ENUM")] Enum = 14, + [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15, + [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16, + [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17, + [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18, + } + + public enum Label { + [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1, + [pbr::OriginalName("LABEL_REQUIRED")] Required = 2, + [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3, + } + + } + #endregion + + } + + public sealed partial class OneofDescriptorProto : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OneofDescriptorProto()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OneofDescriptorProto() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OneofDescriptorProto(OneofDescriptorProto other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OneofDescriptorProto Clone() { + return new OneofDescriptorProto(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OneofDescriptorProto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OneofDescriptorProto other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OneofDescriptorProto other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class EnumDescriptorProto : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnumDescriptorProto()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumDescriptorProto() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumDescriptorProto(EnumDescriptorProto other) : this() { + name_ = other.name_; + value_ = other.value_.Clone(); + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumDescriptorProto Clone() { + return new EnumDescriptorProto(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.EnumValueDescriptorProto.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Value { + get { return value_; } + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Google.Protobuf.EnumOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.EnumOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EnumDescriptorProto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EnumDescriptorProto other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!value_.Equals(other.value_)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + hash ^= value_.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + value_.WriteTo(output, _repeated_value_codec); + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += value_.CalculateSize(_repeated_value_codec); + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EnumDescriptorProto other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + value_.Add(other.value_); + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Google.Protobuf.EnumOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Google.Protobuf.EnumOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class EnumValueDescriptorProto : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnumValueDescriptorProto()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumValueDescriptorProto() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + number_ = other.number_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumValueDescriptorProto Clone() { + return new EnumValueDescriptorProto(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "number" field. + public const int NumberFieldNumber = 2; + private readonly static int NumberDefaultValue = 0; + + private int number_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Number { + get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } } + set { + _hasBits0 |= 1; + number_ = value; + } + } + /// Gets whether the "number" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNumber { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "number" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNumber() { + _hasBits0 &= ~1; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Google.Protobuf.EnumValueOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.EnumValueOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EnumValueDescriptorProto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EnumValueDescriptorProto other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Number != other.Number) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasNumber) hash ^= Number.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasNumber) { + output.WriteRawTag(16); + output.WriteInt32(Number); + } + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasNumber) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EnumValueDescriptorProto other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasNumber) { + Number = other.Number; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Google.Protobuf.EnumValueOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Number = input.ReadInt32(); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Google.Protobuf.EnumValueOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class ServiceDescriptorProto : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceDescriptorProto()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServiceDescriptorProto() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServiceDescriptorProto(ServiceDescriptorProto other) : this() { + name_ = other.name_; + method_ = other.method_.Clone(); + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServiceDescriptorProto Clone() { + return new ServiceDescriptorProto(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_method_codec + = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.MethodDescriptorProto.Parser); + private readonly pbc::RepeatedField method_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Method { + get { return method_; } + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 3; + private global::Google.Protobuf.ServiceOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.ServiceOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ServiceDescriptorProto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ServiceDescriptorProto other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!method_.Equals(other.method_)) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + hash ^= method_.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + method_.WriteTo(output, _repeated_method_codec); + if (HasOptions) { + output.WriteRawTag(26); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += method_.CalculateSize(_repeated_method_codec); + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ServiceDescriptorProto other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + method_.Add(other.method_); + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Google.Protobuf.ServiceOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + method_.AddEntriesFrom(input, _repeated_method_codec); + break; + } + case 26: { + if (!HasOptions) { + Options = new global::Google.Protobuf.ServiceOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class MethodDescriptorProto : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MethodDescriptorProto()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodDescriptorProto() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodDescriptorProto(MethodDescriptorProto other) : this() { + name_ = other.name_; + inputType_ = other.inputType_; + outputType_ = other.outputType_; + options_ = other.HasOptions ? other.options_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodDescriptorProto Clone() { + return new MethodDescriptorProto(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "input_type" field. + public const int InputTypeFieldNumber = 2; + private readonly static string InputTypeDefaultValue = ""; + + private string inputType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string InputType { + get { return inputType_ ?? InputTypeDefaultValue; } + set { + inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "input_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInputType { + get { return inputType_ != null; } + } + /// Clears the value of the "input_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInputType() { + inputType_ = null; + } + + /// Field number for the "output_type" field. + public const int OutputTypeFieldNumber = 3; + private readonly static string OutputTypeDefaultValue = ""; + + private string outputType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string OutputType { + get { return outputType_ ?? OutputTypeDefaultValue; } + set { + outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "output_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOutputType { + get { return outputType_ != null; } + } + /// Clears the value of the "output_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOutputType() { + outputType_ = null; + } + + /// Field number for the "options" field. + public const int OptionsFieldNumber = 4; + private global::Google.Protobuf.MethodOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.MethodOptions Options { + get { return options_; } + set { + options_ = value; + } + } + /// Gets whether the options field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptions { + get { return options_ != null; } + } + /// Clears the value of the options field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptions() { + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MethodDescriptorProto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MethodDescriptorProto other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (InputType != other.InputType) return false; + if (OutputType != other.OutputType) return false; + if (!object.Equals(Options, other.Options)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasInputType) hash ^= InputType.GetHashCode(); + if (HasOutputType) hash ^= OutputType.GetHashCode(); + if (HasOptions) hash ^= Options.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasInputType) { + output.WriteRawTag(18); + output.WriteString(InputType); + } + if (HasOutputType) { + output.WriteRawTag(26); + output.WriteString(OutputType); + } + if (HasOptions) { + output.WriteRawTag(34); + output.WriteMessage(Options); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasInputType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType); + } + if (HasOutputType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType); + } + if (HasOptions) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MethodDescriptorProto other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasInputType) { + InputType = other.InputType; + } + if (other.HasOutputType) { + OutputType = other.OutputType; + } + if (other.HasOptions) { + if (!HasOptions) { + Options = new global::Google.Protobuf.MethodOptions(); + } + Options.MergeFrom(other.Options); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + InputType = input.ReadString(); + break; + } + case 26: { + OutputType = input.ReadString(); + break; + } + case 34: { + if (!HasOptions) { + Options = new global::Google.Protobuf.MethodOptions(); + } + input.ReadMessage(Options); + break; + } + } + } + } + + } + + public sealed partial class FileOptions : pb::IExtendableMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileOptions()); + private pb::UnknownFieldSet _unknownFields; + internal pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileOptions(FileOptions other) : this() { + _hasBits0 = other._hasBits0; + javaPackage_ = other.javaPackage_; + javaOuterClassname_ = other.javaOuterClassname_; + javaMultipleFiles_ = other.javaMultipleFiles_; + javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_; + javaStringCheckUtf8_ = other.javaStringCheckUtf8_; + optimizeFor_ = other.optimizeFor_; + goPackage_ = other.goPackage_; + ccGenericServices_ = other.ccGenericServices_; + javaGenericServices_ = other.javaGenericServices_; + pyGenericServices_ = other.pyGenericServices_; + deprecated_ = other.deprecated_; + uninterpretedOption_ = other.uninterpretedOption_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FileOptions Clone() { + return new FileOptions(this); + } + + /// Field number for the "java_package" field. + public const int JavaPackageFieldNumber = 1; + private readonly static string JavaPackageDefaultValue = ""; + + private string javaPackage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string JavaPackage { + get { return javaPackage_ ?? JavaPackageDefaultValue; } + set { + javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "java_package" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJavaPackage { + get { return javaPackage_ != null; } + } + /// Clears the value of the "java_package" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJavaPackage() { + javaPackage_ = null; + } + + /// Field number for the "java_outer_classname" field. + public const int JavaOuterClassnameFieldNumber = 8; + private readonly static string JavaOuterClassnameDefaultValue = ""; + + private string javaOuterClassname_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string JavaOuterClassname { + get { return javaOuterClassname_ ?? JavaOuterClassnameDefaultValue; } + set { + javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "java_outer_classname" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJavaOuterClassname { + get { return javaOuterClassname_ != null; } + } + /// Clears the value of the "java_outer_classname" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJavaOuterClassname() { + javaOuterClassname_ = null; + } + + /// Field number for the "java_multiple_files" field. + public const int JavaMultipleFilesFieldNumber = 10; + private readonly static bool JavaMultipleFilesDefaultValue = false; + + private bool javaMultipleFiles_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool JavaMultipleFiles { + get { if ((_hasBits0 & 2) != 0) { return javaMultipleFiles_; } else { return JavaMultipleFilesDefaultValue; } } + set { + _hasBits0 |= 2; + javaMultipleFiles_ = value; + } + } + /// Gets whether the "java_multiple_files" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJavaMultipleFiles { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "java_multiple_files" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJavaMultipleFiles() { + _hasBits0 &= ~2; + } + + /// Field number for the "java_generate_equals_and_hash" field. + public const int JavaGenerateEqualsAndHashFieldNumber = 20; + private readonly static bool JavaGenerateEqualsAndHashDefaultValue = false; + + private bool javaGenerateEqualsAndHash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool JavaGenerateEqualsAndHash { + get { if ((_hasBits0 & 32) != 0) { return javaGenerateEqualsAndHash_; } else { return JavaGenerateEqualsAndHashDefaultValue; } } + set { + _hasBits0 |= 32; + javaGenerateEqualsAndHash_ = value; + } + } + /// Gets whether the "java_generate_equals_and_hash" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJavaGenerateEqualsAndHash { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "java_generate_equals_and_hash" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJavaGenerateEqualsAndHash() { + _hasBits0 &= ~32; + } + + /// Field number for the "java_string_check_utf8" field. + public const int JavaStringCheckUtf8FieldNumber = 27; + private readonly static bool JavaStringCheckUtf8DefaultValue = false; + + private bool javaStringCheckUtf8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool JavaStringCheckUtf8 { + get { if ((_hasBits0 & 128) != 0) { return javaStringCheckUtf8_; } else { return JavaStringCheckUtf8DefaultValue; } } + set { + _hasBits0 |= 128; + javaStringCheckUtf8_ = value; + } + } + /// Gets whether the "java_string_check_utf8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJavaStringCheckUtf8 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "java_string_check_utf8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJavaStringCheckUtf8() { + _hasBits0 &= ~128; + } + + /// Field number for the "optimize_for" field. + public const int OptimizeForFieldNumber = 9; + private readonly static global::Google.Protobuf.FileOptions.Types.OptimizeMode OptimizeForDefaultValue = global::Google.Protobuf.FileOptions.Types.OptimizeMode.Speed; + + private global::Google.Protobuf.FileOptions.Types.OptimizeMode optimizeFor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.FileOptions.Types.OptimizeMode OptimizeFor { + get { if ((_hasBits0 & 1) != 0) { return optimizeFor_; } else { return OptimizeForDefaultValue; } } + set { + _hasBits0 |= 1; + optimizeFor_ = value; + } + } + /// Gets whether the "optimize_for" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOptimizeFor { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "optimize_for" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOptimizeFor() { + _hasBits0 &= ~1; + } + + /// Field number for the "go_package" field. + public const int GoPackageFieldNumber = 11; + private readonly static string GoPackageDefaultValue = ""; + + private string goPackage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string GoPackage { + get { return goPackage_ ?? GoPackageDefaultValue; } + set { + goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "go_package" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGoPackage { + get { return goPackage_ != null; } + } + /// Clears the value of the "go_package" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGoPackage() { + goPackage_ = null; + } + + /// Field number for the "cc_generic_services" field. + public const int CcGenericServicesFieldNumber = 16; + private readonly static bool CcGenericServicesDefaultValue = false; + + private bool ccGenericServices_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool CcGenericServices { + get { if ((_hasBits0 & 4) != 0) { return ccGenericServices_; } else { return CcGenericServicesDefaultValue; } } + set { + _hasBits0 |= 4; + ccGenericServices_ = value; + } + } + /// Gets whether the "cc_generic_services" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCcGenericServices { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "cc_generic_services" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCcGenericServices() { + _hasBits0 &= ~4; + } + + /// Field number for the "java_generic_services" field. + public const int JavaGenericServicesFieldNumber = 17; + private readonly static bool JavaGenericServicesDefaultValue = false; + + private bool javaGenericServices_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool JavaGenericServices { + get { if ((_hasBits0 & 8) != 0) { return javaGenericServices_; } else { return JavaGenericServicesDefaultValue; } } + set { + _hasBits0 |= 8; + javaGenericServices_ = value; + } + } + /// Gets whether the "java_generic_services" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJavaGenericServices { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "java_generic_services" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJavaGenericServices() { + _hasBits0 &= ~8; + } + + /// Field number for the "py_generic_services" field. + public const int PyGenericServicesFieldNumber = 18; + private readonly static bool PyGenericServicesDefaultValue = false; + + private bool pyGenericServices_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool PyGenericServices { + get { if ((_hasBits0 & 16) != 0) { return pyGenericServices_; } else { return PyGenericServicesDefaultValue; } } + set { + _hasBits0 |= 16; + pyGenericServices_ = value; + } + } + /// Gets whether the "py_generic_services" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPyGenericServices { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "py_generic_services" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPyGenericServices() { + _hasBits0 &= ~16; + } + + /// Field number for the "deprecated" field. + public const int DeprecatedFieldNumber = 23; + private readonly static bool DeprecatedDefaultValue = false; + + private bool deprecated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Deprecated { + get { if ((_hasBits0 & 64) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } } + set { + _hasBits0 |= 64; + deprecated_ = value; + } + } + /// Gets whether the "deprecated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeprecated { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "deprecated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeprecated() { + _hasBits0 &= ~64; + } + + /// Field number for the "uninterpreted_option" field. + public const int UninterpretedOptionFieldNumber = 999; + private static readonly pb::FieldCodec _repeated_uninterpretedOption_codec + = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.UninterpretedOption.Parser); + private readonly pbc::RepeatedField uninterpretedOption_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField UninterpretedOption { + get { return uninterpretedOption_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FileOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FileOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (JavaPackage != other.JavaPackage) return false; + if (JavaOuterClassname != other.JavaOuterClassname) return false; + if (JavaMultipleFiles != other.JavaMultipleFiles) return false; + if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false; + if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false; + if (OptimizeFor != other.OptimizeFor) return false; + if (GoPackage != other.GoPackage) return false; + if (CcGenericServices != other.CcGenericServices) return false; + if (JavaGenericServices != other.JavaGenericServices) return false; + if (PyGenericServices != other.PyGenericServices) return false; + if (Deprecated != other.Deprecated) return false; + if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasJavaPackage) hash ^= JavaPackage.GetHashCode(); + if (HasJavaOuterClassname) hash ^= JavaOuterClassname.GetHashCode(); + if (HasJavaMultipleFiles) hash ^= JavaMultipleFiles.GetHashCode(); + if (HasJavaGenerateEqualsAndHash) hash ^= JavaGenerateEqualsAndHash.GetHashCode(); + if (HasJavaStringCheckUtf8) hash ^= JavaStringCheckUtf8.GetHashCode(); + if (HasOptimizeFor) hash ^= OptimizeFor.GetHashCode(); + if (HasGoPackage) hash ^= GoPackage.GetHashCode(); + if (HasCcGenericServices) hash ^= CcGenericServices.GetHashCode(); + if (HasJavaGenericServices) hash ^= JavaGenericServices.GetHashCode(); + if (HasPyGenericServices) hash ^= PyGenericServices.GetHashCode(); + if (HasDeprecated) hash ^= Deprecated.GetHashCode(); + hash ^= uninterpretedOption_.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasJavaPackage) { + output.WriteRawTag(10); + output.WriteString(JavaPackage); + } + if (HasJavaOuterClassname) { + output.WriteRawTag(66); + output.WriteString(JavaOuterClassname); + } + if (HasOptimizeFor) { + output.WriteRawTag(72); + output.WriteEnum((int) OptimizeFor); + } + if (HasJavaMultipleFiles) { + output.WriteRawTag(80); + output.WriteBool(JavaMultipleFiles); + } + if (HasGoPackage) { + output.WriteRawTag(90); + output.WriteString(GoPackage); + } + if (HasCcGenericServices) { + output.WriteRawTag(128, 1); + output.WriteBool(CcGenericServices); + } + if (HasJavaGenericServices) { + output.WriteRawTag(136, 1); + output.WriteBool(JavaGenericServices); + } + if (HasPyGenericServices) { + output.WriteRawTag(144, 1); + output.WriteBool(PyGenericServices); + } + if (HasJavaGenerateEqualsAndHash) { + output.WriteRawTag(160, 1); + output.WriteBool(JavaGenerateEqualsAndHash); + } + if (HasDeprecated) { + output.WriteRawTag(184, 1); + output.WriteBool(Deprecated); + } + if (HasJavaStringCheckUtf8) { + output.WriteRawTag(216, 1); + output.WriteBool(JavaStringCheckUtf8); + } + uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasJavaPackage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage); + } + if (HasJavaOuterClassname) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname); + } + if (HasJavaMultipleFiles) { + size += 1 + 1; + } + if (HasJavaGenerateEqualsAndHash) { + size += 2 + 1; + } + if (HasJavaStringCheckUtf8) { + size += 2 + 1; + } + if (HasOptimizeFor) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor); + } + if (HasGoPackage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage); + } + if (HasCcGenericServices) { + size += 2 + 1; + } + if (HasJavaGenericServices) { + size += 2 + 1; + } + if (HasPyGenericServices) { + size += 2 + 1; + } + if (HasDeprecated) { + size += 2 + 1; + } + size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FileOptions other) { + if (other == null) { + return; + } + if (other.HasJavaPackage) { + JavaPackage = other.JavaPackage; + } + if (other.HasJavaOuterClassname) { + JavaOuterClassname = other.JavaOuterClassname; + } + if (other.HasJavaMultipleFiles) { + JavaMultipleFiles = other.JavaMultipleFiles; + } + if (other.HasJavaGenerateEqualsAndHash) { + JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash; + } + if (other.HasJavaStringCheckUtf8) { + JavaStringCheckUtf8 = other.JavaStringCheckUtf8; + } + if (other.HasOptimizeFor) { + OptimizeFor = other.OptimizeFor; + } + if (other.HasGoPackage) { + GoPackage = other.GoPackage; + } + if (other.HasCcGenericServices) { + CcGenericServices = other.CcGenericServices; + } + if (other.HasJavaGenericServices) { + JavaGenericServices = other.JavaGenericServices; + } + if (other.HasPyGenericServices) { + PyGenericServices = other.PyGenericServices; + } + if (other.HasDeprecated) { + Deprecated = other.Deprecated; + } + uninterpretedOption_.Add(other.uninterpretedOption_); + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } + break; + case 10: { + JavaPackage = input.ReadString(); + break; + } + case 66: { + JavaOuterClassname = input.ReadString(); + break; + } + case 72: { + OptimizeFor = (global::Google.Protobuf.FileOptions.Types.OptimizeMode) input.ReadEnum(); + break; + } + case 80: { + JavaMultipleFiles = input.ReadBool(); + break; + } + case 90: { + GoPackage = input.ReadString(); + break; + } + case 128: { + CcGenericServices = input.ReadBool(); + break; + } + case 136: { + JavaGenericServices = input.ReadBool(); + break; + } + case 144: { + PyGenericServices = input.ReadBool(); + break; + } + case 160: { + JavaGenerateEqualsAndHash = input.ReadBool(); + break; + } + case 184: { + Deprecated = input.ReadBool(); + break; + } + case 216: { + JavaStringCheckUtf8 = input.ReadBool(); + break; + } + case 7994: { + uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); + break; + } + } + } + } + + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + + #region Nested types + /// Container for nested types declared in the FileOptions message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum OptimizeMode { + [pbr::OriginalName("SPEED")] Speed = 1, + [pbr::OriginalName("CODE_SIZE")] CodeSize = 2, + [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3, + } + + } + #endregion + + } + + public sealed partial class MessageOptions : pb::IExtendableMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOptions()); + private pb::UnknownFieldSet _unknownFields; + internal pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOptions(MessageOptions other) : this() { + _hasBits0 = other._hasBits0; + messageSetWireFormat_ = other.messageSetWireFormat_; + noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_; + deprecated_ = other.deprecated_; + uninterpretedOption_ = other.uninterpretedOption_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOptions Clone() { + return new MessageOptions(this); + } + + /// Field number for the "message_set_wire_format" field. + public const int MessageSetWireFormatFieldNumber = 1; + private readonly static bool MessageSetWireFormatDefaultValue = false; + + private bool messageSetWireFormat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool MessageSetWireFormat { + get { if ((_hasBits0 & 1) != 0) { return messageSetWireFormat_; } else { return MessageSetWireFormatDefaultValue; } } + set { + _hasBits0 |= 1; + messageSetWireFormat_ = value; + } + } + /// Gets whether the "message_set_wire_format" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMessageSetWireFormat { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "message_set_wire_format" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageSetWireFormat() { + _hasBits0 &= ~1; + } + + /// Field number for the "no_standard_descriptor_accessor" field. + public const int NoStandardDescriptorAccessorFieldNumber = 2; + private readonly static bool NoStandardDescriptorAccessorDefaultValue = false; + + private bool noStandardDescriptorAccessor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool NoStandardDescriptorAccessor { + get { if ((_hasBits0 & 2) != 0) { return noStandardDescriptorAccessor_; } else { return NoStandardDescriptorAccessorDefaultValue; } } + set { + _hasBits0 |= 2; + noStandardDescriptorAccessor_ = value; + } + } + /// Gets whether the "no_standard_descriptor_accessor" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNoStandardDescriptorAccessor { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "no_standard_descriptor_accessor" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNoStandardDescriptorAccessor() { + _hasBits0 &= ~2; + } + + /// Field number for the "deprecated" field. + public const int DeprecatedFieldNumber = 3; + private readonly static bool DeprecatedDefaultValue = false; + + private bool deprecated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Deprecated { + get { if ((_hasBits0 & 4) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } } + set { + _hasBits0 |= 4; + deprecated_ = value; + } + } + /// Gets whether the "deprecated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeprecated { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "deprecated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeprecated() { + _hasBits0 &= ~4; + } + + /// Field number for the "uninterpreted_option" field. + public const int UninterpretedOptionFieldNumber = 999; + private static readonly pb::FieldCodec _repeated_uninterpretedOption_codec + = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.UninterpretedOption.Parser); + private readonly pbc::RepeatedField uninterpretedOption_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField UninterpretedOption { + get { return uninterpretedOption_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MessageOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MessageSetWireFormat != other.MessageSetWireFormat) return false; + if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false; + if (Deprecated != other.Deprecated) return false; + if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMessageSetWireFormat) hash ^= MessageSetWireFormat.GetHashCode(); + if (HasNoStandardDescriptorAccessor) hash ^= NoStandardDescriptorAccessor.GetHashCode(); + if (HasDeprecated) hash ^= Deprecated.GetHashCode(); + hash ^= uninterpretedOption_.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasMessageSetWireFormat) { + output.WriteRawTag(8); + output.WriteBool(MessageSetWireFormat); + } + if (HasNoStandardDescriptorAccessor) { + output.WriteRawTag(16); + output.WriteBool(NoStandardDescriptorAccessor); + } + if (HasDeprecated) { + output.WriteRawTag(24); + output.WriteBool(Deprecated); + } + uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMessageSetWireFormat) { + size += 1 + 1; + } + if (HasNoStandardDescriptorAccessor) { + size += 1 + 1; + } + if (HasDeprecated) { + size += 1 + 1; + } + size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOptions other) { + if (other == null) { + return; + } + if (other.HasMessageSetWireFormat) { + MessageSetWireFormat = other.MessageSetWireFormat; + } + if (other.HasNoStandardDescriptorAccessor) { + NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor; + } + if (other.HasDeprecated) { + Deprecated = other.Deprecated; + } + uninterpretedOption_.Add(other.uninterpretedOption_); + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } + break; + case 8: { + MessageSetWireFormat = input.ReadBool(); + break; + } + case 16: { + NoStandardDescriptorAccessor = input.ReadBool(); + break; + } + case 24: { + Deprecated = input.ReadBool(); + break; + } + case 7994: { + uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); + break; + } + } + } + } + + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + + } + + public sealed partial class FieldOptions : pb::IExtendableMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldOptions()); + private pb::UnknownFieldSet _unknownFields; + internal pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldOptions(FieldOptions other) : this() { + _hasBits0 = other._hasBits0; + ctype_ = other.ctype_; + packed_ = other.packed_; + lazy_ = other.lazy_; + deprecated_ = other.deprecated_; + experimentalMapKey_ = other.experimentalMapKey_; + weak_ = other.weak_; + uninterpretedOption_ = other.uninterpretedOption_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FieldOptions Clone() { + return new FieldOptions(this); + } + + /// Field number for the "ctype" field. + public const int CtypeFieldNumber = 1; + private readonly static global::Google.Protobuf.FieldOptions.Types.CType CtypeDefaultValue = global::Google.Protobuf.FieldOptions.Types.CType.String; + + private global::Google.Protobuf.FieldOptions.Types.CType ctype_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Google.Protobuf.FieldOptions.Types.CType Ctype { + get { if ((_hasBits0 & 1) != 0) { return ctype_; } else { return CtypeDefaultValue; } } + set { + _hasBits0 |= 1; + ctype_ = value; + } + } + /// Gets whether the "ctype" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCtype { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "ctype" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCtype() { + _hasBits0 &= ~1; + } + + /// Field number for the "packed" field. + public const int PackedFieldNumber = 2; + private readonly static bool PackedDefaultValue = false; + + private bool packed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Packed { + get { if ((_hasBits0 & 2) != 0) { return packed_; } else { return PackedDefaultValue; } } + set { + _hasBits0 |= 2; + packed_ = value; + } + } + /// Gets whether the "packed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPacked { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "packed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPacked() { + _hasBits0 &= ~2; + } + + /// Field number for the "lazy" field. + public const int LazyFieldNumber = 5; + private readonly static bool LazyDefaultValue = false; + + private bool lazy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Lazy { + get { if ((_hasBits0 & 8) != 0) { return lazy_; } else { return LazyDefaultValue; } } + set { + _hasBits0 |= 8; + lazy_ = value; + } + } + /// Gets whether the "lazy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLazy { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "lazy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLazy() { + _hasBits0 &= ~8; + } + + /// Field number for the "deprecated" field. + public const int DeprecatedFieldNumber = 3; + private readonly static bool DeprecatedDefaultValue = false; + + private bool deprecated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Deprecated { + get { if ((_hasBits0 & 4) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } } + set { + _hasBits0 |= 4; + deprecated_ = value; + } + } + /// Gets whether the "deprecated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeprecated { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "deprecated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeprecated() { + _hasBits0 &= ~4; + } + + /// Field number for the "experimental_map_key" field. + public const int ExperimentalMapKeyFieldNumber = 9; + private readonly static string ExperimentalMapKeyDefaultValue = ""; + + private string experimentalMapKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ExperimentalMapKey { + get { return experimentalMapKey_ ?? ExperimentalMapKeyDefaultValue; } + set { + experimentalMapKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "experimental_map_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExperimentalMapKey { + get { return experimentalMapKey_ != null; } + } + /// Clears the value of the "experimental_map_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExperimentalMapKey() { + experimentalMapKey_ = null; + } + + /// Field number for the "weak" field. + public const int WeakFieldNumber = 10; + private readonly static bool WeakDefaultValue = false; + + private bool weak_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Weak { + get { if ((_hasBits0 & 16) != 0) { return weak_; } else { return WeakDefaultValue; } } + set { + _hasBits0 |= 16; + weak_ = value; + } + } + /// Gets whether the "weak" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWeak { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "weak" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWeak() { + _hasBits0 &= ~16; + } + + /// Field number for the "uninterpreted_option" field. + public const int UninterpretedOptionFieldNumber = 999; + private static readonly pb::FieldCodec _repeated_uninterpretedOption_codec + = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.UninterpretedOption.Parser); + private readonly pbc::RepeatedField uninterpretedOption_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField UninterpretedOption { + get { return uninterpretedOption_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FieldOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FieldOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Ctype != other.Ctype) return false; + if (Packed != other.Packed) return false; + if (Lazy != other.Lazy) return false; + if (Deprecated != other.Deprecated) return false; + if (ExperimentalMapKey != other.ExperimentalMapKey) return false; + if (Weak != other.Weak) return false; + if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCtype) hash ^= Ctype.GetHashCode(); + if (HasPacked) hash ^= Packed.GetHashCode(); + if (HasLazy) hash ^= Lazy.GetHashCode(); + if (HasDeprecated) hash ^= Deprecated.GetHashCode(); + if (HasExperimentalMapKey) hash ^= ExperimentalMapKey.GetHashCode(); + if (HasWeak) hash ^= Weak.GetHashCode(); + hash ^= uninterpretedOption_.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasCtype) { + output.WriteRawTag(8); + output.WriteEnum((int) Ctype); + } + if (HasPacked) { + output.WriteRawTag(16); + output.WriteBool(Packed); + } + if (HasDeprecated) { + output.WriteRawTag(24); + output.WriteBool(Deprecated); + } + if (HasLazy) { + output.WriteRawTag(40); + output.WriteBool(Lazy); + } + if (HasExperimentalMapKey) { + output.WriteRawTag(74); + output.WriteString(ExperimentalMapKey); + } + if (HasWeak) { + output.WriteRawTag(80); + output.WriteBool(Weak); + } + uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCtype) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype); + } + if (HasPacked) { + size += 1 + 1; + } + if (HasLazy) { + size += 1 + 1; + } + if (HasDeprecated) { + size += 1 + 1; + } + if (HasExperimentalMapKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExperimentalMapKey); + } + if (HasWeak) { + size += 1 + 1; + } + size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FieldOptions other) { + if (other == null) { + return; + } + if (other.HasCtype) { + Ctype = other.Ctype; + } + if (other.HasPacked) { + Packed = other.Packed; + } + if (other.HasLazy) { + Lazy = other.Lazy; + } + if (other.HasDeprecated) { + Deprecated = other.Deprecated; + } + if (other.HasExperimentalMapKey) { + ExperimentalMapKey = other.ExperimentalMapKey; + } + if (other.HasWeak) { + Weak = other.Weak; + } + uninterpretedOption_.Add(other.uninterpretedOption_); + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } + break; + case 8: { + Ctype = (global::Google.Protobuf.FieldOptions.Types.CType) input.ReadEnum(); + break; + } + case 16: { + Packed = input.ReadBool(); + break; + } + case 24: { + Deprecated = input.ReadBool(); + break; + } + case 40: { + Lazy = input.ReadBool(); + break; + } + case 74: { + ExperimentalMapKey = input.ReadString(); + break; + } + case 80: { + Weak = input.ReadBool(); + break; + } + case 7994: { + uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); + break; + } + } + } + } + + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + + #region Nested types + /// Container for nested types declared in the FieldOptions message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum CType { + [pbr::OriginalName("STRING")] String = 0, + [pbr::OriginalName("CORD")] Cord = 1, + [pbr::OriginalName("STRING_PIECE")] StringPiece = 2, + } + + } + #endregion + + } + + public sealed partial class EnumOptions : pb::IExtendableMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnumOptions()); + private pb::UnknownFieldSet _unknownFields; + internal pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumOptions(EnumOptions other) : this() { + _hasBits0 = other._hasBits0; + allowAlias_ = other.allowAlias_; + deprecated_ = other.deprecated_; + uninterpretedOption_ = other.uninterpretedOption_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumOptions Clone() { + return new EnumOptions(this); + } + + /// Field number for the "allow_alias" field. + public const int AllowAliasFieldNumber = 2; + private readonly static bool AllowAliasDefaultValue = false; + + private bool allowAlias_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AllowAlias { + get { if ((_hasBits0 & 1) != 0) { return allowAlias_; } else { return AllowAliasDefaultValue; } } + set { + _hasBits0 |= 1; + allowAlias_ = value; + } + } + /// Gets whether the "allow_alias" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAllowAlias { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "allow_alias" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAllowAlias() { + _hasBits0 &= ~1; + } + + /// Field number for the "deprecated" field. + public const int DeprecatedFieldNumber = 3; + private readonly static bool DeprecatedDefaultValue = false; + + private bool deprecated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Deprecated { + get { if ((_hasBits0 & 2) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } } + set { + _hasBits0 |= 2; + deprecated_ = value; + } + } + /// Gets whether the "deprecated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeprecated { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "deprecated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeprecated() { + _hasBits0 &= ~2; + } + + /// Field number for the "uninterpreted_option" field. + public const int UninterpretedOptionFieldNumber = 999; + private static readonly pb::FieldCodec _repeated_uninterpretedOption_codec + = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.UninterpretedOption.Parser); + private readonly pbc::RepeatedField uninterpretedOption_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField UninterpretedOption { + get { return uninterpretedOption_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EnumOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EnumOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AllowAlias != other.AllowAlias) return false; + if (Deprecated != other.Deprecated) return false; + if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAllowAlias) hash ^= AllowAlias.GetHashCode(); + if (HasDeprecated) hash ^= Deprecated.GetHashCode(); + hash ^= uninterpretedOption_.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAllowAlias) { + output.WriteRawTag(16); + output.WriteBool(AllowAlias); + } + if (HasDeprecated) { + output.WriteRawTag(24); + output.WriteBool(Deprecated); + } + uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAllowAlias) { + size += 1 + 1; + } + if (HasDeprecated) { + size += 1 + 1; + } + size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EnumOptions other) { + if (other == null) { + return; + } + if (other.HasAllowAlias) { + AllowAlias = other.AllowAlias; + } + if (other.HasDeprecated) { + Deprecated = other.Deprecated; + } + uninterpretedOption_.Add(other.uninterpretedOption_); + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } + break; + case 16: { + AllowAlias = input.ReadBool(); + break; + } + case 24: { + Deprecated = input.ReadBool(); + break; + } + case 7994: { + uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); + break; + } + } + } + } + + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + + } + + public sealed partial class EnumValueOptions : pb::IExtendableMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnumValueOptions()); + private pb::UnknownFieldSet _unknownFields; + internal pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumValueOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumValueOptions(EnumValueOptions other) : this() { + _hasBits0 = other._hasBits0; + deprecated_ = other.deprecated_; + uninterpretedOption_ = other.uninterpretedOption_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EnumValueOptions Clone() { + return new EnumValueOptions(this); + } + + /// Field number for the "deprecated" field. + public const int DeprecatedFieldNumber = 1; + private readonly static bool DeprecatedDefaultValue = false; + + private bool deprecated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Deprecated { + get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } } + set { + _hasBits0 |= 1; + deprecated_ = value; + } + } + /// Gets whether the "deprecated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeprecated { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "deprecated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeprecated() { + _hasBits0 &= ~1; + } + + /// Field number for the "uninterpreted_option" field. + public const int UninterpretedOptionFieldNumber = 999; + private static readonly pb::FieldCodec _repeated_uninterpretedOption_codec + = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.UninterpretedOption.Parser); + private readonly pbc::RepeatedField uninterpretedOption_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField UninterpretedOption { + get { return uninterpretedOption_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as EnumValueOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EnumValueOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Deprecated != other.Deprecated) return false; + if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasDeprecated) hash ^= Deprecated.GetHashCode(); + hash ^= uninterpretedOption_.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasDeprecated) { + output.WriteRawTag(8); + output.WriteBool(Deprecated); + } + uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasDeprecated) { + size += 1 + 1; + } + size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EnumValueOptions other) { + if (other == null) { + return; + } + if (other.HasDeprecated) { + Deprecated = other.Deprecated; + } + uninterpretedOption_.Add(other.uninterpretedOption_); + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } + break; + case 8: { + Deprecated = input.ReadBool(); + break; + } + case 7994: { + uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); + break; + } + } + } + } + + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + + } + + public sealed partial class ServiceOptions : pb::IExtendableMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceOptions()); + private pb::UnknownFieldSet _unknownFields; + internal pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServiceOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServiceOptions(ServiceOptions other) : this() { + _hasBits0 = other._hasBits0; + deprecated_ = other.deprecated_; + uninterpretedOption_ = other.uninterpretedOption_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ServiceOptions Clone() { + return new ServiceOptions(this); + } + + /// Field number for the "deprecated" field. + public const int DeprecatedFieldNumber = 33; + private readonly static bool DeprecatedDefaultValue = false; + + private bool deprecated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Deprecated { + get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } } + set { + _hasBits0 |= 1; + deprecated_ = value; + } + } + /// Gets whether the "deprecated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeprecated { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "deprecated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeprecated() { + _hasBits0 &= ~1; + } + + /// Field number for the "uninterpreted_option" field. + public const int UninterpretedOptionFieldNumber = 999; + private static readonly pb::FieldCodec _repeated_uninterpretedOption_codec + = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.UninterpretedOption.Parser); + private readonly pbc::RepeatedField uninterpretedOption_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField UninterpretedOption { + get { return uninterpretedOption_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ServiceOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ServiceOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Deprecated != other.Deprecated) return false; + if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasDeprecated) hash ^= Deprecated.GetHashCode(); + hash ^= uninterpretedOption_.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasDeprecated) { + output.WriteRawTag(136, 2); + output.WriteBool(Deprecated); + } + uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasDeprecated) { + size += 2 + 1; + } + size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ServiceOptions other) { + if (other == null) { + return; + } + if (other.HasDeprecated) { + Deprecated = other.Deprecated; + } + uninterpretedOption_.Add(other.uninterpretedOption_); + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } + break; + case 264: { + Deprecated = input.ReadBool(); + break; + } + case 7994: { + uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); + break; + } + } + } + } + + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + + } + + public sealed partial class MethodOptions : pb::IExtendableMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MethodOptions()); + private pb::UnknownFieldSet _unknownFields; + internal pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodOptions(MethodOptions other) : this() { + _hasBits0 = other._hasBits0; + deprecated_ = other.deprecated_; + uninterpretedOption_ = other.uninterpretedOption_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MethodOptions Clone() { + return new MethodOptions(this); + } + + /// Field number for the "deprecated" field. + public const int DeprecatedFieldNumber = 33; + private readonly static bool DeprecatedDefaultValue = false; + + private bool deprecated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Deprecated { + get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } } + set { + _hasBits0 |= 1; + deprecated_ = value; + } + } + /// Gets whether the "deprecated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeprecated { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "deprecated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeprecated() { + _hasBits0 &= ~1; + } + + /// Field number for the "uninterpreted_option" field. + public const int UninterpretedOptionFieldNumber = 999; + private static readonly pb::FieldCodec _repeated_uninterpretedOption_codec + = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.UninterpretedOption.Parser); + private readonly pbc::RepeatedField uninterpretedOption_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField UninterpretedOption { + get { return uninterpretedOption_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MethodOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MethodOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Deprecated != other.Deprecated) return false; + if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasDeprecated) hash ^= Deprecated.GetHashCode(); + hash ^= uninterpretedOption_.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasDeprecated) { + output.WriteRawTag(136, 2); + output.WriteBool(Deprecated); + } + uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasDeprecated) { + size += 2 + 1; + } + size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MethodOptions other) { + if (other == null) { + return; + } + if (other.HasDeprecated) { + Deprecated = other.Deprecated; + } + uninterpretedOption_.Add(other.uninterpretedOption_); + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } + break; + case 264: { + Deprecated = input.ReadBool(); + break; + } + case 7994: { + uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); + break; + } + } + } + } + + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); + } + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); + } + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); + } + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); + } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); + } + + } + + public sealed partial class UninterpretedOption : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UninterpretedOption()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UninterpretedOption() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UninterpretedOption(UninterpretedOption other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_.Clone(); + identifierValue_ = other.identifierValue_; + positiveIntValue_ = other.positiveIntValue_; + negativeIntValue_ = other.negativeIntValue_; + doubleValue_ = other.doubleValue_; + stringValue_ = other.stringValue_; + aggregateValue_ = other.aggregateValue_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UninterpretedOption Clone() { + return new UninterpretedOption(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_name_codec + = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.UninterpretedOption.Types.NamePart.Parser); + private readonly pbc::RepeatedField name_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Name { + get { return name_; } + } + + /// Field number for the "identifier_value" field. + public const int IdentifierValueFieldNumber = 3; + private readonly static string IdentifierValueDefaultValue = ""; + + private string identifierValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string IdentifierValue { + get { return identifierValue_ ?? IdentifierValueDefaultValue; } + set { + identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "identifier_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIdentifierValue { + get { return identifierValue_ != null; } + } + /// Clears the value of the "identifier_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIdentifierValue() { + identifierValue_ = null; + } + + /// Field number for the "positive_int_value" field. + public const int PositiveIntValueFieldNumber = 4; + private readonly static ulong PositiveIntValueDefaultValue = 0UL; + + private ulong positiveIntValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong PositiveIntValue { + get { if ((_hasBits0 & 1) != 0) { return positiveIntValue_; } else { return PositiveIntValueDefaultValue; } } + set { + _hasBits0 |= 1; + positiveIntValue_ = value; + } + } + /// Gets whether the "positive_int_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPositiveIntValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "positive_int_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPositiveIntValue() { + _hasBits0 &= ~1; + } + + /// Field number for the "negative_int_value" field. + public const int NegativeIntValueFieldNumber = 5; + private readonly static long NegativeIntValueDefaultValue = 0L; + + private long negativeIntValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long NegativeIntValue { + get { if ((_hasBits0 & 2) != 0) { return negativeIntValue_; } else { return NegativeIntValueDefaultValue; } } + set { + _hasBits0 |= 2; + negativeIntValue_ = value; + } + } + /// Gets whether the "negative_int_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNegativeIntValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "negative_int_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNegativeIntValue() { + _hasBits0 &= ~2; + } + + /// Field number for the "double_value" field. + public const int DoubleValueFieldNumber = 6; + private readonly static double DoubleValueDefaultValue = 0D; + + private double doubleValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double DoubleValue { + get { if ((_hasBits0 & 4) != 0) { return doubleValue_; } else { return DoubleValueDefaultValue; } } + set { + _hasBits0 |= 4; + doubleValue_ = value; + } + } + /// Gets whether the "double_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDoubleValue { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "double_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDoubleValue() { + _hasBits0 &= ~4; + } + + /// Field number for the "string_value" field. + public const int StringValueFieldNumber = 7; + private readonly static pb::ByteString StringValueDefaultValue = pb::ByteString.Empty; + + private pb::ByteString stringValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString StringValue { + get { return stringValue_ ?? StringValueDefaultValue; } + set { + stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "string_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStringValue { + get { return stringValue_ != null; } + } + /// Clears the value of the "string_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStringValue() { + stringValue_ = null; + } + + /// Field number for the "aggregate_value" field. + public const int AggregateValueFieldNumber = 8; + private readonly static string AggregateValueDefaultValue = ""; + + private string aggregateValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string AggregateValue { + get { return aggregateValue_ ?? AggregateValueDefaultValue; } + set { + aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "aggregate_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAggregateValue { + get { return aggregateValue_ != null; } + } + /// Clears the value of the "aggregate_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAggregateValue() { + aggregateValue_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UninterpretedOption); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UninterpretedOption other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!name_.Equals(other.name_)) return false; + if (IdentifierValue != other.IdentifierValue) return false; + if (PositiveIntValue != other.PositiveIntValue) return false; + if (NegativeIntValue != other.NegativeIntValue) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false; + if (StringValue != other.StringValue) return false; + if (AggregateValue != other.AggregateValue) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= name_.GetHashCode(); + if (HasIdentifierValue) hash ^= IdentifierValue.GetHashCode(); + if (HasPositiveIntValue) hash ^= PositiveIntValue.GetHashCode(); + if (HasNegativeIntValue) hash ^= NegativeIntValue.GetHashCode(); + if (HasDoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue); + if (HasStringValue) hash ^= StringValue.GetHashCode(); + if (HasAggregateValue) hash ^= AggregateValue.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + name_.WriteTo(output, _repeated_name_codec); + if (HasIdentifierValue) { + output.WriteRawTag(26); + output.WriteString(IdentifierValue); + } + if (HasPositiveIntValue) { + output.WriteRawTag(32); + output.WriteUInt64(PositiveIntValue); + } + if (HasNegativeIntValue) { + output.WriteRawTag(40); + output.WriteInt64(NegativeIntValue); + } + if (HasDoubleValue) { + output.WriteRawTag(49); + output.WriteDouble(DoubleValue); + } + if (HasStringValue) { + output.WriteRawTag(58); + output.WriteBytes(StringValue); + } + if (HasAggregateValue) { + output.WriteRawTag(66); + output.WriteString(AggregateValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += name_.CalculateSize(_repeated_name_codec); + if (HasIdentifierValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue); + } + if (HasPositiveIntValue) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue); + } + if (HasNegativeIntValue) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue); + } + if (HasDoubleValue) { + size += 1 + 8; + } + if (HasStringValue) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue); + } + if (HasAggregateValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UninterpretedOption other) { + if (other == null) { + return; + } + name_.Add(other.name_); + if (other.HasIdentifierValue) { + IdentifierValue = other.IdentifierValue; + } + if (other.HasPositiveIntValue) { + PositiveIntValue = other.PositiveIntValue; + } + if (other.HasNegativeIntValue) { + NegativeIntValue = other.NegativeIntValue; + } + if (other.HasDoubleValue) { + DoubleValue = other.DoubleValue; + } + if (other.HasStringValue) { + StringValue = other.StringValue; + } + if (other.HasAggregateValue) { + AggregateValue = other.AggregateValue; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + name_.AddEntriesFrom(input, _repeated_name_codec); + break; + } + case 26: { + IdentifierValue = input.ReadString(); + break; + } + case 32: { + PositiveIntValue = input.ReadUInt64(); + break; + } + case 40: { + NegativeIntValue = input.ReadInt64(); + break; + } + case 49: { + DoubleValue = input.ReadDouble(); + break; + } + case 58: { + StringValue = input.ReadBytes(); + break; + } + case 66: { + AggregateValue = input.ReadString(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the UninterpretedOption message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public sealed partial class NamePart : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NamePart()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.UninterpretedOption.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NamePart() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NamePart(NamePart other) : this() { + _hasBits0 = other._hasBits0; + namePart_ = other.namePart_; + isExtension_ = other.isExtension_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NamePart Clone() { + return new NamePart(this); + } + + /// Field number for the "name_part" field. + public const int NamePart_FieldNumber = 1; + private readonly static string NamePart_DefaultValue = ""; + + private string namePart_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string NamePart_ { + get { return namePart_ ?? NamePart_DefaultValue; } + set { + namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name_part" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNamePart_ { + get { return namePart_ != null; } + } + /// Clears the value of the "name_part" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNamePart_() { + namePart_ = null; + } + + /// Field number for the "is_extension" field. + public const int IsExtensionFieldNumber = 2; + private readonly static bool IsExtensionDefaultValue = false; + + private bool isExtension_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsExtension { + get { if ((_hasBits0 & 1) != 0) { return isExtension_; } else { return IsExtensionDefaultValue; } } + set { + _hasBits0 |= 1; + isExtension_ = value; + } + } + /// Gets whether the "is_extension" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsExtension { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_extension" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsExtension() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as NamePart); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(NamePart other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NamePart_ != other.NamePart_) return false; + if (IsExtension != other.IsExtension) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasNamePart_) hash ^= NamePart_.GetHashCode(); + if (HasIsExtension) hash ^= IsExtension.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasNamePart_) { + output.WriteRawTag(10); + output.WriteString(NamePart_); + } + if (HasIsExtension) { + output.WriteRawTag(16); + output.WriteBool(IsExtension); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasNamePart_) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_); + } + if (HasIsExtension) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(NamePart other) { + if (other == null) { + return; + } + if (other.HasNamePart_) { + NamePart_ = other.NamePart_; + } + if (other.HasIsExtension) { + IsExtension = other.IsExtension; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + NamePart_ = input.ReadString(); + break; + } + case 16: { + IsExtension = input.ReadBool(); + break; + } + } + } + } + + } + + } + #endregion + + } + + public sealed partial class SourceCodeInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SourceCodeInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.DescriptorReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SourceCodeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SourceCodeInfo(SourceCodeInfo other) : this() { + location_ = other.location_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SourceCodeInfo Clone() { + return new SourceCodeInfo(this); + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_location_codec + = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.SourceCodeInfo.Types.Location.Parser); + private readonly pbc::RepeatedField location_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Location { + get { return location_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SourceCodeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SourceCodeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!location_.Equals(other.location_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= location_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + location_.WriteTo(output, _repeated_location_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += location_.CalculateSize(_repeated_location_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SourceCodeInfo other) { + if (other == null) { + return; + } + location_.Add(other.location_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + location_.AddEntriesFrom(input, _repeated_location_codec); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the SourceCodeInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public sealed partial class Location : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Location()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Protobuf.SourceCodeInfo.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Location() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Location(Location other) : this() { + path_ = other.path_.Clone(); + span_ = other.span_.Clone(); + leadingComments_ = other.leadingComments_; + trailingComments_ = other.trailingComments_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Location Clone() { + return new Location(this); + } + + /// Field number for the "path" field. + public const int PathFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_path_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField path_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Path { + get { return path_; } + } + + /// Field number for the "span" field. + public const int SpanFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_span_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField span_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Span { + get { return span_; } + } + + /// Field number for the "leading_comments" field. + public const int LeadingCommentsFieldNumber = 3; + private readonly static string LeadingCommentsDefaultValue = ""; + + private string leadingComments_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string LeadingComments { + get { return leadingComments_ ?? LeadingCommentsDefaultValue; } + set { + leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "leading_comments" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLeadingComments { + get { return leadingComments_ != null; } + } + /// Clears the value of the "leading_comments" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLeadingComments() { + leadingComments_ = null; + } + + /// Field number for the "trailing_comments" field. + public const int TrailingCommentsFieldNumber = 4; + private readonly static string TrailingCommentsDefaultValue = ""; + + private string trailingComments_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TrailingComments { + get { return trailingComments_ ?? TrailingCommentsDefaultValue; } + set { + trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "trailing_comments" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTrailingComments { + get { return trailingComments_ != null; } + } + /// Clears the value of the "trailing_comments" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTrailingComments() { + trailingComments_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Location); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Location other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!path_.Equals(other.path_)) return false; + if(!span_.Equals(other.span_)) return false; + if (LeadingComments != other.LeadingComments) return false; + if (TrailingComments != other.TrailingComments) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= path_.GetHashCode(); + hash ^= span_.GetHashCode(); + if (HasLeadingComments) hash ^= LeadingComments.GetHashCode(); + if (HasTrailingComments) hash ^= TrailingComments.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + path_.WriteTo(output, _repeated_path_codec); + span_.WriteTo(output, _repeated_span_codec); + if (HasLeadingComments) { + output.WriteRawTag(26); + output.WriteString(LeadingComments); + } + if (HasTrailingComments) { + output.WriteRawTag(34); + output.WriteString(TrailingComments); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += path_.CalculateSize(_repeated_path_codec); + size += span_.CalculateSize(_repeated_span_codec); + if (HasLeadingComments) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments); + } + if (HasTrailingComments) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Location other) { + if (other == null) { + return; + } + path_.Add(other.path_); + span_.Add(other.span_); + if (other.HasLeadingComments) { + LeadingComments = other.LeadingComments; + } + if (other.HasTrailingComments) { + TrailingComments = other.TrailingComments; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + path_.AddEntriesFrom(input, _repeated_path_codec); + break; + } + case 18: + case 16: { + span_.AddEntriesFrom(input, _repeated_span_codec); + break; + } + case 26: { + LeadingComments = input.ReadString(); + break; + } + case 34: { + TrailingComments = input.ReadString(); + break; + } + } + } + } + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/InvitationTypes.cs b/Source/Framework/Proto/InvitationTypes.cs index 5949ecd13..34c4db23b 100644 --- a/Source/Framework/Proto/InvitationTypes.cs +++ b/Source/Framework/Proto/InvitationTypes.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/invitation_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/invitation_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/invitation_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/invitation_types.proto public static partial class InvitationTypesReflection { #region Descriptor @@ -21,178 +22,294 @@ namespace Bgs.Protocol private static pbr::FileDescriptor descriptor; static InvitationTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CihiZ3MvbG93L3BiL2NsaWVudC9pbnZpdGF0aW9uX3R5cGVzLnByb3RvEgxi", "Z3MucHJvdG9jb2waJGJncy9sb3cvcGIvY2xpZW50L2VudGl0eV90eXBlcy5w", - "cm90byL0AQoKSW52aXRhdGlvbhIKCgJpZBgBIAEoBhIwChBpbnZpdGVyX2lk", - "ZW50aXR5GAIgASgLMhYuYmdzLnByb3RvY29sLklkZW50aXR5EjAKEGludml0", - "ZWVfaWRlbnRpdHkYAyABKAsyFi5iZ3MucHJvdG9jb2wuSWRlbnRpdHkSFAoM", + "cm90byL7AQoKSW52aXRhdGlvbhIKCgJpZBgBIAIoBhIwChBpbnZpdGVyX2lk", + "ZW50aXR5GAIgAigLMhYuYmdzLnByb3RvY29sLklkZW50aXR5EjAKEGludml0", + "ZWVfaWRlbnRpdHkYAyACKAsyFi5iZ3MucHJvdG9jb2wuSWRlbnRpdHkSFAoM", "aW52aXRlcl9uYW1lGAQgASgJEhQKDGludml0ZWVfbmFtZRgFIAEoCRIaChJp", "bnZpdGF0aW9uX21lc3NhZ2UYBiABKAkSFQoNY3JlYXRpb25fdGltZRgHIAEo", - "BBIXCg9leHBpcmF0aW9uX3RpbWUYCCABKAQihAIKFEludml0YXRpb25TdWdn", - "ZXN0aW9uEioKCmNoYW5uZWxfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50", - "aXR5SWQSLAoMc3VnZ2VzdGVyX2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVu", - "dGl0eUlkEiwKDHN1Z2dlc3RlZV9pZBgDIAEoCzIWLmJncy5wcm90b2NvbC5F", - "bnRpdHlJZBIWCg5zdWdnZXN0ZXJfbmFtZRgEIAEoCRIWCg5zdWdnZXN0ZWVf", - "bmFtZRgFIAEoCRI0ChRzdWdnZXN0ZXJfYWNjb3VudF9pZBgGIAEoCzIWLmJn", - "cy5wcm90b2NvbC5FbnRpdHlJZCJfChBJbnZpdGF0aW9uVGFyZ2V0EigKCGlk", - "ZW50aXR5GAEgASgLMhYuYmdzLnByb3RvY29sLklkZW50aXR5Eg0KBWVtYWls", - "GAIgASgJEhIKCmJhdHRsZV90YWcYAyABKAkiRwoQSW52aXRhdGlvblBhcmFt", - "cxIaChJpbnZpdGF0aW9uX21lc3NhZ2UYASABKAkSFwoPZXhwaXJhdGlvbl90", - "aW1lGAIgASgEIoUCChVTZW5kSW52aXRhdGlvblJlcXVlc3QSLgoOYWdlbnRf", - "aWRlbnRpdHkYASABKAsyFi5iZ3MucHJvdG9jb2wuSWRlbnRpdHkSLQoJdGFy", - "Z2V0X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkQgIYARIuCgZw", - "YXJhbXMYAyABKAsyHi5iZ3MucHJvdG9jb2wuSW52aXRhdGlvblBhcmFtcxIt", - "CgphZ2VudF9pbmZvGAQgASgLMhkuYmdzLnByb3RvY29sLkFjY291bnRJbmZv", - "Ei4KBnRhcmdldBgFIAEoCzIeLmJncy5wcm90b2NvbC5JbnZpdGF0aW9uVGFy", - "Z2V0IkYKFlNlbmRJbnZpdGF0aW9uUmVzcG9uc2USLAoKaW52aXRhdGlvbhgC", - "IAEoCzIYLmJncy5wcm90b2NvbC5JbnZpdGF0aW9uIpABChdVcGRhdGVJbnZp", - "dGF0aW9uUmVxdWVzdBIuCg5hZ2VudF9pZGVudGl0eRgBIAEoCzIWLmJncy5w", - "cm90b2NvbC5JZGVudGl0eRIVCg1pbnZpdGF0aW9uX2lkGAIgASgGEi4KBnBh", - "cmFtcxgDIAEoCzIeLmJncy5wcm90b2NvbC5JbnZpdGF0aW9uUGFyYW1zIvcB", - "ChhHZW5lcmljSW52aXRhdGlvblJlcXVlc3QSKAoIYWdlbnRfaWQYASABKAsy", - "Fi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSKQoJdGFyZ2V0X2lkGAIgASgLMhYu", - "YmdzLnByb3RvY29sLkVudGl0eUlkEhUKDWludml0YXRpb25faWQYAyABKAYS", - "FAoMaW52aXRlZV9uYW1lGAQgASgJEhQKDGludml0ZXJfbmFtZRgFIAEoCRIZ", - "Cg1wcmV2aW91c19yb2xlGAYgAygNQgIQARIYCgxkZXNpcmVkX3JvbGUYByAD", - "KA1CAhABEg4KBnJlYXNvbhgIIAEoDUInCg1ibmV0LnByb3RvY29sQhRJbnZp", - "dGF0aW9uVHlwZXNQcm90b0gCYgZwcm90bzM=")); + "BBIXCg9leHBpcmF0aW9uX3RpbWUYCCABKAQqBQhkEJFOIlIKEEludml0YXRp", + "b25QYXJhbXMSHgoSaW52aXRhdGlvbl9tZXNzYWdlGAEgASgJQgIYARIXCg9l", + "eHBpcmF0aW9uX3RpbWUYAiABKAQqBQhkEJFOKoYCChdJbnZpdGF0aW9uUmVt", + "b3ZlZFJlYXNvbhImCiJJTlZJVEFUSU9OX1JFTU9WRURfUkVBU09OX0FDQ0VQ", + "VEVEEAASJgoiSU5WSVRBVElPTl9SRU1PVkVEX1JFQVNPTl9ERUNMSU5FRBAB", + "EiUKIUlOVklUQVRJT05fUkVNT1ZFRF9SRUFTT05fUkVWT0tFRBACEiUKIUlO", + "VklUQVRJT05fUkVNT1ZFRF9SRUFTT05fSUdOT1JFRBADEiUKIUlOVklUQVRJ", + "T05fUkVNT1ZFRF9SRUFTT05fRVhQSVJFRBAEEiYKIklOVklUQVRJT05fUkVN", + "T1ZFRF9SRUFTT05fQ0FOQ0VMRUQQBSq4AQoXU3VnZ2VzdGlvblJlbW92ZWRS", + "ZWFzb24SJgoiU1VHR0VTVElPTl9SRU1PVkVEX1JFQVNPTl9BUFBST1ZFRBAA", + "EiYKIlNVR0dFU1RJT05fUkVNT1ZFRF9SRUFTT05fREVDTElORUQQARIlCiFT", + "VUdHRVNUSU9OX1JFTU9WRURfUkVBU09OX0VYUElSRUQQAhImCiJTVUdHRVNU", + "SU9OX1JFTU9WRURfUkVBU09OX0NBTkNFTEVEEANCJQoNYm5ldC5wcm90b2Nv", + "bEIUSW52aXRhdGlvblR5cGVzUHJvdG8=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.EntityTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Invitation), Bgs.Protocol.Invitation.Parser, new[]{ "Id", "InviterIdentity", "InviteeIdentity", "InviterName", "InviteeName", "InvitationMessage", "CreationTime", "ExpirationTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.InvitationSuggestion), Bgs.Protocol.InvitationSuggestion.Parser, new[]{ "ChannelId", "SuggesterId", "SuggesteeId", "SuggesterName", "SuggesteeName", "SuggesterAccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.InvitationTarget), Bgs.Protocol.InvitationTarget.Parser, new[]{ "Identity", "Email", "BattleTag" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.InvitationParams), Bgs.Protocol.InvitationParams.Parser, new[]{ "InvitationMessage", "ExpirationTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.SendInvitationRequest), Bgs.Protocol.SendInvitationRequest.Parser, new[]{ "AgentIdentity", "TargetId", "Params", "AgentInfo", "Target" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.SendInvitationResponse), Bgs.Protocol.SendInvitationResponse.Parser, new[]{ "Invitation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UpdateInvitationRequest), Bgs.Protocol.UpdateInvitationRequest.Parser, new[]{ "AgentIdentity", "InvitationId", "Params" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GenericInvitationRequest), Bgs.Protocol.GenericInvitationRequest.Parser, new[]{ "AgentId", "TargetId", "InvitationId", "InviteeName", "InviterName", "PreviousRole", "DesiredRole", "Reason" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.EntityTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.InvitationRemovedReason), typeof(global::Bgs.Protocol.SuggestionRemovedReason), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Invitation), global::Bgs.Protocol.Invitation.Parser, new[]{ "Id", "InviterIdentity", "InviteeIdentity", "InviterName", "InviteeName", "InvitationMessage", "CreationTime", "ExpirationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.InvitationParams), global::Bgs.Protocol.InvitationParams.Parser, new[]{ "InvitationMessage", "ExpirationTime" }, null, null, null, null) })); } #endregion } + #region Enums + public enum InvitationRemovedReason { + [pbr::OriginalName("INVITATION_REMOVED_REASON_ACCEPTED")] Accepted = 0, + [pbr::OriginalName("INVITATION_REMOVED_REASON_DECLINED")] Declined = 1, + [pbr::OriginalName("INVITATION_REMOVED_REASON_REVOKED")] Revoked = 2, + [pbr::OriginalName("INVITATION_REMOVED_REASON_IGNORED")] Ignored = 3, + [pbr::OriginalName("INVITATION_REMOVED_REASON_EXPIRED")] Expired = 4, + [pbr::OriginalName("INVITATION_REMOVED_REASON_CANCELED")] Canceled = 5, + } + + public enum SuggestionRemovedReason { + [pbr::OriginalName("SUGGESTION_REMOVED_REASON_APPROVED")] Approved = 0, + [pbr::OriginalName("SUGGESTION_REMOVED_REASON_DECLINED")] Declined = 1, + [pbr::OriginalName("SUGGESTION_REMOVED_REASON_EXPIRED")] Expired = 2, + [pbr::OriginalName("SUGGESTION_REMOVED_REASON_CANCELED")] Canceled = 3, + } + + #endregion + #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Invitation : pb::IMessage { + public sealed partial class Invitation : pb::IExtendableMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invitation()); + private pb::UnknownFieldSet _unknownFields; + private pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Invitation() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Invitation(Invitation other) : this() { + _hasBits0 = other._hasBits0; id_ = other.id_; - InviterIdentity = other.inviterIdentity_ != null ? other.InviterIdentity.Clone() : null; - InviteeIdentity = other.inviteeIdentity_ != null ? other.InviteeIdentity.Clone() : null; + inviterIdentity_ = other.HasInviterIdentity ? other.inviterIdentity_.Clone() : null; + inviteeIdentity_ = other.HasInviteeIdentity ? other.inviteeIdentity_.Clone() : null; inviterName_ = other.inviterName_; inviteeName_ = other.inviteeName_; invitationMessage_ = other.invitationMessage_; creationTime_ = other.creationTime_; expirationTime_ = other.expirationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Invitation Clone() { return new Invitation(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; + private readonly static ulong IdDefaultValue = 0UL; + private ulong id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong Id { - get { return id_; } + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } set { + _hasBits0 |= 1; id_ = value; } } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } /// Field number for the "inviter_identity" field. public const int InviterIdentityFieldNumber = 2; - private Bgs.Protocol.Identity inviterIdentity_; - public Bgs.Protocol.Identity InviterIdentity { + private global::Bgs.Protocol.Identity inviterIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Identity InviterIdentity { get { return inviterIdentity_; } set { inviterIdentity_ = value; } } + /// Gets whether the inviter_identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviterIdentity { + get { return inviterIdentity_ != null; } + } + /// Clears the value of the inviter_identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviterIdentity() { + inviterIdentity_ = null; + } /// Field number for the "invitee_identity" field. public const int InviteeIdentityFieldNumber = 3; - private Bgs.Protocol.Identity inviteeIdentity_; - public Bgs.Protocol.Identity InviteeIdentity { + private global::Bgs.Protocol.Identity inviteeIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Identity InviteeIdentity { get { return inviteeIdentity_; } set { inviteeIdentity_ = value; } } + /// Gets whether the invitee_identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviteeIdentity { + get { return inviteeIdentity_ != null; } + } + /// Clears the value of the invitee_identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviteeIdentity() { + inviteeIdentity_ = null; + } /// Field number for the "inviter_name" field. public const int InviterNameFieldNumber = 4; - private string inviterName_ = ""; + private readonly static string InviterNameDefaultValue = ""; + + private string inviterName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string InviterName { - get { return inviterName_; } + get { return inviterName_ ?? InviterNameDefaultValue; } set { inviterName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "inviter_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviterName { + get { return inviterName_ != null; } + } + /// Clears the value of the "inviter_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviterName() { + inviterName_ = null; + } /// Field number for the "invitee_name" field. public const int InviteeNameFieldNumber = 5; - private string inviteeName_ = ""; + private readonly static string InviteeNameDefaultValue = ""; + + private string inviteeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string InviteeName { - get { return inviteeName_; } + get { return inviteeName_ ?? InviteeNameDefaultValue; } set { inviteeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "invitee_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInviteeName { + get { return inviteeName_ != null; } + } + /// Clears the value of the "invitee_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInviteeName() { + inviteeName_ = null; + } /// Field number for the "invitation_message" field. public const int InvitationMessageFieldNumber = 6; - private string invitationMessage_ = ""; + private readonly static string InvitationMessageDefaultValue = ""; + + private string invitationMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string InvitationMessage { - get { return invitationMessage_; } + get { return invitationMessage_ ?? InvitationMessageDefaultValue; } set { invitationMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "invitation_message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationMessage { + get { return invitationMessage_ != null; } + } + /// Clears the value of the "invitation_message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationMessage() { + invitationMessage_ = null; + } /// Field number for the "creation_time" field. public const int CreationTimeFieldNumber = 7; + private readonly static ulong CreationTimeDefaultValue = 0UL; + private ulong creationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong CreationTime { - get { return creationTime_; } + get { if ((_hasBits0 & 2) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } set { + _hasBits0 |= 2; creationTime_ = value; } } + /// Gets whether the "creation_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCreationTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "creation_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCreationTime() { + _hasBits0 &= ~2; + } /// Field number for the "expiration_time" field. public const int ExpirationTimeFieldNumber = 8; + private readonly static ulong ExpirationTimeDefaultValue = 0UL; + private ulong expirationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ExpirationTime { - get { return expirationTime_; } + get { if ((_hasBits0 & 4) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } set { + _hasBits0 |= 4; expirationTime_ = value; } } + /// Gets whether the "expiration_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpirationTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "expiration_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpirationTime() { + _hasBits0 &= ~4; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Invitation); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Invitation other) { if (ReferenceEquals(other, null)) { return false; @@ -208,149 +325,180 @@ namespace Bgs.Protocol if (InvitationMessage != other.InvitationMessage) return false; if (CreationTime != other.CreationTime) return false; if (ExpirationTime != other.ExpirationTime) return false; - return true; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (Id != 0UL) hash ^= Id.GetHashCode(); - if (inviterIdentity_ != null) hash ^= InviterIdentity.GetHashCode(); - if (inviteeIdentity_ != null) hash ^= InviteeIdentity.GetHashCode(); - if (InviterName.Length != 0) hash ^= InviterName.GetHashCode(); - if (InviteeName.Length != 0) hash ^= InviteeName.GetHashCode(); - if (InvitationMessage.Length != 0) hash ^= InvitationMessage.GetHashCode(); - if (CreationTime != 0UL) hash ^= CreationTime.GetHashCode(); - if (ExpirationTime != 0UL) hash ^= ExpirationTime.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (HasInviterIdentity) hash ^= InviterIdentity.GetHashCode(); + if (HasInviteeIdentity) hash ^= InviteeIdentity.GetHashCode(); + if (HasInviterName) hash ^= InviterName.GetHashCode(); + if (HasInviteeName) hash ^= InviteeName.GetHashCode(); + if (HasInvitationMessage) hash ^= InvitationMessage.GetHashCode(); + if (HasCreationTime) hash ^= CreationTime.GetHashCode(); + if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (Id != 0UL) { + if (HasId) { output.WriteRawTag(9); output.WriteFixed64(Id); } - if (inviterIdentity_ != null) { + if (HasInviterIdentity) { output.WriteRawTag(18); output.WriteMessage(InviterIdentity); } - if (inviteeIdentity_ != null) { + if (HasInviteeIdentity) { output.WriteRawTag(26); output.WriteMessage(InviteeIdentity); } - if (InviterName.Length != 0) { + if (HasInviterName) { output.WriteRawTag(34); output.WriteString(InviterName); } - if (InviteeName.Length != 0) { + if (HasInviteeName) { output.WriteRawTag(42); output.WriteString(InviteeName); } - if (InvitationMessage.Length != 0) { + if (HasInvitationMessage) { output.WriteRawTag(50); output.WriteString(InvitationMessage); } - if (CreationTime != 0UL) { + if (HasCreationTime) { output.WriteRawTag(56); output.WriteUInt64(CreationTime); } - if (ExpirationTime != 0UL) { + if (HasExpirationTime) { output.WriteRawTag(64); output.WriteUInt64(ExpirationTime); } + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (Id != 0UL) { + if (HasId) { size += 1 + 8; } - if (inviterIdentity_ != null) { + if (HasInviterIdentity) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(InviterIdentity); } - if (inviteeIdentity_ != null) { + if (HasInviteeIdentity) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(InviteeIdentity); } - if (InviterName.Length != 0) { + if (HasInviterName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterName); } - if (InviteeName.Length != 0) { + if (HasInviteeName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(InviteeName); } - if (InvitationMessage.Length != 0) { + if (HasInvitationMessage) { size += 1 + pb::CodedOutputStream.ComputeStringSize(InvitationMessage); } - if (CreationTime != 0UL) { + if (HasCreationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); } - if (ExpirationTime != 0UL) { + if (HasExpirationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); } + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Invitation other) { if (other == null) { return; } - if (other.Id != 0UL) { + if (other.HasId) { Id = other.Id; } - if (other.inviterIdentity_ != null) { - if (inviterIdentity_ == null) { - inviterIdentity_ = new Bgs.Protocol.Identity(); + if (other.HasInviterIdentity) { + if (!HasInviterIdentity) { + InviterIdentity = new global::Bgs.Protocol.Identity(); } InviterIdentity.MergeFrom(other.InviterIdentity); } - if (other.inviteeIdentity_ != null) { - if (inviteeIdentity_ == null) { - inviteeIdentity_ = new Bgs.Protocol.Identity(); + if (other.HasInviteeIdentity) { + if (!HasInviteeIdentity) { + InviteeIdentity = new global::Bgs.Protocol.Identity(); } InviteeIdentity.MergeFrom(other.InviteeIdentity); } - if (other.InviterName.Length != 0) { + if (other.HasInviterName) { InviterName = other.InviterName; } - if (other.InviteeName.Length != 0) { + if (other.HasInviteeName) { InviteeName = other.InviteeName; } - if (other.InvitationMessage.Length != 0) { + if (other.HasInvitationMessage) { InvitationMessage = other.InvitationMessage; } - if (other.CreationTime != 0UL) { + if (other.HasCreationTime) { CreationTime = other.CreationTime; } - if (other.ExpirationTime != 0UL) { + if (other.HasExpirationTime) { ExpirationTime = other.ExpirationTime; } + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } break; case 9: { Id = input.ReadFixed64(); break; } case 18: { - if (inviterIdentity_ == null) { - inviterIdentity_ = new Bgs.Protocol.Identity(); + if (!HasInviterIdentity) { + InviterIdentity = new global::Bgs.Protocol.Identity(); } - input.ReadMessage(inviterIdentity_); + input.ReadMessage(InviterIdentity); break; } case 26: { - if (inviteeIdentity_ == null) { - inviteeIdentity_ = new Bgs.Protocol.Identity(); + if (!HasInviteeIdentity) { + InviteeIdentity = new global::Bgs.Protocol.Identity(); } - input.ReadMessage(inviteeIdentity_); + input.ReadMessage(InviteeIdentity); break; } case 34: { @@ -377,485 +525,126 @@ namespace Bgs.Protocol } } - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class InvitationSuggestion : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvitationSuggestion()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[1]; } + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); } - - public InvitationSuggestion() { - OnConstruction(); + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); } - - partial void OnConstruction(); - - public InvitationSuggestion(InvitationSuggestion other) : this() { - ChannelId = other.channelId_ != null ? other.ChannelId.Clone() : null; - SuggesterId = other.suggesterId_ != null ? other.SuggesterId.Clone() : null; - SuggesteeId = other.suggesteeId_ != null ? other.SuggesteeId.Clone() : null; - suggesterName_ = other.suggesterName_; - suggesteeName_ = other.suggesteeName_; - SuggesterAccountId = other.suggesterAccountId_ != null ? other.SuggesterAccountId.Clone() : null; + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); } - - public InvitationSuggestion Clone() { - return new InvitationSuggestion(this); + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 1; - private Bgs.Protocol.EntityId channelId_; - public Bgs.Protocol.EntityId ChannelId { - get { return channelId_; } - set { - channelId_ = value; - } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); } - - /// Field number for the "suggester_id" field. - public const int SuggesterIdFieldNumber = 2; - private Bgs.Protocol.EntityId suggesterId_; - public Bgs.Protocol.EntityId SuggesterId { - get { return suggesterId_; } - set { - suggesterId_ = value; - } - } - - /// Field number for the "suggestee_id" field. - public const int SuggesteeIdFieldNumber = 3; - private Bgs.Protocol.EntityId suggesteeId_; - public Bgs.Protocol.EntityId SuggesteeId { - get { return suggesteeId_; } - set { - suggesteeId_ = value; - } - } - - /// Field number for the "suggester_name" field. - public const int SuggesterNameFieldNumber = 4; - private string suggesterName_ = ""; - public string SuggesterName { - get { return suggesterName_; } - set { - suggesterName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "suggestee_name" field. - public const int SuggesteeNameFieldNumber = 5; - private string suggesteeName_ = ""; - public string SuggesteeName { - get { return suggesteeName_; } - set { - suggesteeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "suggester_account_id" field. - public const int SuggesterAccountIdFieldNumber = 6; - private Bgs.Protocol.EntityId suggesterAccountId_; - public Bgs.Protocol.EntityId SuggesterAccountId { - get { return suggesterAccountId_; } - set { - suggesterAccountId_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as InvitationSuggestion); - } - - public bool Equals(InvitationSuggestion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ChannelId, other.ChannelId)) return false; - if (!object.Equals(SuggesterId, other.SuggesterId)) return false; - if (!object.Equals(SuggesteeId, other.SuggesteeId)) return false; - if (SuggesterName != other.SuggesterName) return false; - if (SuggesteeName != other.SuggesteeName) return false; - if (!object.Equals(SuggesterAccountId, other.SuggesterAccountId)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (channelId_ != null) hash ^= ChannelId.GetHashCode(); - if (suggesterId_ != null) hash ^= SuggesterId.GetHashCode(); - if (suggesteeId_ != null) hash ^= SuggesteeId.GetHashCode(); - if (SuggesterName.Length != 0) hash ^= SuggesterName.GetHashCode(); - if (SuggesteeName.Length != 0) hash ^= SuggesteeName.GetHashCode(); - if (suggesterAccountId_ != null) hash ^= SuggesterAccountId.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (channelId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ChannelId); - } - if (suggesterId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SuggesterId); - } - if (suggesteeId_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SuggesteeId); - } - if (SuggesterName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(SuggesterName); - } - if (SuggesteeName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SuggesteeName); - } - if (suggesterAccountId_ != null) { - output.WriteRawTag(50); - output.WriteMessage(SuggesterAccountId); - } - } - - public int CalculateSize() { - int size = 0; - if (channelId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChannelId); - } - if (suggesterId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuggesterId); - } - if (suggesteeId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuggesteeId); - } - if (SuggesterName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SuggesterName); - } - if (SuggesteeName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SuggesteeName); - } - if (suggesterAccountId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuggesterAccountId); - } - return size; - } - - public void MergeFrom(InvitationSuggestion other) { - if (other == null) { - return; - } - if (other.channelId_ != null) { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.EntityId(); - } - ChannelId.MergeFrom(other.ChannelId); - } - if (other.suggesterId_ != null) { - if (suggesterId_ == null) { - suggesterId_ = new Bgs.Protocol.EntityId(); - } - SuggesterId.MergeFrom(other.SuggesterId); - } - if (other.suggesteeId_ != null) { - if (suggesteeId_ == null) { - suggesteeId_ = new Bgs.Protocol.EntityId(); - } - SuggesteeId.MergeFrom(other.SuggesteeId); - } - if (other.SuggesterName.Length != 0) { - SuggesterName = other.SuggesterName; - } - if (other.SuggesteeName.Length != 0) { - SuggesteeName = other.SuggesteeName; - } - if (other.suggesterAccountId_ != null) { - if (suggesterAccountId_ == null) { - suggesterAccountId_ = new Bgs.Protocol.EntityId(); - } - SuggesterAccountId.MergeFrom(other.SuggesterAccountId); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (channelId_ == null) { - channelId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(channelId_); - break; - } - case 18: { - if (suggesterId_ == null) { - suggesterId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(suggesterId_); - break; - } - case 26: { - if (suggesteeId_ == null) { - suggesteeId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(suggesteeId_); - break; - } - case 34: { - SuggesterName = input.ReadString(); - break; - } - case 42: { - SuggesteeName = input.ReadString(); - break; - } - case 50: { - if (suggesterAccountId_ == null) { - suggesterAccountId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(suggesterAccountId_); - break; - } - } - } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class InvitationTarget : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvitationTarget()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public InvitationTarget() { - OnConstruction(); - } - - partial void OnConstruction(); - - public InvitationTarget(InvitationTarget other) : this() { - Identity = other.identity_ != null ? other.Identity.Clone() : null; - email_ = other.email_; - battleTag_ = other.battleTag_; - } - - public InvitationTarget Clone() { - return new InvitationTarget(this); - } - - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 1; - private Bgs.Protocol.Identity identity_; - public Bgs.Protocol.Identity Identity { - get { return identity_; } - set { - identity_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 2; - private string email_ = ""; - public string Email { - get { return email_; } - set { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "battle_tag" field. - public const int BattleTagFieldNumber = 3; - private string battleTag_ = ""; - public string BattleTag { - get { return battleTag_; } - set { - battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - public override bool Equals(object other) { - return Equals(other as InvitationTarget); - } - - public bool Equals(InvitationTarget other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Identity, other.Identity)) return false; - if (Email != other.Email) return false; - if (BattleTag != other.BattleTag) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (identity_ != null) hash ^= Identity.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (identity_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Identity); - } - if (Email.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Email); - } - if (BattleTag.Length != 0) { - output.WriteRawTag(26); - output.WriteString(BattleTag); - } - } - - public int CalculateSize() { - int size = 0; - if (identity_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity); - } - if (Email.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - if (BattleTag.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); - } - return size; - } - - public void MergeFrom(InvitationTarget other) { - if (other == null) { - return; - } - if (other.identity_ != null) { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Identity(); - } - Identity.MergeFrom(other.Identity); - } - if (other.Email.Length != 0) { - Email = other.Email; - } - if (other.BattleTag.Length != 0) { - BattleTag = other.BattleTag; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Identity(); - } - input.ReadMessage(identity_); - break; - } - case 18: { - Email = input.ReadString(); - break; - } - case 26: { - BattleTag = input.ReadString(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class InvitationParams : pb::IMessage { + public sealed partial class InvitationParams : pb::IExtendableMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvitationParams()); + private pb::UnknownFieldSet _unknownFields; + private pb::ExtensionSet _extensions; + private pb::ExtensionSet _Extensions => _extensions; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[3]; } + get { return global::Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public InvitationParams() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public InvitationParams(InvitationParams other) : this() { + _hasBits0 = other._hasBits0; invitationMessage_ = other.invitationMessage_; expirationTime_ = other.expirationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + _extensions = pb::ExtensionSet.Clone(other._extensions); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public InvitationParams Clone() { return new InvitationParams(this); } /// Field number for the "invitation_message" field. public const int InvitationMessageFieldNumber = 1; - private string invitationMessage_ = ""; + private readonly static string InvitationMessageDefaultValue = ""; + + private string invitationMessage_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string InvitationMessage { - get { return invitationMessage_; } + get { return invitationMessage_ ?? InvitationMessageDefaultValue; } set { invitationMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "invitation_message" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInvitationMessage { + get { return invitationMessage_ != null; } + } + /// Clears the value of the "invitation_message" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInvitationMessage() { + invitationMessage_ = null; + } /// Field number for the "expiration_time" field. public const int ExpirationTimeFieldNumber = 2; + private readonly static ulong ExpirationTimeDefaultValue = 0UL; + private ulong expirationTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ExpirationTime { - get { return expirationTime_; } + get { if ((_hasBits0 & 1) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } set { + _hasBits0 |= 1; expirationTime_ = value; } } + /// Gets whether the "expiration_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpirationTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "expiration_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpirationTime() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as InvitationParams); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(InvitationParams other) { if (ReferenceEquals(other, null)) { return false; @@ -865,60 +654,91 @@ namespace Bgs.Protocol } if (InvitationMessage != other.InvitationMessage) return false; if (ExpirationTime != other.ExpirationTime) return false; - return true; + if (!Equals(_extensions, other._extensions)) { + return false; + } + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (InvitationMessage.Length != 0) hash ^= InvitationMessage.GetHashCode(); - if (ExpirationTime != 0UL) hash ^= ExpirationTime.GetHashCode(); + if (HasInvitationMessage) hash ^= InvitationMessage.GetHashCode(); + if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); + if (_extensions != null) { + hash ^= _extensions.GetHashCode(); + } + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (InvitationMessage.Length != 0) { + if (HasInvitationMessage) { output.WriteRawTag(10); output.WriteString(InvitationMessage); } - if (ExpirationTime != 0UL) { + if (HasExpirationTime) { output.WriteRawTag(16); output.WriteUInt64(ExpirationTime); } + if (_extensions != null) { + _extensions.WriteTo(output); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (InvitationMessage.Length != 0) { + if (HasInvitationMessage) { size += 1 + pb::CodedOutputStream.ComputeStringSize(InvitationMessage); } - if (ExpirationTime != 0UL) { + if (HasExpirationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); } + if (_extensions != null) { + size += _extensions.CalculateSize(); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(InvitationParams other) { if (other == null) { return; } - if (other.InvitationMessage.Length != 0) { + if (other.HasInvitationMessage) { InvitationMessage = other.InvitationMessage; } - if (other.ExpirationTime != 0UL) { + if (other.HasExpirationTime) { ExpirationTime = other.ExpirationTime; } + pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + } break; case 10: { InvitationMessage = input.ReadString(); @@ -932,814 +752,26 @@ namespace Bgs.Protocol } } - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SendInvitationRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendInvitationRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[4]; } + public TValue GetExtension(pb::Extension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } + public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.Get(ref _extensions, extension); } - - public SendInvitationRequest() { - OnConstruction(); + public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) { + return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); } - - partial void OnConstruction(); - - public SendInvitationRequest(SendInvitationRequest other) : this() { - AgentIdentity = other.agentIdentity_ != null ? other.AgentIdentity.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; - Params = other.params_ != null ? other.Params.Clone() : null; - AgentInfo = other.agentInfo_ != null ? other.AgentInfo.Clone() : null; - Target = other.target_ != null ? other.Target.Clone() : null; + public void SetExtension(pb::Extension extension, TValue value) { + pb::ExtensionSet.Set(ref _extensions, extension, value); } - - public SendInvitationRequest Clone() { - return new SendInvitationRequest(this); + public bool HasExtension(pb::Extension extension) { + return pb::ExtensionSet.Has(ref _extensions, extension); } - - /// Field number for the "agent_identity" field. - public const int AgentIdentityFieldNumber = 1; - private Bgs.Protocol.Identity agentIdentity_; - public Bgs.Protocol.Identity AgentIdentity { - get { return agentIdentity_; } - set { - agentIdentity_ = value; - } + public void ClearExtension(pb::Extension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); } - - /// Field number for the "target_id" field. - public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - [System.ObsoleteAttribute()] - public Bgs.Protocol.EntityId TargetId { - get { return targetId_; } - set { - targetId_ = value; - } - } - - /// Field number for the "params" field. - public const int ParamsFieldNumber = 3; - private Bgs.Protocol.InvitationParams params_; - public Bgs.Protocol.InvitationParams Params { - get { return params_; } - set { - params_ = value; - } - } - - /// Field number for the "agent_info" field. - public const int AgentInfoFieldNumber = 4; - private Bgs.Protocol.AccountInfo agentInfo_; - public Bgs.Protocol.AccountInfo AgentInfo { - get { return agentInfo_; } - set { - agentInfo_ = value; - } - } - - /// Field number for the "target" field. - public const int TargetFieldNumber = 5; - private Bgs.Protocol.InvitationTarget target_; - public Bgs.Protocol.InvitationTarget Target { - get { return target_; } - set { - target_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as SendInvitationRequest); - } - - public bool Equals(SendInvitationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentIdentity, other.AgentIdentity)) return false; - if (!object.Equals(TargetId, other.TargetId)) return false; - if (!object.Equals(Params, other.Params)) return false; - if (!object.Equals(AgentInfo, other.AgentInfo)) return false; - if (!object.Equals(Target, other.Target)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentIdentity_ != null) hash ^= AgentIdentity.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); - if (params_ != null) hash ^= Params.GetHashCode(); - if (agentInfo_ != null) hash ^= AgentInfo.GetHashCode(); - if (target_ != null) hash ^= Target.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentIdentity_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentIdentity); - } - if (targetId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TargetId); - } - if (params_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Params); - } - if (agentInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(AgentInfo); - } - if (target_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Target); - } - } - - public int CalculateSize() { - int size = 0; - if (agentIdentity_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentIdentity); - } - if (targetId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); - } - if (params_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Params); - } - if (agentInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentInfo); - } - if (target_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target); - } - return size; - } - - public void MergeFrom(SendInvitationRequest other) { - if (other == null) { - return; - } - if (other.agentIdentity_ != null) { - if (agentIdentity_ == null) { - agentIdentity_ = new Bgs.Protocol.Identity(); - } - AgentIdentity.MergeFrom(other.AgentIdentity); - } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); - } - TargetId.MergeFrom(other.TargetId); - } - if (other.params_ != null) { - if (params_ == null) { - params_ = new Bgs.Protocol.InvitationParams(); - } - Params.MergeFrom(other.Params); - } - if (other.agentInfo_ != null) { - if (agentInfo_ == null) { - agentInfo_ = new Bgs.Protocol.AccountInfo(); - } - AgentInfo.MergeFrom(other.AgentInfo); - } - if (other.target_ != null) { - if (target_ == null) { - target_ = new Bgs.Protocol.InvitationTarget(); - } - Target.MergeFrom(other.Target); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentIdentity_ == null) { - agentIdentity_ = new Bgs.Protocol.Identity(); - } - input.ReadMessage(agentIdentity_); - break; - } - case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(targetId_); - break; - } - case 26: { - if (params_ == null) { - params_ = new Bgs.Protocol.InvitationParams(); - } - input.ReadMessage(params_); - break; - } - case 34: { - if (agentInfo_ == null) { - agentInfo_ = new Bgs.Protocol.AccountInfo(); - } - input.ReadMessage(agentInfo_); - break; - } - case 42: { - if (target_ == null) { - target_ = new Bgs.Protocol.InvitationTarget(); - } - input.ReadMessage(target_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class SendInvitationResponse : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendInvitationResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public SendInvitationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - public SendInvitationResponse(SendInvitationResponse other) : this() { - Invitation = other.invitation_ != null ? other.Invitation.Clone() : null; - } - - public SendInvitationResponse Clone() { - return new SendInvitationResponse(this); - } - - /// Field number for the "invitation" field. - public const int InvitationFieldNumber = 2; - private Bgs.Protocol.Invitation invitation_; - public Bgs.Protocol.Invitation Invitation { - get { return invitation_; } - set { - invitation_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as SendInvitationResponse); - } - - public bool Equals(SendInvitationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Invitation, other.Invitation)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (invitation_ != null) hash ^= Invitation.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (invitation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Invitation); - } - } - - public int CalculateSize() { - int size = 0; - if (invitation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation); - } - return size; - } - - public void MergeFrom(SendInvitationResponse other) { - if (other == null) { - return; - } - if (other.invitation_ != null) { - if (invitation_ == null) { - invitation_ = new Bgs.Protocol.Invitation(); - } - Invitation.MergeFrom(other.Invitation); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 18: { - if (invitation_ == null) { - invitation_ = new Bgs.Protocol.Invitation(); - } - input.ReadMessage(invitation_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class UpdateInvitationRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateInvitationRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public UpdateInvitationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public UpdateInvitationRequest(UpdateInvitationRequest other) : this() { - AgentIdentity = other.agentIdentity_ != null ? other.AgentIdentity.Clone() : null; - invitationId_ = other.invitationId_; - Params = other.params_ != null ? other.Params.Clone() : null; - } - - public UpdateInvitationRequest Clone() { - return new UpdateInvitationRequest(this); - } - - /// Field number for the "agent_identity" field. - public const int AgentIdentityFieldNumber = 1; - private Bgs.Protocol.Identity agentIdentity_; - public Bgs.Protocol.Identity AgentIdentity { - get { return agentIdentity_; } - set { - agentIdentity_ = value; - } - } - - /// Field number for the "invitation_id" field. - public const int InvitationIdFieldNumber = 2; - private ulong invitationId_; - public ulong InvitationId { - get { return invitationId_; } - set { - invitationId_ = value; - } - } - - /// Field number for the "params" field. - public const int ParamsFieldNumber = 3; - private Bgs.Protocol.InvitationParams params_; - public Bgs.Protocol.InvitationParams Params { - get { return params_; } - set { - params_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as UpdateInvitationRequest); - } - - public bool Equals(UpdateInvitationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentIdentity, other.AgentIdentity)) return false; - if (InvitationId != other.InvitationId) return false; - if (!object.Equals(Params, other.Params)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentIdentity_ != null) hash ^= AgentIdentity.GetHashCode(); - if (InvitationId != 0UL) hash ^= InvitationId.GetHashCode(); - if (params_ != null) hash ^= Params.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentIdentity_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentIdentity); - } - if (InvitationId != 0UL) { - output.WriteRawTag(17); - output.WriteFixed64(InvitationId); - } - if (params_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Params); - } - } - - public int CalculateSize() { - int size = 0; - if (agentIdentity_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentIdentity); - } - if (InvitationId != 0UL) { - size += 1 + 8; - } - if (params_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Params); - } - return size; - } - - public void MergeFrom(UpdateInvitationRequest other) { - if (other == null) { - return; - } - if (other.agentIdentity_ != null) { - if (agentIdentity_ == null) { - agentIdentity_ = new Bgs.Protocol.Identity(); - } - AgentIdentity.MergeFrom(other.AgentIdentity); - } - if (other.InvitationId != 0UL) { - InvitationId = other.InvitationId; - } - if (other.params_ != null) { - if (params_ == null) { - params_ = new Bgs.Protocol.InvitationParams(); - } - Params.MergeFrom(other.Params); - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentIdentity_ == null) { - agentIdentity_ = new Bgs.Protocol.Identity(); - } - input.ReadMessage(agentIdentity_); - break; - } - case 17: { - InvitationId = input.ReadFixed64(); - break; - } - case 26: { - if (params_ == null) { - params_ = new Bgs.Protocol.InvitationParams(); - } - input.ReadMessage(params_); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class GenericInvitationRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenericInvitationRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[7]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public GenericInvitationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - public GenericInvitationRequest(GenericInvitationRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; - invitationId_ = other.invitationId_; - inviteeName_ = other.inviteeName_; - inviterName_ = other.inviterName_; - previousRole_ = other.previousRole_.Clone(); - desiredRole_ = other.desiredRole_.Clone(); - reason_ = other.reason_; - } - - public GenericInvitationRequest Clone() { - return new GenericInvitationRequest(this); - } - - /// Field number for the "agent_id" field. - public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { - get { return agentId_; } - set { - agentId_ = value; - } - } - - /// Field number for the "target_id" field. - public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId { - get { return targetId_; } - set { - targetId_ = value; - } - } - - /// Field number for the "invitation_id" field. - public const int InvitationIdFieldNumber = 3; - private ulong invitationId_; - public ulong InvitationId { - get { return invitationId_; } - set { - invitationId_ = value; - } - } - - /// Field number for the "invitee_name" field. - public const int InviteeNameFieldNumber = 4; - private string inviteeName_ = ""; - public string InviteeName { - get { return inviteeName_; } - set { - inviteeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "inviter_name" field. - public const int InviterNameFieldNumber = 5; - private string inviterName_ = ""; - public string InviterName { - get { return inviterName_; } - set { - inviterName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "previous_role" field. - public const int PreviousRoleFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_previousRole_codec - = pb::FieldCodec.ForUInt32(50); - private readonly pbc::RepeatedField previousRole_ = new pbc::RepeatedField(); - public pbc::RepeatedField PreviousRole { - get { return previousRole_; } - } - - /// Field number for the "desired_role" field. - public const int DesiredRoleFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_desiredRole_codec - = pb::FieldCodec.ForUInt32(58); - private readonly pbc::RepeatedField desiredRole_ = new pbc::RepeatedField(); - public pbc::RepeatedField DesiredRole { - get { return desiredRole_; } - } - - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 8; - private uint reason_; - public uint Reason { - get { return reason_; } - set { - reason_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as GenericInvitationRequest); - } - - public bool Equals(GenericInvitationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgentId, other.AgentId)) return false; - if (!object.Equals(TargetId, other.TargetId)) return false; - if (InvitationId != other.InvitationId) return false; - if (InviteeName != other.InviteeName) return false; - if (InviterName != other.InviterName) return false; - if(!previousRole_.Equals(other.previousRole_)) return false; - if(!desiredRole_.Equals(other.desiredRole_)) return false; - if (Reason != other.Reason) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); - if (InvitationId != 0UL) hash ^= InvitationId.GetHashCode(); - if (InviteeName.Length != 0) hash ^= InviteeName.GetHashCode(); - if (InviterName.Length != 0) hash ^= InviterName.GetHashCode(); - hash ^= previousRole_.GetHashCode(); - hash ^= desiredRole_.GetHashCode(); - if (Reason != 0) hash ^= Reason.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AgentId); - } - if (targetId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TargetId); - } - if (InvitationId != 0UL) { - output.WriteRawTag(25); - output.WriteFixed64(InvitationId); - } - if (InviteeName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(InviteeName); - } - if (InviterName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(InviterName); - } - previousRole_.WriteTo(output, _repeated_previousRole_codec); - desiredRole_.WriteTo(output, _repeated_desiredRole_codec); - if (Reason != 0) { - output.WriteRawTag(64); - output.WriteUInt32(Reason); - } - } - - public int CalculateSize() { - int size = 0; - if (agentId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); - } - if (targetId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); - } - if (InvitationId != 0UL) { - size += 1 + 8; - } - if (InviteeName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InviteeName); - } - if (InviterName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterName); - } - size += previousRole_.CalculateSize(_repeated_previousRole_codec); - size += desiredRole_.CalculateSize(_repeated_desiredRole_codec); - if (Reason != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason); - } - return size; - } - - public void MergeFrom(GenericInvitationRequest other) { - if (other == null) { - return; - } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - AgentId.MergeFrom(other.AgentId); - } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); - } - TargetId.MergeFrom(other.TargetId); - } - if (other.InvitationId != 0UL) { - InvitationId = other.InvitationId; - } - if (other.InviteeName.Length != 0) { - InviteeName = other.InviteeName; - } - if (other.InviterName.Length != 0) { - InviterName = other.InviterName; - } - previousRole_.Add(other.previousRole_); - desiredRole_.Add(other.desiredRole_); - if (other.Reason != 0) { - Reason = other.Reason; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(agentId_); - break; - } - case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(targetId_); - break; - } - case 25: { - InvitationId = input.ReadFixed64(); - break; - } - case 34: { - InviteeName = input.ReadString(); - break; - } - case 42: { - InviterName = input.ReadString(); - break; - } - case 50: - case 48: { - previousRole_.AddEntriesFrom(input, _repeated_previousRole_codec); - break; - } - case 58: - case 56: { - desiredRole_.AddEntriesFrom(input, _repeated_desiredRole_codec); - break; - } - case 64: { - Reason = input.ReadUInt32(); - break; - } - } - } + public void ClearExtension(pb::RepeatedExtension extension) { + pb::ExtensionSet.Clear(ref _extensions, extension); } } diff --git a/Source/Framework/Proto/MessageTypes.cs b/Source/Framework/Proto/MessageTypes.cs new file mode 100644 index 000000000..0b47562af --- /dev/null +++ b/Source/Framework/Proto/MessageTypes.cs @@ -0,0 +1,238 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/message_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { + + /// Holder for reflection information generated from bgs/low/pb/client/message_types.proto + public static partial class MessageTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/message_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MessageTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiViZ3MvbG93L3BiL2NsaWVudC9tZXNzYWdlX3R5cGVzLnByb3RvEgxiZ3Mu", + "cHJvdG9jb2wiLAoJTWVzc2FnZUlkEg0KBWVwb2NoGAEgASgEEhAKCHBvc2l0", + "aW9uGAIgASgEKjQKD1R5cGluZ0luZGljYXRvchIQCgxUWVBJTkdfU1RBUlQQ", + "ABIPCgtUWVBJTkdfU1RPUBAB")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.TypingIndicator), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.MessageId), global::Bgs.Protocol.MessageId.Parser, new[]{ "Epoch", "Position" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum TypingIndicator { + [pbr::OriginalName("TYPING_START")] TypingStart = 0, + [pbr::OriginalName("TYPING_STOP")] TypingStop = 1, + } + + #endregion + + #region Messages + public sealed partial class MessageId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.MessageTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageId(MessageId other) : this() { + _hasBits0 = other._hasBits0; + epoch_ = other.epoch_; + position_ = other.position_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageId Clone() { + return new MessageId(this); + } + + /// Field number for the "epoch" field. + public const int EpochFieldNumber = 1; + private readonly static ulong EpochDefaultValue = 0UL; + + private ulong epoch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Epoch { + get { if ((_hasBits0 & 1) != 0) { return epoch_; } else { return EpochDefaultValue; } } + set { + _hasBits0 |= 1; + epoch_ = value; + } + } + /// Gets whether the "epoch" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEpoch { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "epoch" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEpoch() { + _hasBits0 &= ~1; + } + + /// Field number for the "position" field. + public const int PositionFieldNumber = 2; + private readonly static ulong PositionDefaultValue = 0UL; + + private ulong position_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Position { + get { if ((_hasBits0 & 2) != 0) { return position_; } else { return PositionDefaultValue; } } + set { + _hasBits0 |= 2; + position_ = value; + } + } + /// Gets whether the "position" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPosition { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "position" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPosition() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MessageId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Epoch != other.Epoch) return false; + if (Position != other.Position) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasEpoch) hash ^= Epoch.GetHashCode(); + if (HasPosition) hash ^= Position.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasEpoch) { + output.WriteRawTag(8); + output.WriteUInt64(Epoch); + } + if (HasPosition) { + output.WriteRawTag(16); + output.WriteUInt64(Position); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasEpoch) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Epoch); + } + if (HasPosition) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Position); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageId other) { + if (other == null) { + return; + } + if (other.HasEpoch) { + Epoch = other.Epoch; + } + if (other.HasPosition) { + Position = other.Position; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Epoch = input.ReadUInt64(); + break; + } + case 16: { + Position = input.ReadUInt64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/NotificationTypes.cs b/Source/Framework/Proto/NotificationTypes.cs index 382beb67a..b8721e733 100644 --- a/Source/Framework/Proto/NotificationTypes.cs +++ b/Source/Framework/Proto/NotificationTypes.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/notification_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/notification_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Notification.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Notification.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/notification_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/notification_types.proto public static partial class NotificationTypesReflection { #region Descriptor @@ -21,92 +22,130 @@ namespace Bgs.Protocol.Notification.V1 private static pbr::FileDescriptor descriptor; static NotificationTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CipiZ3MvbG93L3BiL2NsaWVudC9ub3RpZmljYXRpb25fdHlwZXMucHJvdG8S", "HGJncy5wcm90b2NvbC5ub3RpZmljYXRpb24udjEaJWJncy9sb3cvcGIvY2xp", "ZW50L2FjY291bnRfdHlwZXMucHJvdG8aJ2Jncy9sb3cvcGIvY2xpZW50L2F0", "dHJpYnV0ZV90eXBlcy5wcm90bxokYmdzL2xvdy9wYi9jbGllbnQvZW50aXR5", "X3R5cGVzLnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJv", - "dG8iSwoGVGFyZ2V0EjMKCGlkZW50aXR5GAEgASgLMiEuYmdzLnByb3RvY29s", - "LmFjY291bnQudjEuSWRlbnRpdHkSDAoEdHlwZRgCIAEoCSKWAQoMU3Vic2Ny", - "aXB0aW9uEjQKBnRhcmdldBgBIAMoCzIkLmJncy5wcm90b2NvbC5ub3RpZmlj", - "YXRpb24udjEuVGFyZ2V0EjUKCnN1YnNjcmliZXIYAiABKAsyIS5iZ3MucHJv", - "dG9jb2wuYWNjb3VudC52MS5JZGVudGl0eRIZChFkZWxpdmVyeV9yZXF1aXJl", - "ZBgDIAEoCCKhAwoMTm90aWZpY2F0aW9uEikKCXNlbmRlcl9pZBgBIAEoCzIW", - "LmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0YXJnZXRfaWQYAiABKAsyFi5i", - "Z3MucHJvdG9jb2wuRW50aXR5SWQSDAoEdHlwZRgDIAEoCRIqCglhdHRyaWJ1", - "dGUYBCADKAsyFy5iZ3MucHJvdG9jb2wuQXR0cmlidXRlEjEKEXNlbmRlcl9h", - "Y2NvdW50X2lkGAUgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEjEKEXRh", - "cmdldF9hY2NvdW50X2lkGAYgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlk", - "EhkKEXNlbmRlcl9iYXR0bGVfdGFnGAcgASgJEhkKEXRhcmdldF9iYXR0bGVf", - "dGFnGAggASgJEiUKBHBlZXIYCSABKAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vz", - "c0lkEj4KE2ZvcndhcmRpbmdfaWRlbnRpdHkYCiABKAsyIS5iZ3MucHJvdG9j", - "b2wuYWNjb3VudC52MS5JZGVudGl0eUICSAJiBnByb3RvMw==")); + "dG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3Nh", + "Z2Vfb3B0aW9ucy5wcm90bxo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4", + "dGVuc2lvbnMvZmllbGRfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGll", + "bnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJn", + "cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0", + "aW9ucy5wcm90byJLCgZUYXJnZXQSMwoIaWRlbnRpdHkYASABKAsyIS5iZ3Mu", + "cHJvdG9jb2wuYWNjb3VudC52MS5JZGVudGl0eRIMCgR0eXBlGAIgASgJIp0B", + "CgxTdWJzY3JpcHRpb24SNAoGdGFyZ2V0GAEgAygLMiQuYmdzLnByb3RvY29s", + "Lm5vdGlmaWNhdGlvbi52MS5UYXJnZXQSNQoKc3Vic2NyaWJlchgCIAEoCzIh", + "LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLklkZW50aXR5EiAKEWRlbGl2ZXJ5", + "X3JlcXVpcmVkGAMgASgIOgVmYWxzZSKhAwoMTm90aWZpY2F0aW9uEikKCXNl", + "bmRlcl9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0YXJn", + "ZXRfaWQYAiACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSDAoEdHlwZRgD", + "IAIoCRIqCglhdHRyaWJ1dGUYBCADKAsyFy5iZ3MucHJvdG9jb2wuQXR0cmli", + "dXRlEjEKEXNlbmRlcl9hY2NvdW50X2lkGAUgASgLMhYuYmdzLnByb3RvY29s", + "LkVudGl0eUlkEjEKEXRhcmdldF9hY2NvdW50X2lkGAYgASgLMhYuYmdzLnBy", + "b3RvY29sLkVudGl0eUlkEhkKEXNlbmRlcl9iYXR0bGVfdGFnGAcgASgJEhkK", + "EXRhcmdldF9iYXR0bGVfdGFnGAggASgJEiUKBHBlZXIYCSABKAsyFy5iZ3Mu", + "cHJvdG9jb2wuUHJvY2Vzc0lkEj4KE2ZvcndhcmRpbmdfaWRlbnRpdHkYCiAB", + "KAsyIS5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5JZGVudGl0eQ==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Notification.V1.Target), Bgs.Protocol.Notification.V1.Target.Parser, new[]{ "Identity", "Type" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Notification.V1.Subscription), Bgs.Protocol.Notification.V1.Subscription.Parser, new[]{ "Target", "Subscriber", "DeliveryRequired" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Notification.V1.Notification), Bgs.Protocol.Notification.V1.Notification.Parser, new[]{ "SenderId", "TargetId", "Type", "Attribute", "SenderAccountId", "TargetAccountId", "SenderBattleTag", "TargetBattleTag", "Peer", "ForwardingIdentity" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Notification.V1.Target), global::Bgs.Protocol.Notification.V1.Target.Parser, new[]{ "Identity", "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Notification.V1.Subscription), global::Bgs.Protocol.Notification.V1.Subscription.Parser, new[]{ "Target", "Subscriber", "DeliveryRequired" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Notification.V1.Notification), global::Bgs.Protocol.Notification.V1.Notification.Parser, new[]{ "SenderId", "TargetId", "Type", "Attribute", "SenderAccountId", "TargetAccountId", "SenderBattleTag", "TargetBattleTag", "Peer", "ForwardingIdentity" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class Target : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Target()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Target() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Target(Target other) : this() { - Identity = other.identity_ != null ? other.Identity.Clone() : null; + identity_ = other.HasIdentity ? other.identity_.Clone() : null; type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Target Clone() { return new Target(this); } /// Field number for the "identity" field. public const int IdentityFieldNumber = 1; - private Bgs.Protocol.Account.V1.Identity identity_; - public Bgs.Protocol.Account.V1.Identity Identity { + private global::Bgs.Protocol.Account.V1.Identity identity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.Identity Identity { get { return identity_; } set { identity_ = value; } } + /// Gets whether the identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIdentity { + get { return identity_ != null; } + } + /// Clears the value of the identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIdentity() { + identity_ = null; + } /// Field number for the "type" field. public const int TypeFieldNumber = 2; - private string type_ = ""; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Type { - get { return type_; } + get { return type_ ?? TypeDefaultValue; } set { type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Target); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Target other) { if (ReferenceEquals(other, null)) { return false; @@ -116,69 +155,85 @@ namespace Bgs.Protocol.Notification.V1 } if (!object.Equals(Identity, other.Identity)) return false; if (Type != other.Type) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (identity_ != null) hash ^= Identity.GetHashCode(); - if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (HasIdentity) hash ^= Identity.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (identity_ != null) { + if (HasIdentity) { output.WriteRawTag(10); output.WriteMessage(Identity); } - if (Type.Length != 0) { + if (HasType) { output.WriteRawTag(18); output.WriteString(Type); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (identity_ != null) { + if (HasIdentity) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity); } - if (Type.Length != 0) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Target other) { if (other == null) { return; } - if (other.identity_ != null) { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Account.V1.Identity(); + if (other.HasIdentity) { + if (!HasIdentity) { + Identity = new global::Bgs.Protocol.Account.V1.Identity(); } Identity.MergeFrom(other.Identity); } - if (other.Type.Length != 0) { + if (other.HasType) { Type = other.Type; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (identity_ == null) { - identity_ = new Bgs.Protocol.Account.V1.Identity(); + if (!HasIdentity) { + Identity = new global::Bgs.Protocol.Account.V1.Identity(); } - input.ReadMessage(identity_); + input.ReadMessage(Identity); break; } case 18: { @@ -191,68 +246,105 @@ namespace Bgs.Protocol.Notification.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class Subscription : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Subscription()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Subscription() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Subscription(Subscription other) : this() { + _hasBits0 = other._hasBits0; target_ = other.target_.Clone(); - Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null; + subscriber_ = other.HasSubscriber ? other.subscriber_.Clone() : null; deliveryRequired_ = other.deliveryRequired_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Subscription Clone() { return new Subscription(this); } /// Field number for the "target" field. public const int TargetFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_target_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Notification.V1.Target.Parser); - private readonly pbc::RepeatedField target_ = new pbc::RepeatedField(); - public pbc::RepeatedField Target { + private static readonly pb::FieldCodec _repeated_target_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Notification.V1.Target.Parser); + private readonly pbc::RepeatedField target_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Target { get { return target_; } } /// Field number for the "subscriber" field. public const int SubscriberFieldNumber = 2; - private Bgs.Protocol.Account.V1.Identity subscriber_; - public Bgs.Protocol.Account.V1.Identity Subscriber { + private global::Bgs.Protocol.Account.V1.Identity subscriber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.Identity Subscriber { get { return subscriber_; } set { subscriber_ = value; } } + /// Gets whether the subscriber field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriber { + get { return subscriber_ != null; } + } + /// Clears the value of the subscriber field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriber() { + subscriber_ = null; + } /// Field number for the "delivery_required" field. public const int DeliveryRequiredFieldNumber = 3; + private readonly static bool DeliveryRequiredDefaultValue = false; + private bool deliveryRequired_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool DeliveryRequired { - get { return deliveryRequired_; } + get { if ((_hasBits0 & 1) != 0) { return deliveryRequired_; } else { return DeliveryRequiredDefaultValue; } } set { + _hasBits0 |= 1; deliveryRequired_ = value; } } + /// Gets whether the "delivery_required" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDeliveryRequired { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "delivery_required" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDeliveryRequired() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Subscription); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Subscription other) { if (ReferenceEquals(other, null)) { return false; @@ -263,77 +355,93 @@ namespace Bgs.Protocol.Notification.V1 if(!target_.Equals(other.target_)) return false; if (!object.Equals(Subscriber, other.Subscriber)) return false; if (DeliveryRequired != other.DeliveryRequired) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= target_.GetHashCode(); - if (subscriber_ != null) hash ^= Subscriber.GetHashCode(); - if (DeliveryRequired != false) hash ^= DeliveryRequired.GetHashCode(); + if (HasSubscriber) hash ^= Subscriber.GetHashCode(); + if (HasDeliveryRequired) hash ^= DeliveryRequired.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { target_.WriteTo(output, _repeated_target_codec); - if (subscriber_ != null) { + if (HasSubscriber) { output.WriteRawTag(18); output.WriteMessage(Subscriber); } - if (DeliveryRequired != false) { + if (HasDeliveryRequired) { output.WriteRawTag(24); output.WriteBool(DeliveryRequired); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += target_.CalculateSize(_repeated_target_codec); - if (subscriber_ != null) { + if (HasSubscriber) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber); } - if (DeliveryRequired != false) { + if (HasDeliveryRequired) { size += 1 + 1; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Subscription other) { if (other == null) { return; } target_.Add(other.target_); - if (other.subscriber_ != null) { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); + if (other.HasSubscriber) { + if (!HasSubscriber) { + Subscriber = new global::Bgs.Protocol.Account.V1.Identity(); } Subscriber.MergeFrom(other.Subscriber); } - if (other.DeliveryRequired != false) { + if (other.HasDeliveryRequired) { DeliveryRequired = other.DeliveryRequired; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { target_.AddEntriesFrom(input, _repeated_target_codec); break; } case 18: { - if (subscriber_ == null) { - subscriber_ = new Bgs.Protocol.Account.V1.Identity(); + if (!HasSubscriber) { + Subscriber = new global::Bgs.Protocol.Account.V1.Identity(); } - input.ReadMessage(subscriber_); + input.ReadMessage(Subscriber); break; } case 24: { @@ -346,145 +454,260 @@ namespace Bgs.Protocol.Notification.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class Notification : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Notification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[2]; } + get { return global::Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[2]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Notification() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Notification(Notification other) : this() { - SenderId = other.senderId_ != null ? other.SenderId.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; + senderId_ = other.HasSenderId ? other.senderId_.Clone() : null; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; type_ = other.type_; attribute_ = other.attribute_.Clone(); - SenderAccountId = other.senderAccountId_ != null ? other.SenderAccountId.Clone() : null; - TargetAccountId = other.targetAccountId_ != null ? other.TargetAccountId.Clone() : null; + senderAccountId_ = other.HasSenderAccountId ? other.senderAccountId_.Clone() : null; + targetAccountId_ = other.HasTargetAccountId ? other.targetAccountId_.Clone() : null; senderBattleTag_ = other.senderBattleTag_; targetBattleTag_ = other.targetBattleTag_; - Peer = other.peer_ != null ? other.Peer.Clone() : null; - ForwardingIdentity = other.forwardingIdentity_ != null ? other.ForwardingIdentity.Clone() : null; + peer_ = other.HasPeer ? other.peer_.Clone() : null; + forwardingIdentity_ = other.HasForwardingIdentity ? other.forwardingIdentity_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Notification Clone() { return new Notification(this); } /// Field number for the "sender_id" field. public const int SenderIdFieldNumber = 1; - private Bgs.Protocol.EntityId senderId_; - public Bgs.Protocol.EntityId SenderId { + private global::Bgs.Protocol.EntityId senderId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId SenderId { get { return senderId_; } set { senderId_ = value; } } + /// Gets whether the sender_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSenderId { + get { return senderId_ != null; } + } + /// Clears the value of the sender_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSenderId() { + senderId_ = null; + } /// Field number for the "target_id" field. public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId { + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { get { return targetId_; } set { targetId_ = value; } } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } /// Field number for the "type" field. public const int TypeFieldNumber = 3; - private string type_ = ""; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Type { - get { return type_; } + get { return type_ ?? TypeDefaultValue; } set { type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(34, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { get { return attribute_; } } /// Field number for the "sender_account_id" field. public const int SenderAccountIdFieldNumber = 5; - private Bgs.Protocol.EntityId senderAccountId_; - public Bgs.Protocol.EntityId SenderAccountId { + private global::Bgs.Protocol.EntityId senderAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId SenderAccountId { get { return senderAccountId_; } set { senderAccountId_ = value; } } + /// Gets whether the sender_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSenderAccountId { + get { return senderAccountId_ != null; } + } + /// Clears the value of the sender_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSenderAccountId() { + senderAccountId_ = null; + } /// Field number for the "target_account_id" field. public const int TargetAccountIdFieldNumber = 6; - private Bgs.Protocol.EntityId targetAccountId_; - public Bgs.Protocol.EntityId TargetAccountId { + private global::Bgs.Protocol.EntityId targetAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetAccountId { get { return targetAccountId_; } set { targetAccountId_ = value; } } + /// Gets whether the target_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetAccountId { + get { return targetAccountId_ != null; } + } + /// Clears the value of the target_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetAccountId() { + targetAccountId_ = null; + } /// Field number for the "sender_battle_tag" field. public const int SenderBattleTagFieldNumber = 7; - private string senderBattleTag_ = ""; + private readonly static string SenderBattleTagDefaultValue = ""; + + private string senderBattleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string SenderBattleTag { - get { return senderBattleTag_; } + get { return senderBattleTag_ ?? SenderBattleTagDefaultValue; } set { senderBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "sender_battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSenderBattleTag { + get { return senderBattleTag_ != null; } + } + /// Clears the value of the "sender_battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSenderBattleTag() { + senderBattleTag_ = null; + } /// Field number for the "target_battle_tag" field. public const int TargetBattleTagFieldNumber = 8; - private string targetBattleTag_ = ""; + private readonly static string TargetBattleTagDefaultValue = ""; + + private string targetBattleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string TargetBattleTag { - get { return targetBattleTag_; } + get { return targetBattleTag_ ?? TargetBattleTagDefaultValue; } set { targetBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "target_battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetBattleTag { + get { return targetBattleTag_ != null; } + } + /// Clears the value of the "target_battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetBattleTag() { + targetBattleTag_ = null; + } /// Field number for the "peer" field. public const int PeerFieldNumber = 9; - private Bgs.Protocol.ProcessId peer_; - public Bgs.Protocol.ProcessId Peer { + private global::Bgs.Protocol.ProcessId peer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Peer { get { return peer_; } set { peer_ = value; } } + /// Gets whether the peer field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPeer { + get { return peer_ != null; } + } + /// Clears the value of the peer field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPeer() { + peer_ = null; + } /// Field number for the "forwarding_identity" field. public const int ForwardingIdentityFieldNumber = 10; - private Bgs.Protocol.Account.V1.Identity forwardingIdentity_; - public Bgs.Protocol.Account.V1.Identity ForwardingIdentity { + private global::Bgs.Protocol.Account.V1.Identity forwardingIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.Identity ForwardingIdentity { get { return forwardingIdentity_; } set { forwardingIdentity_ = value; } } + /// Gets whether the forwarding_identity field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForwardingIdentity { + get { return forwardingIdentity_ != null; } + } + /// Clears the value of the forwarding_identity field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForwardingIdentity() { + forwardingIdentity_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Notification); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Notification other) { if (ReferenceEquals(other, null)) { return false; @@ -502,172 +725,188 @@ namespace Bgs.Protocol.Notification.V1 if (TargetBattleTag != other.TargetBattleTag) return false; if (!object.Equals(Peer, other.Peer)) return false; if (!object.Equals(ForwardingIdentity, other.ForwardingIdentity)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (senderId_ != null) hash ^= SenderId.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); - if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (HasSenderId) hash ^= SenderId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); hash ^= attribute_.GetHashCode(); - if (senderAccountId_ != null) hash ^= SenderAccountId.GetHashCode(); - if (targetAccountId_ != null) hash ^= TargetAccountId.GetHashCode(); - if (SenderBattleTag.Length != 0) hash ^= SenderBattleTag.GetHashCode(); - if (TargetBattleTag.Length != 0) hash ^= TargetBattleTag.GetHashCode(); - if (peer_ != null) hash ^= Peer.GetHashCode(); - if (forwardingIdentity_ != null) hash ^= ForwardingIdentity.GetHashCode(); + if (HasSenderAccountId) hash ^= SenderAccountId.GetHashCode(); + if (HasTargetAccountId) hash ^= TargetAccountId.GetHashCode(); + if (HasSenderBattleTag) hash ^= SenderBattleTag.GetHashCode(); + if (HasTargetBattleTag) hash ^= TargetBattleTag.GetHashCode(); + if (HasPeer) hash ^= Peer.GetHashCode(); + if (HasForwardingIdentity) hash ^= ForwardingIdentity.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (senderId_ != null) { + if (HasSenderId) { output.WriteRawTag(10); output.WriteMessage(SenderId); } - if (targetId_ != null) { + if (HasTargetId) { output.WriteRawTag(18); output.WriteMessage(TargetId); } - if (Type.Length != 0) { + if (HasType) { output.WriteRawTag(26); output.WriteString(Type); } attribute_.WriteTo(output, _repeated_attribute_codec); - if (senderAccountId_ != null) { + if (HasSenderAccountId) { output.WriteRawTag(42); output.WriteMessage(SenderAccountId); } - if (targetAccountId_ != null) { + if (HasTargetAccountId) { output.WriteRawTag(50); output.WriteMessage(TargetAccountId); } - if (SenderBattleTag.Length != 0) { + if (HasSenderBattleTag) { output.WriteRawTag(58); output.WriteString(SenderBattleTag); } - if (TargetBattleTag.Length != 0) { + if (HasTargetBattleTag) { output.WriteRawTag(66); output.WriteString(TargetBattleTag); } - if (peer_ != null) { + if (HasPeer) { output.WriteRawTag(74); output.WriteMessage(Peer); } - if (forwardingIdentity_ != null) { + if (HasForwardingIdentity) { output.WriteRawTag(82); output.WriteMessage(ForwardingIdentity); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (senderId_ != null) { + if (HasSenderId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SenderId); } - if (targetId_ != null) { + if (HasTargetId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); } - if (Type.Length != 0) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); } size += attribute_.CalculateSize(_repeated_attribute_codec); - if (senderAccountId_ != null) { + if (HasSenderAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SenderAccountId); } - if (targetAccountId_ != null) { + if (HasTargetAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetAccountId); } - if (SenderBattleTag.Length != 0) { + if (HasSenderBattleTag) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SenderBattleTag); } - if (TargetBattleTag.Length != 0) { + if (HasTargetBattleTag) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetBattleTag); } - if (peer_ != null) { + if (HasPeer) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Peer); } - if (forwardingIdentity_ != null) { + if (HasForwardingIdentity) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForwardingIdentity); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Notification other) { if (other == null) { return; } - if (other.senderId_ != null) { - if (senderId_ == null) { - senderId_ = new Bgs.Protocol.EntityId(); + if (other.HasSenderId) { + if (!HasSenderId) { + SenderId = new global::Bgs.Protocol.EntityId(); } SenderId.MergeFrom(other.SenderId); } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } TargetId.MergeFrom(other.TargetId); } - if (other.Type.Length != 0) { + if (other.HasType) { Type = other.Type; } attribute_.Add(other.attribute_); - if (other.senderAccountId_ != null) { - if (senderAccountId_ == null) { - senderAccountId_ = new Bgs.Protocol.EntityId(); + if (other.HasSenderAccountId) { + if (!HasSenderAccountId) { + SenderAccountId = new global::Bgs.Protocol.EntityId(); } SenderAccountId.MergeFrom(other.SenderAccountId); } - if (other.targetAccountId_ != null) { - if (targetAccountId_ == null) { - targetAccountId_ = new Bgs.Protocol.EntityId(); + if (other.HasTargetAccountId) { + if (!HasTargetAccountId) { + TargetAccountId = new global::Bgs.Protocol.EntityId(); } TargetAccountId.MergeFrom(other.TargetAccountId); } - if (other.SenderBattleTag.Length != 0) { + if (other.HasSenderBattleTag) { SenderBattleTag = other.SenderBattleTag; } - if (other.TargetBattleTag.Length != 0) { + if (other.HasTargetBattleTag) { TargetBattleTag = other.TargetBattleTag; } - if (other.peer_ != null) { - if (peer_ == null) { - peer_ = new Bgs.Protocol.ProcessId(); + if (other.HasPeer) { + if (!HasPeer) { + Peer = new global::Bgs.Protocol.ProcessId(); } Peer.MergeFrom(other.Peer); } - if (other.forwardingIdentity_ != null) { - if (forwardingIdentity_ == null) { - forwardingIdentity_ = new Bgs.Protocol.Account.V1.Identity(); + if (other.HasForwardingIdentity) { + if (!HasForwardingIdentity) { + ForwardingIdentity = new global::Bgs.Protocol.Account.V1.Identity(); } ForwardingIdentity.MergeFrom(other.ForwardingIdentity); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (senderId_ == null) { - senderId_ = new Bgs.Protocol.EntityId(); + if (!HasSenderId) { + SenderId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(senderId_); + input.ReadMessage(SenderId); break; } case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(targetId_); + input.ReadMessage(TargetId); break; } case 26: { @@ -679,17 +918,17 @@ namespace Bgs.Protocol.Notification.V1 break; } case 42: { - if (senderAccountId_ == null) { - senderAccountId_ = new Bgs.Protocol.EntityId(); + if (!HasSenderAccountId) { + SenderAccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(senderAccountId_); + input.ReadMessage(SenderAccountId); break; } case 50: { - if (targetAccountId_ == null) { - targetAccountId_ = new Bgs.Protocol.EntityId(); + if (!HasTargetAccountId) { + TargetAccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(targetAccountId_); + input.ReadMessage(TargetAccountId); break; } case 58: { @@ -701,17 +940,17 @@ namespace Bgs.Protocol.Notification.V1 break; } case 74: { - if (peer_ == null) { - peer_ = new Bgs.Protocol.ProcessId(); + if (!HasPeer) { + Peer = new global::Bgs.Protocol.ProcessId(); } - input.ReadMessage(peer_); + input.ReadMessage(Peer); break; } case 82: { - if (forwardingIdentity_ == null) { - forwardingIdentity_ = new Bgs.Protocol.Account.V1.Identity(); + if (!HasForwardingIdentity) { + ForwardingIdentity = new global::Bgs.Protocol.Account.V1.Identity(); } - input.ReadMessage(forwardingIdentity_); + input.ReadMessage(ForwardingIdentity); break; } } diff --git a/Source/Framework/Proto/PresenceListener.cs b/Source/Framework/Proto/PresenceListener.cs new file mode 100644 index 000000000..500e695be --- /dev/null +++ b/Source/Framework/Proto/PresenceListener.cs @@ -0,0 +1,394 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/presence_listener.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Presence.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/presence_listener.proto + public static partial class PresenceListenerReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/presence_listener.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PresenceListenerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiliZ3MvbG93L3BiL2NsaWVudC9wcmVzZW5jZV9saXN0ZW5lci5wcm90bxIY", + "YmdzLnByb3RvY29sLnByZXNlbmNlLnYxGiZiZ3MvbG93L3BiL2NsaWVudC9w", + "cmVzZW5jZV90eXBlcy5wcm90bxolYmdzL2xvdy9wYi9jbGllbnQvYWNjb3Vu", + "dF90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQvcnBjX3R5cGVzLnBy", + "b3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNz", + "YWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9l", + "eHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOGJncy9sb3cvcGIvY2xp", + "ZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnByb3RvGjli", + "Z3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNlX29w", + "dGlvbnMucHJvdG8iigEKFVN1YnNjcmliZU5vdGlmaWNhdGlvbhI5Cg1zdWJz", + "Y3JpYmVyX2lkGAEgASgLMiIuYmdzLnByb3RvY29sLmFjY291bnQudjEuQWNj", + "b3VudElkEjYKBXN0YXRlGAIgAygLMicuYmdzLnByb3RvY29sLnByZXNlbmNl", + "LnYxLlByZXNlbmNlU3RhdGUijQEKGFN0YXRlQ2hhbmdlZE5vdGlmaWNhdGlv", + "bhI5Cg1zdWJzY3JpYmVyX2lkGAEgASgLMiIuYmdzLnByb3RvY29sLmFjY291", + "bnQudjEuQWNjb3VudElkEjYKBXN0YXRlGAIgAygLMicuYmdzLnByb3RvY29s", + "LnByZXNlbmNlLnYxLlByZXNlbmNlU3RhdGUylgIKEFByZXNlbmNlTGlzdGVu", + "ZXISYQoLT25TdWJzY3JpYmUSLy5iZ3MucHJvdG9jb2wucHJlc2VuY2UudjEu", + "U3Vic2NyaWJlTm90aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BP", + "TlNFIgaC+SsCCAESZwoOT25TdGF0ZUNoYW5nZWQSMi5iZ3MucHJvdG9jb2wu", + "cHJlc2VuY2UudjEuU3RhdGVDaGFuZ2VkTm90aWZpY2F0aW9uGhkuYmdzLnBy", + "b3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAIaNoL5KywKKmJuZXQucHJvdG9j", + "b2wucHJlc2VuY2UudjEuUHJlc2VuY2VMaXN0ZW5lcor5KwIIAQ==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor, global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.SubscribeNotification), global::Bgs.Protocol.Presence.V1.SubscribeNotification.Parser, new[]{ "SubscriberId", "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.StateChangedNotification), global::Bgs.Protocol.Presence.V1.StateChangedNotification.Parser, new[]{ "SubscriberId", "State" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SubscribeNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Presence.V1.PresenceListenerReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeNotification(SubscribeNotification other) : this() { + subscriberId_ = other.HasSubscriberId ? other.subscriberId_.Clone() : null; + state_ = other.state_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeNotification Clone() { + return new SubscribeNotification(this); + } + + /// Field number for the "subscriber_id" field. + public const int SubscriberIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId subscriberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId SubscriberId { + get { return subscriberId_; } + set { + subscriberId_ = value; + } + } + /// Gets whether the subscriber_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriberId { + get { return subscriberId_ != null; } + } + /// Clears the value of the subscriber_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriberId() { + subscriberId_ = null; + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_state_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.PresenceState.Parser); + private readonly pbc::RepeatedField state_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField State { + get { return state_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscribeNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscribeNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SubscriberId, other.SubscriberId)) return false; + if(!state_.Equals(other.state_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSubscriberId) hash ^= SubscriberId.GetHashCode(); + hash ^= state_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSubscriberId) { + output.WriteRawTag(10); + output.WriteMessage(SubscriberId); + } + state_.WriteTo(output, _repeated_state_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSubscriberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubscriberId); + } + size += state_.CalculateSize(_repeated_state_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscribeNotification other) { + if (other == null) { + return; + } + if (other.HasSubscriberId) { + if (!HasSubscriberId) { + SubscriberId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + SubscriberId.MergeFrom(other.SubscriberId); + } + state_.Add(other.state_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasSubscriberId) { + SubscriberId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(SubscriberId); + break; + } + case 18: { + state_.AddEntriesFrom(input, _repeated_state_codec); + break; + } + } + } + } + + } + + public sealed partial class StateChangedNotification : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StateChangedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Presence.V1.PresenceListenerReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StateChangedNotification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StateChangedNotification(StateChangedNotification other) : this() { + subscriberId_ = other.HasSubscriberId ? other.subscriberId_.Clone() : null; + state_ = other.state_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StateChangedNotification Clone() { + return new StateChangedNotification(this); + } + + /// Field number for the "subscriber_id" field. + public const int SubscriberIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.AccountId subscriberId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.AccountId SubscriberId { + get { return subscriberId_; } + set { + subscriberId_ = value; + } + } + /// Gets whether the subscriber_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSubscriberId { + get { return subscriberId_ != null; } + } + /// Clears the value of the subscriber_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSubscriberId() { + subscriberId_ = null; + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_state_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.PresenceState.Parser); + private readonly pbc::RepeatedField state_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField State { + get { return state_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StateChangedNotification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StateChangedNotification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SubscriberId, other.SubscriberId)) return false; + if(!state_.Equals(other.state_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSubscriberId) hash ^= SubscriberId.GetHashCode(); + hash ^= state_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasSubscriberId) { + output.WriteRawTag(10); + output.WriteMessage(SubscriberId); + } + state_.WriteTo(output, _repeated_state_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSubscriberId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubscriberId); + } + size += state_.CalculateSize(_repeated_state_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StateChangedNotification other) { + if (other == null) { + return; + } + if (other.HasSubscriberId) { + if (!HasSubscriberId) { + SubscriberId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + SubscriberId.MergeFrom(other.SubscriberId); + } + state_.Add(other.state_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasSubscriberId) { + SubscriberId = new global::Bgs.Protocol.Account.V1.AccountId(); + } + input.ReadMessage(SubscriberId); + break; + } + case 18: { + state_.AddEntriesFrom(input, _repeated_state_codec); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/PresenceService.cs b/Source/Framework/Proto/PresenceService.cs index 165760cc1..8a670e10d 100644 --- a/Source/Framework/Proto/PresenceService.cs +++ b/Source/Framework/Proto/PresenceService.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/presence_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/presence_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Presence.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Presence.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/presence_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/presence_service.proto public static partial class PresenceServiceReflection { #region Descriptor @@ -21,145 +22,223 @@ namespace Bgs.Protocol.Presence.V1 private static pbr::FileDescriptor descriptor; static PresenceServiceReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CihiZ3MvbG93L3BiL2NsaWVudC9wcmVzZW5jZV9zZXJ2aWNlLnByb3RvEhhi", "Z3MucHJvdG9jb2wucHJlc2VuY2UudjEaJGJncy9sb3cvcGIvY2xpZW50L2Vu", "dGl0eV90eXBlcy5wcm90bxomYmdzL2xvdy9wYi9jbGllbnQvcHJlc2VuY2Vf", "dHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90", - "byKkAQoQU3Vic2NyaWJlUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJn", - "cy5wcm90b2NvbC5FbnRpdHlJZBIpCgllbnRpdHlfaWQYAiABKAsyFi5iZ3Mu", - "cHJvdG9jb2wuRW50aXR5SWQSEQoJb2JqZWN0X2lkGAMgASgEEg8KB3Byb2dy", - "YW0YBCADKAcSFwoLZmxhZ19wdWJsaWMYBSABKAhCAhgBIkkKHFN1YnNjcmli", - "ZU5vdGlmaWNhdGlvblJlcXVlc3QSKQoJZW50aXR5X2lkGAEgASgLMhYuYmdz", - "LnByb3RvY29sLkVudGl0eUlkInwKElVuc3Vic2NyaWJlUmVxdWVzdBIoCghh", - "Z2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgllbnRp", - "dHlfaWQYAiABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSEQoJb2JqZWN0", - "X2lkGAMgASgEIroBCg1VcGRhdGVSZXF1ZXN0EikKCWVudGl0eV9pZBgBIAEo", - "CzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBJBCg9maWVsZF9vcGVyYXRpb24Y", - "AiADKAsyKC5iZ3MucHJvdG9jb2wucHJlc2VuY2UudjEuRmllbGRPcGVyYXRp", - "b24SEQoJbm9fY3JlYXRlGAMgASgIEigKCGFnZW50X2lkGAQgASgLMhYuYmdz", - "LnByb3RvY29sLkVudGl0eUlkIpQBCgxRdWVyeVJlcXVlc3QSKQoJZW50aXR5", - "X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEi8KA2tleRgCIAMo", - "CzIiLmJncy5wcm90b2NvbC5wcmVzZW5jZS52MS5GaWVsZEtleRIoCghhZ2Vu", - "dF9pZBgDIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCI/Cg1RdWVyeVJl", - "c3BvbnNlEi4KBWZpZWxkGAIgAygLMh8uYmdzLnByb3RvY29sLnByZXNlbmNl", - "LnYxLkZpZWxkIlgKEE93bmVyc2hpcFJlcXVlc3QSKQoJZW50aXR5X2lkGAEg", - "ASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEhkKEXJlbGVhc2Vfb3duZXJz", - "aGlwGAIgASgIMowECg9QcmVzZW5jZVNlcnZpY2USTQoJU3Vic2NyaWJlEiou", - "YmdzLnByb3RvY29sLnByZXNlbmNlLnYxLlN1YnNjcmliZVJlcXVlc3QaFC5i", - "Z3MucHJvdG9jb2wuTm9EYXRhElEKC1Vuc3Vic2NyaWJlEiwuYmdzLnByb3Rv", - "Y29sLnByZXNlbmNlLnYxLlVuc3Vic2NyaWJlUmVxdWVzdBoULmJncy5wcm90", - "b2NvbC5Ob0RhdGESRwoGVXBkYXRlEicuYmdzLnByb3RvY29sLnByZXNlbmNl", - "LnYxLlVwZGF0ZVJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhElgKBVF1", - "ZXJ5EiYuYmdzLnByb3RvY29sLnByZXNlbmNlLnYxLlF1ZXJ5UmVxdWVzdBon", - "LmJncy5wcm90b2NvbC5wcmVzZW5jZS52MS5RdWVyeVJlc3BvbnNlEk0KCU93", - "bmVyc2hpcBIqLmJncy5wcm90b2NvbC5wcmVzZW5jZS52MS5Pd25lcnNoaXBS", - "ZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YRJlChVTdWJzY3JpYmVOb3Rp", - "ZmljYXRpb24SNi5iZ3MucHJvdG9jb2wucHJlc2VuY2UudjEuU3Vic2NyaWJl", - "Tm90aWZpY2F0aW9uUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGFCBUgC", - "gAEAYgZwcm90bzM=")); + "bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVzc2Fn", + "ZV9vcHRpb25zLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0", + "ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjhiZ3MvbG93L3BiL2NsaWVu", + "dC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rfb3B0aW9ucy5wcm90bxo5Ymdz", + "L2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvc2VydmljZV9vcHRp", + "b25zLnByb3RvIukBChBTdWJzY3JpYmVSZXF1ZXN0EigKCGFnZW50X2lkGAEg", + "ASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEikKCWVudGl0eV9pZBgCIAIo", + "CzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIRCglvYmplY3RfaWQYAyACKAQS", + "JQoHcHJvZ3JhbRgEIAMoB0IUivkrBioECgIIAYr5KwYqBAoCEGQSRgoDa2V5", + "GAYgAygLMiIuYmdzLnByb3RvY29sLnByZXNlbmNlLnYxLkZpZWxkS2V5QhWK", + "+SsGKgQKAggBivkrByoFCgMQ9AMiSQocU3Vic2NyaWJlTm90aWZpY2F0aW9u", + "UmVxdWVzdBIpCgllbnRpdHlfaWQYASACKAsyFi5iZ3MucHJvdG9jb2wuRW50", + "aXR5SWQifAoSVW5zdWJzY3JpYmVSZXF1ZXN0EigKCGFnZW50X2lkGAEgASgL", + "MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEikKCWVudGl0eV9pZBgCIAIoCzIW", + "LmJncy5wcm90b2NvbC5FbnRpdHlJZBIRCglvYmplY3RfaWQYAyABKAQiugEK", + "DVVwZGF0ZVJlcXVlc3QSKQoJZW50aXR5X2lkGAEgAigLMhYuYmdzLnByb3Rv", + "Y29sLkVudGl0eUlkEkEKD2ZpZWxkX29wZXJhdGlvbhgCIAMoCzIoLmJncy5w", + "cm90b2NvbC5wcmVzZW5jZS52MS5GaWVsZE9wZXJhdGlvbhIRCglub19jcmVh", + "dGUYAyABKAgSKAoIYWdlbnRfaWQYBCABKAsyFi5iZ3MucHJvdG9jb2wuRW50", + "aXR5SWQilAEKDFF1ZXJ5UmVxdWVzdBIpCgllbnRpdHlfaWQYASACKAsyFi5i", + "Z3MucHJvdG9jb2wuRW50aXR5SWQSLwoDa2V5GAIgAygLMiIuYmdzLnByb3Rv", + "Y29sLnByZXNlbmNlLnYxLkZpZWxkS2V5EigKCGFnZW50X2lkGAMgASgLMhYu", + "YmdzLnByb3RvY29sLkVudGl0eUlkIj8KDVF1ZXJ5UmVzcG9uc2USLgoFZmll", + "bGQYAiADKAsyHy5iZ3MucHJvdG9jb2wucHJlc2VuY2UudjEuRmllbGQiWAoQ", + "T3duZXJzaGlwUmVxdWVzdBIpCgllbnRpdHlfaWQYASACKAsyFi5iZ3MucHJv", + "dG9jb2wuRW50aXR5SWQSGQoRcmVsZWFzZV9vd25lcnNoaXAYAiABKAgihQIK", + "FUJhdGNoU3Vic2NyaWJlUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJn", + "cy5wcm90b2NvbC5FbnRpdHlJZBJACgllbnRpdHlfaWQYAiADKAsyFi5iZ3Mu", + "cHJvdG9jb2wuRW50aXR5SWRCFYr5KwYqBAoCCAGK+SsHKgUKAxD6ARIlCgdw", + "cm9ncmFtGAMgAygHQhSK+SsGKgQKAggBivkrBioECgIQZBJGCgNrZXkYBCAD", + "KAsyIi5iZ3MucHJvdG9jb2wucHJlc2VuY2UudjEuRmllbGRLZXlCFYr5KwYq", + "BAoCCAGK+SsHKgUKAxD0AxIRCglvYmplY3RfaWQYBSABKAQiTAoPU3Vic2Ny", + "aWJlUmVzdWx0EikKCWVudGl0eV9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5F", + "bnRpdHlJZBIOCgZyZXN1bHQYAiABKA0iXQoWQmF0Y2hTdWJzY3JpYmVSZXNw", + "b25zZRJDChBzdWJzY3JpYmVfZmFpbGVkGAEgAygLMikuYmdzLnByb3RvY29s", + "LnByZXNlbmNlLnYxLlN1YnNjcmliZVJlc3VsdCKYAQoXQmF0Y2hVbnN1YnNj", + "cmliZVJlcXVlc3QSKAoIYWdlbnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wu", + "RW50aXR5SWQSQAoJZW50aXR5X2lkGAIgAygLMhYuYmdzLnByb3RvY29sLkVu", + "dGl0eUlkQhWK+SsGKgQKAggBivkrByoFCgMQ+gESEQoJb2JqZWN0X2lkGAMg", + "ASgEMuAGCg9QcmVzZW5jZVNlcnZpY2USVQoJU3Vic2NyaWJlEiouYmdzLnBy", + "b3RvY29sLnByZXNlbmNlLnYxLlN1YnNjcmliZVJlcXVlc3QaFC5iZ3MucHJv", + "dG9jb2wuTm9EYXRhIgaC+SsCCAESWQoLVW5zdWJzY3JpYmUSLC5iZ3MucHJv", + "dG9jb2wucHJlc2VuY2UudjEuVW5zdWJzY3JpYmVSZXF1ZXN0GhQuYmdzLnBy", + "b3RvY29sLk5vRGF0YSIGgvkrAggCEk8KBlVwZGF0ZRInLmJncy5wcm90b2Nv", + "bC5wcmVzZW5jZS52MS5VcGRhdGVSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5v", + "RGF0YSIGgvkrAggDEmAKBVF1ZXJ5EiYuYmdzLnByb3RvY29sLnByZXNlbmNl", + "LnYxLlF1ZXJ5UmVxdWVzdBonLmJncy5wcm90b2NvbC5wcmVzZW5jZS52MS5R", + "dWVyeVJlc3BvbnNlIgaC+SsCCAQSVQoJT3duZXJzaGlwEiouYmdzLnByb3Rv", + "Y29sLnByZXNlbmNlLnYxLk93bmVyc2hpcFJlcXVlc3QaFC5iZ3MucHJvdG9j", + "b2wuTm9EYXRhIgaC+SsCCAUSbQoVU3Vic2NyaWJlTm90aWZpY2F0aW9uEjYu", + "YmdzLnByb3RvY29sLnByZXNlbmNlLnYxLlN1YnNjcmliZU5vdGlmaWNhdGlv", + "blJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCAcSewoOQmF0", + "Y2hTdWJzY3JpYmUSLy5iZ3MucHJvdG9jb2wucHJlc2VuY2UudjEuQmF0Y2hT", + "dWJzY3JpYmVSZXF1ZXN0GjAuYmdzLnByb3RvY29sLnByZXNlbmNlLnYxLkJh", + "dGNoU3Vic2NyaWJlUmVzcG9uc2UiBoL5KwIICBJjChBCYXRjaFVuc3Vic2Ny", + "aWJlEjEuYmdzLnByb3RvY29sLnByZXNlbmNlLnYxLkJhdGNoVW5zdWJzY3Jp", + "YmVSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggJGkCC+Sso", + "CiZibmV0LnByb3RvY29sLnByZXNlbmNlLlByZXNlbmNlU2VydmljZYL5Kwoq", + "CHByZXNlbmNlivkrAhABQgOAAQA=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.SubscribeRequest), Bgs.Protocol.Presence.V1.SubscribeRequest.Parser, new[]{ "AgentId", "EntityId", "ObjectId", "Program", "FlagPublic" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.SubscribeNotificationRequest), Bgs.Protocol.Presence.V1.SubscribeNotificationRequest.Parser, new[]{ "EntityId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.UnsubscribeRequest), Bgs.Protocol.Presence.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "EntityId", "ObjectId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.UpdateRequest), Bgs.Protocol.Presence.V1.UpdateRequest.Parser, new[]{ "EntityId", "FieldOperation", "NoCreate", "AgentId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.QueryRequest), Bgs.Protocol.Presence.V1.QueryRequest.Parser, new[]{ "EntityId", "Key", "AgentId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.QueryResponse), Bgs.Protocol.Presence.V1.QueryResponse.Parser, new[]{ "Field" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.OwnershipRequest), Bgs.Protocol.Presence.V1.OwnershipRequest.Parser, new[]{ "EntityId", "ReleaseOwnership" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.SubscribeRequest), global::Bgs.Protocol.Presence.V1.SubscribeRequest.Parser, new[]{ "AgentId", "EntityId", "ObjectId", "Program", "Key" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.SubscribeNotificationRequest), global::Bgs.Protocol.Presence.V1.SubscribeNotificationRequest.Parser, new[]{ "EntityId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.UnsubscribeRequest), global::Bgs.Protocol.Presence.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "EntityId", "ObjectId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.UpdateRequest), global::Bgs.Protocol.Presence.V1.UpdateRequest.Parser, new[]{ "EntityId", "FieldOperation", "NoCreate", "AgentId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.QueryRequest), global::Bgs.Protocol.Presence.V1.QueryRequest.Parser, new[]{ "EntityId", "Key", "AgentId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.QueryResponse), global::Bgs.Protocol.Presence.V1.QueryResponse.Parser, new[]{ "Field" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.OwnershipRequest), global::Bgs.Protocol.Presence.V1.OwnershipRequest.Parser, new[]{ "EntityId", "ReleaseOwnership" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.BatchSubscribeRequest), global::Bgs.Protocol.Presence.V1.BatchSubscribeRequest.Parser, new[]{ "AgentId", "EntityId", "Program", "Key", "ObjectId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.SubscribeResult), global::Bgs.Protocol.Presence.V1.SubscribeResult.Parser, new[]{ "EntityId", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.BatchSubscribeResponse), global::Bgs.Protocol.Presence.V1.BatchSubscribeResponse.Parser, new[]{ "SubscribeFailed" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.BatchUnsubscribeRequest), global::Bgs.Protocol.Presence.V1.BatchUnsubscribeRequest.Parser, new[]{ "AgentId", "EntityId", "ObjectId" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class SubscribeRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest(SubscribeRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; objectId_ = other.objectId_; program_ = other.program_.Clone(); - flagPublic_ = other.flagPublic_; + key_ = other.key_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest Clone() { return new SubscribeRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 2; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId { + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { get { return entityId_; } set { entityId_ = value; } } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } /// Field number for the "object_id" field. public const int ObjectIdFieldNumber = 3; + private readonly static ulong ObjectIdDefaultValue = 0UL; + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ObjectId { - get { return objectId_; } + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } set { + _hasBits0 |= 1; objectId_ = value; } } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } /// Field number for the "program" field. public const int ProgramFieldNumber = 4; private static readonly pb::FieldCodec _repeated_program_codec - = pb::FieldCodec.ForFixed32(34); + = pb::FieldCodec.ForFixed32(37); private readonly pbc::RepeatedField program_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Program { get { return program_; } } - /// Field number for the "flag_public" field. - public const int FlagPublicFieldNumber = 5; - private bool flagPublic_; - [System.ObsoleteAttribute()] - public bool FlagPublic { - get { return flagPublic_; } - set { - flagPublic_ = value; - } + /// Field number for the "key" field. + public const int KeyFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_key_codec + = pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.Presence.V1.FieldKey.Parser); + private readonly pbc::RepeatedField key_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Key { + get { return key_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SubscribeRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SubscribeRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -171,106 +250,115 @@ namespace Bgs.Protocol.Presence.V1 if (!object.Equals(EntityId, other.EntityId)) return false; if (ObjectId != other.ObjectId) return false; if(!program_.Equals(other.program_)) return false; - if (FlagPublic != other.FlagPublic) return false; - return true; + if(!key_.Equals(other.key_)) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); hash ^= program_.GetHashCode(); - if (FlagPublic != false) hash ^= FlagPublic.GetHashCode(); + hash ^= key_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (entityId_ != null) { + if (HasEntityId) { output.WriteRawTag(18); output.WriteMessage(EntityId); } - if (ObjectId != 0UL) { + if (HasObjectId) { output.WriteRawTag(24); output.WriteUInt64(ObjectId); } program_.WriteTo(output, _repeated_program_codec); - if (FlagPublic != false) { - output.WriteRawTag(40); - output.WriteBool(FlagPublic); + key_.WriteTo(output, _repeated_key_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (entityId_ != null) { + if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } - if (ObjectId != 0UL) { + if (HasObjectId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); } size += program_.CalculateSize(_repeated_program_codec); - if (FlagPublic != false) { - size += 1 + 1; + size += key_.CalculateSize(_repeated_key_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SubscribeRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.entityId_ != null) { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } - if (other.ObjectId != 0UL) { + if (other.HasObjectId) { ObjectId = other.ObjectId; } program_.Add(other.program_); - if (other.FlagPublic != false) { - FlagPublic = other.FlagPublic; - } + key_.Add(other.key_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 18: { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(entityId_); + input.ReadMessage(EntityId); break; } case 24: { @@ -282,8 +370,8 @@ namespace Bgs.Protocol.Presence.V1 program_.AddEntriesFrom(input, _repeated_program_codec); break; } - case 40: { - FlagPublic = input.ReadBool(); + case 50: { + key_.AddEntriesFrom(input, _repeated_key_codec); break; } } @@ -292,47 +380,67 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class SubscribeNotificationRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeNotificationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeNotificationRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeNotificationRequest(SubscribeNotificationRequest other) : this() { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeNotificationRequest Clone() { return new SubscribeNotificationRequest(this); } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId { + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { get { return entityId_; } set { entityId_ = value; } } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SubscribeNotificationRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SubscribeNotificationRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -341,58 +449,74 @@ namespace Bgs.Protocol.Presence.V1 return true; } if (!object.Equals(EntityId, other.EntityId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (entityId_ != null) { + if (HasEntityId) { output.WriteRawTag(10); output.WriteMessage(EntityId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (entityId_ != null) { + if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SubscribeNotificationRequest other) { if (other == null) { return; } - if (other.entityId_ != null) { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(entityId_); + input.ReadMessage(EntityId); break; } } @@ -401,69 +525,116 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class UnsubscribeRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[2]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[2]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest(UnsubscribeRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; objectId_ = other.objectId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest Clone() { return new UnsubscribeRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 2; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId { + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { get { return entityId_; } set { entityId_ = value; } } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } /// Field number for the "object_id" field. public const int ObjectIdFieldNumber = 3; + private readonly static ulong ObjectIdDefaultValue = 0UL; + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ObjectId { - get { return objectId_; } + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } set { + _hasBits0 |= 1; objectId_ = value; } } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UnsubscribeRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UnsubscribeRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -474,90 +645,106 @@ namespace Bgs.Protocol.Presence.V1 if (!object.Equals(AgentId, other.AgentId)) return false; if (!object.Equals(EntityId, other.EntityId)) return false; if (ObjectId != other.ObjectId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (entityId_ != null) { + if (HasEntityId) { output.WriteRawTag(18); output.WriteMessage(EntityId); } - if (ObjectId != 0UL) { + if (HasObjectId) { output.WriteRawTag(24); output.WriteUInt64(ObjectId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (entityId_ != null) { + if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } - if (ObjectId != 0UL) { + if (HasObjectId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UnsubscribeRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.entityId_ != null) { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } - if (other.ObjectId != 0UL) { + if (other.HasObjectId) { ObjectId = other.ObjectId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 18: { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(entityId_); + input.ReadMessage(EntityId); break; } case 24: { @@ -570,79 +757,127 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class UpdateRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[3]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[3]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateRequest(UpdateRequest other) : this() { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; + _hasBits0 = other._hasBits0; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; fieldOperation_ = other.fieldOperation_.Clone(); noCreate_ = other.noCreate_; - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UpdateRequest Clone() { return new UpdateRequest(this); } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId { + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { get { return entityId_; } set { entityId_ = value; } } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } /// Field number for the "field_operation" field. public const int FieldOperationFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_fieldOperation_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Presence.V1.FieldOperation.Parser); - private readonly pbc::RepeatedField fieldOperation_ = new pbc::RepeatedField(); - public pbc::RepeatedField FieldOperation { + private static readonly pb::FieldCodec _repeated_fieldOperation_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.FieldOperation.Parser); + private readonly pbc::RepeatedField fieldOperation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField FieldOperation { get { return fieldOperation_; } } /// Field number for the "no_create" field. public const int NoCreateFieldNumber = 3; + private readonly static bool NoCreateDefaultValue = false; + private bool noCreate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool NoCreate { - get { return noCreate_; } + get { if ((_hasBits0 & 1) != 0) { return noCreate_; } else { return NoCreateDefaultValue; } } set { + _hasBits0 |= 1; noCreate_ = value; } } + /// Gets whether the "no_create" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNoCreate { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "no_create" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNoCreate() { + _hasBits0 &= ~1; + } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 4; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UpdateRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UpdateRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -654,87 +889,103 @@ namespace Bgs.Protocol.Presence.V1 if(!fieldOperation_.Equals(other.fieldOperation_)) return false; if (NoCreate != other.NoCreate) return false; if (!object.Equals(AgentId, other.AgentId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); hash ^= fieldOperation_.GetHashCode(); - if (NoCreate != false) hash ^= NoCreate.GetHashCode(); - if (agentId_ != null) hash ^= AgentId.GetHashCode(); + if (HasNoCreate) hash ^= NoCreate.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (entityId_ != null) { + if (HasEntityId) { output.WriteRawTag(10); output.WriteMessage(EntityId); } fieldOperation_.WriteTo(output, _repeated_fieldOperation_codec); - if (NoCreate != false) { + if (HasNoCreate) { output.WriteRawTag(24); output.WriteBool(NoCreate); } - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(34); output.WriteMessage(AgentId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (entityId_ != null) { + if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } size += fieldOperation_.CalculateSize(_repeated_fieldOperation_codec); - if (NoCreate != false) { + if (HasNoCreate) { size += 1 + 1; } - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UpdateRequest other) { if (other == null) { return; } - if (other.entityId_ != null) { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } fieldOperation_.Add(other.fieldOperation_); - if (other.NoCreate != false) { + if (other.HasNoCreate) { NoCreate = other.NoCreate; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(entityId_); + input.ReadMessage(EntityId); break; } case 18: { @@ -746,10 +997,10 @@ namespace Bgs.Protocol.Presence.V1 break; } case 34: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } } @@ -758,68 +1009,100 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class QueryRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[4]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[4]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public QueryRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public QueryRequest(QueryRequest other) : this() { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; key_ = other.key_.Clone(); - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public QueryRequest Clone() { return new QueryRequest(this); } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId { + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { get { return entityId_; } set { entityId_ = value; } } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } /// Field number for the "key" field. public const int KeyFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_key_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Presence.V1.FieldKey.Parser); - private readonly pbc::RepeatedField key_ = new pbc::RepeatedField(); - public pbc::RepeatedField Key { + private static readonly pb::FieldCodec _repeated_key_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.FieldKey.Parser); + private readonly pbc::RepeatedField key_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Key { get { return key_; } } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 3; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as QueryRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(QueryRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -830,76 +1113,92 @@ namespace Bgs.Protocol.Presence.V1 if (!object.Equals(EntityId, other.EntityId)) return false; if(!key_.Equals(other.key_)) return false; if (!object.Equals(AgentId, other.AgentId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); hash ^= key_.GetHashCode(); - if (agentId_ != null) hash ^= AgentId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (entityId_ != null) { + if (HasEntityId) { output.WriteRawTag(10); output.WriteMessage(EntityId); } key_.WriteTo(output, _repeated_key_codec); - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(26); output.WriteMessage(AgentId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (entityId_ != null) { + if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } size += key_.CalculateSize(_repeated_key_codec); - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(QueryRequest other) { if (other == null) { return; } - if (other.entityId_ != null) { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } key_.Add(other.key_); - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(entityId_); + input.ReadMessage(EntityId); break; } case 18: { @@ -907,10 +1206,10 @@ namespace Bgs.Protocol.Presence.V1 break; } case 26: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } } @@ -919,46 +1218,56 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class QueryResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[5]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[5]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public QueryResponse() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public QueryResponse(QueryResponse other) : this() { field_ = other.field_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public QueryResponse Clone() { return new QueryResponse(this); } /// Field number for the "field" field. public const int FieldFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_field_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Presence.V1.Field.Parser); - private readonly pbc::RepeatedField field_ = new pbc::RepeatedField(); - public pbc::RepeatedField Field { + private static readonly pb::FieldCodec _repeated_field_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.Field.Parser); + private readonly pbc::RepeatedField field_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Field { get { return field_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as QueryResponse); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(QueryResponse other) { if (ReferenceEquals(other, null)) { return false; @@ -967,42 +1276,58 @@ namespace Bgs.Protocol.Presence.V1 return true; } if(!field_.Equals(other.field_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= field_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { field_.WriteTo(output, _repeated_field_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += field_.CalculateSize(_repeated_field_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(QueryResponse other) { if (other == null) { return; } field_.Add(other.field_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 18: { field_.AddEntriesFrom(input, _repeated_field_codec); @@ -1014,58 +1339,94 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class OwnershipRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnershipRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[6]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[6]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public OwnershipRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public OwnershipRequest(OwnershipRequest other) : this() { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; + _hasBits0 = other._hasBits0; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; releaseOwnership_ = other.releaseOwnership_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public OwnershipRequest Clone() { return new OwnershipRequest(this); } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId { + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { get { return entityId_; } set { entityId_ = value; } } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } /// Field number for the "release_ownership" field. public const int ReleaseOwnershipFieldNumber = 2; + private readonly static bool ReleaseOwnershipDefaultValue = false; + private bool releaseOwnership_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool ReleaseOwnership { - get { return releaseOwnership_; } + get { if ((_hasBits0 & 1) != 0) { return releaseOwnership_; } else { return ReleaseOwnershipDefaultValue; } } set { + _hasBits0 |= 1; releaseOwnership_ = value; } } + /// Gets whether the "release_ownership" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReleaseOwnership { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "release_ownership" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReleaseOwnership() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as OwnershipRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(OwnershipRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -1075,69 +1436,85 @@ namespace Bgs.Protocol.Presence.V1 } if (!object.Equals(EntityId, other.EntityId)) return false; if (ReleaseOwnership != other.ReleaseOwnership) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - if (ReleaseOwnership != false) hash ^= ReleaseOwnership.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (HasReleaseOwnership) hash ^= ReleaseOwnership.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (entityId_ != null) { + if (HasEntityId) { output.WriteRawTag(10); output.WriteMessage(EntityId); } - if (ReleaseOwnership != false) { + if (HasReleaseOwnership) { output.WriteRawTag(16); output.WriteBool(ReleaseOwnership); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (entityId_ != null) { + if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } - if (ReleaseOwnership != false) { + if (HasReleaseOwnership) { size += 1 + 1; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(OwnershipRequest other) { if (other == null) { return; } - if (other.entityId_ != null) { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } - if (other.ReleaseOwnership != false) { + if (other.HasReleaseOwnership) { ReleaseOwnership = other.ReleaseOwnership; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(entityId_); + input.ReadMessage(EntityId); break; } case 16: { @@ -1150,6 +1527,772 @@ namespace Bgs.Protocol.Presence.V1 } + public sealed partial class BatchSubscribeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchSubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchSubscribeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchSubscribeRequest(BatchSubscribeRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + entityId_ = other.entityId_.Clone(); + program_ = other.program_.Clone(); + key_ = other.key_.Clone(); + objectId_ = other.objectId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchSubscribeRequest Clone() { + return new BatchSubscribeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_entityId_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.EntityId.Parser); + private readonly pbc::RepeatedField entityId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField EntityId { + get { return entityId_; } + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_program_codec + = pb::FieldCodec.ForFixed32(29); + private readonly pbc::RepeatedField program_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Program { + get { return program_; } + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_key_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Presence.V1.FieldKey.Parser); + private readonly pbc::RepeatedField key_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Key { + get { return key_; } + } + + /// Field number for the "object_id" field. + public const int ObjectIdFieldNumber = 5; + private readonly static ulong ObjectIdDefaultValue = 0UL; + + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ObjectId { + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } + set { + _hasBits0 |= 1; + objectId_ = value; + } + } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BatchSubscribeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BatchSubscribeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if(!entityId_.Equals(other.entityId_)) return false; + if(!program_.Equals(other.program_)) return false; + if(!key_.Equals(other.key_)) return false; + if (ObjectId != other.ObjectId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + hash ^= entityId_.GetHashCode(); + hash ^= program_.GetHashCode(); + hash ^= key_.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + entityId_.WriteTo(output, _repeated_entityId_codec); + program_.WriteTo(output, _repeated_program_codec); + key_.WriteTo(output, _repeated_key_codec); + if (HasObjectId) { + output.WriteRawTag(40); + output.WriteUInt64(ObjectId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + size += entityId_.CalculateSize(_repeated_entityId_codec); + size += program_.CalculateSize(_repeated_program_codec); + size += key_.CalculateSize(_repeated_key_codec); + if (HasObjectId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BatchSubscribeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + entityId_.Add(other.entityId_); + program_.Add(other.program_); + key_.Add(other.key_); + if (other.HasObjectId) { + ObjectId = other.ObjectId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + entityId_.AddEntriesFrom(input, _repeated_entityId_codec); + break; + } + case 26: + case 29: { + program_.AddEntriesFrom(input, _repeated_program_codec); + break; + } + case 34: { + key_.AddEntriesFrom(input, _repeated_key_codec); + break; + } + case 40: { + ObjectId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class SubscribeResult : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeResult()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResult(SubscribeResult other) : this() { + _hasBits0 = other._hasBits0; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; + result_ = other.result_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubscribeResult Clone() { + return new SubscribeResult(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private readonly static uint ResultDefaultValue = 0; + + private uint result_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Result { + get { if ((_hasBits0 & 1) != 0) { return result_; } else { return ResultDefaultValue; } } + set { + _hasBits0 |= 1; + result_ = value; + } + } + /// Gets whether the "result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasResult { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearResult() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubscribeResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubscribeResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EntityId, other.EntityId)) return false; + if (Result != other.Result) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (HasResult) hash ^= Result.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasEntityId) { + output.WriteRawTag(10); + output.WriteMessage(EntityId); + } + if (HasResult) { + output.WriteRawTag(16); + output.WriteUInt32(Result); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + if (HasResult) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Result); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubscribeResult other) { + if (other == null) { + return; + } + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + EntityId.MergeFrom(other.EntityId); + } + if (other.HasResult) { + Result = other.Result; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(EntityId); + break; + } + case 16: { + Result = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class BatchSubscribeResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchSubscribeResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchSubscribeResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchSubscribeResponse(BatchSubscribeResponse other) : this() { + subscribeFailed_ = other.subscribeFailed_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchSubscribeResponse Clone() { + return new BatchSubscribeResponse(this); + } + + /// Field number for the "subscribe_failed" field. + public const int SubscribeFailedFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_subscribeFailed_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Presence.V1.SubscribeResult.Parser); + private readonly pbc::RepeatedField subscribeFailed_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SubscribeFailed { + get { return subscribeFailed_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BatchSubscribeResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BatchSubscribeResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!subscribeFailed_.Equals(other.subscribeFailed_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= subscribeFailed_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + subscribeFailed_.WriteTo(output, _repeated_subscribeFailed_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += subscribeFailed_.CalculateSize(_repeated_subscribeFailed_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BatchSubscribeResponse other) { + if (other == null) { + return; + } + subscribeFailed_.Add(other.subscribeFailed_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + subscribeFailed_.AddEntriesFrom(input, _repeated_subscribeFailed_codec); + break; + } + } + } + } + + } + + public sealed partial class BatchUnsubscribeRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchUnsubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Presence.V1.PresenceServiceReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchUnsubscribeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchUnsubscribeRequest(BatchUnsubscribeRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + entityId_ = other.entityId_.Clone(); + objectId_ = other.objectId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BatchUnsubscribeRequest Clone() { + return new BatchUnsubscribeRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_entityId_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.EntityId.Parser); + private readonly pbc::RepeatedField entityId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField EntityId { + get { return entityId_; } + } + + /// Field number for the "object_id" field. + public const int ObjectIdFieldNumber = 3; + private readonly static ulong ObjectIdDefaultValue = 0UL; + + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ObjectId { + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } + set { + _hasBits0 |= 1; + objectId_ = value; + } + } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BatchUnsubscribeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BatchUnsubscribeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if(!entityId_.Equals(other.entityId_)) return false; + if (ObjectId != other.ObjectId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + hash ^= entityId_.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + entityId_.WriteTo(output, _repeated_entityId_codec); + if (HasObjectId) { + output.WriteRawTag(24); + output.WriteUInt64(ObjectId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + size += entityId_.CalculateSize(_repeated_entityId_codec); + if (HasObjectId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BatchUnsubscribeRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + AgentId.MergeFrom(other.AgentId); + } + entityId_.Add(other.entityId_); + if (other.HasObjectId) { + ObjectId = other.ObjectId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + entityId_.AddEntriesFrom(input, _repeated_entityId_codec); + break; + } + case 24: { + ObjectId = input.ReadUInt64(); + break; + } + } + } + } + + } + #endregion } diff --git a/Source/Framework/Proto/PresenceTypes.cs b/Source/Framework/Proto/PresenceTypes.cs index bce269cbb..1f7bac5ae 100644 --- a/Source/Framework/Proto/PresenceTypes.cs +++ b/Source/Framework/Proto/PresenceTypes.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/presence_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/presence_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Presence.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Presence.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/presence_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/presence_types.proto public static partial class PresenceTypesReflection { #region Descriptor @@ -21,104 +22,160 @@ namespace Bgs.Protocol.Presence.V1 private static pbr::FileDescriptor descriptor; static PresenceTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiZiZ3MvbG93L3BiL2NsaWVudC9wcmVzZW5jZV90eXBlcy5wcm90bxIYYmdz", "LnByb3RvY29sLnByZXNlbmNlLnYxGidiZ3MvbG93L3BiL2NsaWVudC9hdHRy", "aWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xpZW50L2VudGl0eV90", "eXBlcy5wcm90bxolYmdzL2xvdy9wYi9jbGllbnQvY2hhbm5lbF90eXBlcy5w", "cm90byJXChtSaWNoUHJlc2VuY2VMb2NhbGl6YXRpb25LZXkSDwoHcHJvZ3Jh", - "bRgBIAEoBxIOCgZzdHJlYW0YAiABKAcSFwoPbG9jYWxpemF0aW9uX2lkGAMg", - "ASgNIkwKCEZpZWxkS2V5Eg8KB3Byb2dyYW0YASABKA0SDQoFZ3JvdXAYAiAB", - "KA0SDQoFZmllbGQYAyABKA0SEQoJdW5pcXVlX2lkGAQgASgEIl4KBUZpZWxk", - "Ei8KA2tleRgBIAEoCzIiLmJncy5wcm90b2NvbC5wcmVzZW5jZS52MS5GaWVs", - "ZEtleRIkCgV2YWx1ZRgCIAEoCzIVLmJncy5wcm90b2NvbC5WYXJpYW50IrAB", - "Cg5GaWVsZE9wZXJhdGlvbhIuCgVmaWVsZBgBIAEoCzIfLmJncy5wcm90b2Nv", - "bC5wcmVzZW5jZS52MS5GaWVsZBJJCglvcGVyYXRpb24YAiABKA4yNi5iZ3Mu", - "cHJvdG9jb2wucHJlc2VuY2UudjEuRmllbGRPcGVyYXRpb24uT3BlcmF0aW9u", - "VHlwZSIjCg1PcGVyYXRpb25UeXBlEgcKA1NFVBAAEgkKBUNMRUFSEAEixwEK", + "bRgBIAIoBxIOCgZzdHJlYW0YAiACKAcSFwoPbG9jYWxpemF0aW9uX2lkGAMg", + "AigNIk8KCEZpZWxkS2V5Eg8KB3Byb2dyYW0YASACKA0SDQoFZ3JvdXAYAiAC", + "KA0SDQoFZmllbGQYAyACKA0SFAoJdW5pcXVlX2lkGAQgASgEOgEwIl4KBUZp", + "ZWxkEi8KA2tleRgBIAIoCzIiLmJncy5wcm90b2NvbC5wcmVzZW5jZS52MS5G", + "aWVsZEtleRIkCgV2YWx1ZRgCIAIoCzIVLmJncy5wcm90b2NvbC5WYXJpYW50", + "IrUBCg5GaWVsZE9wZXJhdGlvbhIuCgVmaWVsZBgBIAIoCzIfLmJncy5wcm90", + "b2NvbC5wcmVzZW5jZS52MS5GaWVsZBJOCglvcGVyYXRpb24YAiABKA4yNi5i", + "Z3MucHJvdG9jb2wucHJlc2VuY2UudjEuRmllbGRPcGVyYXRpb24uT3BlcmF0", + "aW9uVHlwZToDU0VUIiMKDU9wZXJhdGlvblR5cGUSBwoDU0VUEAASCQoFQ0xF", + "QVIQASJ9Cg1QcmVzZW5jZVN0YXRlEikKCWVudGl0eV9pZBgBIAEoCzIWLmJn", + "cy5wcm90b2NvbC5FbnRpdHlJZBJBCg9maWVsZF9vcGVyYXRpb24YAiADKAsy", + "KC5iZ3MucHJvdG9jb2wucHJlc2VuY2UudjEuRmllbGRPcGVyYXRpb24ilAEK", "DENoYW5uZWxTdGF0ZRIpCgllbnRpdHlfaWQYASABKAsyFi5iZ3MucHJvdG9j", "b2wuRW50aXR5SWQSQQoPZmllbGRfb3BlcmF0aW9uGAIgAygLMiguYmdzLnBy", - "b3RvY29sLnByZXNlbmNlLnYxLkZpZWxkT3BlcmF0aW9uEg8KB2hlYWxpbmcY", - "AyABKAgSOAoIcHJlc2VuY2UYZSABKAsyJi5iZ3MucHJvdG9jb2wucHJlc2Vu", - "Y2UudjEuQ2hhbm5lbFN0YXRlQgJIAmIGcHJvdG8z")); + "b3RvY29sLnByZXNlbmNlLnYxLkZpZWxkT3BlcmF0aW9uEhYKB2hlYWxpbmcY", + "AyABKAg6BWZhbHNl")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.RichPresenceLocalizationKey), Bgs.Protocol.Presence.V1.RichPresenceLocalizationKey.Parser, new[]{ "Program", "Stream", "LocalizationId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.FieldKey), Bgs.Protocol.Presence.V1.FieldKey.Parser, new[]{ "Program", "Group", "Field", "UniqueId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.Field), Bgs.Protocol.Presence.V1.Field.Parser, new[]{ "Key", "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.FieldOperation), Bgs.Protocol.Presence.V1.FieldOperation.Parser, new[]{ "Field", "Operation" }, null, new[]{ typeof(Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType) }, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.ChannelState), Bgs.Protocol.Presence.V1.ChannelState.Parser, new[]{ "EntityId", "FieldOperation", "Healing", "Presence" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.RichPresenceLocalizationKey), global::Bgs.Protocol.Presence.V1.RichPresenceLocalizationKey.Parser, new[]{ "Program", "Stream", "LocalizationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.FieldKey), global::Bgs.Protocol.Presence.V1.FieldKey.Parser, new[]{ "Program", "Group", "Field", "UniqueId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.Field), global::Bgs.Protocol.Presence.V1.Field.Parser, new[]{ "Key", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.FieldOperation), global::Bgs.Protocol.Presence.V1.FieldOperation.Parser, new[]{ "Field", "Operation" }, null, new[]{ typeof(global::Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.PresenceState), global::Bgs.Protocol.Presence.V1.PresenceState.Parser, new[]{ "EntityId", "FieldOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Presence.V1.ChannelState), global::Bgs.Protocol.Presence.V1.ChannelState.Parser, new[]{ "EntityId", "FieldOperation", "Healing" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class RichPresenceLocalizationKey : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RichPresenceLocalizationKey()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RichPresenceLocalizationKey() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RichPresenceLocalizationKey(RichPresenceLocalizationKey other) : this() { + _hasBits0 = other._hasBits0; program_ = other.program_; stream_ = other.stream_; localizationId_ = other.localizationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RichPresenceLocalizationKey Clone() { return new RichPresenceLocalizationKey(this); } /// Field number for the "program" field. public const int ProgramFieldNumber = 1; + private readonly static uint ProgramDefaultValue = 0; + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Program { - get { return program_; } + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } set { + _hasBits0 |= 1; program_ = value; } } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } /// Field number for the "stream" field. public const int StreamFieldNumber = 2; + private readonly static uint StreamDefaultValue = 0; + private uint stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Stream { - get { return stream_; } + get { if ((_hasBits0 & 2) != 0) { return stream_; } else { return StreamDefaultValue; } } set { + _hasBits0 |= 2; stream_ = value; } } + /// Gets whether the "stream" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStream { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStream() { + _hasBits0 &= ~2; + } /// Field number for the "localization_id" field. public const int LocalizationIdFieldNumber = 3; + private readonly static uint LocalizationIdDefaultValue = 0; + private uint localizationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint LocalizationId { - get { return localizationId_; } + get { if ((_hasBits0 & 4) != 0) { return localizationId_; } else { return LocalizationIdDefaultValue; } } set { + _hasBits0 |= 4; localizationId_ = value; } } + /// Gets whether the "localization_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLocalizationId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "localization_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLocalizationId() { + _hasBits0 &= ~4; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RichPresenceLocalizationKey); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RichPresenceLocalizationKey other) { if (ReferenceEquals(other, null)) { return false; @@ -129,71 +186,87 @@ namespace Bgs.Protocol.Presence.V1 if (Program != other.Program) return false; if (Stream != other.Stream) return false; if (LocalizationId != other.LocalizationId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (Program != 0) hash ^= Program.GetHashCode(); - if (Stream != 0) hash ^= Stream.GetHashCode(); - if (LocalizationId != 0) hash ^= LocalizationId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasStream) hash ^= Stream.GetHashCode(); + if (HasLocalizationId) hash ^= LocalizationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (Program != 0) { + if (HasProgram) { output.WriteRawTag(13); output.WriteFixed32(Program); } - if (Stream != 0) { + if (HasStream) { output.WriteRawTag(21); output.WriteFixed32(Stream); } - if (LocalizationId != 0) { + if (HasLocalizationId) { output.WriteRawTag(24); output.WriteUInt32(LocalizationId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (Program != 0) { + if (HasProgram) { size += 1 + 4; } - if (Stream != 0) { + if (HasStream) { size += 1 + 4; } - if (LocalizationId != 0) { + if (HasLocalizationId) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LocalizationId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RichPresenceLocalizationKey other) { if (other == null) { return; } - if (other.Program != 0) { + if (other.HasProgram) { Program = other.Program; } - if (other.Stream != 0) { + if (other.HasStream) { Stream = other.Stream; } - if (other.LocalizationId != 0) { + if (other.HasLocalizationId) { LocalizationId = other.LocalizationId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Program = input.ReadFixed32(); @@ -213,80 +286,147 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class FieldKey : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldKey()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldKey() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldKey(FieldKey other) : this() { + _hasBits0 = other._hasBits0; program_ = other.program_; group_ = other.group_; field_ = other.field_; uniqueId_ = other.uniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldKey Clone() { return new FieldKey(this); } /// Field number for the "program" field. public const int ProgramFieldNumber = 1; + private readonly static uint ProgramDefaultValue = 0; + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Program { - get { return program_; } + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } set { + _hasBits0 |= 1; program_ = value; } } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } /// Field number for the "group" field. public const int GroupFieldNumber = 2; + private readonly static uint GroupDefaultValue = 0; + private uint group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Group { - get { return group_; } + get { if ((_hasBits0 & 2) != 0) { return group_; } else { return GroupDefaultValue; } } set { + _hasBits0 |= 2; group_ = value; } } + /// Gets whether the "group" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGroup { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "group" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGroup() { + _hasBits0 &= ~2; + } /// Field number for the "field" field. public const int FieldFieldNumber = 3; + private readonly static uint FieldDefaultValue = 0; + private uint field_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Field { - get { return field_; } + get { if ((_hasBits0 & 4) != 0) { return field_; } else { return FieldDefaultValue; } } set { + _hasBits0 |= 4; field_ = value; } } + /// Gets whether the "field" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasField { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "field" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearField() { + _hasBits0 &= ~4; + } /// Field number for the "unique_id" field. public const int UniqueIdFieldNumber = 4; + private readonly static ulong UniqueIdDefaultValue = 0UL; + private ulong uniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong UniqueId { - get { return uniqueId_; } + get { if ((_hasBits0 & 8) != 0) { return uniqueId_; } else { return UniqueIdDefaultValue; } } set { + _hasBits0 |= 8; uniqueId_ = value; } } + /// Gets whether the "unique_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUniqueId { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "unique_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUniqueId() { + _hasBits0 &= ~8; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FieldKey); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FieldKey other) { if (ReferenceEquals(other, null)) { return false; @@ -298,82 +438,98 @@ namespace Bgs.Protocol.Presence.V1 if (Group != other.Group) return false; if (Field != other.Field) return false; if (UniqueId != other.UniqueId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (Program != 0) hash ^= Program.GetHashCode(); - if (Group != 0) hash ^= Group.GetHashCode(); - if (Field != 0) hash ^= Field.GetHashCode(); - if (UniqueId != 0UL) hash ^= UniqueId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasGroup) hash ^= Group.GetHashCode(); + if (HasField) hash ^= Field.GetHashCode(); + if (HasUniqueId) hash ^= UniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (Program != 0) { + if (HasProgram) { output.WriteRawTag(8); output.WriteUInt32(Program); } - if (Group != 0) { + if (HasGroup) { output.WriteRawTag(16); output.WriteUInt32(Group); } - if (Field != 0) { + if (HasField) { output.WriteRawTag(24); output.WriteUInt32(Field); } - if (UniqueId != 0UL) { + if (HasUniqueId) { output.WriteRawTag(32); output.WriteUInt64(UniqueId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (Program != 0) { + if (HasProgram) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program); } - if (Group != 0) { + if (HasGroup) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Group); } - if (Field != 0) { + if (HasField) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Field); } - if (UniqueId != 0UL) { + if (HasUniqueId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UniqueId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FieldKey other) { if (other == null) { return; } - if (other.Program != 0) { + if (other.HasProgram) { Program = other.Program; } - if (other.Group != 0) { + if (other.HasGroup) { Group = other.Group; } - if (other.Field != 0) { + if (other.HasField) { Field = other.Field; } - if (other.UniqueId != 0UL) { + if (other.HasUniqueId) { UniqueId = other.UniqueId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Program = input.ReadUInt32(); @@ -397,58 +553,89 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class Field : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Field()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[2]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[2]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Field() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Field(Field other) : this() { - Key = other.key_ != null ? other.Key.Clone() : null; - Value = other.value_ != null ? other.Value.Clone() : null; + key_ = other.HasKey ? other.key_.Clone() : null; + value_ = other.HasValue ? other.value_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Field Clone() { return new Field(this); } /// Field number for the "key" field. public const int KeyFieldNumber = 1; - private Bgs.Protocol.Presence.V1.FieldKey key_; - public Bgs.Protocol.Presence.V1.FieldKey Key { + private global::Bgs.Protocol.Presence.V1.FieldKey key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Presence.V1.FieldKey Key { get { return key_; } set { key_ = value; } } + /// Gets whether the key field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasKey { + get { return key_ != null; } + } + /// Clears the value of the key field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearKey() { + key_ = null; + } /// Field number for the "value" field. public const int ValueFieldNumber = 2; - private Bgs.Protocol.Variant value_; - public Bgs.Protocol.Variant Value { + private global::Bgs.Protocol.Variant value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Variant Value { get { return value_; } set { value_ = value; } } + /// Gets whether the value field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the value field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearValue() { + value_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Field); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Field other) { if (ReferenceEquals(other, null)) { return false; @@ -458,79 +645,95 @@ namespace Bgs.Protocol.Presence.V1 } if (!object.Equals(Key, other.Key)) return false; if (!object.Equals(Value, other.Value)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (key_ != null) hash ^= Key.GetHashCode(); - if (value_ != null) hash ^= Value.GetHashCode(); + if (HasKey) hash ^= Key.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (key_ != null) { + if (HasKey) { output.WriteRawTag(10); output.WriteMessage(Key); } - if (value_ != null) { + if (HasValue) { output.WriteRawTag(18); output.WriteMessage(Value); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (key_ != null) { + if (HasKey) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); } - if (value_ != null) { + if (HasValue) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Field other) { if (other == null) { return; } - if (other.key_ != null) { - if (key_ == null) { - key_ = new Bgs.Protocol.Presence.V1.FieldKey(); + if (other.HasKey) { + if (!HasKey) { + Key = new global::Bgs.Protocol.Presence.V1.FieldKey(); } Key.MergeFrom(other.Key); } - if (other.value_ != null) { - if (value_ == null) { - value_ = new Bgs.Protocol.Variant(); + if (other.HasValue) { + if (!HasValue) { + Value = new global::Bgs.Protocol.Variant(); } Value.MergeFrom(other.Value); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (key_ == null) { - key_ = new Bgs.Protocol.Presence.V1.FieldKey(); + if (!HasKey) { + Key = new global::Bgs.Protocol.Presence.V1.FieldKey(); } - input.ReadMessage(key_); + input.ReadMessage(Key); break; } case 18: { - if (value_ == null) { - value_ = new Bgs.Protocol.Variant(); + if (!HasValue) { + Value = new global::Bgs.Protocol.Variant(); } - input.ReadMessage(value_); + input.ReadMessage(Value); break; } } @@ -539,58 +742,94 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class FieldOperation : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldOperation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[3]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[3]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldOperation() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldOperation(FieldOperation other) : this() { - Field = other.field_ != null ? other.Field.Clone() : null; + _hasBits0 = other._hasBits0; + field_ = other.HasField ? other.field_.Clone() : null; operation_ = other.operation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldOperation Clone() { return new FieldOperation(this); } /// Field number for the "field" field. public const int FieldFieldNumber = 1; - private Bgs.Protocol.Presence.V1.Field field_; - public Bgs.Protocol.Presence.V1.Field Field { + private global::Bgs.Protocol.Presence.V1.Field field_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Presence.V1.Field Field { get { return field_; } set { field_ = value; } } + /// Gets whether the field field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasField { + get { return field_ != null; } + } + /// Clears the value of the field field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearField() { + field_ = null; + } /// Field number for the "operation" field. public const int OperationFieldNumber = 2; - private Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType operation_ = Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET; - public Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType Operation { - get { return operation_; } + private readonly static global::Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType OperationDefaultValue = global::Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.Set; + + private global::Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType operation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType Operation { + get { if ((_hasBits0 & 1) != 0) { return operation_; } else { return OperationDefaultValue; } } set { + _hasBits0 |= 1; operation_ = value; } } + /// Gets whether the "operation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasOperation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "operation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearOperation() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FieldOperation); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FieldOperation other) { if (ReferenceEquals(other, null)) { return false; @@ -600,73 +839,89 @@ namespace Bgs.Protocol.Presence.V1 } if (!object.Equals(Field, other.Field)) return false; if (Operation != other.Operation) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (field_ != null) hash ^= Field.GetHashCode(); - if (Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) hash ^= Operation.GetHashCode(); + if (HasField) hash ^= Field.GetHashCode(); + if (HasOperation) hash ^= Operation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (field_ != null) { + if (HasField) { output.WriteRawTag(10); output.WriteMessage(Field); } - if (Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) { + if (HasOperation) { output.WriteRawTag(16); output.WriteEnum((int) Operation); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (field_ != null) { + if (HasField) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Field); } - if (Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) { + if (HasOperation) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operation); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FieldOperation other) { if (other == null) { return; } - if (other.field_ != null) { - if (field_ == null) { - field_ = new Bgs.Protocol.Presence.V1.Field(); + if (other.HasField) { + if (!HasField) { + Field = new global::Bgs.Protocol.Presence.V1.Field(); } Field.MergeFrom(other.Field); } - if (other.Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) { + if (other.HasOperation) { Operation = other.Operation; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (field_ == null) { - field_ = new Bgs.Protocol.Presence.V1.Field(); + if (!HasField) { + Field = new global::Bgs.Protocol.Presence.V1.Field(); } - input.ReadMessage(field_); + input.ReadMessage(Field); break; } case 16: { - operation_ = (Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType) input.ReadEnum(); + Operation = (global::Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType) input.ReadEnum(); break; } } @@ -675,11 +930,11 @@ namespace Bgs.Protocol.Presence.V1 #region Nested types /// Container for nested types declared in the FieldOperation message type. - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public enum OperationType { - SET = 0, - CLEAR = 1, + [pbr::OriginalName("SET")] Set = 0, + [pbr::OriginalName("CLEAR")] Clear = 1, } } @@ -687,79 +942,270 @@ namespace Bgs.Protocol.Presence.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ChannelState : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelState()); - public static pb::MessageParser Parser { get { return _parser; } } + public sealed partial class PresenceState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PresenceState()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[4]; } + get { return global::Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[4]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PresenceState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PresenceState(PresenceState other) : this() { + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; + fieldOperation_ = other.fieldOperation_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PresenceState Clone() { + return new PresenceState(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 1; + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } + + /// Field number for the "field_operation" field. + public const int FieldOperationFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_fieldOperation_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.FieldOperation.Parser); + private readonly pbc::RepeatedField fieldOperation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField FieldOperation { + get { return fieldOperation_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as PresenceState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(PresenceState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EntityId, other.EntityId)) return false; + if(!fieldOperation_.Equals(other.fieldOperation_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasEntityId) hash ^= EntityId.GetHashCode(); + hash ^= fieldOperation_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasEntityId) { + output.WriteRawTag(10); + output.WriteMessage(EntityId); + } + fieldOperation_.WriteTo(output, _repeated_fieldOperation_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); + } + size += fieldOperation_.CalculateSize(_repeated_fieldOperation_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(PresenceState other) { + if (other == null) { + return; + } + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + EntityId.MergeFrom(other.EntityId); + } + fieldOperation_.Add(other.fieldOperation_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(EntityId); + break; + } + case 18: { + fieldOperation_.AddEntriesFrom(input, _repeated_fieldOperation_codec); + break; + } + } + } + } + + } + + public sealed partial class ChannelState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelState()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelState() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelState(ChannelState other) : this() { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; + _hasBits0 = other._hasBits0; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; fieldOperation_ = other.fieldOperation_.Clone(); healing_ = other.healing_; - Presence = other.presence_ != null ? other.Presence.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ChannelState Clone() { return new ChannelState(this); } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId { + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { get { return entityId_; } set { entityId_ = value; } } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } /// Field number for the "field_operation" field. public const int FieldOperationFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_fieldOperation_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Presence.V1.FieldOperation.Parser); - private readonly pbc::RepeatedField fieldOperation_ = new pbc::RepeatedField(); - public pbc::RepeatedField FieldOperation { + private static readonly pb::FieldCodec _repeated_fieldOperation_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.FieldOperation.Parser); + private readonly pbc::RepeatedField fieldOperation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField FieldOperation { get { return fieldOperation_; } } /// Field number for the "healing" field. public const int HealingFieldNumber = 3; + private readonly static bool HealingDefaultValue = false; + private bool healing_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Healing { - get { return healing_; } + get { if ((_hasBits0 & 1) != 0) { return healing_; } else { return HealingDefaultValue; } } set { + _hasBits0 |= 1; healing_ = value; } } - - /// Field number for the "presence" field. - public const int PresenceFieldNumber = 101; - private Bgs.Protocol.Presence.V1.ChannelState presence_; - public Bgs.Protocol.Presence.V1.ChannelState Presence { - get { return presence_; } - set { - presence_ = value; - } + /// Gets whether the "healing" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHealing { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "healing" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHealing() { + _hasBits0 &= ~1; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ChannelState); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ChannelState other) { if (ReferenceEquals(other, null)) { return false; @@ -770,88 +1216,89 @@ namespace Bgs.Protocol.Presence.V1 if (!object.Equals(EntityId, other.EntityId)) return false; if(!fieldOperation_.Equals(other.fieldOperation_)) return false; if (Healing != other.Healing) return false; - if (!object.Equals(Presence, other.Presence)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); hash ^= fieldOperation_.GetHashCode(); - if (Healing != false) hash ^= Healing.GetHashCode(); - if (presence_ != null) hash ^= Presence.GetHashCode(); + if (HasHealing) hash ^= Healing.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (entityId_ != null) { + if (HasEntityId) { output.WriteRawTag(10); output.WriteMessage(EntityId); } fieldOperation_.WriteTo(output, _repeated_fieldOperation_codec); - if (Healing != false) { + if (HasHealing) { output.WriteRawTag(24); output.WriteBool(Healing); } - if (presence_ != null) { - output.WriteRawTag(170, 6); - output.WriteMessage(Presence); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (entityId_ != null) { + if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } size += fieldOperation_.CalculateSize(_repeated_fieldOperation_codec); - if (Healing != false) { + if (HasHealing) { size += 1 + 1; } - if (presence_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Presence); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ChannelState other) { if (other == null) { return; } - if (other.entityId_ != null) { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } fieldOperation_.Add(other.fieldOperation_); - if (other.Healing != false) { + if (other.HasHealing) { Healing = other.Healing; } - if (other.presence_ != null) { - if (presence_ == null) { - presence_ = new Bgs.Protocol.Presence.V1.ChannelState(); - } - Presence.MergeFrom(other.Presence); - } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(entityId_); + input.ReadMessage(EntityId); break; } case 18: { @@ -862,13 +1309,6 @@ namespace Bgs.Protocol.Presence.V1 Healing = input.ReadBool(); break; } - case 810: { - if (presence_ == null) { - presence_ = new Bgs.Protocol.Presence.V1.ChannelState(); - } - input.ReadMessage(presence_); - break; - } } } } diff --git a/Source/Framework/Proto/ProfanityFilterConfig.cs b/Source/Framework/Proto/ProfanityFilterConfig.cs index 150bd45f6..f513dd1be 100644 --- a/Source/Framework/Proto/ProfanityFilterConfig.cs +++ b/Source/Framework/Proto/ProfanityFilterConfig.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/profanity_filter_config.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/profanity_filter_config.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Profanity.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Profanity.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/profanity_filter_config.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/profanity_filter_config.proto public static partial class ProfanityFilterConfigReflection { #region Descriptor @@ -21,76 +22,111 @@ namespace Bgs.Protocol.Profanity.V1 private static pbr::FileDescriptor descriptor; static ProfanityFilterConfigReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ci9iZ3MvbG93L3BiL2NsaWVudC9wcm9mYW5pdHlfZmlsdGVyX2NvbmZpZy5w", "cm90bxIZYmdzLnByb3RvY29sLnByb2Zhbml0eS52MSIpCgpXb3JkRmlsdGVy", - "EgwKBHR5cGUYASABKAkSDQoFcmVnZXgYAiABKAkiRQoLV29yZEZpbHRlcnMS", + "EgwKBHR5cGUYASACKAkSDQoFcmVnZXgYAiACKAkiRQoLV29yZEZpbHRlcnMS", "NgoHZmlsdGVycxgBIAMoCzIlLmJncy5wcm90b2NvbC5wcm9mYW5pdHkudjEu", - "V29yZEZpbHRlckICSAJiBnByb3RvMw==")); + "V29yZEZpbHRlcg==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Profanity.V1.WordFilter), Bgs.Protocol.Profanity.V1.WordFilter.Parser, new[]{ "Type", "Regex" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Profanity.V1.WordFilters), Bgs.Protocol.Profanity.V1.WordFilters.Parser, new[]{ "Filters" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Profanity.V1.WordFilter), global::Bgs.Protocol.Profanity.V1.WordFilter.Parser, new[]{ "Type", "Regex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Profanity.V1.WordFilters), global::Bgs.Protocol.Profanity.V1.WordFilters.Parser, new[]{ "Filters" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class WordFilter : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WordFilter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Profanity.V1.ProfanityFilterConfigReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.Profanity.V1.ProfanityFilterConfigReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WordFilter() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WordFilter(WordFilter other) : this() { type_ = other.type_; regex_ = other.regex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WordFilter Clone() { return new WordFilter(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private string type_ = ""; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Type { - get { return type_; } + get { return type_ ?? TypeDefaultValue; } set { type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } /// Field number for the "regex" field. public const int RegexFieldNumber = 2; - private string regex_ = ""; + private readonly static string RegexDefaultValue = ""; + + private string regex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Regex { - get { return regex_; } + get { return regex_ ?? RegexDefaultValue; } set { regex_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "regex" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRegex { + get { return regex_ != null; } + } + /// Clears the value of the "regex" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRegex() { + regex_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as WordFilter); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(WordFilter other) { if (ReferenceEquals(other, null)) { return false; @@ -100,60 +136,76 @@ namespace Bgs.Protocol.Profanity.V1 } if (Type != other.Type) return false; if (Regex != other.Regex) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (Type.Length != 0) hash ^= Type.GetHashCode(); - if (Regex.Length != 0) hash ^= Regex.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasRegex) hash ^= Regex.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (Type.Length != 0) { + if (HasType) { output.WriteRawTag(10); output.WriteString(Type); } - if (Regex.Length != 0) { + if (HasRegex) { output.WriteRawTag(18); output.WriteString(Regex); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (Type.Length != 0) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); } - if (Regex.Length != 0) { + if (HasRegex) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Regex); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(WordFilter other) { if (other == null) { return; } - if (other.Type.Length != 0) { + if (other.HasType) { Type = other.Type; } - if (other.Regex.Length != 0) { + if (other.HasRegex) { Regex = other.Regex; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Type = input.ReadString(); @@ -169,46 +221,56 @@ namespace Bgs.Protocol.Profanity.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class WordFilters : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WordFilters()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Profanity.V1.ProfanityFilterConfigReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.Profanity.V1.ProfanityFilterConfigReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WordFilters() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WordFilters(WordFilters other) : this() { filters_ = other.filters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WordFilters Clone() { return new WordFilters(this); } /// Field number for the "filters" field. public const int FiltersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_filters_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Profanity.V1.WordFilter.Parser); - private readonly pbc::RepeatedField filters_ = new pbc::RepeatedField(); - public pbc::RepeatedField Filters { + private static readonly pb::FieldCodec _repeated_filters_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Profanity.V1.WordFilter.Parser); + private readonly pbc::RepeatedField filters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Filters { get { return filters_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as WordFilters); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(WordFilters other) { if (ReferenceEquals(other, null)) { return false; @@ -217,42 +279,58 @@ namespace Bgs.Protocol.Profanity.V1 return true; } if(!filters_.Equals(other.filters_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= filters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { filters_.WriteTo(output, _repeated_filters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += filters_.CalculateSize(_repeated_filters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(WordFilters other) { if (other == null) { return; } filters_.Add(other.filters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { filters_.AddEntriesFrom(input, _repeated_filters_codec); diff --git a/Source/Framework/Proto/ReportService.cs b/Source/Framework/Proto/ReportService.cs index 72a4d07b7..b4ebb94d0 100644 --- a/Source/Framework/Proto/ReportService.cs +++ b/Source/Framework/Proto/ReportService.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/report_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/report_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Report.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Report.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/report_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/report_service.proto public static partial class ReportServiceReflection { #region Descriptor @@ -21,316 +22,128 @@ namespace Bgs.Protocol.Report.V1 private static pbr::FileDescriptor descriptor; static ReportServiceReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiZiZ3MvbG93L3BiL2NsaWVudC9yZXBvcnRfc2VydmljZS5wcm90bxIWYmdz", - "LnByb3RvY29sLnJlcG9ydC52MRonYmdzL2xvdy9wYi9jbGllbnQvYXR0cmli", - "dXRlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw", - "ZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90byLi", - "AQoGUmVwb3J0EhMKC3JlcG9ydF90eXBlGAEgASgJEioKCWF0dHJpYnV0ZRgC", - "IAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUSEgoKcmVwb3J0X3FvcxgD", - "IAEoBRIxChFyZXBvcnRpbmdfYWNjb3VudBgEIAEoCzIWLmJncy5wcm90b2Nv", - "bC5FbnRpdHlJZBI2ChZyZXBvcnRpbmdfZ2FtZV9hY2NvdW50GAUgASgLMhYu", - "YmdzLnByb3RvY29sLkVudGl0eUlkEhgKEHJlcG9ydF90aW1lc3RhbXAYBiAB", - "KAYiQwoRU2VuZFJlcG9ydFJlcXVlc3QSLgoGcmVwb3J0GAEgASgLMh4uYmdz", - "LnByb3RvY29sLnJlcG9ydC52MS5SZXBvcnQyXgoNUmVwb3J0U2VydmljZRJN", - "CgpTZW5kUmVwb3J0EikuYmdzLnByb3RvY29sLnJlcG9ydC52MS5TZW5kUmVw", - "b3J0UmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGFCBUgCgAEAYgZwcm90", - "bzM=")); + "LnByb3RvY29sLnJlcG9ydC52MRolYmdzL2xvdy9wYi9jbGllbnQvYWNjb3Vu", + "dF90eXBlcy5wcm90bxokYmdzL2xvdy9wYi9jbGllbnQvcmVwb3J0X3R5cGVz", + "LnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8aOWJn", + "cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0", + "aW9ucy5wcm90bxo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lv", + "bnMvZmllbGRfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xv", + "YmFsX2V4dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9sb3cv", + "cGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5w", + "cm90byJcChFTZW5kUmVwb3J0UmVxdWVzdBIuCgZyZXBvcnQYASACKAsyHi5i", + "Z3MucHJvdG9jb2wucmVwb3J0LnYxLlJlcG9ydBIPCgdwcm9ncmFtGAIgASgN", + "OgaC+SsCEAEipQEKE1N1Ym1pdFJlcG9ydFJlcXVlc3QSPAoIYWdlbnRfaWQY", + "ASABKAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEhh", + "bmRsZRI3CgtyZXBvcnRfdHlwZRgCIAEoCzIiLmJncy5wcm90b2NvbC5yZXBv", + "cnQudjEuUmVwb3J0VHlwZRIPCgdwcm9ncmFtGAMgASgNOgaC+SsCEAEy/QEK", + "DVJlcG9ydFNlcnZpY2USVQoKU2VuZFJlcG9ydBIpLmJncy5wcm90b2NvbC5y", + "ZXBvcnQudjEuU2VuZFJlcG9ydFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9E", + "YXRhIgaC+SsCCAESWQoMU3VibWl0UmVwb3J0EisuYmdzLnByb3RvY29sLnJl", + "cG9ydC52MS5TdWJtaXRSZXBvcnRSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5v", + "RGF0YSIGgvkrAggCGjqC+SskCiJibmV0LnByb3RvY29sLnJlcG9ydC5SZXBv", + "cnRTZXJ2aWNlgvkrCCoGcmVwb3J0ivkrAhABQgOAAQA=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Report.V1.Report), Bgs.Protocol.Report.V1.Report.Parser, new[]{ "ReportType", "Attribute", "ReportQos", "ReportingAccount", "ReportingGameAccount", "ReportTimestamp" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Report.V1.SendReportRequest), Bgs.Protocol.Report.V1.SendReportRequest.Parser, new[]{ "Report" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.SendReportRequest), global::Bgs.Protocol.Report.V1.SendReportRequest.Parser, new[]{ "Report", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.SubmitReportRequest), global::Bgs.Protocol.Report.V1.SubmitReportRequest.Parser, new[]{ "AgentId", "ReportType", "Program" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Report : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Report()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public Report() { - OnConstruction(); - } - - partial void OnConstruction(); - - public Report(Report other) : this() { - reportType_ = other.reportType_; - attribute_ = other.attribute_.Clone(); - reportQos_ = other.reportQos_; - ReportingAccount = other.reportingAccount_ != null ? other.ReportingAccount.Clone() : null; - ReportingGameAccount = other.reportingGameAccount_ != null ? other.ReportingGameAccount.Clone() : null; - reportTimestamp_ = other.reportTimestamp_; - } - - public Report Clone() { - return new Report(this); - } - - /// Field number for the "report_type" field. - public const int ReportTypeFieldNumber = 1; - private string reportType_ = ""; - public string ReportType { - get { return reportType_; } - set { - reportType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "attribute" field. - public const int AttributeFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { - get { return attribute_; } - } - - /// Field number for the "report_qos" field. - public const int ReportQosFieldNumber = 3; - private int reportQos_; - public int ReportQos { - get { return reportQos_; } - set { - reportQos_ = value; - } - } - - /// Field number for the "reporting_account" field. - public const int ReportingAccountFieldNumber = 4; - private Bgs.Protocol.EntityId reportingAccount_; - public Bgs.Protocol.EntityId ReportingAccount { - get { return reportingAccount_; } - set { - reportingAccount_ = value; - } - } - - /// Field number for the "reporting_game_account" field. - public const int ReportingGameAccountFieldNumber = 5; - private Bgs.Protocol.EntityId reportingGameAccount_; - public Bgs.Protocol.EntityId ReportingGameAccount { - get { return reportingGameAccount_; } - set { - reportingGameAccount_ = value; - } - } - - /// Field number for the "report_timestamp" field. - public const int ReportTimestampFieldNumber = 6; - private ulong reportTimestamp_; - public ulong ReportTimestamp { - get { return reportTimestamp_; } - set { - reportTimestamp_ = value; - } - } - - public override bool Equals(object other) { - return Equals(other as Report); - } - - public bool Equals(Report other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ReportType != other.ReportType) return false; - if(!attribute_.Equals(other.attribute_)) return false; - if (ReportQos != other.ReportQos) return false; - if (!object.Equals(ReportingAccount, other.ReportingAccount)) return false; - if (!object.Equals(ReportingGameAccount, other.ReportingGameAccount)) return false; - if (ReportTimestamp != other.ReportTimestamp) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - if (ReportType.Length != 0) hash ^= ReportType.GetHashCode(); - hash ^= attribute_.GetHashCode(); - if (ReportQos != 0) hash ^= ReportQos.GetHashCode(); - if (reportingAccount_ != null) hash ^= ReportingAccount.GetHashCode(); - if (reportingGameAccount_ != null) hash ^= ReportingGameAccount.GetHashCode(); - if (ReportTimestamp != 0UL) hash ^= ReportTimestamp.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - if (ReportType.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ReportType); - } - attribute_.WriteTo(output, _repeated_attribute_codec); - if (ReportQos != 0) { - output.WriteRawTag(24); - output.WriteInt32(ReportQos); - } - if (reportingAccount_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ReportingAccount); - } - if (reportingGameAccount_ != null) { - output.WriteRawTag(42); - output.WriteMessage(ReportingGameAccount); - } - if (ReportTimestamp != 0UL) { - output.WriteRawTag(49); - output.WriteFixed64(ReportTimestamp); - } - } - - public int CalculateSize() { - int size = 0; - if (ReportType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ReportType); - } - size += attribute_.CalculateSize(_repeated_attribute_codec); - if (ReportQos != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReportQos); - } - if (reportingAccount_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportingAccount); - } - if (reportingGameAccount_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportingGameAccount); - } - if (ReportTimestamp != 0UL) { - size += 1 + 8; - } - return size; - } - - public void MergeFrom(Report other) { - if (other == null) { - return; - } - if (other.ReportType.Length != 0) { - ReportType = other.ReportType; - } - attribute_.Add(other.attribute_); - if (other.ReportQos != 0) { - ReportQos = other.ReportQos; - } - if (other.reportingAccount_ != null) { - if (reportingAccount_ == null) { - reportingAccount_ = new Bgs.Protocol.EntityId(); - } - ReportingAccount.MergeFrom(other.ReportingAccount); - } - if (other.reportingGameAccount_ != null) { - if (reportingGameAccount_ == null) { - reportingGameAccount_ = new Bgs.Protocol.EntityId(); - } - ReportingGameAccount.MergeFrom(other.ReportingGameAccount); - } - if (other.ReportTimestamp != 0UL) { - ReportTimestamp = other.ReportTimestamp; - } - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - ReportType = input.ReadString(); - break; - } - case 18: { - attribute_.AddEntriesFrom(input, _repeated_attribute_codec); - break; - } - case 24: { - ReportQos = input.ReadInt32(); - break; - } - case 34: { - if (reportingAccount_ == null) { - reportingAccount_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(reportingAccount_); - break; - } - case 42: { - if (reportingGameAccount_ == null) { - reportingGameAccount_ = new Bgs.Protocol.EntityId(); - } - input.ReadMessage(reportingGameAccount_); - break; - } - case 49: { - ReportTimestamp = input.ReadFixed64(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class SendReportRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendReportRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendReportRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendReportRequest(SendReportRequest other) : this() { - Report = other.report_ != null ? other.Report.Clone() : null; + _hasBits0 = other._hasBits0; + report_ = other.HasReport ? other.report_.Clone() : null; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendReportRequest Clone() { return new SendReportRequest(this); } /// Field number for the "report" field. public const int ReportFieldNumber = 1; - private Bgs.Protocol.Report.V1.Report report_; - public Bgs.Protocol.Report.V1.Report Report { + private global::Bgs.Protocol.Report.V1.Report report_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.Report Report { get { return report_; } set { report_ = value; } } + /// Gets whether the report field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReport { + get { return report_ != null; } + } + /// Clears the value of the report field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReport() { + report_ = null; + } + /// Field number for the "program" field. + public const int ProgramFieldNumber = 2; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SendReportRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SendReportRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -339,58 +152,322 @@ namespace Bgs.Protocol.Report.V1 return true; } if (!object.Equals(Report, other.Report)) return false; - return true; + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (report_ != null) hash ^= Report.GetHashCode(); + if (HasReport) hash ^= Report.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (report_ != null) { + if (HasReport) { output.WriteRawTag(10); output.WriteMessage(Report); } + if (HasProgram) { + output.WriteRawTag(16); + output.WriteUInt32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (report_ != null) { + if (HasReport) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Report); } + if (HasProgram) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SendReportRequest other) { if (other == null) { return; } - if (other.report_ != null) { - if (report_ == null) { - report_ = new Bgs.Protocol.Report.V1.Report(); + if (other.HasReport) { + if (!HasReport) { + Report = new global::Bgs.Protocol.Report.V1.Report(); } Report.MergeFrom(other.Report); } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (report_ == null) { - report_ = new Bgs.Protocol.Report.V1.Report(); + if (!HasReport) { + Report = new global::Bgs.Protocol.Report.V1.Report(); } - input.ReadMessage(report_); + input.ReadMessage(Report); + break; + } + case 16: { + Program = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class SubmitReportRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubmitReportRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubmitReportRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubmitReportRequest(SubmitReportRequest other) : this() { + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + reportType_ = other.HasReportType ? other.reportType_.Clone() : null; + program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SubmitReportRequest Clone() { + return new SubmitReportRequest(this); + } + + /// Field number for the "agent_id" field. + public const int AgentIdFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle AgentId { + get { return agentId_; } + set { + agentId_ = value; + } + } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } + + /// Field number for the "report_type" field. + public const int ReportTypeFieldNumber = 2; + private global::Bgs.Protocol.Report.V1.ReportType reportType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.ReportType ReportType { + get { return reportType_; } + set { + reportType_ = value; + } + } + /// Gets whether the report_type field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReportType { + get { return reportType_ != null; } + } + /// Clears the value of the report_type field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReportType() { + reportType_ = null; + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 3; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SubmitReportRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SubmitReportRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AgentId, other.AgentId)) return false; + if (!object.Equals(ReportType, other.ReportType)) return false; + if (Program != other.Program) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasReportType) hash ^= ReportType.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAgentId) { + output.WriteRawTag(10); + output.WriteMessage(AgentId); + } + if (HasReportType) { + output.WriteRawTag(18); + output.WriteMessage(ReportType); + } + if (HasProgram) { + output.WriteRawTag(24); + output.WriteUInt32(Program); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAgentId) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); + } + if (HasReportType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportType); + } + if (HasProgram) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SubmitReportRequest other) { + if (other == null) { + return; + } + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + AgentId.MergeFrom(other.AgentId); + } + if (other.HasReportType) { + if (!HasReportType) { + ReportType = new global::Bgs.Protocol.Report.V1.ReportType(); + } + ReportType.MergeFrom(other.ReportType); + } + if (other.HasProgram) { + Program = other.Program; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(AgentId); + break; + } + case 18: { + if (!HasReportType) { + ReportType = new global::Bgs.Protocol.Report.V1.ReportType(); + } + input.ReadMessage(ReportType); + break; + } + case 24: { + Program = input.ReadUInt32(); break; } } diff --git a/Source/Framework/Proto/ReportTypes.cs b/Source/Framework/Proto/ReportTypes.cs new file mode 100644 index 000000000..217e55996 --- /dev/null +++ b/Source/Framework/Proto/ReportTypes.cs @@ -0,0 +1,2201 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/report_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Report.V1 { + + /// Holder for reflection information generated from bgs/low/pb/client/report_types.proto + public static partial class ReportTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/report_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReportTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRiZ3MvbG93L3BiL2NsaWVudC9yZXBvcnRfdHlwZXMucHJvdG8SFmJncy5w", + "cm90b2NvbC5yZXBvcnQudjEaJWJncy9sb3cvcGIvY2xpZW50L2FjY291bnRf", + "dHlwZXMucHJvdG8aJ2Jncy9sb3cvcGIvY2xpZW50L2F0dHJpYnV0ZV90eXBl", + "cy5wcm90bxokYmdzL2xvdy9wYi9jbGllbnQvZW50aXR5X3R5cGVzLnByb3Rv", + "GiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8aOWJncy9sb3cv", + "cGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0aW9ucy5w", + "cm90bxo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvZmll", + "bGRfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4", + "dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xp", + "ZW50L2dsb2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5wcm90byKj", + "BAoKUmVwb3J0VHlwZRIYChB1c2VyX2Rlc2NyaXB0aW9uGAEgASgJEj0KDWN1", + "c3RvbV9yZXBvcnQYCiABKAsyJC5iZ3MucHJvdG9jb2wucmVwb3J0LnYxLkN1", + "c3RvbVJlcG9ydEgAEjkKC3NwYW1fcmVwb3J0GAsgASgLMiIuYmdzLnByb3Rv", + "Y29sLnJlcG9ydC52MS5TcGFtUmVwb3J0SAASRQoRaGFyYXNzbWVudF9yZXBv", + "cnQYDCABKAsyKC5iZ3MucHJvdG9jb2wucmVwb3J0LnYxLkhhcmFzc21lbnRS", + "ZXBvcnRIABJPChdyZWFsX2xpZmVfdGhyZWF0X3JlcG9ydBgNIAEoCzIsLmJn", + "cy5wcm90b2NvbC5yZXBvcnQudjEuUmVhbExpZmVUaHJlYXRSZXBvcnRIABJf", + "Ch9pbmFwcHJvcHJpYXRlX2JhdHRsZV90YWdfcmVwb3J0GA4gASgLMjQuYmdz", + "LnByb3RvY29sLnJlcG9ydC52MS5JbmFwcHJvcHJpYXRlQmF0dGxlVGFnUmVw", + "b3J0SAASPwoOaGFja2luZ19yZXBvcnQYDyABKAsyJS5iZ3MucHJvdG9jb2wu", + "cmVwb3J0LnYxLkhhY2tpbmdSZXBvcnRIABI/Cg5ib3R0aW5nX3JlcG9ydBgQ", + "IAEoCzIlLmJncy5wcm90b2NvbC5yZXBvcnQudjEuQm90dGluZ1JlcG9ydEgA", + "QgYKBHR5cGUiYAoMQ3VzdG9tUmVwb3J0EgwKBHR5cGUYASABKAkSFgoKcHJv", + "Z3JhbV9pZBgCIAEoCUICGAESKgoJYXR0cmlidXRlGAMgAygLMhcuYmdzLnBy", + "b3RvY29sLkF0dHJpYnV0ZSLVAQoKU3BhbVJlcG9ydBI6CgZ0YXJnZXQYASAB", + "KAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEhhbmRs", + "ZRJECgZzb3VyY2UYAiABKA4yLS5iZ3MucHJvdG9jb2wucmVwb3J0LnYxLlNw", + "YW1SZXBvcnQuU3BhbVNvdXJjZToFT1RIRVIiRQoKU3BhbVNvdXJjZRIJCgVP", + "VEhFUhABEhUKEUZSSUVORF9JTlZJVEFUSU9OEAISCwoHV0hJU1BFUhADEggK", + "BENIQVQQBCJcChBIYXJhc3NtZW50UmVwb3J0EjoKBnRhcmdldBgBIAEoCzIq", + "LmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdhbWVBY2NvdW50SGFuZGxlEgwK", + "BHRleHQYAiABKAkiYAoUUmVhbExpZmVUaHJlYXRSZXBvcnQSOgoGdGFyZ2V0", + "GAEgASgLMiouYmdzLnByb3RvY29sLmFjY291bnQudjEuR2FtZUFjY291bnRI", + "YW5kbGUSDAoEdGV4dBgCIAEoCSJuChxJbmFwcHJvcHJpYXRlQmF0dGxlVGFn", + "UmVwb3J0EjoKBnRhcmdldBgBIAEoCzIqLmJncy5wcm90b2NvbC5hY2NvdW50", + "LnYxLkdhbWVBY2NvdW50SGFuZGxlEhIKCmJhdHRsZV90YWcYAiABKAkiSwoN", + "SGFja2luZ1JlcG9ydBI6CgZ0YXJnZXQYASABKAsyKi5iZ3MucHJvdG9jb2wu", + "YWNjb3VudC52MS5HYW1lQWNjb3VudEhhbmRsZSJLCg1Cb3R0aW5nUmVwb3J0", + "EjoKBnRhcmdldBgBIAEoCzIqLmJncy5wcm90b2NvbC5hY2NvdW50LnYxLkdh", + "bWVBY2NvdW50SGFuZGxlIuUBCgZSZXBvcnQSEwoLcmVwb3J0X3R5cGUYASAC", + "KAkSKgoJYXR0cmlidXRlGAIgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0", + "ZRIVCgpyZXBvcnRfcW9zGAMgASgFOgEwEjEKEXJlcG9ydGluZ19hY2NvdW50", + "GAQgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEjYKFnJlcG9ydGluZ19n", + "YW1lX2FjY291bnQYBSABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSGAoQ", + "cmVwb3J0X3RpbWVzdGFtcBgGIAEoBkIDgAEA")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.ReportType), global::Bgs.Protocol.Report.V1.ReportType.Parser, new[]{ "UserDescription", "CustomReport", "SpamReport", "HarassmentReport", "RealLifeThreatReport", "InappropriateBattleTagReport", "HackingReport", "BottingReport" }, new[]{ "Type" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.CustomReport), global::Bgs.Protocol.Report.V1.CustomReport.Parser, new[]{ "Type", "ProgramId", "Attribute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.SpamReport), global::Bgs.Protocol.Report.V1.SpamReport.Parser, new[]{ "Target", "Source" }, null, new[]{ typeof(global::Bgs.Protocol.Report.V1.SpamReport.Types.SpamSource) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.HarassmentReport), global::Bgs.Protocol.Report.V1.HarassmentReport.Parser, new[]{ "Target", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.RealLifeThreatReport), global::Bgs.Protocol.Report.V1.RealLifeThreatReport.Parser, new[]{ "Target", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.InappropriateBattleTagReport), global::Bgs.Protocol.Report.V1.InappropriateBattleTagReport.Parser, new[]{ "Target", "BattleTag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.HackingReport), global::Bgs.Protocol.Report.V1.HackingReport.Parser, new[]{ "Target" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.BottingReport), global::Bgs.Protocol.Report.V1.BottingReport.Parser, new[]{ "Target" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.Report), global::Bgs.Protocol.Report.V1.Report.Parser, new[]{ "ReportType", "Attribute", "ReportQos", "ReportingAccount", "ReportingGameAccount", "ReportTimestamp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ReportType : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReportType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReportType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReportType(ReportType other) : this() { + userDescription_ = other.userDescription_; + switch (other.TypeCase) { + case TypeOneofCase.CustomReport: + CustomReport = other.CustomReport.Clone(); + break; + case TypeOneofCase.SpamReport: + SpamReport = other.SpamReport.Clone(); + break; + case TypeOneofCase.HarassmentReport: + HarassmentReport = other.HarassmentReport.Clone(); + break; + case TypeOneofCase.RealLifeThreatReport: + RealLifeThreatReport = other.RealLifeThreatReport.Clone(); + break; + case TypeOneofCase.InappropriateBattleTagReport: + InappropriateBattleTagReport = other.InappropriateBattleTagReport.Clone(); + break; + case TypeOneofCase.HackingReport: + HackingReport = other.HackingReport.Clone(); + break; + case TypeOneofCase.BottingReport: + BottingReport = other.BottingReport.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ReportType Clone() { + return new ReportType(this); + } + + /// Field number for the "user_description" field. + public const int UserDescriptionFieldNumber = 1; + private readonly static string UserDescriptionDefaultValue = ""; + + private string userDescription_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string UserDescription { + get { return userDescription_ ?? UserDescriptionDefaultValue; } + set { + userDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "user_description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUserDescription { + get { return userDescription_ != null; } + } + /// Clears the value of the "user_description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUserDescription() { + userDescription_ = null; + } + + /// Field number for the "custom_report" field. + public const int CustomReportFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.CustomReport CustomReport { + get { return HasCustomReport ? (global::Bgs.Protocol.Report.V1.CustomReport) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.CustomReport; + } + } + /// Gets whether the "custom_report" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCustomReport { + get { return typeCase_ == TypeOneofCase.CustomReport; } + } + /// Clears the value of the oneof if it's currently set to "custom_report" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCustomReport() { + if (HasCustomReport) { + ClearType(); + } + } + + /// Field number for the "spam_report" field. + public const int SpamReportFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.SpamReport SpamReport { + get { return HasSpamReport ? (global::Bgs.Protocol.Report.V1.SpamReport) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.SpamReport; + } + } + /// Gets whether the "spam_report" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSpamReport { + get { return typeCase_ == TypeOneofCase.SpamReport; } + } + /// Clears the value of the oneof if it's currently set to "spam_report" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSpamReport() { + if (HasSpamReport) { + ClearType(); + } + } + + /// Field number for the "harassment_report" field. + public const int HarassmentReportFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.HarassmentReport HarassmentReport { + get { return HasHarassmentReport ? (global::Bgs.Protocol.Report.V1.HarassmentReport) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.HarassmentReport; + } + } + /// Gets whether the "harassment_report" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHarassmentReport { + get { return typeCase_ == TypeOneofCase.HarassmentReport; } + } + /// Clears the value of the oneof if it's currently set to "harassment_report" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHarassmentReport() { + if (HasHarassmentReport) { + ClearType(); + } + } + + /// Field number for the "real_life_threat_report" field. + public const int RealLifeThreatReportFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.RealLifeThreatReport RealLifeThreatReport { + get { return HasRealLifeThreatReport ? (global::Bgs.Protocol.Report.V1.RealLifeThreatReport) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.RealLifeThreatReport; + } + } + /// Gets whether the "real_life_threat_report" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRealLifeThreatReport { + get { return typeCase_ == TypeOneofCase.RealLifeThreatReport; } + } + /// Clears the value of the oneof if it's currently set to "real_life_threat_report" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRealLifeThreatReport() { + if (HasRealLifeThreatReport) { + ClearType(); + } + } + + /// Field number for the "inappropriate_battle_tag_report" field. + public const int InappropriateBattleTagReportFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.InappropriateBattleTagReport InappropriateBattleTagReport { + get { return HasInappropriateBattleTagReport ? (global::Bgs.Protocol.Report.V1.InappropriateBattleTagReport) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.InappropriateBattleTagReport; + } + } + /// Gets whether the "inappropriate_battle_tag_report" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInappropriateBattleTagReport { + get { return typeCase_ == TypeOneofCase.InappropriateBattleTagReport; } + } + /// Clears the value of the oneof if it's currently set to "inappropriate_battle_tag_report" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInappropriateBattleTagReport() { + if (HasInappropriateBattleTagReport) { + ClearType(); + } + } + + /// Field number for the "hacking_report" field. + public const int HackingReportFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.HackingReport HackingReport { + get { return HasHackingReport ? (global::Bgs.Protocol.Report.V1.HackingReport) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.HackingReport; + } + } + /// Gets whether the "hacking_report" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHackingReport { + get { return typeCase_ == TypeOneofCase.HackingReport; } + } + /// Clears the value of the oneof if it's currently set to "hacking_report" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHackingReport() { + if (HasHackingReport) { + ClearType(); + } + } + + /// Field number for the "botting_report" field. + public const int BottingReportFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.BottingReport BottingReport { + get { return HasBottingReport ? (global::Bgs.Protocol.Report.V1.BottingReport) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.BottingReport; + } + } + /// Gets whether the "botting_report" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBottingReport { + get { return typeCase_ == TypeOneofCase.BottingReport; } + } + /// Clears the value of the oneof if it's currently set to "botting_report" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBottingReport() { + if (HasBottingReport) { + ClearType(); + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + CustomReport = 10, + SpamReport = 11, + HarassmentReport = 12, + RealLifeThreatReport = 13, + InappropriateBattleTagReport = 14, + HackingReport = 15, + BottingReport = 16, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ReportType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ReportType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserDescription != other.UserDescription) return false; + if (!object.Equals(CustomReport, other.CustomReport)) return false; + if (!object.Equals(SpamReport, other.SpamReport)) return false; + if (!object.Equals(HarassmentReport, other.HarassmentReport)) return false; + if (!object.Equals(RealLifeThreatReport, other.RealLifeThreatReport)) return false; + if (!object.Equals(InappropriateBattleTagReport, other.InappropriateBattleTagReport)) return false; + if (!object.Equals(HackingReport, other.HackingReport)) return false; + if (!object.Equals(BottingReport, other.BottingReport)) return false; + if (TypeCase != other.TypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasUserDescription) hash ^= UserDescription.GetHashCode(); + if (HasCustomReport) hash ^= CustomReport.GetHashCode(); + if (HasSpamReport) hash ^= SpamReport.GetHashCode(); + if (HasHarassmentReport) hash ^= HarassmentReport.GetHashCode(); + if (HasRealLifeThreatReport) hash ^= RealLifeThreatReport.GetHashCode(); + if (HasInappropriateBattleTagReport) hash ^= InappropriateBattleTagReport.GetHashCode(); + if (HasHackingReport) hash ^= HackingReport.GetHashCode(); + if (HasBottingReport) hash ^= BottingReport.GetHashCode(); + hash ^= (int) typeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasUserDescription) { + output.WriteRawTag(10); + output.WriteString(UserDescription); + } + if (HasCustomReport) { + output.WriteRawTag(82); + output.WriteMessage(CustomReport); + } + if (HasSpamReport) { + output.WriteRawTag(90); + output.WriteMessage(SpamReport); + } + if (HasHarassmentReport) { + output.WriteRawTag(98); + output.WriteMessage(HarassmentReport); + } + if (HasRealLifeThreatReport) { + output.WriteRawTag(106); + output.WriteMessage(RealLifeThreatReport); + } + if (HasInappropriateBattleTagReport) { + output.WriteRawTag(114); + output.WriteMessage(InappropriateBattleTagReport); + } + if (HasHackingReport) { + output.WriteRawTag(122); + output.WriteMessage(HackingReport); + } + if (HasBottingReport) { + output.WriteRawTag(130, 1); + output.WriteMessage(BottingReport); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasUserDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserDescription); + } + if (HasCustomReport) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomReport); + } + if (HasSpamReport) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpamReport); + } + if (HasHarassmentReport) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HarassmentReport); + } + if (HasRealLifeThreatReport) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RealLifeThreatReport); + } + if (HasInappropriateBattleTagReport) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InappropriateBattleTagReport); + } + if (HasHackingReport) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HackingReport); + } + if (HasBottingReport) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BottingReport); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ReportType other) { + if (other == null) { + return; + } + if (other.HasUserDescription) { + UserDescription = other.UserDescription; + } + switch (other.TypeCase) { + case TypeOneofCase.CustomReport: + if (CustomReport == null) { + CustomReport = new global::Bgs.Protocol.Report.V1.CustomReport(); + } + CustomReport.MergeFrom(other.CustomReport); + break; + case TypeOneofCase.SpamReport: + if (SpamReport == null) { + SpamReport = new global::Bgs.Protocol.Report.V1.SpamReport(); + } + SpamReport.MergeFrom(other.SpamReport); + break; + case TypeOneofCase.HarassmentReport: + if (HarassmentReport == null) { + HarassmentReport = new global::Bgs.Protocol.Report.V1.HarassmentReport(); + } + HarassmentReport.MergeFrom(other.HarassmentReport); + break; + case TypeOneofCase.RealLifeThreatReport: + if (RealLifeThreatReport == null) { + RealLifeThreatReport = new global::Bgs.Protocol.Report.V1.RealLifeThreatReport(); + } + RealLifeThreatReport.MergeFrom(other.RealLifeThreatReport); + break; + case TypeOneofCase.InappropriateBattleTagReport: + if (InappropriateBattleTagReport == null) { + InappropriateBattleTagReport = new global::Bgs.Protocol.Report.V1.InappropriateBattleTagReport(); + } + InappropriateBattleTagReport.MergeFrom(other.InappropriateBattleTagReport); + break; + case TypeOneofCase.HackingReport: + if (HackingReport == null) { + HackingReport = new global::Bgs.Protocol.Report.V1.HackingReport(); + } + HackingReport.MergeFrom(other.HackingReport); + break; + case TypeOneofCase.BottingReport: + if (BottingReport == null) { + BottingReport = new global::Bgs.Protocol.Report.V1.BottingReport(); + } + BottingReport.MergeFrom(other.BottingReport); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + UserDescription = input.ReadString(); + break; + } + case 82: { + global::Bgs.Protocol.Report.V1.CustomReport subBuilder = new global::Bgs.Protocol.Report.V1.CustomReport(); + if (HasCustomReport) { + subBuilder.MergeFrom(CustomReport); + } + input.ReadMessage(subBuilder); + CustomReport = subBuilder; + break; + } + case 90: { + global::Bgs.Protocol.Report.V1.SpamReport subBuilder = new global::Bgs.Protocol.Report.V1.SpamReport(); + if (HasSpamReport) { + subBuilder.MergeFrom(SpamReport); + } + input.ReadMessage(subBuilder); + SpamReport = subBuilder; + break; + } + case 98: { + global::Bgs.Protocol.Report.V1.HarassmentReport subBuilder = new global::Bgs.Protocol.Report.V1.HarassmentReport(); + if (HasHarassmentReport) { + subBuilder.MergeFrom(HarassmentReport); + } + input.ReadMessage(subBuilder); + HarassmentReport = subBuilder; + break; + } + case 106: { + global::Bgs.Protocol.Report.V1.RealLifeThreatReport subBuilder = new global::Bgs.Protocol.Report.V1.RealLifeThreatReport(); + if (HasRealLifeThreatReport) { + subBuilder.MergeFrom(RealLifeThreatReport); + } + input.ReadMessage(subBuilder); + RealLifeThreatReport = subBuilder; + break; + } + case 114: { + global::Bgs.Protocol.Report.V1.InappropriateBattleTagReport subBuilder = new global::Bgs.Protocol.Report.V1.InappropriateBattleTagReport(); + if (HasInappropriateBattleTagReport) { + subBuilder.MergeFrom(InappropriateBattleTagReport); + } + input.ReadMessage(subBuilder); + InappropriateBattleTagReport = subBuilder; + break; + } + case 122: { + global::Bgs.Protocol.Report.V1.HackingReport subBuilder = new global::Bgs.Protocol.Report.V1.HackingReport(); + if (HasHackingReport) { + subBuilder.MergeFrom(HackingReport); + } + input.ReadMessage(subBuilder); + HackingReport = subBuilder; + break; + } + case 130: { + global::Bgs.Protocol.Report.V1.BottingReport subBuilder = new global::Bgs.Protocol.Report.V1.BottingReport(); + if (HasBottingReport) { + subBuilder.MergeFrom(BottingReport); + } + input.ReadMessage(subBuilder); + BottingReport = subBuilder; + break; + } + } + } + } + + } + + public sealed partial class CustomReport : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomReport()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CustomReport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CustomReport(CustomReport other) : this() { + type_ = other.type_; + programId_ = other.programId_; + attribute_ = other.attribute_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CustomReport Clone() { + return new CustomReport(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Type { + get { return type_ ?? TypeDefaultValue; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearType() { + type_ = null; + } + + /// Field number for the "program_id" field. + public const int ProgramIdFieldNumber = 2; + private readonly static string ProgramIdDefaultValue = ""; + + private string programId_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ProgramId { + get { return programId_ ?? ProgramIdDefaultValue; } + set { + programId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "program_id" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgramId { + get { return programId_ != null; } + } + /// Clears the value of the "program_id" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgramId() { + programId_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CustomReport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CustomReport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (ProgramId != other.ProgramId) return false; + if(!attribute_.Equals(other.attribute_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasProgramId) hash ^= ProgramId.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasType) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (HasProgramId) { + output.WriteRawTag(18); + output.WriteString(ProgramId); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (HasProgramId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProgramId); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CustomReport other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasProgramId) { + ProgramId = other.ProgramId; + } + attribute_.Add(other.attribute_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + ProgramId = input.ReadString(); + break; + } + case 26: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + } + } + } + + } + + public sealed partial class SpamReport : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpamReport()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpamReport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpamReport(SpamReport other) : this() { + _hasBits0 = other._hasBits0; + target_ = other.HasTarget ? other.target_.Clone() : null; + source_ = other.source_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpamReport Clone() { + return new SpamReport(this); + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle target_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle Target { + get { return target_; } + set { + target_ = value; + } + } + /// Gets whether the target field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTarget { + get { return target_ != null; } + } + /// Clears the value of the target field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTarget() { + target_ = null; + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 2; + private readonly static global::Bgs.Protocol.Report.V1.SpamReport.Types.SpamSource SourceDefaultValue = global::Bgs.Protocol.Report.V1.SpamReport.Types.SpamSource.Other; + + private global::Bgs.Protocol.Report.V1.SpamReport.Types.SpamSource source_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Report.V1.SpamReport.Types.SpamSource Source { + get { if ((_hasBits0 & 1) != 0) { return source_; } else { return SourceDefaultValue; } } + set { + _hasBits0 |= 1; + source_ = value; + } + } + /// Gets whether the "source" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSource { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "source" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSource() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SpamReport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SpamReport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Target, other.Target)) return false; + if (Source != other.Source) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTarget) hash ^= Target.GetHashCode(); + if (HasSource) hash ^= Source.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTarget) { + output.WriteRawTag(10); + output.WriteMessage(Target); + } + if (HasSource) { + output.WriteRawTag(16); + output.WriteEnum((int) Source); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target); + } + if (HasSource) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SpamReport other) { + if (other == null) { + return; + } + if (other.HasTarget) { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + Target.MergeFrom(other.Target); + } + if (other.HasSource) { + Source = other.Source; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(Target); + break; + } + case 16: { + Source = (global::Bgs.Protocol.Report.V1.SpamReport.Types.SpamSource) input.ReadEnum(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the SpamReport message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum SpamSource { + [pbr::OriginalName("OTHER")] Other = 1, + [pbr::OriginalName("FRIEND_INVITATION")] FriendInvitation = 2, + [pbr::OriginalName("WHISPER")] Whisper = 3, + [pbr::OriginalName("CHAT")] Chat = 4, + } + + } + #endregion + + } + + public sealed partial class HarassmentReport : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HarassmentReport()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HarassmentReport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HarassmentReport(HarassmentReport other) : this() { + target_ = other.HasTarget ? other.target_.Clone() : null; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HarassmentReport Clone() { + return new HarassmentReport(this); + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle target_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle Target { + get { return target_; } + set { + target_ = value; + } + } + /// Gets whether the target field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTarget { + get { return target_ != null; } + } + /// Clears the value of the target field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTarget() { + target_ = null; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as HarassmentReport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(HarassmentReport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Target, other.Target)) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTarget) hash ^= Target.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTarget) { + output.WriteRawTag(10); + output.WriteMessage(Target); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(HarassmentReport other) { + if (other == null) { + return; + } + if (other.HasTarget) { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + Target.MergeFrom(other.Target); + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(Target); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class RealLifeThreatReport : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RealLifeThreatReport()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RealLifeThreatReport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RealLifeThreatReport(RealLifeThreatReport other) : this() { + target_ = other.HasTarget ? other.target_.Clone() : null; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RealLifeThreatReport Clone() { + return new RealLifeThreatReport(this); + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle target_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle Target { + get { return target_; } + set { + target_ = value; + } + } + /// Gets whether the target field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTarget { + get { return target_ != null; } + } + /// Clears the value of the target field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTarget() { + target_ = null; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RealLifeThreatReport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RealLifeThreatReport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Target, other.Target)) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTarget) hash ^= Target.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTarget) { + output.WriteRawTag(10); + output.WriteMessage(Target); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RealLifeThreatReport other) { + if (other == null) { + return; + } + if (other.HasTarget) { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + Target.MergeFrom(other.Target); + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(Target); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class InappropriateBattleTagReport : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InappropriateBattleTagReport()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InappropriateBattleTagReport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InappropriateBattleTagReport(InappropriateBattleTagReport other) : this() { + target_ = other.HasTarget ? other.target_.Clone() : null; + battleTag_ = other.battleTag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InappropriateBattleTagReport Clone() { + return new InappropriateBattleTagReport(this); + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle target_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle Target { + get { return target_; } + set { + target_ = value; + } + } + /// Gets whether the target field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTarget { + get { return target_ != null; } + } + /// Clears the value of the target field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTarget() { + target_ = null; + } + + /// Field number for the "battle_tag" field. + public const int BattleTagFieldNumber = 2; + private readonly static string BattleTagDefaultValue = ""; + + private string battleTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BattleTag { + get { return battleTag_ ?? BattleTagDefaultValue; } + set { + battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "battle_tag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBattleTag { + get { return battleTag_ != null; } + } + /// Clears the value of the "battle_tag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBattleTag() { + battleTag_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as InappropriateBattleTagReport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(InappropriateBattleTagReport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Target, other.Target)) return false; + if (BattleTag != other.BattleTag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTarget) hash ^= Target.GetHashCode(); + if (HasBattleTag) hash ^= BattleTag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTarget) { + output.WriteRawTag(10); + output.WriteMessage(Target); + } + if (HasBattleTag) { + output.WriteRawTag(18); + output.WriteString(BattleTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target); + } + if (HasBattleTag) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(InappropriateBattleTagReport other) { + if (other == null) { + return; + } + if (other.HasTarget) { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + Target.MergeFrom(other.Target); + } + if (other.HasBattleTag) { + BattleTag = other.BattleTag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(Target); + break; + } + case 18: { + BattleTag = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class HackingReport : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HackingReport()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HackingReport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HackingReport(HackingReport other) : this() { + target_ = other.HasTarget ? other.target_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public HackingReport Clone() { + return new HackingReport(this); + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle target_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle Target { + get { return target_; } + set { + target_ = value; + } + } + /// Gets whether the target field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTarget { + get { return target_ != null; } + } + /// Clears the value of the target field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTarget() { + target_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as HackingReport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(HackingReport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Target, other.Target)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTarget) hash ^= Target.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTarget) { + output.WriteRawTag(10); + output.WriteMessage(Target); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(HackingReport other) { + if (other == null) { + return; + } + if (other.HasTarget) { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + Target.MergeFrom(other.Target); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(Target); + break; + } + } + } + } + + } + + public sealed partial class BottingReport : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BottingReport()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BottingReport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BottingReport(BottingReport other) : this() { + target_ = other.HasTarget ? other.target_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BottingReport Clone() { + return new BottingReport(this); + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 1; + private global::Bgs.Protocol.Account.V1.GameAccountHandle target_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.Account.V1.GameAccountHandle Target { + get { return target_; } + set { + target_ = value; + } + } + /// Gets whether the target field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTarget { + get { return target_ != null; } + } + /// Clears the value of the target field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTarget() { + target_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BottingReport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BottingReport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Target, other.Target)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasTarget) hash ^= Target.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasTarget) { + output.WriteRawTag(10); + output.WriteMessage(Target); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BottingReport other) { + if (other == null) { + return; + } + if (other.HasTarget) { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + Target.MergeFrom(other.Target); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasTarget) { + Target = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); + } + input.ReadMessage(Target); + break; + } + } + } + } + + } + + public sealed partial class Report : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Report()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Report() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Report(Report other) : this() { + _hasBits0 = other._hasBits0; + reportType_ = other.reportType_; + attribute_ = other.attribute_.Clone(); + reportQos_ = other.reportQos_; + reportingAccount_ = other.HasReportingAccount ? other.reportingAccount_.Clone() : null; + reportingGameAccount_ = other.HasReportingGameAccount ? other.reportingGameAccount_.Clone() : null; + reportTimestamp_ = other.reportTimestamp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Report Clone() { + return new Report(this); + } + + /// Field number for the "report_type" field. + public const int ReportTypeFieldNumber = 1; + private readonly static string ReportTypeDefaultValue = ""; + + private string reportType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ReportType { + get { return reportType_ ?? ReportTypeDefaultValue; } + set { + reportType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "report_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReportType { + get { return reportType_ != null; } + } + /// Clears the value of the "report_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReportType() { + reportType_ = null; + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attribute_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attribute { + get { return attribute_; } + } + + /// Field number for the "report_qos" field. + public const int ReportQosFieldNumber = 3; + private readonly static int ReportQosDefaultValue = 0; + + private int reportQos_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ReportQos { + get { if ((_hasBits0 & 1) != 0) { return reportQos_; } else { return ReportQosDefaultValue; } } + set { + _hasBits0 |= 1; + reportQos_ = value; + } + } + /// Gets whether the "report_qos" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReportQos { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "report_qos" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReportQos() { + _hasBits0 &= ~1; + } + + /// Field number for the "reporting_account" field. + public const int ReportingAccountFieldNumber = 4; + private global::Bgs.Protocol.EntityId reportingAccount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId ReportingAccount { + get { return reportingAccount_; } + set { + reportingAccount_ = value; + } + } + /// Gets whether the reporting_account field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReportingAccount { + get { return reportingAccount_ != null; } + } + /// Clears the value of the reporting_account field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReportingAccount() { + reportingAccount_ = null; + } + + /// Field number for the "reporting_game_account" field. + public const int ReportingGameAccountFieldNumber = 5; + private global::Bgs.Protocol.EntityId reportingGameAccount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId ReportingGameAccount { + get { return reportingGameAccount_; } + set { + reportingGameAccount_ = value; + } + } + /// Gets whether the reporting_game_account field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReportingGameAccount { + get { return reportingGameAccount_ != null; } + } + /// Clears the value of the reporting_game_account field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReportingGameAccount() { + reportingGameAccount_ = null; + } + + /// Field number for the "report_timestamp" field. + public const int ReportTimestampFieldNumber = 6; + private readonly static ulong ReportTimestampDefaultValue = 0UL; + + private ulong reportTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ReportTimestamp { + get { if ((_hasBits0 & 2) != 0) { return reportTimestamp_; } else { return ReportTimestampDefaultValue; } } + set { + _hasBits0 |= 2; + reportTimestamp_ = value; + } + } + /// Gets whether the "report_timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReportTimestamp { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "report_timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReportTimestamp() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Report); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Report other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ReportType != other.ReportType) return false; + if(!attribute_.Equals(other.attribute_)) return false; + if (ReportQos != other.ReportQos) return false; + if (!object.Equals(ReportingAccount, other.ReportingAccount)) return false; + if (!object.Equals(ReportingGameAccount, other.ReportingGameAccount)) return false; + if (ReportTimestamp != other.ReportTimestamp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasReportType) hash ^= ReportType.GetHashCode(); + hash ^= attribute_.GetHashCode(); + if (HasReportQos) hash ^= ReportQos.GetHashCode(); + if (HasReportingAccount) hash ^= ReportingAccount.GetHashCode(); + if (HasReportingGameAccount) hash ^= ReportingGameAccount.GetHashCode(); + if (HasReportTimestamp) hash ^= ReportTimestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasReportType) { + output.WriteRawTag(10); + output.WriteString(ReportType); + } + attribute_.WriteTo(output, _repeated_attribute_codec); + if (HasReportQos) { + output.WriteRawTag(24); + output.WriteInt32(ReportQos); + } + if (HasReportingAccount) { + output.WriteRawTag(34); + output.WriteMessage(ReportingAccount); + } + if (HasReportingGameAccount) { + output.WriteRawTag(42); + output.WriteMessage(ReportingGameAccount); + } + if (HasReportTimestamp) { + output.WriteRawTag(49); + output.WriteFixed64(ReportTimestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasReportType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReportType); + } + size += attribute_.CalculateSize(_repeated_attribute_codec); + if (HasReportQos) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReportQos); + } + if (HasReportingAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportingAccount); + } + if (HasReportingGameAccount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportingGameAccount); + } + if (HasReportTimestamp) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Report other) { + if (other == null) { + return; + } + if (other.HasReportType) { + ReportType = other.ReportType; + } + attribute_.Add(other.attribute_); + if (other.HasReportQos) { + ReportQos = other.ReportQos; + } + if (other.HasReportingAccount) { + if (!HasReportingAccount) { + ReportingAccount = new global::Bgs.Protocol.EntityId(); + } + ReportingAccount.MergeFrom(other.ReportingAccount); + } + if (other.HasReportingGameAccount) { + if (!HasReportingGameAccount) { + ReportingGameAccount = new global::Bgs.Protocol.EntityId(); + } + ReportingGameAccount.MergeFrom(other.ReportingGameAccount); + } + if (other.HasReportTimestamp) { + ReportTimestamp = other.ReportTimestamp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ReportType = input.ReadString(); + break; + } + case 18: { + attribute_.AddEntriesFrom(input, _repeated_attribute_codec); + break; + } + case 24: { + ReportQos = input.ReadInt32(); + break; + } + case 34: { + if (!HasReportingAccount) { + ReportingAccount = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(ReportingAccount); + break; + } + case 42: { + if (!HasReportingGameAccount) { + ReportingGameAccount = new global::Bgs.Protocol.EntityId(); + } + input.ReadMessage(ReportingGameAccount); + break; + } + case 49: { + ReportTimestamp = input.ReadFixed64(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Proto/ResourceService.cs b/Source/Framework/Proto/ResourceService.cs index 2f2fdc827..f9f3155d4 100644 --- a/Source/Framework/Proto/ResourceService.cs +++ b/Source/Framework/Proto/ResourceService.cs @@ -1,244 +1,282 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/resource_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/resource_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Resources.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Resources.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/resource_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class ResourceServiceReflection - { - - #region Descriptor - /// File descriptor for bgs/low/pb/client/resource_service.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ResourceServiceReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "CihiZ3MvbG93L3BiL2NsaWVudC9yZXNvdXJjZV9zZXJ2aWNlLnByb3RvEhli", - "Z3MucHJvdG9jb2wucmVzb3VyY2VzLnYxGixiZ3MvbG93L3BiL2NsaWVudC9j", - "b250ZW50X2hhbmRsZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQv", - "cnBjX3R5cGVzLnByb3RvIkgKFENvbnRlbnRIYW5kbGVSZXF1ZXN0Eg8KB3By", - "b2dyYW0YASABKAcSDgoGc3RyZWFtGAIgASgHEg8KB3ZlcnNpb24YAyABKAcy", - "dAoQUmVzb3VyY2VzU2VydmljZRJgChBHZXRDb250ZW50SGFuZGxlEi8uYmdz", - "LnByb3RvY29sLnJlc291cmNlcy52MS5Db250ZW50SGFuZGxlUmVxdWVzdBob", - "LmJncy5wcm90b2NvbC5Db250ZW50SGFuZGxlQgVIAoABAGIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.ContentHandleTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Resources.V1.ContentHandleRequest), Bgs.Protocol.Resources.V1.ContentHandleRequest.Parser, new[]{ "Program", "Stream", "Version" }, null, null, null) - })); - } - #endregion + /// Holder for reflection information generated from bgs/low/pb/client/resource_service.proto + public static partial class ResourceServiceReflection { + #region Descriptor + /// File descriptor for bgs/low/pb/client/resource_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ContentHandleRequest : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContentHandleRequest()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.Resources.V1.ResourceServiceReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ContentHandleRequest() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ContentHandleRequest(ContentHandleRequest other) : this() - { - program_ = other.program_; - stream_ = other.stream_; - version_ = other.version_; - } - - public ContentHandleRequest Clone() - { - return new ContentHandleRequest(this); - } - - /// Field number for the "program" field. - public const int ProgramFieldNumber = 1; - private uint program_; - public uint Program - { - get { return program_; } - set - { - program_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 2; - private uint stream_; - public uint Stream - { - get { return stream_; } - set - { - stream_ = value; - } - } - - /// Field number for the "version" field. - public const int VersionFieldNumber = 3; - private uint version_; - public uint Version - { - get { return version_; } - set - { - version_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ContentHandleRequest); - } - - public bool Equals(ContentHandleRequest other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Program != other.Program) return false; - if (Stream != other.Stream) return false; - if (Version != other.Version) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Program != 0) hash ^= Program.GetHashCode(); - if (Stream != 0) hash ^= Stream.GetHashCode(); - if (Version != 0) hash ^= Version.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Program != 0) - { - output.WriteRawTag(13); - output.WriteFixed32(Program); - } - if (Stream != 0) - { - output.WriteRawTag(21); - output.WriteFixed32(Stream); - } - if (Version != 0) - { - output.WriteRawTag(29); - output.WriteFixed32(Version); - } - } - - public int CalculateSize() - { - int size = 0; - if (Program != 0) - { - size += 1 + 4; - } - if (Stream != 0) - { - size += 1 + 4; - } - if (Version != 0) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(ContentHandleRequest other) - { - if (other == null) - { - return; - } - if (other.Program != 0) - { - Program = other.Program; - } - if (other.Stream != 0) - { - Stream = other.Stream; - } - if (other.Version != 0) - { - Version = other.Version; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 13: - { - Program = input.ReadFixed32(); - break; - } - case 21: - { - Stream = input.ReadFixed32(); - break; - } - case 29: - { - Version = input.ReadFixed32(); - break; - } - } - } - } + private static pbr::FileDescriptor descriptor; + static ResourceServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CihiZ3MvbG93L3BiL2NsaWVudC9yZXNvdXJjZV9zZXJ2aWNlLnByb3RvEhli", + "Z3MucHJvdG9jb2wucmVzb3VyY2VzLnYxGixiZ3MvbG93L3BiL2NsaWVudC9j", + "b250ZW50X2hhbmRsZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQv", + "cnBjX3R5cGVzLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0", + "ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIvY2xp", + "ZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOGJn", + "cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRp", + "b25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u", + "cy9zZXJ2aWNlX29wdGlvbnMucHJvdG8iXAoUQ29udGVudEhhbmRsZVJlcXVl", + "c3QSDwoHcHJvZ3JhbRgBIAIoBxIOCgZzdHJlYW0YAiACKAcSGwoHdmVyc2lv", + "bhgDIAEoBzoKMTcwMTcyOTYxOToGgvkrAhABMroBChBSZXNvdXJjZXNTZXJ2", + "aWNlEmgKEEdldENvbnRlbnRIYW5kbGUSLy5iZ3MucHJvdG9jb2wucmVzb3Vy", + "Y2VzLnYxLkNvbnRlbnRIYW5kbGVSZXF1ZXN0GhsuYmdzLnByb3RvY29sLkNv", + "bnRlbnRIYW5kbGUiBoL5KwIIARo8gvkrIwohYm5ldC5wcm90b2NvbC5yZXNv", + "dXJjZXMuUmVzb3VyY2VzgvkrCyoJcmVzb3VyY2VzivkrAhABQgOAAQA=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.ContentHandleTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Resources.V1.ContentHandleRequest), global::Bgs.Protocol.Resources.V1.ContentHandleRequest.Parser, new[]{ "Program", "Stream", "Version" }, null, null, null, null) + })); } - #endregion + } + #region Messages + public sealed partial class ContentHandleRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContentHandleRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.Resources.V1.ResourceServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContentHandleRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContentHandleRequest(ContentHandleRequest other) : this() { + _hasBits0 = other._hasBits0; + program_ = other.program_; + stream_ = other.stream_; + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ContentHandleRequest Clone() { + return new ContentHandleRequest(this); + } + + /// Field number for the "program" field. + public const int ProgramFieldNumber = 1; + private readonly static uint ProgramDefaultValue = 0; + + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Program { + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } + set { + _hasBits0 |= 1; + program_ = value; + } + } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 2; + private readonly static uint StreamDefaultValue = 0; + + private uint stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Stream { + get { if ((_hasBits0 & 2) != 0) { return stream_; } else { return StreamDefaultValue; } } + set { + _hasBits0 |= 2; + stream_ = value; + } + } + /// Gets whether the "stream" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStream { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStream() { + _hasBits0 &= ~2; + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 3; + private readonly static uint VersionDefaultValue = 1701729619; + + private uint version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Version { + get { if ((_hasBits0 & 4) != 0) { return version_; } else { return VersionDefaultValue; } } + set { + _hasBits0 |= 4; + version_ = value; + } + } + /// Gets whether the "version" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVersion { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "version" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVersion() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ContentHandleRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ContentHandleRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Program != other.Program) return false; + if (Stream != other.Stream) return false; + if (Version != other.Version) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasStream) hash ^= Stream.GetHashCode(); + if (HasVersion) hash ^= Version.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasProgram) { + output.WriteRawTag(13); + output.WriteFixed32(Program); + } + if (HasStream) { + output.WriteRawTag(21); + output.WriteFixed32(Stream); + } + if (HasVersion) { + output.WriteRawTag(29); + output.WriteFixed32(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasProgram) { + size += 1 + 4; + } + if (HasStream) { + size += 1 + 4; + } + if (HasVersion) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ContentHandleRequest other) { + if (other == null) { + return; + } + if (other.HasProgram) { + Program = other.Program; + } + if (other.HasStream) { + Stream = other.Stream; + } + if (other.HasVersion) { + Version = other.Version; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Program = input.ReadFixed32(); + break; + } + case 21: { + Stream = input.ReadFixed32(); + break; + } + case 29: { + Version = input.ReadFixed32(); + break; + } + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/RoleTypes.cs b/Source/Framework/Proto/RoleTypes.cs index 2a4ff91e2..a26137fcb 100644 --- a/Source/Framework/Proto/RoleTypes.cs +++ b/Source/Framework/Proto/RoleTypes.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/role_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/role_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/role_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/role_types.proto public static partial class RoleTypesReflection { #region Descriptor @@ -21,46 +22,56 @@ namespace Bgs.Protocol private static pbr::FileDescriptor descriptor; static RoleTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiJiZ3MvbG93L3BiL2NsaWVudC9yb2xlX3R5cGVzLnByb3RvEgxiZ3MucHJv", - "dG9jb2waJ2Jncy9sb3cvcGIvY2xpZW50L2F0dHJpYnV0ZV90eXBlcy5wcm90", - "byLuAQoEUm9sZRIKCgJpZBgBIAEoDRIMCgRuYW1lGAIgASgJEhEKCXByaXZp", - "bGVnZRgDIAMoCRIbCg9hc3NpZ25hYmxlX3JvbGUYBCADKA1CAhABEhAKCHJl", - "cXVpcmVkGAUgASgIEg4KBnVuaXF1ZRgGIAEoCBIXCg9yZWxlZ2F0aW9uX3Jv", - "bGUYByABKA0SKgoJYXR0cmlidXRlGAggAygLMhcuYmdzLnByb3RvY29sLkF0", - "dHJpYnV0ZRIZCg1raWNrYWJsZV9yb2xlGAkgAygNQgIQARIaCg5yZW1vdmFi", - "bGVfcm9sZRgKIAMoDUICEAFCAkgCYgZwcm90bzM=")); + "dG9jb2wiwgEKBFJvbGUSCgoCaWQYASACKA0SDAoEbmFtZRgCIAIoCRIRCglw", + "cml2aWxlZ2UYAyADKAkSGwoPYXNzaWduYWJsZV9yb2xlGAQgAygNQgIQARIQ", + "CghyZXF1aXJlZBgFIAEoCBIOCgZ1bmlxdWUYBiABKAgSFwoPcmVsZWdhdGlv", + "bl9yb2xlGAcgASgNEhkKDWtpY2thYmxlX3JvbGUYCSADKA1CAhABEhoKDnJl", + "bW92YWJsZV9yb2xlGAogAygNQgIQASLGAQoJUm9sZVN0YXRlEgwKBG5hbWUY", + "AiABKAkSGwoPYXNzaWduYWJsZV9yb2xlGAQgAygNQgIQARIQCghyZXF1aXJl", + "ZBgFIAEoCBIOCgZ1bmlxdWUYBiABKAgSFwoPcmVsZWdhdGlvbl9yb2xlGAcg", + "ASgNEhkKDWtpY2thYmxlX3JvbGUYCSADKA1CAhABEhoKDnJlbW92YWJsZV9y", + "b2xlGAogAygNQgIQARIcChBtZW50aW9uYWJsZV9yb2xlGAsgAygNQgIQAQ==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Role), Bgs.Protocol.Role.Parser, new[]{ "Id", "Name", "Privilege", "AssignableRole", "Required", "Unique", "RelegationRole", "Attribute", "KickableRole", "RemovableRole" }, null, null, null) + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Role), global::Bgs.Protocol.Role.Parser, new[]{ "Id", "Name", "Privilege", "AssignableRole", "Required", "Unique", "RelegationRole", "KickableRole", "RemovableRole" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.RoleState), global::Bgs.Protocol.RoleState.Parser, new[]{ "Name", "AssignableRole", "Required", "Unique", "RelegationRole", "KickableRole", "RemovableRole", "MentionableRole" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class Role : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Role()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.RoleTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.RoleTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Role() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Role(Role other) : this() { + _hasBits0 = other._hasBits0; id_ = other.id_; name_ = other.name_; privilege_ = other.privilege_.Clone(); @@ -68,40 +79,69 @@ namespace Bgs.Protocol required_ = other.required_; unique_ = other.unique_; relegationRole_ = other.relegationRole_; - attribute_ = other.attribute_.Clone(); kickableRole_ = other.kickableRole_.Clone(); removableRole_ = other.removableRole_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Role Clone() { return new Role(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Id { - get { return id_; } + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } set { + _hasBits0 |= 1; id_ = value; } } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } /// Field number for the "name" field. public const int NameFieldNumber = 2; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } /// Field number for the "privilege" field. public const int PrivilegeFieldNumber = 3; private static readonly pb::FieldCodec _repeated_privilege_codec = pb::FieldCodec.ForString(26); private readonly pbc::RepeatedField privilege_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Privilege { get { return privilege_; } } @@ -111,47 +151,81 @@ namespace Bgs.Protocol private static readonly pb::FieldCodec _repeated_assignableRole_codec = pb::FieldCodec.ForUInt32(34); private readonly pbc::RepeatedField assignableRole_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField AssignableRole { get { return assignableRole_; } } /// Field number for the "required" field. public const int RequiredFieldNumber = 5; + private readonly static bool RequiredDefaultValue = false; + private bool required_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Required { - get { return required_; } + get { if ((_hasBits0 & 2) != 0) { return required_; } else { return RequiredDefaultValue; } } set { + _hasBits0 |= 2; required_ = value; } } + /// Gets whether the "required" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRequired { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "required" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRequired() { + _hasBits0 &= ~2; + } /// Field number for the "unique" field. public const int UniqueFieldNumber = 6; + private readonly static bool UniqueDefaultValue = false; + private bool unique_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Unique { - get { return unique_; } + get { if ((_hasBits0 & 4) != 0) { return unique_; } else { return UniqueDefaultValue; } } set { + _hasBits0 |= 4; unique_ = value; } } + /// Gets whether the "unique" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnique { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "unique" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnique() { + _hasBits0 &= ~4; + } /// Field number for the "relegation_role" field. public const int RelegationRoleFieldNumber = 7; + private readonly static uint RelegationRoleDefaultValue = 0; + private uint relegationRole_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint RelegationRole { - get { return relegationRole_; } + get { if ((_hasBits0 & 8) != 0) { return relegationRole_; } else { return RelegationRoleDefaultValue; } } set { + _hasBits0 |= 8; relegationRole_ = value; } } - - /// Field number for the "attribute" field. - public const int AttributeFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_attribute_codec - = pb::FieldCodec.ForMessage(66, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attribute { - get { return attribute_; } + /// Gets whether the "relegation_role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRelegationRole { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "relegation_role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRelegationRole() { + _hasBits0 &= ~8; } /// Field number for the "kickable_role" field. @@ -159,6 +233,7 @@ namespace Bgs.Protocol private static readonly pb::FieldCodec _repeated_kickableRole_codec = pb::FieldCodec.ForUInt32(74); private readonly pbc::RepeatedField kickableRole_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField KickableRole { get { return kickableRole_; } } @@ -168,14 +243,17 @@ namespace Bgs.Protocol private static readonly pb::FieldCodec _repeated_removableRole_codec = pb::FieldCodec.ForUInt32(82); private readonly pbc::RepeatedField removableRole_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField RemovableRole { get { return removableRole_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Role); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Role other) { if (ReferenceEquals(other, null)) { return false; @@ -190,116 +268,127 @@ namespace Bgs.Protocol if (Required != other.Required) return false; if (Unique != other.Unique) return false; if (RelegationRole != other.RelegationRole) return false; - if(!attribute_.Equals(other.attribute_)) return false; if(!kickableRole_.Equals(other.kickableRole_)) return false; if(!removableRole_.Equals(other.removableRole_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (Id != 0) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); hash ^= privilege_.GetHashCode(); hash ^= assignableRole_.GetHashCode(); - if (Required != false) hash ^= Required.GetHashCode(); - if (Unique != false) hash ^= Unique.GetHashCode(); - if (RelegationRole != 0) hash ^= RelegationRole.GetHashCode(); - hash ^= attribute_.GetHashCode(); + if (HasRequired) hash ^= Required.GetHashCode(); + if (HasUnique) hash ^= Unique.GetHashCode(); + if (HasRelegationRole) hash ^= RelegationRole.GetHashCode(); hash ^= kickableRole_.GetHashCode(); hash ^= removableRole_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (Id != 0) { + if (HasId) { output.WriteRawTag(8); output.WriteUInt32(Id); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(18); output.WriteString(Name); } privilege_.WriteTo(output, _repeated_privilege_codec); assignableRole_.WriteTo(output, _repeated_assignableRole_codec); - if (Required != false) { + if (HasRequired) { output.WriteRawTag(40); output.WriteBool(Required); } - if (Unique != false) { + if (HasUnique) { output.WriteRawTag(48); output.WriteBool(Unique); } - if (RelegationRole != 0) { + if (HasRelegationRole) { output.WriteRawTag(56); output.WriteUInt32(RelegationRole); } - attribute_.WriteTo(output, _repeated_attribute_codec); kickableRole_.WriteTo(output, _repeated_kickableRole_codec); removableRole_.WriteTo(output, _repeated_removableRole_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (Id != 0) { + if (HasId) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); } - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } size += privilege_.CalculateSize(_repeated_privilege_codec); size += assignableRole_.CalculateSize(_repeated_assignableRole_codec); - if (Required != false) { + if (HasRequired) { size += 1 + 1; } - if (Unique != false) { + if (HasUnique) { size += 1 + 1; } - if (RelegationRole != 0) { + if (HasRelegationRole) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelegationRole); } - size += attribute_.CalculateSize(_repeated_attribute_codec); size += kickableRole_.CalculateSize(_repeated_kickableRole_codec); size += removableRole_.CalculateSize(_repeated_removableRole_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Role other) { if (other == null) { return; } - if (other.Id != 0) { + if (other.HasId) { Id = other.Id; } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } privilege_.Add(other.privilege_); assignableRole_.Add(other.assignableRole_); - if (other.Required != false) { + if (other.HasRequired) { Required = other.Required; } - if (other.Unique != false) { + if (other.HasUnique) { Unique = other.Unique; } - if (other.RelegationRole != 0) { + if (other.HasRelegationRole) { RelegationRole = other.RelegationRole; } - attribute_.Add(other.attribute_); kickableRole_.Add(other.kickableRole_); removableRole_.Add(other.removableRole_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadUInt32(); @@ -330,10 +419,6 @@ namespace Bgs.Protocol RelegationRole = input.ReadUInt32(); break; } - case 66: { - attribute_.AddEntriesFrom(input, _repeated_attribute_codec); - break; - } case 74: case 72: { kickableRole_.AddEntriesFrom(input, _repeated_kickableRole_codec); @@ -350,6 +435,356 @@ namespace Bgs.Protocol } + public sealed partial class RoleState : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleState()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RoleTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleState(RoleState other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + assignableRole_ = other.assignableRole_.Clone(); + required_ = other.required_; + unique_ = other.unique_; + relegationRole_ = other.relegationRole_; + kickableRole_ = other.kickableRole_.Clone(); + removableRole_ = other.removableRole_.Clone(); + mentionableRole_ = other.mentionableRole_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public RoleState Clone() { + return new RoleState(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "assignable_role" field. + public const int AssignableRoleFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_assignableRole_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField assignableRole_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField AssignableRole { + get { return assignableRole_; } + } + + /// Field number for the "required" field. + public const int RequiredFieldNumber = 5; + private readonly static bool RequiredDefaultValue = false; + + private bool required_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Required { + get { if ((_hasBits0 & 1) != 0) { return required_; } else { return RequiredDefaultValue; } } + set { + _hasBits0 |= 1; + required_ = value; + } + } + /// Gets whether the "required" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRequired { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "required" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRequired() { + _hasBits0 &= ~1; + } + + /// Field number for the "unique" field. + public const int UniqueFieldNumber = 6; + private readonly static bool UniqueDefaultValue = false; + + private bool unique_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Unique { + get { if ((_hasBits0 & 2) != 0) { return unique_; } else { return UniqueDefaultValue; } } + set { + _hasBits0 |= 2; + unique_ = value; + } + } + /// Gets whether the "unique" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnique { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unique" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnique() { + _hasBits0 &= ~2; + } + + /// Field number for the "relegation_role" field. + public const int RelegationRoleFieldNumber = 7; + private readonly static uint RelegationRoleDefaultValue = 0; + + private uint relegationRole_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint RelegationRole { + get { if ((_hasBits0 & 4) != 0) { return relegationRole_; } else { return RelegationRoleDefaultValue; } } + set { + _hasBits0 |= 4; + relegationRole_ = value; + } + } + /// Gets whether the "relegation_role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRelegationRole { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "relegation_role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRelegationRole() { + _hasBits0 &= ~4; + } + + /// Field number for the "kickable_role" field. + public const int KickableRoleFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_kickableRole_codec + = pb::FieldCodec.ForUInt32(74); + private readonly pbc::RepeatedField kickableRole_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField KickableRole { + get { return kickableRole_; } + } + + /// Field number for the "removable_role" field. + public const int RemovableRoleFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_removableRole_codec + = pb::FieldCodec.ForUInt32(82); + private readonly pbc::RepeatedField removableRole_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField RemovableRole { + get { return removableRole_; } + } + + /// Field number for the "mentionable_role" field. + public const int MentionableRoleFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_mentionableRole_codec + = pb::FieldCodec.ForUInt32(90); + private readonly pbc::RepeatedField mentionableRole_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField MentionableRole { + get { return mentionableRole_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as RoleState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(RoleState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!assignableRole_.Equals(other.assignableRole_)) return false; + if (Required != other.Required) return false; + if (Unique != other.Unique) return false; + if (RelegationRole != other.RelegationRole) return false; + if(!kickableRole_.Equals(other.kickableRole_)) return false; + if(!removableRole_.Equals(other.removableRole_)) return false; + if(!mentionableRole_.Equals(other.mentionableRole_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + hash ^= assignableRole_.GetHashCode(); + if (HasRequired) hash ^= Required.GetHashCode(); + if (HasUnique) hash ^= Unique.GetHashCode(); + if (HasRelegationRole) hash ^= RelegationRole.GetHashCode(); + hash ^= kickableRole_.GetHashCode(); + hash ^= removableRole_.GetHashCode(); + hash ^= mentionableRole_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + assignableRole_.WriteTo(output, _repeated_assignableRole_codec); + if (HasRequired) { + output.WriteRawTag(40); + output.WriteBool(Required); + } + if (HasUnique) { + output.WriteRawTag(48); + output.WriteBool(Unique); + } + if (HasRelegationRole) { + output.WriteRawTag(56); + output.WriteUInt32(RelegationRole); + } + kickableRole_.WriteTo(output, _repeated_kickableRole_codec); + removableRole_.WriteTo(output, _repeated_removableRole_codec); + mentionableRole_.WriteTo(output, _repeated_mentionableRole_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += assignableRole_.CalculateSize(_repeated_assignableRole_codec); + if (HasRequired) { + size += 1 + 1; + } + if (HasUnique) { + size += 1 + 1; + } + if (HasRelegationRole) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelegationRole); + } + size += kickableRole_.CalculateSize(_repeated_kickableRole_codec); + size += removableRole_.CalculateSize(_repeated_removableRole_codec); + size += mentionableRole_.CalculateSize(_repeated_mentionableRole_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(RoleState other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + assignableRole_.Add(other.assignableRole_); + if (other.HasRequired) { + Required = other.Required; + } + if (other.HasUnique) { + Unique = other.Unique; + } + if (other.HasRelegationRole) { + RelegationRole = other.RelegationRole; + } + kickableRole_.Add(other.kickableRole_); + removableRole_.Add(other.removableRole_); + mentionableRole_.Add(other.mentionableRole_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + Name = input.ReadString(); + break; + } + case 34: + case 32: { + assignableRole_.AddEntriesFrom(input, _repeated_assignableRole_codec); + break; + } + case 40: { + Required = input.ReadBool(); + break; + } + case 48: { + Unique = input.ReadBool(); + break; + } + case 56: { + RelegationRole = input.ReadUInt32(); + break; + } + case 74: + case 72: { + kickableRole_.AddEntriesFrom(input, _repeated_kickableRole_codec); + break; + } + case 82: + case 80: { + removableRole_.AddEntriesFrom(input, _repeated_removableRole_codec); + break; + } + case 90: + case 88: { + mentionableRole_.AddEntriesFrom(input, _repeated_mentionableRole_codec); + break; + } + } + } + } + + } + #endregion } diff --git a/Source/Framework/Proto/RpcConfig.cs b/Source/Framework/Proto/RpcConfig.cs index 484c784a4..e63348eb1 100644 --- a/Source/Framework/Proto/RpcConfig.cs +++ b/Source/Framework/Proto/RpcConfig.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/rpc_config.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/rpc_config.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.Config -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.Config { - /// Holder for reflection information generated from bgs/low/pb/client/rpc_config.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/rpc_config.proto public static partial class RpcConfigReflection { #region Descriptor @@ -21,59 +22,66 @@ namespace Bgs.Protocol.Config private static pbr::FileDescriptor descriptor; static RpcConfigReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiJiZ3MvbG93L3BiL2NsaWVudC9ycGNfY29uZmlnLnByb3RvEhNiZ3MucHJv", - "dG9jb2wuY29uZmlnIvwCCg9SUENNZXRob2RDb25maWcSGAoMc2VydmljZV9u", - "YW1lGAEgASgJQgIYARIXCgttZXRob2RfbmFtZRgCIAEoCUICGAESFwoPZml4", - "ZWRfY2FsbF9jb3N0GAMgASgNEhkKEWZpeGVkX3BhY2tldF9zaXplGAQgASgN", - "EhsKE3ZhcmlhYmxlX211bHRpcGxpZXIYBSABKAISEgoKbXVsdGlwbGllchgG", - "IAEoAhIYChByYXRlX2xpbWl0X2NvdW50GAcgASgNEhoKEnJhdGVfbGltaXRf", - "c2Vjb25kcxgIIAEoDRIXCg9tYXhfcGFja2V0X3NpemUYCSABKA0SGAoQbWF4", - "X2VuY29kZWRfc2l6ZRgKIAEoDRIPCgd0aW1lb3V0GAsgASgCEhMKC2NhcF9i", - "YWxhbmNlGAwgASgNEhkKEWluY29tZV9wZXJfc2Vjb25kGA0gASgCEhQKDHNl", - "cnZpY2VfaGFzaBgOIAEoDRIRCgltZXRob2RfaWQYDyABKA0ipwEKDlJQQ01l", - "dGVyQ29uZmlnEjQKBm1ldGhvZBgBIAMoCzIkLmJncy5wcm90b2NvbC5jb25m", - "aWcuUlBDTWV0aG9kQ29uZmlnEhkKEWluY29tZV9wZXJfc2Vjb25kGAIgASgN", - "EhcKD2luaXRpYWxfYmFsYW5jZRgDIAEoDRITCgtjYXBfYmFsYW5jZRgEIAEo", - "DRIWCg5zdGFydHVwX3BlcmlvZBgFIAEoAiJJCg1Qcm90b2NvbEFsaWFzEhsK", - "E3NlcnZlcl9zZXJ2aWNlX25hbWUYASABKAkSGwoTY2xpZW50X3NlcnZpY2Vf", - "bmFtZRgCIAEoCSJMCg5TZXJ2aWNlQWxpYXNlcxI6Cg5wcm90b2NvbF9hbGlh", - "cxgBIAMoCzIiLmJncy5wcm90b2NvbC5jb25maWcuUHJvdG9jb2xBbGlhc0IC", - "SAJiBnByb3RvMw==")); + "dG9jb2wuY29uZmlnIosDCg9SUENNZXRob2RDb25maWcSGAoMc2VydmljZV9u", + "YW1lGAEgASgJQgIYARIXCgttZXRob2RfbmFtZRgCIAEoCUICGAESGgoPZml4", + "ZWRfY2FsbF9jb3N0GAMgASgNOgExEhwKEWZpeGVkX3BhY2tldF9zaXplGAQg", + "ASgNOgEwEh4KE3ZhcmlhYmxlX211bHRpcGxpZXIYBSABKAI6ATASFQoKbXVs", + "dGlwbGllchgGIAEoAjoBMRIYChByYXRlX2xpbWl0X2NvdW50GAcgASgNEhoK", + "EnJhdGVfbGltaXRfc2Vjb25kcxgIIAEoDRIXCg9tYXhfcGFja2V0X3NpemUY", + "CSABKA0SGAoQbWF4X2VuY29kZWRfc2l6ZRgKIAEoDRIPCgd0aW1lb3V0GAsg", + "ASgCEhMKC2NhcF9iYWxhbmNlGAwgASgNEhwKEWluY29tZV9wZXJfc2Vjb25k", + "GA0gASgCOgEwEhQKDHNlcnZpY2VfaGFzaBgOIAEoDRIRCgltZXRob2RfaWQY", + "DyABKA0irQEKDlJQQ01ldGVyQ29uZmlnEjQKBm1ldGhvZBgBIAMoCzIkLmJn", + "cy5wcm90b2NvbC5jb25maWcuUlBDTWV0aG9kQ29uZmlnEhwKEWluY29tZV9w", + "ZXJfc2Vjb25kGAIgASgNOgExEhcKD2luaXRpYWxfYmFsYW5jZRgDIAEoDRIT", + "CgtjYXBfYmFsYW5jZRgEIAEoDRIZCg5zdGFydHVwX3BlcmlvZBgFIAEoAjoB", + "MCJJCg1Qcm90b2NvbEFsaWFzEhsKE3NlcnZlcl9zZXJ2aWNlX25hbWUYASAC", + "KAkSGwoTY2xpZW50X3NlcnZpY2VfbmFtZRgCIAIoCSJMCg5TZXJ2aWNlQWxp", + "YXNlcxI6Cg5wcm90b2NvbF9hbGlhcxgBIAMoCzIiLmJncy5wcm90b2NvbC5j", + "b25maWcuUHJvdG9jb2xBbGlhcw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Config.RPCMethodConfig), Bgs.Protocol.Config.RPCMethodConfig.Parser, new[]{ "ServiceName", "MethodName", "FixedCallCost", "FixedPacketSize", "VariableMultiplier", "Multiplier", "RateLimitCount", "RateLimitSeconds", "MaxPacketSize", "MaxEncodedSize", "Timeout", "CapBalance", "IncomePerSecond", "ServiceHash", "MethodId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Config.RPCMeterConfig), Bgs.Protocol.Config.RPCMeterConfig.Parser, new[]{ "Method", "IncomePerSecond", "InitialBalance", "CapBalance", "StartupPeriod" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Config.ProtocolAlias), Bgs.Protocol.Config.ProtocolAlias.Parser, new[]{ "ServerServiceName", "ClientServiceName" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Config.ServiceAliases), Bgs.Protocol.Config.ServiceAliases.Parser, new[]{ "ProtocolAlias" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Config.RPCMethodConfig), global::Bgs.Protocol.Config.RPCMethodConfig.Parser, new[]{ "ServiceName", "MethodName", "FixedCallCost", "FixedPacketSize", "VariableMultiplier", "Multiplier", "RateLimitCount", "RateLimitSeconds", "MaxPacketSize", "MaxEncodedSize", "Timeout", "CapBalance", "IncomePerSecond", "ServiceHash", "MethodId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Config.RPCMeterConfig), global::Bgs.Protocol.Config.RPCMeterConfig.Parser, new[]{ "Method", "IncomePerSecond", "InitialBalance", "CapBalance", "StartupPeriod" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Config.ProtocolAlias), global::Bgs.Protocol.Config.ProtocolAlias.Parser, new[]{ "ServerServiceName", "ClientServiceName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Config.ServiceAliases), global::Bgs.Protocol.Config.ServiceAliases.Parser, new[]{ "ProtocolAlias" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class RPCMethodConfig : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RPCMethodConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RPCMethodConfig() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RPCMethodConfig(RPCMethodConfig other) : this() { + _hasBits0 = other._hasBits0; serviceName_ = other.serviceName_; methodName_ = other.methodName_; fixedCallCost_ = other.fixedCallCost_; @@ -89,168 +97,384 @@ namespace Bgs.Protocol.Config incomePerSecond_ = other.incomePerSecond_; serviceHash_ = other.serviceHash_; methodId_ = other.methodId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RPCMethodConfig Clone() { return new RPCMethodConfig(this); } /// Field number for the "service_name" field. public const int ServiceNameFieldNumber = 1; - private string serviceName_ = ""; - [System.ObsoleteAttribute()] + private readonly static string ServiceNameDefaultValue = ""; + + private string serviceName_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ServiceName { - get { return serviceName_; } + get { return serviceName_ ?? ServiceNameDefaultValue; } set { serviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "service_name" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServiceName { + get { return serviceName_ != null; } + } + /// Clears the value of the "service_name" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServiceName() { + serviceName_ = null; + } /// Field number for the "method_name" field. public const int MethodNameFieldNumber = 2; - private string methodName_ = ""; - [System.ObsoleteAttribute()] + private readonly static string MethodNameDefaultValue = ""; + + private string methodName_; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string MethodName { - get { return methodName_; } + get { return methodName_ ?? MethodNameDefaultValue; } set { methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "method_name" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMethodName { + get { return methodName_ != null; } + } + /// Clears the value of the "method_name" field + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMethodName() { + methodName_ = null; + } /// Field number for the "fixed_call_cost" field. public const int FixedCallCostFieldNumber = 3; + private readonly static uint FixedCallCostDefaultValue = 1; + private uint fixedCallCost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint FixedCallCost { - get { return fixedCallCost_; } + get { if ((_hasBits0 & 1) != 0) { return fixedCallCost_; } else { return FixedCallCostDefaultValue; } } set { + _hasBits0 |= 1; fixedCallCost_ = value; } } + /// Gets whether the "fixed_call_cost" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFixedCallCost { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "fixed_call_cost" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFixedCallCost() { + _hasBits0 &= ~1; + } /// Field number for the "fixed_packet_size" field. public const int FixedPacketSizeFieldNumber = 4; + private readonly static uint FixedPacketSizeDefaultValue = 0; + private uint fixedPacketSize_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint FixedPacketSize { - get { return fixedPacketSize_; } + get { if ((_hasBits0 & 2) != 0) { return fixedPacketSize_; } else { return FixedPacketSizeDefaultValue; } } set { + _hasBits0 |= 2; fixedPacketSize_ = value; } } + /// Gets whether the "fixed_packet_size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFixedPacketSize { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "fixed_packet_size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFixedPacketSize() { + _hasBits0 &= ~2; + } /// Field number for the "variable_multiplier" field. public const int VariableMultiplierFieldNumber = 5; + private readonly static float VariableMultiplierDefaultValue = 0F; + private float variableMultiplier_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float VariableMultiplier { - get { return variableMultiplier_; } + get { if ((_hasBits0 & 4) != 0) { return variableMultiplier_; } else { return VariableMultiplierDefaultValue; } } set { + _hasBits0 |= 4; variableMultiplier_ = value; } } + /// Gets whether the "variable_multiplier" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVariableMultiplier { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "variable_multiplier" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVariableMultiplier() { + _hasBits0 &= ~4; + } /// Field number for the "multiplier" field. public const int MultiplierFieldNumber = 6; + private readonly static float MultiplierDefaultValue = 1F; + private float multiplier_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Multiplier { - get { return multiplier_; } + get { if ((_hasBits0 & 8) != 0) { return multiplier_; } else { return MultiplierDefaultValue; } } set { + _hasBits0 |= 8; multiplier_ = value; } } + /// Gets whether the "multiplier" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMultiplier { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "multiplier" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMultiplier() { + _hasBits0 &= ~8; + } /// Field number for the "rate_limit_count" field. public const int RateLimitCountFieldNumber = 7; + private readonly static uint RateLimitCountDefaultValue = 0; + private uint rateLimitCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint RateLimitCount { - get { return rateLimitCount_; } + get { if ((_hasBits0 & 16) != 0) { return rateLimitCount_; } else { return RateLimitCountDefaultValue; } } set { + _hasBits0 |= 16; rateLimitCount_ = value; } } + /// Gets whether the "rate_limit_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRateLimitCount { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "rate_limit_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRateLimitCount() { + _hasBits0 &= ~16; + } /// Field number for the "rate_limit_seconds" field. public const int RateLimitSecondsFieldNumber = 8; + private readonly static uint RateLimitSecondsDefaultValue = 0; + private uint rateLimitSeconds_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint RateLimitSeconds { - get { return rateLimitSeconds_; } + get { if ((_hasBits0 & 32) != 0) { return rateLimitSeconds_; } else { return RateLimitSecondsDefaultValue; } } set { + _hasBits0 |= 32; rateLimitSeconds_ = value; } } + /// Gets whether the "rate_limit_seconds" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRateLimitSeconds { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "rate_limit_seconds" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRateLimitSeconds() { + _hasBits0 &= ~32; + } /// Field number for the "max_packet_size" field. public const int MaxPacketSizeFieldNumber = 9; + private readonly static uint MaxPacketSizeDefaultValue = 0; + private uint maxPacketSize_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MaxPacketSize { - get { return maxPacketSize_; } + get { if ((_hasBits0 & 64) != 0) { return maxPacketSize_; } else { return MaxPacketSizeDefaultValue; } } set { + _hasBits0 |= 64; maxPacketSize_ = value; } } + /// Gets whether the "max_packet_size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxPacketSize { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "max_packet_size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxPacketSize() { + _hasBits0 &= ~64; + } /// Field number for the "max_encoded_size" field. public const int MaxEncodedSizeFieldNumber = 10; + private readonly static uint MaxEncodedSizeDefaultValue = 0; + private uint maxEncodedSize_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MaxEncodedSize { - get { return maxEncodedSize_; } + get { if ((_hasBits0 & 128) != 0) { return maxEncodedSize_; } else { return MaxEncodedSizeDefaultValue; } } set { + _hasBits0 |= 128; maxEncodedSize_ = value; } } + /// Gets whether the "max_encoded_size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxEncodedSize { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "max_encoded_size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxEncodedSize() { + _hasBits0 &= ~128; + } /// Field number for the "timeout" field. public const int TimeoutFieldNumber = 11; + private readonly static float TimeoutDefaultValue = 0F; + private float timeout_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Timeout { - get { return timeout_; } + get { if ((_hasBits0 & 256) != 0) { return timeout_; } else { return TimeoutDefaultValue; } } set { + _hasBits0 |= 256; timeout_ = value; } } + /// Gets whether the "timeout" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTimeout { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "timeout" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTimeout() { + _hasBits0 &= ~256; + } /// Field number for the "cap_balance" field. public const int CapBalanceFieldNumber = 12; + private readonly static uint CapBalanceDefaultValue = 0; + private uint capBalance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint CapBalance { - get { return capBalance_; } + get { if ((_hasBits0 & 512) != 0) { return capBalance_; } else { return CapBalanceDefaultValue; } } set { + _hasBits0 |= 512; capBalance_ = value; } } + /// Gets whether the "cap_balance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCapBalance { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "cap_balance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCapBalance() { + _hasBits0 &= ~512; + } /// Field number for the "income_per_second" field. public const int IncomePerSecondFieldNumber = 13; + private readonly static float IncomePerSecondDefaultValue = 0F; + private float incomePerSecond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float IncomePerSecond { - get { return incomePerSecond_; } + get { if ((_hasBits0 & 1024) != 0) { return incomePerSecond_; } else { return IncomePerSecondDefaultValue; } } set { + _hasBits0 |= 1024; incomePerSecond_ = value; } } + /// Gets whether the "income_per_second" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIncomePerSecond { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "income_per_second" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIncomePerSecond() { + _hasBits0 &= ~1024; + } /// Field number for the "service_hash" field. public const int ServiceHashFieldNumber = 14; + private readonly static uint ServiceHashDefaultValue = 0; + private uint serviceHash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint ServiceHash { - get { return serviceHash_; } + get { if ((_hasBits0 & 2048) != 0) { return serviceHash_; } else { return ServiceHashDefaultValue; } } set { + _hasBits0 |= 2048; serviceHash_ = value; } } + /// Gets whether the "service_hash" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServiceHash { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "service_hash" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServiceHash() { + _hasBits0 &= ~2048; + } /// Field number for the "method_id" field. public const int MethodIdFieldNumber = 15; + private readonly static uint MethodIdDefaultValue = 0; + private uint methodId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MethodId { - get { return methodId_; } + get { if ((_hasBits0 & 4096) != 0) { return methodId_; } else { return MethodIdDefaultValue; } } set { + _hasBits0 |= 4096; methodId_ = value; } } + /// Gets whether the "method_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMethodId { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "method_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMethodId() { + _hasBits0 &= ~4096; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RPCMethodConfig); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RPCMethodConfig other) { if (ReferenceEquals(other, null)) { return false; @@ -262,214 +486,230 @@ namespace Bgs.Protocol.Config if (MethodName != other.MethodName) return false; if (FixedCallCost != other.FixedCallCost) return false; if (FixedPacketSize != other.FixedPacketSize) return false; - if (VariableMultiplier != other.VariableMultiplier) return false; - if (Multiplier != other.Multiplier) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VariableMultiplier, other.VariableMultiplier)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Multiplier, other.Multiplier)) return false; if (RateLimitCount != other.RateLimitCount) return false; if (RateLimitSeconds != other.RateLimitSeconds) return false; if (MaxPacketSize != other.MaxPacketSize) return false; if (MaxEncodedSize != other.MaxEncodedSize) return false; - if (Timeout != other.Timeout) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Timeout, other.Timeout)) return false; if (CapBalance != other.CapBalance) return false; - if (IncomePerSecond != other.IncomePerSecond) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(IncomePerSecond, other.IncomePerSecond)) return false; if (ServiceHash != other.ServiceHash) return false; if (MethodId != other.MethodId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode(); - if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); - if (FixedCallCost != 0) hash ^= FixedCallCost.GetHashCode(); - if (FixedPacketSize != 0) hash ^= FixedPacketSize.GetHashCode(); - if (VariableMultiplier != 0F) hash ^= VariableMultiplier.GetHashCode(); - if (Multiplier != 0F) hash ^= Multiplier.GetHashCode(); - if (RateLimitCount != 0) hash ^= RateLimitCount.GetHashCode(); - if (RateLimitSeconds != 0) hash ^= RateLimitSeconds.GetHashCode(); - if (MaxPacketSize != 0) hash ^= MaxPacketSize.GetHashCode(); - if (MaxEncodedSize != 0) hash ^= MaxEncodedSize.GetHashCode(); - if (Timeout != 0F) hash ^= Timeout.GetHashCode(); - if (CapBalance != 0) hash ^= CapBalance.GetHashCode(); - if (IncomePerSecond != 0F) hash ^= IncomePerSecond.GetHashCode(); - if (ServiceHash != 0) hash ^= ServiceHash.GetHashCode(); - if (MethodId != 0) hash ^= MethodId.GetHashCode(); + if (HasServiceName) hash ^= ServiceName.GetHashCode(); + if (HasMethodName) hash ^= MethodName.GetHashCode(); + if (HasFixedCallCost) hash ^= FixedCallCost.GetHashCode(); + if (HasFixedPacketSize) hash ^= FixedPacketSize.GetHashCode(); + if (HasVariableMultiplier) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VariableMultiplier); + if (HasMultiplier) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Multiplier); + if (HasRateLimitCount) hash ^= RateLimitCount.GetHashCode(); + if (HasRateLimitSeconds) hash ^= RateLimitSeconds.GetHashCode(); + if (HasMaxPacketSize) hash ^= MaxPacketSize.GetHashCode(); + if (HasMaxEncodedSize) hash ^= MaxEncodedSize.GetHashCode(); + if (HasTimeout) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Timeout); + if (HasCapBalance) hash ^= CapBalance.GetHashCode(); + if (HasIncomePerSecond) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(IncomePerSecond); + if (HasServiceHash) hash ^= ServiceHash.GetHashCode(); + if (HasMethodId) hash ^= MethodId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (ServiceName.Length != 0) { + if (HasServiceName) { output.WriteRawTag(10); output.WriteString(ServiceName); } - if (MethodName.Length != 0) { + if (HasMethodName) { output.WriteRawTag(18); output.WriteString(MethodName); } - if (FixedCallCost != 0) { + if (HasFixedCallCost) { output.WriteRawTag(24); output.WriteUInt32(FixedCallCost); } - if (FixedPacketSize != 0) { + if (HasFixedPacketSize) { output.WriteRawTag(32); output.WriteUInt32(FixedPacketSize); } - if (VariableMultiplier != 0F) { + if (HasVariableMultiplier) { output.WriteRawTag(45); output.WriteFloat(VariableMultiplier); } - if (Multiplier != 0F) { + if (HasMultiplier) { output.WriteRawTag(53); output.WriteFloat(Multiplier); } - if (RateLimitCount != 0) { + if (HasRateLimitCount) { output.WriteRawTag(56); output.WriteUInt32(RateLimitCount); } - if (RateLimitSeconds != 0) { + if (HasRateLimitSeconds) { output.WriteRawTag(64); output.WriteUInt32(RateLimitSeconds); } - if (MaxPacketSize != 0) { + if (HasMaxPacketSize) { output.WriteRawTag(72); output.WriteUInt32(MaxPacketSize); } - if (MaxEncodedSize != 0) { + if (HasMaxEncodedSize) { output.WriteRawTag(80); output.WriteUInt32(MaxEncodedSize); } - if (Timeout != 0F) { + if (HasTimeout) { output.WriteRawTag(93); output.WriteFloat(Timeout); } - if (CapBalance != 0) { + if (HasCapBalance) { output.WriteRawTag(96); output.WriteUInt32(CapBalance); } - if (IncomePerSecond != 0F) { + if (HasIncomePerSecond) { output.WriteRawTag(109); output.WriteFloat(IncomePerSecond); } - if (ServiceHash != 0) { + if (HasServiceHash) { output.WriteRawTag(112); output.WriteUInt32(ServiceHash); } - if (MethodId != 0) { + if (HasMethodId) { output.WriteRawTag(120); output.WriteUInt32(MethodId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (ServiceName.Length != 0) { + if (HasServiceName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceName); } - if (MethodName.Length != 0) { + if (HasMethodName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); } - if (FixedCallCost != 0) { + if (HasFixedCallCost) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FixedCallCost); } - if (FixedPacketSize != 0) { + if (HasFixedPacketSize) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FixedPacketSize); } - if (VariableMultiplier != 0F) { + if (HasVariableMultiplier) { size += 1 + 4; } - if (Multiplier != 0F) { + if (HasMultiplier) { size += 1 + 4; } - if (RateLimitCount != 0) { + if (HasRateLimitCount) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RateLimitCount); } - if (RateLimitSeconds != 0) { + if (HasRateLimitSeconds) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RateLimitSeconds); } - if (MaxPacketSize != 0) { + if (HasMaxPacketSize) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxPacketSize); } - if (MaxEncodedSize != 0) { + if (HasMaxEncodedSize) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxEncodedSize); } - if (Timeout != 0F) { + if (HasTimeout) { size += 1 + 4; } - if (CapBalance != 0) { + if (HasCapBalance) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CapBalance); } - if (IncomePerSecond != 0F) { + if (HasIncomePerSecond) { size += 1 + 4; } - if (ServiceHash != 0) { + if (HasServiceHash) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServiceHash); } - if (MethodId != 0) { + if (HasMethodId) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MethodId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RPCMethodConfig other) { if (other == null) { return; } - if (other.ServiceName.Length != 0) { + if (other.HasServiceName) { ServiceName = other.ServiceName; } - if (other.MethodName.Length != 0) { + if (other.HasMethodName) { MethodName = other.MethodName; } - if (other.FixedCallCost != 0) { + if (other.HasFixedCallCost) { FixedCallCost = other.FixedCallCost; } - if (other.FixedPacketSize != 0) { + if (other.HasFixedPacketSize) { FixedPacketSize = other.FixedPacketSize; } - if (other.VariableMultiplier != 0F) { + if (other.HasVariableMultiplier) { VariableMultiplier = other.VariableMultiplier; } - if (other.Multiplier != 0F) { + if (other.HasMultiplier) { Multiplier = other.Multiplier; } - if (other.RateLimitCount != 0) { + if (other.HasRateLimitCount) { RateLimitCount = other.RateLimitCount; } - if (other.RateLimitSeconds != 0) { + if (other.HasRateLimitSeconds) { RateLimitSeconds = other.RateLimitSeconds; } - if (other.MaxPacketSize != 0) { + if (other.HasMaxPacketSize) { MaxPacketSize = other.MaxPacketSize; } - if (other.MaxEncodedSize != 0) { + if (other.HasMaxEncodedSize) { MaxEncodedSize = other.MaxEncodedSize; } - if (other.Timeout != 0F) { + if (other.HasTimeout) { Timeout = other.Timeout; } - if (other.CapBalance != 0) { + if (other.HasCapBalance) { CapBalance = other.CapBalance; } - if (other.IncomePerSecond != 0F) { + if (other.HasIncomePerSecond) { IncomePerSecond = other.IncomePerSecond; } - if (other.ServiceHash != 0) { + if (other.HasServiceHash) { ServiceHash = other.ServiceHash; } - if (other.MethodId != 0) { + if (other.HasMethodId) { MethodId = other.MethodId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ServiceName = input.ReadString(); @@ -537,90 +777,158 @@ namespace Bgs.Protocol.Config } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class RPCMeterConfig : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RPCMeterConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RPCMeterConfig() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RPCMeterConfig(RPCMeterConfig other) : this() { + _hasBits0 = other._hasBits0; method_ = other.method_.Clone(); incomePerSecond_ = other.incomePerSecond_; initialBalance_ = other.initialBalance_; capBalance_ = other.capBalance_; startupPeriod_ = other.startupPeriod_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RPCMeterConfig Clone() { return new RPCMeterConfig(this); } /// Field number for the "method" field. public const int MethodFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_method_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Config.RPCMethodConfig.Parser); - private readonly pbc::RepeatedField method_ = new pbc::RepeatedField(); - public pbc::RepeatedField Method { + private static readonly pb::FieldCodec _repeated_method_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Config.RPCMethodConfig.Parser); + private readonly pbc::RepeatedField method_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Method { get { return method_; } } /// Field number for the "income_per_second" field. public const int IncomePerSecondFieldNumber = 2; + private readonly static uint IncomePerSecondDefaultValue = 1; + private uint incomePerSecond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint IncomePerSecond { - get { return incomePerSecond_; } + get { if ((_hasBits0 & 1) != 0) { return incomePerSecond_; } else { return IncomePerSecondDefaultValue; } } set { + _hasBits0 |= 1; incomePerSecond_ = value; } } + /// Gets whether the "income_per_second" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIncomePerSecond { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "income_per_second" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIncomePerSecond() { + _hasBits0 &= ~1; + } /// Field number for the "initial_balance" field. public const int InitialBalanceFieldNumber = 3; + private readonly static uint InitialBalanceDefaultValue = 0; + private uint initialBalance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint InitialBalance { - get { return initialBalance_; } + get { if ((_hasBits0 & 2) != 0) { return initialBalance_; } else { return InitialBalanceDefaultValue; } } set { + _hasBits0 |= 2; initialBalance_ = value; } } + /// Gets whether the "initial_balance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasInitialBalance { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "initial_balance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearInitialBalance() { + _hasBits0 &= ~2; + } /// Field number for the "cap_balance" field. public const int CapBalanceFieldNumber = 4; + private readonly static uint CapBalanceDefaultValue = 0; + private uint capBalance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint CapBalance { - get { return capBalance_; } + get { if ((_hasBits0 & 4) != 0) { return capBalance_; } else { return CapBalanceDefaultValue; } } set { + _hasBits0 |= 4; capBalance_ = value; } } + /// Gets whether the "cap_balance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCapBalance { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "cap_balance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCapBalance() { + _hasBits0 &= ~4; + } /// Field number for the "startup_period" field. public const int StartupPeriodFieldNumber = 5; + private readonly static float StartupPeriodDefaultValue = 0F; + private float startupPeriod_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float StartupPeriod { - get { return startupPeriod_; } + get { if ((_hasBits0 & 8) != 0) { return startupPeriod_; } else { return StartupPeriodDefaultValue; } } set { + _hasBits0 |= 8; startupPeriod_ = value; } } + /// Gets whether the "startup_period" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStartupPeriod { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "startup_period" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStartupPeriod() { + _hasBits0 &= ~8; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RPCMeterConfig); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RPCMeterConfig other) { if (ReferenceEquals(other, null)) { return false; @@ -632,87 +940,103 @@ namespace Bgs.Protocol.Config if (IncomePerSecond != other.IncomePerSecond) return false; if (InitialBalance != other.InitialBalance) return false; if (CapBalance != other.CapBalance) return false; - if (StartupPeriod != other.StartupPeriod) return false; - return true; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(StartupPeriod, other.StartupPeriod)) return false; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= method_.GetHashCode(); - if (IncomePerSecond != 0) hash ^= IncomePerSecond.GetHashCode(); - if (InitialBalance != 0) hash ^= InitialBalance.GetHashCode(); - if (CapBalance != 0) hash ^= CapBalance.GetHashCode(); - if (StartupPeriod != 0F) hash ^= StartupPeriod.GetHashCode(); + if (HasIncomePerSecond) hash ^= IncomePerSecond.GetHashCode(); + if (HasInitialBalance) hash ^= InitialBalance.GetHashCode(); + if (HasCapBalance) hash ^= CapBalance.GetHashCode(); + if (HasStartupPeriod) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(StartupPeriod); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { method_.WriteTo(output, _repeated_method_codec); - if (IncomePerSecond != 0) { + if (HasIncomePerSecond) { output.WriteRawTag(16); output.WriteUInt32(IncomePerSecond); } - if (InitialBalance != 0) { + if (HasInitialBalance) { output.WriteRawTag(24); output.WriteUInt32(InitialBalance); } - if (CapBalance != 0) { + if (HasCapBalance) { output.WriteRawTag(32); output.WriteUInt32(CapBalance); } - if (StartupPeriod != 0F) { + if (HasStartupPeriod) { output.WriteRawTag(45); output.WriteFloat(StartupPeriod); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += method_.CalculateSize(_repeated_method_codec); - if (IncomePerSecond != 0) { + if (HasIncomePerSecond) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(IncomePerSecond); } - if (InitialBalance != 0) { + if (HasInitialBalance) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InitialBalance); } - if (CapBalance != 0) { + if (HasCapBalance) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CapBalance); } - if (StartupPeriod != 0F) { + if (HasStartupPeriod) { size += 1 + 4; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RPCMeterConfig other) { if (other == null) { return; } method_.Add(other.method_); - if (other.IncomePerSecond != 0) { + if (other.HasIncomePerSecond) { IncomePerSecond = other.IncomePerSecond; } - if (other.InitialBalance != 0) { + if (other.HasInitialBalance) { InitialBalance = other.InitialBalance; } - if (other.CapBalance != 0) { + if (other.HasCapBalance) { CapBalance = other.CapBalance; } - if (other.StartupPeriod != 0F) { + if (other.HasStartupPeriod) { StartupPeriod = other.StartupPeriod; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { method_.AddEntriesFrom(input, _repeated_method_codec); @@ -740,58 +1064,93 @@ namespace Bgs.Protocol.Config } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ProtocolAlias : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtocolAlias()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[2]; } + get { return global::Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[2]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProtocolAlias() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProtocolAlias(ProtocolAlias other) : this() { serverServiceName_ = other.serverServiceName_; clientServiceName_ = other.clientServiceName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProtocolAlias Clone() { return new ProtocolAlias(this); } /// Field number for the "server_service_name" field. public const int ServerServiceNameFieldNumber = 1; - private string serverServiceName_ = ""; + private readonly static string ServerServiceNameDefaultValue = ""; + + private string serverServiceName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ServerServiceName { - get { return serverServiceName_; } + get { return serverServiceName_ ?? ServerServiceNameDefaultValue; } set { serverServiceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "server_service_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServerServiceName { + get { return serverServiceName_ != null; } + } + /// Clears the value of the "server_service_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServerServiceName() { + serverServiceName_ = null; + } /// Field number for the "client_service_name" field. public const int ClientServiceNameFieldNumber = 2; - private string clientServiceName_ = ""; + private readonly static string ClientServiceNameDefaultValue = ""; + + private string clientServiceName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ClientServiceName { - get { return clientServiceName_; } + get { return clientServiceName_ ?? ClientServiceNameDefaultValue; } set { clientServiceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "client_service_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientServiceName { + get { return clientServiceName_ != null; } + } + /// Clears the value of the "client_service_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientServiceName() { + clientServiceName_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ProtocolAlias); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ProtocolAlias other) { if (ReferenceEquals(other, null)) { return false; @@ -801,60 +1160,76 @@ namespace Bgs.Protocol.Config } if (ServerServiceName != other.ServerServiceName) return false; if (ClientServiceName != other.ClientServiceName) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (ServerServiceName.Length != 0) hash ^= ServerServiceName.GetHashCode(); - if (ClientServiceName.Length != 0) hash ^= ClientServiceName.GetHashCode(); + if (HasServerServiceName) hash ^= ServerServiceName.GetHashCode(); + if (HasClientServiceName) hash ^= ClientServiceName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (ServerServiceName.Length != 0) { + if (HasServerServiceName) { output.WriteRawTag(10); output.WriteString(ServerServiceName); } - if (ClientServiceName.Length != 0) { + if (HasClientServiceName) { output.WriteRawTag(18); output.WriteString(ClientServiceName); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (ServerServiceName.Length != 0) { + if (HasServerServiceName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerServiceName); } - if (ClientServiceName.Length != 0) { + if (HasClientServiceName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientServiceName); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ProtocolAlias other) { if (other == null) { return; } - if (other.ServerServiceName.Length != 0) { + if (other.HasServerServiceName) { ServerServiceName = other.ServerServiceName; } - if (other.ClientServiceName.Length != 0) { + if (other.HasClientServiceName) { ClientServiceName = other.ClientServiceName; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ServerServiceName = input.ReadString(); @@ -870,46 +1245,56 @@ namespace Bgs.Protocol.Config } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ServiceAliases : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceAliases()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[3]; } + get { return global::Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[3]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ServiceAliases() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ServiceAliases(ServiceAliases other) : this() { protocolAlias_ = other.protocolAlias_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ServiceAliases Clone() { return new ServiceAliases(this); } /// Field number for the "protocol_alias" field. public const int ProtocolAliasFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_protocolAlias_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.Config.ProtocolAlias.Parser); - private readonly pbc::RepeatedField protocolAlias_ = new pbc::RepeatedField(); - public pbc::RepeatedField ProtocolAlias { + private static readonly pb::FieldCodec _repeated_protocolAlias_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Config.ProtocolAlias.Parser); + private readonly pbc::RepeatedField protocolAlias_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ProtocolAlias { get { return protocolAlias_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ServiceAliases); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ServiceAliases other) { if (ReferenceEquals(other, null)) { return false; @@ -918,42 +1303,58 @@ namespace Bgs.Protocol.Config return true; } if(!protocolAlias_.Equals(other.protocolAlias_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= protocolAlias_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { protocolAlias_.WriteTo(output, _repeated_protocolAlias_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += protocolAlias_.CalculateSize(_repeated_protocolAlias_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ServiceAliases other) { if (other == null) { return; } protocolAlias_.Add(other.protocolAlias_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { protocolAlias_.AddEntriesFrom(input, _repeated_protocolAlias_codec); diff --git a/Source/Framework/Proto/RpcTypes.cs b/Source/Framework/Proto/RpcTypes.cs index 7d3331b84..e313c6ef4 100644 --- a/Source/Framework/Proto/RpcTypes.cs +++ b/Source/Framework/Proto/RpcTypes.cs @@ -1,1428 +1,2394 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/rpc_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/rpc_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { - /// Holder for reflection information generated from bgs/low/pb/client/rpc_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static partial class RpcTypesReflection - { - - #region Descriptor - /// File descriptor for bgs/low/pb/client/rpc_types.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static RpcTypesReflection() - { - byte[] descriptorData = System.Convert.FromBase64String( - string.Concat( - "CiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8SDGJncy5wcm90", - "b2NvbBo4YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWV0", - "aG9kX29wdGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9l", - "eHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5wcm90bxo3YmdzL2xvdy9wYi9j", - "bGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvZmllbGRfb3B0aW9ucy5wcm90byIN", - "CgtOT19SRVNQT05TRSIoCgdBZGRyZXNzEg8KB2FkZHJlc3MYASABKAkSDAoE", - "cG9ydBgCIAEoDSIpCglQcm9jZXNzSWQSDQoFbGFiZWwYASABKA0SDQoFZXBv", - "Y2gYAiABKA0iSQoNT2JqZWN0QWRkcmVzcxIlCgRob3N0GAEgASgLMhcuYmdz", - "LnByb3RvY29sLlByb2Nlc3NJZBIRCglvYmplY3RfaWQYAiABKAQiCAoGTm9E", - "YXRhInkKCUVycm9ySW5mbxIzCg5vYmplY3RfYWRkcmVzcxgBIAEoCzIbLmJn", - "cy5wcm90b2NvbC5PYmplY3RBZGRyZXNzEg4KBnN0YXR1cxgCIAEoDRIUCgxz", - "ZXJ2aWNlX2hhc2gYAyABKA0SEQoJbWV0aG9kX2lkGAQgASgNIoUCCgZIZWFk", - "ZXISEgoKc2VydmljZV9pZBgBIAEoDRIRCgltZXRob2RfaWQYAiABKA0SDQoF", - "dG9rZW4YAyABKA0SEQoJb2JqZWN0X2lkGAQgASgEEgwKBHNpemUYBSABKA0S", - "DgoGc3RhdHVzGAYgASgNEiYKBWVycm9yGAcgAygLMhcuYmdzLnByb3RvY29s", - "LkVycm9ySW5mbxIPCgd0aW1lb3V0GAggASgEEhMKC2lzX3Jlc3BvbnNlGAkg", - "ASgIEjAKD2ZvcndhcmRfdGFyZ2V0cxgKIAMoCzIXLmJncy5wcm90b2NvbC5Q", - "cm9jZXNzSWQSFAoMc2VydmljZV9oYXNoGAsgASgHQhsKDWJuZXQucHJvdG9j", - "b2xCCFJwY1Byb3RvSAJQAFABUAJiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.MethodOptionsReflection.Descriptor, Bgs.Protocol.ServiceOptionsReflection.Descriptor, Bgs.Protocol.FieldOptionsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.NO_RESPONSE), Bgs.Protocol.NO_RESPONSE.Parser, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Address), Bgs.Protocol.Address.Parser, new[]{ "Address_", "Port" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.ProcessId), Bgs.Protocol.ProcessId.Parser, new[]{ "Label", "Epoch" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.ObjectAddress), Bgs.Protocol.ObjectAddress.Parser, new[]{ "Host", "ObjectId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.NoData), Bgs.Protocol.NoData.Parser, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.ErrorInfo), Bgs.Protocol.ErrorInfo.Parser, new[]{ "ObjectAddress", "Status", "ServiceHash", "MethodId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Header), Bgs.Protocol.Header.Parser, new[]{ "ServiceId", "MethodId", "Token", "ObjectId", "Size", "Status", "Error", "Timeout", "IsResponse", "ForwardTargets", "ServiceHash" }, null, null, null) - })); - } - #endregion + /// Holder for reflection information generated from bgs/low/pb/client/rpc_types.proto + public static partial class RpcTypesReflection { + #region Descriptor + /// File descriptor for bgs/low/pb/client/rpc_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } } - #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class NO_RESPONSE : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NO_RESPONSE()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[0]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public NO_RESPONSE() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public NO_RESPONSE(NO_RESPONSE other) : this() - { - } - - public NO_RESPONSE Clone() - { - return new NO_RESPONSE(this); - } - - public override bool Equals(object other) - { - return Equals(other as NO_RESPONSE); - } - - public bool Equals(NO_RESPONSE other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - return true; - } - - public override int GetHashCode() - { - int hash = 1; - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - } - - public int CalculateSize() - { - int size = 0; - return size; - } - - public void MergeFrom(NO_RESPONSE other) - { - if (other == null) - { - return; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - } - } - } + private static pbr::FileDescriptor descriptor; + static RpcTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8SDGJncy5wcm90", + "b2NvbBo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvZmll", + "bGRfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4", + "dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xp", + "ZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0aW9ucy5wcm90bxo5", + "YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvc2VydmljZV9v", + "cHRpb25zLnByb3RvIg0KC05PX1JFU1BPTlNFIigKB0FkZHJlc3MSDwoHYWRk", + "cmVzcxgBIAIoCRIMCgRwb3J0GAIgASgNIjMKCVByb2Nlc3NJZBIXCgVsYWJl", + "bBgBIAIoDUIIivkrBBICEAASDQoFZXBvY2gYAiACKA0iTAoNT2JqZWN0QWRk", + "cmVzcxIlCgRob3N0GAEgAigLMhcuYmdzLnByb3RvY29sLlByb2Nlc3NJZBIU", + "CglvYmplY3RfaWQYAiABKAQ6ATAiCAoGTm9EYXRhInkKCUVycm9ySW5mbxIz", + "Cg5vYmplY3RfYWRkcmVzcxgBIAIoCzIbLmJncy5wcm90b2NvbC5PYmplY3RB", + "ZGRyZXNzEg4KBnN0YXR1cxgCIAIoDRIUCgxzZXJ2aWNlX2hhc2gYAyACKA0S", + "EQoJbWV0aG9kX2lkGAQgAigNIi4KDEZhbm91dFRhcmdldBIRCgljbGllbnRf", + "aWQYASABKAkSCwoDa2V5GAIgASgMIvUCCgZIZWFkZXISEgoKc2VydmljZV9p", + "ZBgBIAIoDRIRCgltZXRob2RfaWQYAiABKA0SDQoFdG9rZW4YAyACKA0SFAoJ", + "b2JqZWN0X2lkGAQgASgEOgEwEg8KBHNpemUYBSABKA06ATASEQoGc3RhdHVz", + "GAYgASgNOgEwEiYKBWVycm9yGAcgAygLMhcuYmdzLnByb3RvY29sLkVycm9y", + "SW5mbxIPCgd0aW1lb3V0GAggASgEEhMKC2lzX3Jlc3BvbnNlGAkgASgIEjAK", + "D2ZvcndhcmRfdGFyZ2V0cxgKIAMoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNz", + "SWQSFAoMc2VydmljZV9oYXNoGAsgASgHEhEKCWNsaWVudF9pZBgNIAEoCRIx", + "Cg1mYW5vdXRfdGFyZ2V0GA4gAygLMhouYmdzLnByb3RvY29sLkZhbm91dFRh", + "cmdldBIfChdjbGllbnRfaWRfZmFub3V0X3RhcmdldBgPIAMoCSLqAQoLS2Fm", + "a2FIZWFkZXISFAoMc2VydmljZV9oYXNoGAEgASgHEhEKCW1ldGhvZF9pZBgC", + "IAEoDRINCgV0b2tlbhgDIAEoDRIUCglvYmplY3RfaWQYBCABKAQ6ATASDwoE", + "c2l6ZRgFIAEoDToBMBIRCgZzdGF0dXMYBiABKA06ATASDwoHdGltZW91dBgH", + "IAEoBBIvCg5mb3J3YXJkX3RhcmdldBgIIAEoCzIXLmJncy5wcm90b2NvbC5Q", + "cm9jZXNzSWQSFAoMcmV0dXJuX3RvcGljGAkgASgJEhEKCWNsaWVudF9pZBgL", + "IAEoCUIZCg1ibmV0LnByb3RvY29sQghScGNQcm90b1AAUAFQAlAD")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.NO_RESPONSE), global::Bgs.Protocol.NO_RESPONSE.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Address), global::Bgs.Protocol.Address.Parser, new[]{ "Address_", "Port" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.ProcessId), global::Bgs.Protocol.ProcessId.Parser, new[]{ "Label", "Epoch" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.ObjectAddress), global::Bgs.Protocol.ObjectAddress.Parser, new[]{ "Host", "ObjectId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.NoData), global::Bgs.Protocol.NoData.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.ErrorInfo), global::Bgs.Protocol.ErrorInfo.Parser, new[]{ "ObjectAddress", "Status", "ServiceHash", "MethodId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.FanoutTarget), global::Bgs.Protocol.FanoutTarget.Parser, new[]{ "ClientId", "Key" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Header), global::Bgs.Protocol.Header.Parser, new[]{ "ServiceId", "MethodId", "Token", "ObjectId", "Size", "Status", "Error", "Timeout", "IsResponse", "ForwardTargets", "ServiceHash", "ClientId", "FanoutTarget", "ClientIdFanoutTarget" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.KafkaHeader), global::Bgs.Protocol.KafkaHeader.Parser, new[]{ "ServiceHash", "MethodId", "Token", "ObjectId", "Size", "Status", "Timeout", "ForwardTarget", "ReturnTopic", "ClientId" }, null, null, null, null) + })); } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Address : pb::IMessage
- { - private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Address()); - public static pb::MessageParser
Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[1]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public Address() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public Address(Address other) : this() - { - address_ = other.address_; - port_ = other.port_; - } - - public Address Clone() - { - return new Address(this); - } - - /// Field number for the "address" field. - public const int Address_FieldNumber = 1; - private string address_ = ""; - public string Address_ - { - get { return address_; } - set - { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "port" field. - public const int PortFieldNumber = 2; - private uint port_; - public uint Port - { - get { return port_; } - set - { - port_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as Address); - } - - public bool Equals(Address other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Address_ != other.Address_) return false; - if (Port != other.Port) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Address_.Length != 0) hash ^= Address_.GetHashCode(); - if (Port != 0) hash ^= Port.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Address_.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(Address_); - } - if (Port != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Port); - } - } - - public int CalculateSize() - { - int size = 0; - if (Address_.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Address_); - } - if (Port != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Port); - } - return size; - } - - public void MergeFrom(Address other) - { - if (other == null) - { - return; - } - if (other.Address_.Length != 0) - { - Address_ = other.Address_; - } - if (other.Port != 0) - { - Port = other.Port; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Address_ = input.ReadString(); - break; - } - case 16: - { - Port = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ProcessId : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProcessId()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[2]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ProcessId() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ProcessId(ProcessId other) : this() - { - label_ = other.label_; - epoch_ = other.epoch_; - } - - public ProcessId Clone() - { - return new ProcessId(this); - } - - /// Field number for the "label" field. - public const int LabelFieldNumber = 1; - private uint label_; - public uint Label - { - get { return label_; } - set - { - label_ = value; - } - } - - /// Field number for the "epoch" field. - public const int EpochFieldNumber = 2; - private uint epoch_; - public uint Epoch - { - get { return epoch_; } - set - { - epoch_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ProcessId); - } - - public bool Equals(ProcessId other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Label != other.Label) return false; - if (Epoch != other.Epoch) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (Label != 0) hash ^= Label.GetHashCode(); - if (Epoch != 0) hash ^= Epoch.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (Label != 0) - { - output.WriteRawTag(8); - output.WriteUInt32(Label); - } - if (Epoch != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Epoch); - } - } - - public int CalculateSize() - { - int size = 0; - if (Label != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Label); - } - if (Epoch != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Epoch); - } - return size; - } - - public void MergeFrom(ProcessId other) - { - if (other == null) - { - return; - } - if (other.Label != 0) - { - Label = other.Label; - } - if (other.Epoch != 0) - { - Epoch = other.Epoch; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - Label = input.ReadUInt32(); - break; - } - case 16: - { - Epoch = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ObjectAddress : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObjectAddress()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[3]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ObjectAddress() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ObjectAddress(ObjectAddress other) : this() - { - Host = other.host_ != null ? other.Host.Clone() : null; - objectId_ = other.objectId_; - } - - public ObjectAddress Clone() - { - return new ObjectAddress(this); - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 1; - private Bgs.Protocol.ProcessId host_; - public Bgs.Protocol.ProcessId Host - { - get { return host_; } - set - { - host_ = value; - } - } - - /// Field number for the "object_id" field. - public const int ObjectIdFieldNumber = 2; - private ulong objectId_; - public ulong ObjectId - { - get { return objectId_; } - set - { - objectId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ObjectAddress); - } - - public bool Equals(ObjectAddress other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Host, other.Host)) return false; - if (ObjectId != other.ObjectId) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (host_ != null) hash ^= Host.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (host_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Host); - } - if (ObjectId != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(ObjectId); - } - } - - public int CalculateSize() - { - int size = 0; - if (host_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); - } - if (ObjectId != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); - } - return size; - } - - public void MergeFrom(ObjectAddress other) - { - if (other == null) - { - return; - } - if (other.host_ != null) - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - Host.MergeFrom(other.Host); - } - if (other.ObjectId != 0UL) - { - ObjectId = other.ObjectId; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (host_ == null) - { - host_ = new Bgs.Protocol.ProcessId(); - } - input.ReadMessage(host_); - break; - } - case 16: - { - ObjectId = input.ReadUInt64(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class NoData : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NoData()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public NoData() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public NoData(NoData other) : this() - { - } - - public NoData Clone() - { - return new NoData(this); - } - - public override bool Equals(object other) - { - return Equals(other as NoData); - } - - public bool Equals(NoData other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - return true; - } - - public override int GetHashCode() - { - int hash = 1; - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - } - - public int CalculateSize() - { - int size = 0; - return size; - } - - public void MergeFrom(NoData other) - { - if (other == null) - { - return; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ErrorInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorInfo()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[5]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public ErrorInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public ErrorInfo(ErrorInfo other) : this() - { - ObjectAddress = other.objectAddress_ != null ? other.ObjectAddress.Clone() : null; - status_ = other.status_; - serviceHash_ = other.serviceHash_; - methodId_ = other.methodId_; - } - - public ErrorInfo Clone() - { - return new ErrorInfo(this); - } - - /// Field number for the "object_address" field. - public const int ObjectAddressFieldNumber = 1; - private Bgs.Protocol.ObjectAddress objectAddress_; - public Bgs.Protocol.ObjectAddress ObjectAddress - { - get { return objectAddress_; } - set - { - objectAddress_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 2; - private uint status_; - public uint Status - { - get { return status_; } - set - { - status_ = value; - } - } - - /// Field number for the "service_hash" field. - public const int ServiceHashFieldNumber = 3; - private uint serviceHash_; - public uint ServiceHash - { - get { return serviceHash_; } - set - { - serviceHash_ = value; - } - } - - /// Field number for the "method_id" field. - public const int MethodIdFieldNumber = 4; - private uint methodId_; - public uint MethodId - { - get { return methodId_; } - set - { - methodId_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as ErrorInfo); - } - - public bool Equals(ErrorInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(ObjectAddress, other.ObjectAddress)) return false; - if (Status != other.Status) return false; - if (ServiceHash != other.ServiceHash) return false; - if (MethodId != other.MethodId) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (objectAddress_ != null) hash ^= ObjectAddress.GetHashCode(); - if (Status != 0) hash ^= Status.GetHashCode(); - if (ServiceHash != 0) hash ^= ServiceHash.GetHashCode(); - if (MethodId != 0) hash ^= MethodId.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (objectAddress_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(ObjectAddress); - } - if (Status != 0) - { - output.WriteRawTag(16); - output.WriteUInt32(Status); - } - if (ServiceHash != 0) - { - output.WriteRawTag(24); - output.WriteUInt32(ServiceHash); - } - if (MethodId != 0) - { - output.WriteRawTag(32); - output.WriteUInt32(MethodId); - } - } - - public int CalculateSize() - { - int size = 0; - if (objectAddress_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ObjectAddress); - } - if (Status != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status); - } - if (ServiceHash != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServiceHash); - } - if (MethodId != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MethodId); - } - return size; - } - - public void MergeFrom(ErrorInfo other) - { - if (other == null) - { - return; - } - if (other.objectAddress_ != null) - { - if (objectAddress_ == null) - { - objectAddress_ = new Bgs.Protocol.ObjectAddress(); - } - ObjectAddress.MergeFrom(other.ObjectAddress); - } - if (other.Status != 0) - { - Status = other.Status; - } - if (other.ServiceHash != 0) - { - ServiceHash = other.ServiceHash; - } - if (other.MethodId != 0) - { - MethodId = other.MethodId; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - if (objectAddress_ == null) - { - objectAddress_ = new Bgs.Protocol.ObjectAddress(); - } - input.ReadMessage(objectAddress_); - break; - } - case 16: - { - Status = input.ReadUInt32(); - break; - } - case 24: - { - ServiceHash = input.ReadUInt32(); - break; - } - case 32: - { - MethodId = input.ReadUInt32(); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class Header : pb::IMessage
- { - private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Header()); - public static pb::MessageParser
Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor - { - get { return Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - public Header() - { - OnConstruction(); - } - - partial void OnConstruction(); - - public Header(Header other) : this() - { - serviceId_ = other.serviceId_; - methodId_ = other.methodId_; - token_ = other.token_; - objectId_ = other.objectId_; - size_ = other.size_; - status_ = other.status_; - error_ = other.error_.Clone(); - timeout_ = other.timeout_; - isResponse_ = other.isResponse_; - forwardTargets_ = other.forwardTargets_.Clone(); - serviceHash_ = other.serviceHash_; - } - - public Header Clone() - { - return new Header(this); - } - - /// Field number for the "service_id" field. - public const int ServiceIdFieldNumber = 0; - private uint serviceId_; - public uint ServiceId - { - get { return serviceId_; } - set - { - bitArray.Set(ServiceIdFieldNumber, true); - serviceId_ = value; - } - } - - /// Field number for the "method_id" field. - public const int MethodIdFieldNumber = 1; - private uint methodId_; - public uint MethodId - { - get { return methodId_; } - set - { - bitArray.Set(MethodIdFieldNumber, true); - methodId_ = value; - } - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 2; - private uint token_; - public uint Token - { - get { return token_; } - set - { - bitArray.Set(TokenFieldNumber, true); - token_ = value; - } - } - - /// Field number for the "object_id" field. - public const int ObjectIdFieldNumber = 3; - private ulong objectId_; - public ulong ObjectId - { - get { return objectId_; } - set - { - bitArray.Set(ObjectIdFieldNumber, true); - objectId_ = value; - } - } - - /// Field number for the "size" field. - public const int SizeFieldNumber = 4; - private uint size_; - public uint Size - { - get { return size_; } - set - { - bitArray.Set(SizeFieldNumber, true); - size_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private uint status_; - public uint Status - { - get { return status_; } - set - { - bitArray.Set(StatusFieldNumber, true); - status_ = value; - } - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_error_codec - = pb::FieldCodec.ForMessage(58, Bgs.Protocol.ErrorInfo.Parser); - private readonly pbc::RepeatedField error_ = new pbc::RepeatedField(); - public pbc::RepeatedField Error - { - get { return error_; } - } - - /// Field number for the "timeout" field. - public const int TimeoutFieldNumber = 7; - private ulong timeout_; - public ulong Timeout - { - get { return timeout_; } - set - { - bitArray.Set(TimeoutFieldNumber, true); - timeout_ = value; - } - } - - /// Field number for the "is_response" field. - public const int IsResponseFieldNumber = 8; - private bool isResponse_; - public bool IsResponse - { - get { return isResponse_; } - set - { - bitArray.Set(IsResponseFieldNumber, true); - isResponse_ = value; - } - } - - /// Field number for the "forward_targets" field. - public const int ForwardTargetsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_forwardTargets_codec - = pb::FieldCodec.ForMessage(82, Bgs.Protocol.ProcessId.Parser); - private readonly pbc::RepeatedField forwardTargets_ = new pbc::RepeatedField(); - public pbc::RepeatedField ForwardTargets - { - get { return forwardTargets_; } - } - - /// Field number for the "service_hash" field. - public const int ServiceHashFieldNumber = 10; - private uint serviceHash_; - public uint ServiceHash - { - get { return serviceHash_; } - set - { - bitArray.Set(ServiceHashFieldNumber, true); - serviceHash_ = value; - } - } - - public override bool Equals(object other) - { - return Equals(other as Header); - } - - public bool Equals(Header other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (ServiceId != other.ServiceId) return false; - if (MethodId != other.MethodId) return false; - if (Token != other.Token) return false; - if (ObjectId != other.ObjectId) return false; - if (Size != other.Size) return false; - if (Status != other.Status) return false; - if (!error_.Equals(other.error_)) return false; - if (Timeout != other.Timeout) return false; - if (IsResponse != other.IsResponse) return false; - if (!forwardTargets_.Equals(other.forwardTargets_)) return false; - if (ServiceHash != other.ServiceHash) return false; - return true; - } - - public override int GetHashCode() - { - int hash = 1; - if (ServiceId != 0) hash ^= ServiceId.GetHashCode(); - if (MethodId != 0) hash ^= MethodId.GetHashCode(); - if (Token != 0) hash ^= Token.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); - if (Size != 0) hash ^= Size.GetHashCode(); - if (Status != 0) hash ^= Status.GetHashCode(); - hash ^= error_.GetHashCode(); - if (Timeout != 0UL) hash ^= Timeout.GetHashCode(); - if (IsResponse != false) hash ^= IsResponse.GetHashCode(); - hash ^= forwardTargets_.GetHashCode(); - if (ServiceHash != 0) hash ^= ServiceHash.GetHashCode(); - return hash; - } - - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) - { - if (bitArray.Get(ServiceIdFieldNumber)) - { - output.WriteRawTag(8); - output.WriteUInt32(ServiceId); - } - if (bitArray.Get(MethodIdFieldNumber)) - { - output.WriteRawTag(16); - output.WriteUInt32(MethodId); - } - if (bitArray.Get(TokenFieldNumber)) - { - output.WriteRawTag(24); - output.WriteUInt32(Token); - } - if (bitArray.Get(ObjectIdFieldNumber)) - { - output.WriteRawTag(32); - output.WriteUInt64(ObjectId); - } - if (bitArray.Get(SizeFieldNumber)) - { - output.WriteRawTag(40); - output.WriteUInt32(Size); - } - if (bitArray.Get(StatusFieldNumber)) - { - output.WriteRawTag(48); - output.WriteUInt32(Status); - } - error_.WriteTo(output, _repeated_error_codec); - if (bitArray.Get(TimeoutFieldNumber)) - { - output.WriteRawTag(64); - output.WriteUInt64(Timeout); - } - if (bitArray.Get(IsResponseFieldNumber)) - { - output.WriteRawTag(72); - output.WriteBool(IsResponse); - } - forwardTargets_.WriteTo(output, _repeated_forwardTargets_codec); - if (bitArray.Get(ServiceHashFieldNumber)) - { - output.WriteRawTag(93); - output.WriteFixed32(ServiceHash); - } - } - - public int CalculateSize() - { - int size = 0; - if (bitArray.Get(ServiceIdFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServiceId); - } - if (bitArray.Get(MethodIdFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MethodId); - } - if (bitArray.Get(TokenFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Token); - } - if (bitArray.Get(ObjectIdFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); - } - if (bitArray.Get(SizeFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size); - } - if (bitArray.Get(StatusFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status); - } - size += error_.CalculateSize(_repeated_error_codec); - if (bitArray.Get(TimeoutFieldNumber)) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timeout); - } - if (bitArray.Get(IsResponseFieldNumber)) - { - size += 1 + 1; - } - size += forwardTargets_.CalculateSize(_repeated_forwardTargets_codec); - if (bitArray.Get(ServiceHashFieldNumber)) - { - size += 1 + 4; - } - return size; - } - - public void MergeFrom(Header other) - { - if (other == null) - { - return; - } - if (other.ServiceId != 0) - { - ServiceId = other.ServiceId; - } - if (other.MethodId != 0) - { - MethodId = other.MethodId; - } - if (other.Token != 0) - { - Token = other.Token; - } - if (other.ObjectId != 0UL) - { - ObjectId = other.ObjectId; - } - if (other.Size != 0) - { - Size = other.Size; - } - if (other.Status != 0) - { - Status = other.Status; - } - error_.Add(other.error_); - if (other.Timeout != 0UL) - { - Timeout = other.Timeout; - } - if (other.IsResponse != false) - { - IsResponse = other.IsResponse; - } - forwardTargets_.Add(other.forwardTargets_); - if (other.ServiceHash != 0) - { - ServiceHash = other.ServiceHash; - } - } - - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - ServiceId = input.ReadUInt32(); - break; - } - case 16: - { - MethodId = input.ReadUInt32(); - break; - } - case 24: - { - Token = input.ReadUInt32(); - break; - } - case 32: - { - ObjectId = input.ReadUInt64(); - break; - } - case 40: - { - Size = input.ReadUInt32(); - break; - } - case 48: - { - Status = input.ReadUInt32(); - break; - } - case 58: - { - error_.AddEntriesFrom(input, _repeated_error_codec); - break; - } - case 64: - { - Timeout = input.ReadUInt64(); - break; - } - case 72: - { - IsResponse = input.ReadBool(); - break; - } - case 82: - { - forwardTargets_.AddEntriesFrom(input, _repeated_forwardTargets_codec); - break; - } - case 93: - { - ServiceHash = input.ReadFixed32(); - break; - } - } - } - } - - System.Collections.BitArray bitArray = new System.Collections.BitArray(11); - } - #endregion + } + #region Messages + public sealed partial class NO_RESPONSE : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NO_RESPONSE()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NO_RESPONSE() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NO_RESPONSE(NO_RESPONSE other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NO_RESPONSE Clone() { + return new NO_RESPONSE(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as NO_RESPONSE); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(NO_RESPONSE other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(NO_RESPONSE other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + } + + } + + public sealed partial class Address : pb::IMessage
{ + private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Address()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser
Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Address() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Address(Address other) : this() { + _hasBits0 = other._hasBits0; + address_ = other.address_; + port_ = other.port_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Address Clone() { + return new Address(this); + } + + /// Field number for the "address" field. + public const int Address_FieldNumber = 1; + private readonly static string Address_DefaultValue = ""; + + private string address_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Address_ { + get { return address_ ?? Address_DefaultValue; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "address" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAddress_ { + get { return address_ != null; } + } + /// Clears the value of the "address" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAddress_() { + address_ = null; + } + + /// Field number for the "port" field. + public const int PortFieldNumber = 2; + private readonly static uint PortDefaultValue = 0; + + private uint port_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Port { + get { if ((_hasBits0 & 1) != 0) { return port_; } else { return PortDefaultValue; } } + set { + _hasBits0 |= 1; + port_ = value; + } + } + /// Gets whether the "port" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPort { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "port" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPort() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Address); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Address other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Address_ != other.Address_) return false; + if (Port != other.Port) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAddress_) hash ^= Address_.GetHashCode(); + if (HasPort) hash ^= Port.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasAddress_) { + output.WriteRawTag(10); + output.WriteString(Address_); + } + if (HasPort) { + output.WriteRawTag(16); + output.WriteUInt32(Port); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAddress_) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Address_); + } + if (HasPort) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Port); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Address other) { + if (other == null) { + return; + } + if (other.HasAddress_) { + Address_ = other.Address_; + } + if (other.HasPort) { + Port = other.Port; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Address_ = input.ReadString(); + break; + } + case 16: { + Port = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class ProcessId : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProcessId()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProcessId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProcessId(ProcessId other) : this() { + _hasBits0 = other._hasBits0; + label_ = other.label_; + epoch_ = other.epoch_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ProcessId Clone() { + return new ProcessId(this); + } + + /// Field number for the "label" field. + public const int LabelFieldNumber = 1; + private readonly static uint LabelDefaultValue = 0; + + private uint label_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Label { + get { if ((_hasBits0 & 1) != 0) { return label_; } else { return LabelDefaultValue; } } + set { + _hasBits0 |= 1; + label_ = value; + } + } + /// Gets whether the "label" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLabel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "label" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLabel() { + _hasBits0 &= ~1; + } + + /// Field number for the "epoch" field. + public const int EpochFieldNumber = 2; + private readonly static uint EpochDefaultValue = 0; + + private uint epoch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Epoch { + get { if ((_hasBits0 & 2) != 0) { return epoch_; } else { return EpochDefaultValue; } } + set { + _hasBits0 |= 2; + epoch_ = value; + } + } + /// Gets whether the "epoch" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEpoch { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "epoch" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEpoch() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ProcessId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ProcessId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Label != other.Label) return false; + if (Epoch != other.Epoch) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasLabel) hash ^= Label.GetHashCode(); + if (HasEpoch) hash ^= Epoch.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasLabel) { + output.WriteRawTag(8); + output.WriteUInt32(Label); + } + if (HasEpoch) { + output.WriteRawTag(16); + output.WriteUInt32(Epoch); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasLabel) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Label); + } + if (HasEpoch) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Epoch); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ProcessId other) { + if (other == null) { + return; + } + if (other.HasLabel) { + Label = other.Label; + } + if (other.HasEpoch) { + Epoch = other.Epoch; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Label = input.ReadUInt32(); + break; + } + case 16: { + Epoch = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class ObjectAddress : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObjectAddress()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ObjectAddress() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ObjectAddress(ObjectAddress other) : this() { + _hasBits0 = other._hasBits0; + host_ = other.HasHost ? other.host_.Clone() : null; + objectId_ = other.objectId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ObjectAddress Clone() { + return new ObjectAddress(this); + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 1; + private global::Bgs.Protocol.ProcessId host_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId Host { + get { return host_; } + set { + host_ = value; + } + } + /// Gets whether the host field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHost { + get { return host_ != null; } + } + /// Clears the value of the host field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHost() { + host_ = null; + } + + /// Field number for the "object_id" field. + public const int ObjectIdFieldNumber = 2; + private readonly static ulong ObjectIdDefaultValue = 0UL; + + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ObjectId { + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } + set { + _hasBits0 |= 1; + objectId_ = value; + } + } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ObjectAddress); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ObjectAddress other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Host, other.Host)) return false; + if (ObjectId != other.ObjectId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasHost) hash ^= Host.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasHost) { + output.WriteRawTag(10); + output.WriteMessage(Host); + } + if (HasObjectId) { + output.WriteRawTag(16); + output.WriteUInt64(ObjectId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasHost) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host); + } + if (HasObjectId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ObjectAddress other) { + if (other == null) { + return; + } + if (other.HasHost) { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + Host.MergeFrom(other.Host); + } + if (other.HasObjectId) { + ObjectId = other.ObjectId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasHost) { + Host = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(Host); + break; + } + case 16: { + ObjectId = input.ReadUInt64(); + break; + } + } + } + } + + } + + public sealed partial class NoData : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NoData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NoData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NoData(NoData other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NoData Clone() { + return new NoData(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as NoData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(NoData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(NoData other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + } + + } + + public sealed partial class ErrorInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ErrorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ErrorInfo(ErrorInfo other) : this() { + _hasBits0 = other._hasBits0; + objectAddress_ = other.HasObjectAddress ? other.objectAddress_.Clone() : null; + status_ = other.status_; + serviceHash_ = other.serviceHash_; + methodId_ = other.methodId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ErrorInfo Clone() { + return new ErrorInfo(this); + } + + /// Field number for the "object_address" field. + public const int ObjectAddressFieldNumber = 1; + private global::Bgs.Protocol.ObjectAddress objectAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ObjectAddress ObjectAddress { + get { return objectAddress_; } + set { + objectAddress_ = value; + } + } + /// Gets whether the object_address field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectAddress { + get { return objectAddress_ != null; } + } + /// Clears the value of the object_address field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectAddress() { + objectAddress_ = null; + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 2; + private readonly static uint StatusDefaultValue = 0; + + private uint status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Status { + get { if ((_hasBits0 & 1) != 0) { return status_; } else { return StatusDefaultValue; } } + set { + _hasBits0 |= 1; + status_ = value; + } + } + /// Gets whether the "status" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStatus { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "status" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStatus() { + _hasBits0 &= ~1; + } + + /// Field number for the "service_hash" field. + public const int ServiceHashFieldNumber = 3; + private readonly static uint ServiceHashDefaultValue = 0; + + private uint serviceHash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ServiceHash { + get { if ((_hasBits0 & 2) != 0) { return serviceHash_; } else { return ServiceHashDefaultValue; } } + set { + _hasBits0 |= 2; + serviceHash_ = value; + } + } + /// Gets whether the "service_hash" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServiceHash { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "service_hash" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServiceHash() { + _hasBits0 &= ~2; + } + + /// Field number for the "method_id" field. + public const int MethodIdFieldNumber = 4; + private readonly static uint MethodIdDefaultValue = 0; + + private uint methodId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MethodId { + get { if ((_hasBits0 & 4) != 0) { return methodId_; } else { return MethodIdDefaultValue; } } + set { + _hasBits0 |= 4; + methodId_ = value; + } + } + /// Gets whether the "method_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMethodId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "method_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMethodId() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ErrorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ErrorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ObjectAddress, other.ObjectAddress)) return false; + if (Status != other.Status) return false; + if (ServiceHash != other.ServiceHash) return false; + if (MethodId != other.MethodId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasObjectAddress) hash ^= ObjectAddress.GetHashCode(); + if (HasStatus) hash ^= Status.GetHashCode(); + if (HasServiceHash) hash ^= ServiceHash.GetHashCode(); + if (HasMethodId) hash ^= MethodId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasObjectAddress) { + output.WriteRawTag(10); + output.WriteMessage(ObjectAddress); + } + if (HasStatus) { + output.WriteRawTag(16); + output.WriteUInt32(Status); + } + if (HasServiceHash) { + output.WriteRawTag(24); + output.WriteUInt32(ServiceHash); + } + if (HasMethodId) { + output.WriteRawTag(32); + output.WriteUInt32(MethodId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasObjectAddress) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ObjectAddress); + } + if (HasStatus) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status); + } + if (HasServiceHash) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServiceHash); + } + if (HasMethodId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MethodId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ErrorInfo other) { + if (other == null) { + return; + } + if (other.HasObjectAddress) { + if (!HasObjectAddress) { + ObjectAddress = new global::Bgs.Protocol.ObjectAddress(); + } + ObjectAddress.MergeFrom(other.ObjectAddress); + } + if (other.HasStatus) { + Status = other.Status; + } + if (other.HasServiceHash) { + ServiceHash = other.ServiceHash; + } + if (other.HasMethodId) { + MethodId = other.MethodId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (!HasObjectAddress) { + ObjectAddress = new global::Bgs.Protocol.ObjectAddress(); + } + input.ReadMessage(ObjectAddress); + break; + } + case 16: { + Status = input.ReadUInt32(); + break; + } + case 24: { + ServiceHash = input.ReadUInt32(); + break; + } + case 32: { + MethodId = input.ReadUInt32(); + break; + } + } + } + } + + } + + public sealed partial class FanoutTarget : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FanoutTarget()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FanoutTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FanoutTarget(FanoutTarget other) : this() { + clientId_ = other.clientId_; + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FanoutTarget Clone() { + return new FanoutTarget(this); + } + + /// Field number for the "client_id" field. + public const int ClientIdFieldNumber = 1; + private readonly static string ClientIdDefaultValue = ""; + + private string clientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ClientId { + get { return clientId_ ?? ClientIdDefaultValue; } + set { + clientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "client_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientId { + get { return clientId_ != null; } + } + /// Clears the value of the "client_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientId() { + clientId_ = null; + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 2; + private readonly static pb::ByteString KeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Key { + get { return key_ ?? KeyDefaultValue; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasKey { + get { return key_ != null; } + } + /// Clears the value of the "key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearKey() { + key_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FanoutTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FanoutTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientId != other.ClientId) return false; + if (Key != other.Key) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasClientId) hash ^= ClientId.GetHashCode(); + if (HasKey) hash ^= Key.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasClientId) { + output.WriteRawTag(10); + output.WriteString(ClientId); + } + if (HasKey) { + output.WriteRawTag(18); + output.WriteBytes(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasClientId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientId); + } + if (HasKey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FanoutTarget other) { + if (other == null) { + return; + } + if (other.HasClientId) { + ClientId = other.ClientId; + } + if (other.HasKey) { + Key = other.Key; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ClientId = input.ReadString(); + break; + } + case 18: { + Key = input.ReadBytes(); + break; + } + } + } + } + + } + + public sealed partial class Header : pb::IMessage
{ + private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Header()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser
Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Header() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Header(Header other) : this() { + _hasBits0 = other._hasBits0; + serviceId_ = other.serviceId_; + methodId_ = other.methodId_; + token_ = other.token_; + objectId_ = other.objectId_; + size_ = other.size_; + status_ = other.status_; + error_ = other.error_.Clone(); + timeout_ = other.timeout_; + isResponse_ = other.isResponse_; + forwardTargets_ = other.forwardTargets_.Clone(); + serviceHash_ = other.serviceHash_; + clientId_ = other.clientId_; + fanoutTarget_ = other.fanoutTarget_.Clone(); + clientIdFanoutTarget_ = other.clientIdFanoutTarget_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Header Clone() { + return new Header(this); + } + + /// Field number for the "service_id" field. + public const int ServiceIdFieldNumber = 1; + private readonly static uint ServiceIdDefaultValue = 0; + + private uint serviceId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ServiceId { + get { if ((_hasBits0 & 1) != 0) { return serviceId_; } else { return ServiceIdDefaultValue; } } + set { + _hasBits0 |= 1; + serviceId_ = value; + } + } + /// Gets whether the "service_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServiceId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "service_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServiceId() { + _hasBits0 &= ~1; + } + + /// Field number for the "method_id" field. + public const int MethodIdFieldNumber = 2; + private readonly static uint MethodIdDefaultValue = 0; + + private uint methodId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MethodId { + get { if ((_hasBits0 & 2) != 0) { return methodId_; } else { return MethodIdDefaultValue; } } + set { + _hasBits0 |= 2; + methodId_ = value; + } + } + /// Gets whether the "method_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMethodId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "method_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMethodId() { + _hasBits0 &= ~2; + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 3; + private readonly static uint TokenDefaultValue = 0; + + private uint token_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Token { + get { if ((_hasBits0 & 4) != 0) { return token_; } else { return TokenDefaultValue; } } + set { + _hasBits0 |= 4; + token_ = value; + } + } + /// Gets whether the "token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasToken { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearToken() { + _hasBits0 &= ~4; + } + + /// Field number for the "object_id" field. + public const int ObjectIdFieldNumber = 4; + private readonly static ulong ObjectIdDefaultValue = 0UL; + + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ObjectId { + get { if ((_hasBits0 & 8) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } + set { + _hasBits0 |= 8; + objectId_ = value; + } + } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~8; + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 5; + private readonly static uint SizeDefaultValue = 0; + + private uint size_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Size { + get { if ((_hasBits0 & 16) != 0) { return size_; } else { return SizeDefaultValue; } } + set { + _hasBits0 |= 16; + size_ = value; + } + } + /// Gets whether the "size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSize { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSize() { + _hasBits0 &= ~16; + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 6; + private readonly static uint StatusDefaultValue = 0; + + private uint status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Status { + get { if ((_hasBits0 & 32) != 0) { return status_; } else { return StatusDefaultValue; } } + set { + _hasBits0 |= 32; + status_ = value; + } + } + /// Gets whether the "status" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStatus { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "status" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStatus() { + _hasBits0 &= ~32; + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_error_codec + = pb::FieldCodec.ForMessage(58, global::Bgs.Protocol.ErrorInfo.Parser); + private readonly pbc::RepeatedField error_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Error { + get { return error_; } + } + + /// Field number for the "timeout" field. + public const int TimeoutFieldNumber = 8; + private readonly static ulong TimeoutDefaultValue = 0UL; + + private ulong timeout_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Timeout { + get { if ((_hasBits0 & 64) != 0) { return timeout_; } else { return TimeoutDefaultValue; } } + set { + _hasBits0 |= 64; + timeout_ = value; + } + } + /// Gets whether the "timeout" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTimeout { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "timeout" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTimeout() { + _hasBits0 &= ~64; + } + + /// Field number for the "is_response" field. + public const int IsResponseFieldNumber = 9; + private readonly static bool IsResponseDefaultValue = false; + + private bool isResponse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsResponse { + get { if ((_hasBits0 & 128) != 0) { return isResponse_; } else { return IsResponseDefaultValue; } } + set { + _hasBits0 |= 128; + isResponse_ = value; + } + } + /// Gets whether the "is_response" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsResponse { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "is_response" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsResponse() { + _hasBits0 &= ~128; + } + + /// Field number for the "forward_targets" field. + public const int ForwardTargetsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_forwardTargets_codec + = pb::FieldCodec.ForMessage(82, global::Bgs.Protocol.ProcessId.Parser); + private readonly pbc::RepeatedField forwardTargets_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ForwardTargets { + get { return forwardTargets_; } + } + + /// Field number for the "service_hash" field. + public const int ServiceHashFieldNumber = 11; + private readonly static uint ServiceHashDefaultValue = 0; + + private uint serviceHash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ServiceHash { + get { if ((_hasBits0 & 256) != 0) { return serviceHash_; } else { return ServiceHashDefaultValue; } } + set { + _hasBits0 |= 256; + serviceHash_ = value; + } + } + /// Gets whether the "service_hash" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServiceHash { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "service_hash" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServiceHash() { + _hasBits0 &= ~256; + } + + /// Field number for the "client_id" field. + public const int ClientIdFieldNumber = 13; + private readonly static string ClientIdDefaultValue = ""; + + private string clientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ClientId { + get { return clientId_ ?? ClientIdDefaultValue; } + set { + clientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "client_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientId { + get { return clientId_ != null; } + } + /// Clears the value of the "client_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientId() { + clientId_ = null; + } + + /// Field number for the "fanout_target" field. + public const int FanoutTargetFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_fanoutTarget_codec + = pb::FieldCodec.ForMessage(114, global::Bgs.Protocol.FanoutTarget.Parser); + private readonly pbc::RepeatedField fanoutTarget_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField FanoutTarget { + get { return fanoutTarget_; } + } + + /// Field number for the "client_id_fanout_target" field. + public const int ClientIdFanoutTargetFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_clientIdFanoutTarget_codec + = pb::FieldCodec.ForString(122); + private readonly pbc::RepeatedField clientIdFanoutTarget_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ClientIdFanoutTarget { + get { return clientIdFanoutTarget_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Header); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Header other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServiceId != other.ServiceId) return false; + if (MethodId != other.MethodId) return false; + if (Token != other.Token) return false; + if (ObjectId != other.ObjectId) return false; + if (Size != other.Size) return false; + if (Status != other.Status) return false; + if(!error_.Equals(other.error_)) return false; + if (Timeout != other.Timeout) return false; + if (IsResponse != other.IsResponse) return false; + if(!forwardTargets_.Equals(other.forwardTargets_)) return false; + if (ServiceHash != other.ServiceHash) return false; + if (ClientId != other.ClientId) return false; + if(!fanoutTarget_.Equals(other.fanoutTarget_)) return false; + if(!clientIdFanoutTarget_.Equals(other.clientIdFanoutTarget_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasServiceId) hash ^= ServiceId.GetHashCode(); + if (HasMethodId) hash ^= MethodId.GetHashCode(); + if (HasToken) hash ^= Token.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (HasSize) hash ^= Size.GetHashCode(); + if (HasStatus) hash ^= Status.GetHashCode(); + hash ^= error_.GetHashCode(); + if (HasTimeout) hash ^= Timeout.GetHashCode(); + if (HasIsResponse) hash ^= IsResponse.GetHashCode(); + hash ^= forwardTargets_.GetHashCode(); + if (HasServiceHash) hash ^= ServiceHash.GetHashCode(); + if (HasClientId) hash ^= ClientId.GetHashCode(); + hash ^= fanoutTarget_.GetHashCode(); + hash ^= clientIdFanoutTarget_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasServiceId) { + output.WriteRawTag(8); + output.WriteUInt32(ServiceId); + } + if (HasMethodId) { + output.WriteRawTag(16); + output.WriteUInt32(MethodId); + } + if (HasToken) { + output.WriteRawTag(24); + output.WriteUInt32(Token); + } + if (HasObjectId) { + output.WriteRawTag(32); + output.WriteUInt64(ObjectId); + } + if (HasSize) { + output.WriteRawTag(40); + output.WriteUInt32(Size); + } + if (HasStatus) { + output.WriteRawTag(48); + output.WriteUInt32(Status); + } + error_.WriteTo(output, _repeated_error_codec); + if (HasTimeout) { + output.WriteRawTag(64); + output.WriteUInt64(Timeout); + } + if (HasIsResponse) { + output.WriteRawTag(72); + output.WriteBool(IsResponse); + } + forwardTargets_.WriteTo(output, _repeated_forwardTargets_codec); + if (HasServiceHash) { + output.WriteRawTag(93); + output.WriteFixed32(ServiceHash); + } + if (HasClientId) { + output.WriteRawTag(106); + output.WriteString(ClientId); + } + fanoutTarget_.WriteTo(output, _repeated_fanoutTarget_codec); + clientIdFanoutTarget_.WriteTo(output, _repeated_clientIdFanoutTarget_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasServiceId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServiceId); + } + if (HasMethodId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MethodId); + } + if (HasToken) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Token); + } + if (HasObjectId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); + } + if (HasSize) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size); + } + if (HasStatus) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status); + } + size += error_.CalculateSize(_repeated_error_codec); + if (HasTimeout) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timeout); + } + if (HasIsResponse) { + size += 1 + 1; + } + size += forwardTargets_.CalculateSize(_repeated_forwardTargets_codec); + if (HasServiceHash) { + size += 1 + 4; + } + if (HasClientId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientId); + } + size += fanoutTarget_.CalculateSize(_repeated_fanoutTarget_codec); + size += clientIdFanoutTarget_.CalculateSize(_repeated_clientIdFanoutTarget_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Header other) { + if (other == null) { + return; + } + if (other.HasServiceId) { + ServiceId = other.ServiceId; + } + if (other.HasMethodId) { + MethodId = other.MethodId; + } + if (other.HasToken) { + Token = other.Token; + } + if (other.HasObjectId) { + ObjectId = other.ObjectId; + } + if (other.HasSize) { + Size = other.Size; + } + if (other.HasStatus) { + Status = other.Status; + } + error_.Add(other.error_); + if (other.HasTimeout) { + Timeout = other.Timeout; + } + if (other.HasIsResponse) { + IsResponse = other.IsResponse; + } + forwardTargets_.Add(other.forwardTargets_); + if (other.HasServiceHash) { + ServiceHash = other.ServiceHash; + } + if (other.HasClientId) { + ClientId = other.ClientId; + } + fanoutTarget_.Add(other.fanoutTarget_); + clientIdFanoutTarget_.Add(other.clientIdFanoutTarget_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServiceId = input.ReadUInt32(); + break; + } + case 16: { + MethodId = input.ReadUInt32(); + break; + } + case 24: { + Token = input.ReadUInt32(); + break; + } + case 32: { + ObjectId = input.ReadUInt64(); + break; + } + case 40: { + Size = input.ReadUInt32(); + break; + } + case 48: { + Status = input.ReadUInt32(); + break; + } + case 58: { + error_.AddEntriesFrom(input, _repeated_error_codec); + break; + } + case 64: { + Timeout = input.ReadUInt64(); + break; + } + case 72: { + IsResponse = input.ReadBool(); + break; + } + case 82: { + forwardTargets_.AddEntriesFrom(input, _repeated_forwardTargets_codec); + break; + } + case 93: { + ServiceHash = input.ReadFixed32(); + break; + } + case 106: { + ClientId = input.ReadString(); + break; + } + case 114: { + fanoutTarget_.AddEntriesFrom(input, _repeated_fanoutTarget_codec); + break; + } + case 122: { + clientIdFanoutTarget_.AddEntriesFrom(input, _repeated_clientIdFanoutTarget_codec); + break; + } + } + } + } + + } + + public sealed partial class KafkaHeader : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KafkaHeader()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.RpcTypesReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KafkaHeader() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KafkaHeader(KafkaHeader other) : this() { + _hasBits0 = other._hasBits0; + serviceHash_ = other.serviceHash_; + methodId_ = other.methodId_; + token_ = other.token_; + objectId_ = other.objectId_; + size_ = other.size_; + status_ = other.status_; + timeout_ = other.timeout_; + forwardTarget_ = other.HasForwardTarget ? other.forwardTarget_.Clone() : null; + returnTopic_ = other.returnTopic_; + clientId_ = other.clientId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public KafkaHeader Clone() { + return new KafkaHeader(this); + } + + /// Field number for the "service_hash" field. + public const int ServiceHashFieldNumber = 1; + private readonly static uint ServiceHashDefaultValue = 0; + + private uint serviceHash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ServiceHash { + get { if ((_hasBits0 & 1) != 0) { return serviceHash_; } else { return ServiceHashDefaultValue; } } + set { + _hasBits0 |= 1; + serviceHash_ = value; + } + } + /// Gets whether the "service_hash" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasServiceHash { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "service_hash" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearServiceHash() { + _hasBits0 &= ~1; + } + + /// Field number for the "method_id" field. + public const int MethodIdFieldNumber = 2; + private readonly static uint MethodIdDefaultValue = 0; + + private uint methodId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MethodId { + get { if ((_hasBits0 & 2) != 0) { return methodId_; } else { return MethodIdDefaultValue; } } + set { + _hasBits0 |= 2; + methodId_ = value; + } + } + /// Gets whether the "method_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMethodId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "method_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMethodId() { + _hasBits0 &= ~2; + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 3; + private readonly static uint TokenDefaultValue = 0; + + private uint token_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Token { + get { if ((_hasBits0 & 4) != 0) { return token_; } else { return TokenDefaultValue; } } + set { + _hasBits0 |= 4; + token_ = value; + } + } + /// Gets whether the "token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasToken { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearToken() { + _hasBits0 &= ~4; + } + + /// Field number for the "object_id" field. + public const int ObjectIdFieldNumber = 4; + private readonly static ulong ObjectIdDefaultValue = 0UL; + + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong ObjectId { + get { if ((_hasBits0 & 8) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } + set { + _hasBits0 |= 8; + objectId_ = value; + } + } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~8; + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 5; + private readonly static uint SizeDefaultValue = 0; + + private uint size_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Size { + get { if ((_hasBits0 & 16) != 0) { return size_; } else { return SizeDefaultValue; } } + set { + _hasBits0 |= 16; + size_ = value; + } + } + /// Gets whether the "size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSize { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSize() { + _hasBits0 &= ~16; + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 6; + private readonly static uint StatusDefaultValue = 0; + + private uint status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Status { + get { if ((_hasBits0 & 32) != 0) { return status_; } else { return StatusDefaultValue; } } + set { + _hasBits0 |= 32; + status_ = value; + } + } + /// Gets whether the "status" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStatus { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "status" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStatus() { + _hasBits0 &= ~32; + } + + /// Field number for the "timeout" field. + public const int TimeoutFieldNumber = 7; + private readonly static ulong TimeoutDefaultValue = 0UL; + + private ulong timeout_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Timeout { + get { if ((_hasBits0 & 64) != 0) { return timeout_; } else { return TimeoutDefaultValue; } } + set { + _hasBits0 |= 64; + timeout_ = value; + } + } + /// Gets whether the "timeout" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTimeout { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "timeout" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTimeout() { + _hasBits0 &= ~64; + } + + /// Field number for the "forward_target" field. + public const int ForwardTargetFieldNumber = 8; + private global::Bgs.Protocol.ProcessId forwardTarget_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.ProcessId ForwardTarget { + get { return forwardTarget_; } + set { + forwardTarget_ = value; + } + } + /// Gets whether the forward_target field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForwardTarget { + get { return forwardTarget_ != null; } + } + /// Clears the value of the forward_target field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForwardTarget() { + forwardTarget_ = null; + } + + /// Field number for the "return_topic" field. + public const int ReturnTopicFieldNumber = 9; + private readonly static string ReturnTopicDefaultValue = ""; + + private string returnTopic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ReturnTopic { + get { return returnTopic_ ?? ReturnTopicDefaultValue; } + set { + returnTopic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_topic" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReturnTopic { + get { return returnTopic_ != null; } + } + /// Clears the value of the "return_topic" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReturnTopic() { + returnTopic_ = null; + } + + /// Field number for the "client_id" field. + public const int ClientIdFieldNumber = 11; + private readonly static string ClientIdDefaultValue = ""; + + private string clientId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ClientId { + get { return clientId_ ?? ClientIdDefaultValue; } + set { + clientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "client_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClientId { + get { return clientId_ != null; } + } + /// Clears the value of the "client_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClientId() { + clientId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as KafkaHeader); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(KafkaHeader other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServiceHash != other.ServiceHash) return false; + if (MethodId != other.MethodId) return false; + if (Token != other.Token) return false; + if (ObjectId != other.ObjectId) return false; + if (Size != other.Size) return false; + if (Status != other.Status) return false; + if (Timeout != other.Timeout) return false; + if (!object.Equals(ForwardTarget, other.ForwardTarget)) return false; + if (ReturnTopic != other.ReturnTopic) return false; + if (ClientId != other.ClientId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasServiceHash) hash ^= ServiceHash.GetHashCode(); + if (HasMethodId) hash ^= MethodId.GetHashCode(); + if (HasToken) hash ^= Token.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (HasSize) hash ^= Size.GetHashCode(); + if (HasStatus) hash ^= Status.GetHashCode(); + if (HasTimeout) hash ^= Timeout.GetHashCode(); + if (HasForwardTarget) hash ^= ForwardTarget.GetHashCode(); + if (HasReturnTopic) hash ^= ReturnTopic.GetHashCode(); + if (HasClientId) hash ^= ClientId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasServiceHash) { + output.WriteRawTag(13); + output.WriteFixed32(ServiceHash); + } + if (HasMethodId) { + output.WriteRawTag(16); + output.WriteUInt32(MethodId); + } + if (HasToken) { + output.WriteRawTag(24); + output.WriteUInt32(Token); + } + if (HasObjectId) { + output.WriteRawTag(32); + output.WriteUInt64(ObjectId); + } + if (HasSize) { + output.WriteRawTag(40); + output.WriteUInt32(Size); + } + if (HasStatus) { + output.WriteRawTag(48); + output.WriteUInt32(Status); + } + if (HasTimeout) { + output.WriteRawTag(56); + output.WriteUInt64(Timeout); + } + if (HasForwardTarget) { + output.WriteRawTag(66); + output.WriteMessage(ForwardTarget); + } + if (HasReturnTopic) { + output.WriteRawTag(74); + output.WriteString(ReturnTopic); + } + if (HasClientId) { + output.WriteRawTag(90); + output.WriteString(ClientId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasServiceHash) { + size += 1 + 4; + } + if (HasMethodId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MethodId); + } + if (HasToken) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Token); + } + if (HasObjectId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); + } + if (HasSize) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size); + } + if (HasStatus) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status); + } + if (HasTimeout) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timeout); + } + if (HasForwardTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForwardTarget); + } + if (HasReturnTopic) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnTopic); + } + if (HasClientId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(KafkaHeader other) { + if (other == null) { + return; + } + if (other.HasServiceHash) { + ServiceHash = other.ServiceHash; + } + if (other.HasMethodId) { + MethodId = other.MethodId; + } + if (other.HasToken) { + Token = other.Token; + } + if (other.HasObjectId) { + ObjectId = other.ObjectId; + } + if (other.HasSize) { + Size = other.Size; + } + if (other.HasStatus) { + Status = other.Status; + } + if (other.HasTimeout) { + Timeout = other.Timeout; + } + if (other.HasForwardTarget) { + if (!HasForwardTarget) { + ForwardTarget = new global::Bgs.Protocol.ProcessId(); + } + ForwardTarget.MergeFrom(other.ForwardTarget); + } + if (other.HasReturnTopic) { + ReturnTopic = other.ReturnTopic; + } + if (other.HasClientId) { + ClientId = other.ClientId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + ServiceHash = input.ReadFixed32(); + break; + } + case 16: { + MethodId = input.ReadUInt32(); + break; + } + case 24: { + Token = input.ReadUInt32(); + break; + } + case 32: { + ObjectId = input.ReadUInt64(); + break; + } + case 40: { + Size = input.ReadUInt32(); + break; + } + case 48: { + Status = input.ReadUInt32(); + break; + } + case 56: { + Timeout = input.ReadUInt64(); + break; + } + case 66: { + if (!HasForwardTarget) { + ForwardTarget = new global::Bgs.Protocol.ProcessId(); + } + input.ReadMessage(ForwardTarget); + break; + } + case 74: { + ReturnTopic = input.ReadString(); + break; + } + case 90: { + ClientId = input.ReadString(); + break; + } + } + } + } + + } + + #endregion + } #endregion Designer generated code diff --git a/Source/Framework/Proto/UserManagerService.cs b/Source/Framework/Proto/UserManagerService.cs index ee0740497..7029fce6a 100644 --- a/Source/Framework/Proto/UserManagerService.cs +++ b/Source/Framework/Proto/UserManagerService.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/user_manager_service.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/user_manager_service.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.UserManager.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.UserManager.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/user_manager_service.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/user_manager_service.proto public static partial class UserManagerServiceReflection { #region Descriptor @@ -21,152 +22,189 @@ namespace Bgs.Protocol.UserManager.V1 private static pbr::FileDescriptor descriptor; static UserManagerServiceReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CixiZ3MvbG93L3BiL2NsaWVudC91c2VyX21hbmFnZXJfc2VydmljZS5wcm90", "bxIcYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MRoqYmdzL2xvdy9wYi9j", "bGllbnQvdXNlcl9tYW5hZ2VyX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2Ns", "aWVudC9lbnRpdHlfdHlwZXMucHJvdG8aImJncy9sb3cvcGIvY2xpZW50L3Jv", "bGVfdHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5w", - "cm90byJPChBTdWJzY3JpYmVSZXF1ZXN0EigKCGFnZW50X2lkGAEgASgLMhYu", - "YmdzLnByb3RvY29sLkVudGl0eUlkEhEKCW9iamVjdF9pZBgCIAEoBCK/AQoR", - "U3Vic2NyaWJlUmVzcG9uc2USRAoPYmxvY2tlZF9wbGF5ZXJzGAEgAygLMisu", - "YmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5CbG9ja2VkUGxheWVyEkIK", - "DnJlY2VudF9wbGF5ZXJzGAIgAygLMiouYmdzLnByb3RvY29sLnVzZXJfbWFu", - "YWdlci52MS5SZWNlbnRQbGF5ZXISIAoEcm9sZRgDIAMoCzISLmJncy5wcm90", - "b2NvbC5Sb2xlIlEKElVuc3Vic2NyaWJlUmVxdWVzdBIoCghhZ2VudF9pZBgB", - "IAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIRCglvYmplY3RfaWQYAiAB", - "KAQikQEKF0FkZFJlY2VudFBsYXllcnNSZXF1ZXN0EjsKB3BsYXllcnMYASAD", - "KAsyKi5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlJlY2VudFBsYXll", - "chIoCghhZ2VudF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIP", - "Cgdwcm9ncmFtGAMgASgNInYKGEFkZFJlY2VudFBsYXllcnNSZXNwb25zZRJB", - "Cg1wbGF5ZXJzX2FkZGVkGAEgAygLMiouYmdzLnByb3RvY29sLnVzZXJfbWFu", - "YWdlci52MS5SZWNlbnRQbGF5ZXISFwoPcGxheWVyc19yZW1vdmVkGAMgAygH", - "IlYKGUNsZWFyUmVjZW50UGxheWVyc1JlcXVlc3QSKAoIYWdlbnRfaWQYASAB", - "KAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSDwoHcHJvZ3JhbRgCIAEoDSI1", - "ChpDbGVhclJlY2VudFBsYXllcnNSZXNwb25zZRIXCg9wbGF5ZXJzX3JlbW92", - "ZWQYASADKAcidwoSQmxvY2tQbGF5ZXJSZXF1ZXN0EigKCGFnZW50X2lkGAEg", - "ASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEikKCXRhcmdldF9pZBgCIAEo", - "CzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIMCgRyb2xlGAMgASgNImsKFFVu", - "YmxvY2tQbGF5ZXJSZXF1ZXN0EigKCGFnZW50X2lkGAEgASgLMhYuYmdzLnBy", - "b3RvY29sLkVudGl0eUlkEikKCXRhcmdldF9pZBgCIAEoCzIWLmJncy5wcm90", - "b2NvbC5FbnRpdHlJZCK6AQoeQmxvY2tlZFBsYXllckFkZGVkTm90aWZpY2F0", - "aW9uEjsKBnBsYXllchgBIAEoCzIrLmJncy5wcm90b2NvbC51c2VyX21hbmFn", - "ZXIudjEuQmxvY2tlZFBsYXllchIvCg9nYW1lX2FjY291bnRfaWQYAiABKAsy", - "Fi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSKgoKYWNjb3VudF9pZBgDIAEoCzIW", - "LmJncy5wcm90b2NvbC5FbnRpdHlJZCK8AQogQmxvY2tlZFBsYXllclJlbW92", - "ZWROb3RpZmljYXRpb24SOwoGcGxheWVyGAEgASgLMisuYmdzLnByb3RvY29s", - "LnVzZXJfbWFuYWdlci52MS5CbG9ja2VkUGxheWVyEi8KD2dhbWVfYWNjb3Vu", - "dF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIqCgphY2NvdW50", - "X2lkGAMgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkIlwKHlJlY2VudFBs", - "YXllcnNBZGRlZE5vdGlmaWNhdGlvbhI6CgZwbGF5ZXIYASADKAsyKi5iZ3Mu", - "cHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlJlY2VudFBsYXllciJeCiBSZWNl", - "bnRQbGF5ZXJzUmVtb3ZlZE5vdGlmaWNhdGlvbhI6CgZwbGF5ZXIYASADKAsy", - "Ki5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlJlY2VudFBsYXllcjK5", - "BgoSVXNlck1hbmFnZXJTZXJ2aWNlEmwKCVN1YnNjcmliZRIuLmJncy5wcm90", - "b2NvbC51c2VyX21hbmFnZXIudjEuU3Vic2NyaWJlUmVxdWVzdBovLmJncy5w", - "cm90b2NvbC51c2VyX21hbmFnZXIudjEuU3Vic2NyaWJlUmVzcG9uc2USgQEK", - "EEFkZFJlY2VudFBsYXllcnMSNS5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2Vy", - "LnYxLkFkZFJlY2VudFBsYXllcnNSZXF1ZXN0GjYuYmdzLnByb3RvY29sLnVz", - "ZXJfbWFuYWdlci52MS5BZGRSZWNlbnRQbGF5ZXJzUmVzcG9uc2UShwEKEkNs", - "ZWFyUmVjZW50UGxheWVycxI3LmJncy5wcm90b2NvbC51c2VyX21hbmFnZXIu", - "djEuQ2xlYXJSZWNlbnRQbGF5ZXJzUmVxdWVzdBo4LmJncy5wcm90b2NvbC51", - "c2VyX21hbmFnZXIudjEuQ2xlYXJSZWNlbnRQbGF5ZXJzUmVzcG9uc2USVQoL", - "QmxvY2tQbGF5ZXISMC5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLkJs", - "b2NrUGxheWVyUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGESWQoNVW5i", - "bG9ja1BsYXllchIyLmJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEuVW5i", - "bG9ja1BsYXllclJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhEl8KFUJs", - "b2NrUGxheWVyRm9yU2Vzc2lvbhIwLmJncy5wcm90b2NvbC51c2VyX21hbmFn", - "ZXIudjEuQmxvY2tQbGF5ZXJSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0", - "YRI9Cg1Mb2FkQmxvY2tMaXN0EhYuYmdzLnByb3RvY29sLkVudGl0eUlkGhQu", - "YmdzLnByb3RvY29sLk5vRGF0YRJVCgtVbnN1YnNjcmliZRIwLmJncy5wcm90", - "b2NvbC51c2VyX21hbmFnZXIudjEuVW5zdWJzY3JpYmVSZXF1ZXN0GhQuYmdz", - "LnByb3RvY29sLk5vRGF0YTLhAwoTVXNlck1hbmFnZXJMaXN0ZW5lchJvChRP", - "bkJsb2NrZWRQbGF5ZXJBZGRlZBI8LmJncy5wcm90b2NvbC51c2VyX21hbmFn", - "ZXIudjEuQmxvY2tlZFBsYXllckFkZGVkTm90aWZpY2F0aW9uGhkuYmdzLnBy", - "b3RvY29sLk5PX1JFU1BPTlNFEnMKFk9uQmxvY2tlZFBsYXllclJlbW92ZWQS", - "Pi5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLkJsb2NrZWRQbGF5ZXJS", - "ZW1vdmVkTm90aWZpY2F0aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNF", - "Em8KFE9uUmVjZW50UGxheWVyc0FkZGVkEjwuYmdzLnByb3RvY29sLnVzZXJf", - "bWFuYWdlci52MS5SZWNlbnRQbGF5ZXJzQWRkZWROb3RpZmljYXRpb24aGS5i", - "Z3MucHJvdG9jb2wuTk9fUkVTUE9OU0UScwoWT25SZWNlbnRQbGF5ZXJzUmVt", - "b3ZlZBI+LmJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEuUmVjZW50UGxh", - "eWVyc1JlbW92ZWROb3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVT", - "UE9OU0VCBUgCgAEAYgZwcm90bzM=")); + "cm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVz", + "c2FnZV9vcHRpb25zLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxf", + "ZXh0ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjhiZ3MvbG93L3BiL2Ns", + "aWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rfb3B0aW9ucy5wcm90bxo5", + "YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvc2VydmljZV9v", + "cHRpb25zLnByb3RvIk8KEFN1YnNjcmliZVJlcXVlc3QSKAoIYWdlbnRfaWQY", + "ASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSEQoJb2JqZWN0X2lkGAIg", + "AigEIr8BChFTdWJzY3JpYmVSZXNwb25zZRJECg9ibG9ja2VkX3BsYXllcnMY", + "ASADKAsyKy5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLkJsb2NrZWRQ", + "bGF5ZXISQgoOcmVjZW50X3BsYXllcnMYAiADKAsyKi5iZ3MucHJvdG9jb2wu", + "dXNlcl9tYW5hZ2VyLnYxLlJlY2VudFBsYXllchIgCgRyb2xlGAMgAygLMhIu", + "YmdzLnByb3RvY29sLlJvbGUiUQoSVW5zdWJzY3JpYmVSZXF1ZXN0EigKCGFn", + "ZW50X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEhEKCW9iamVj", + "dF9pZBgCIAEoBCKRAQoXQWRkUmVjZW50UGxheWVyc1JlcXVlc3QSOwoHcGxh", + "eWVycxgBIAMoCzIqLmJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEuUmVj", + "ZW50UGxheWVyEigKCGFnZW50X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVu", + "dGl0eUlkEg8KB3Byb2dyYW0YAyABKA0iVgoZQ2xlYXJSZWNlbnRQbGF5ZXJz", + "UmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp", + "dHlJZBIPCgdwcm9ncmFtGAIgASgNIncKEkJsb2NrUGxheWVyUmVxdWVzdBIo", + "CghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0", + "YXJnZXRfaWQYAiACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSDAoEcm9s", + "ZRgDIAEoDSJrChRVbmJsb2NrUGxheWVyUmVxdWVzdBIoCghhZ2VudF9pZBgB", + "IAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0YXJnZXRfaWQYAiAC", + "KAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQiugEKHkJsb2NrZWRQbGF5ZXJB", + "ZGRlZE5vdGlmaWNhdGlvbhI7CgZwbGF5ZXIYASACKAsyKy5iZ3MucHJvdG9j", + "b2wudXNlcl9tYW5hZ2VyLnYxLkJsb2NrZWRQbGF5ZXISLwoPZ2FtZV9hY2Nv", + "dW50X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEioKCmFjY291", + "bnRfaWQYAyABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQivAEKIEJsb2Nr", + "ZWRQbGF5ZXJSZW1vdmVkTm90aWZpY2F0aW9uEjsKBnBsYXllchgBIAIoCzIr", + "LmJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEuQmxvY2tlZFBsYXllchIv", + "Cg9nYW1lX2FjY291bnRfaWQYAiABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5", + "SWQSKgoKYWNjb3VudF9pZBgDIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJ", + "ZCJcCh5SZWNlbnRQbGF5ZXJzQWRkZWROb3RpZmljYXRpb24SOgoGcGxheWVy", + "GAEgAygLMiouYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5SZWNlbnRQ", + "bGF5ZXIiXgogUmVjZW50UGxheWVyc1JlbW92ZWROb3RpZmljYXRpb24SOgoG", + "cGxheWVyGAEgAygLMiouYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5S", + "ZWNlbnRQbGF5ZXIytwYKElVzZXJNYW5hZ2VyU2VydmljZRJ0CglTdWJzY3Jp", + "YmUSLi5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlN1YnNjcmliZVJl", + "cXVlc3QaLy5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlN1YnNjcmli", + "ZVJlc3BvbnNlIgaC+SsCCAESZwoQQWRkUmVjZW50UGxheWVycxI1LmJncy5w", + "cm90b2NvbC51c2VyX21hbmFnZXIudjEuQWRkUmVjZW50UGxheWVyc1JlcXVl", + "c3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCAoSawoSQ2xlYXJSZWNl", + "bnRQbGF5ZXJzEjcuYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5DbGVh", + "clJlY2VudFBsYXllcnNSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIG", + "gvkrAggLEl0KC0Jsb2NrUGxheWVyEjAuYmdzLnByb3RvY29sLnVzZXJfbWFu", + "YWdlci52MS5CbG9ja1BsYXllclJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9E", + "YXRhIgaC+SsCCBQSYQoNVW5ibG9ja1BsYXllchIyLmJncy5wcm90b2NvbC51", + "c2VyX21hbmFnZXIudjEuVW5ibG9ja1BsYXllclJlcXVlc3QaFC5iZ3MucHJv", + "dG9jb2wuTm9EYXRhIgaC+SsCCBUSZwoVQmxvY2tQbGF5ZXJGb3JTZXNzaW9u", + "EjAuYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5CbG9ja1BsYXllclJl", + "cXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCCgSXQoLVW5zdWJz", + "Y3JpYmUSMC5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlVuc3Vic2Ny", + "aWJlUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIMxpLgvkr", + "LwotYm5ldC5wcm90b2NvbC51c2VyX21hbmFnZXIuVXNlck1hbmFnZXJTZXJ2", + "aWNlgvkrDioMdXNlcl9tYW5hZ2VyivkrAhABMrsEChNVc2VyTWFuYWdlckxp", + "c3RlbmVyEncKFE9uQmxvY2tlZFBsYXllckFkZGVkEjwuYmdzLnByb3RvY29s", + "LnVzZXJfbWFuYWdlci52MS5CbG9ja2VkUGxheWVyQWRkZWROb3RpZmljYXRp", + "b24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIARJ7ChZPbkJs", + "b2NrZWRQbGF5ZXJSZW1vdmVkEj4uYmdzLnByb3RvY29sLnVzZXJfbWFuYWdl", + "ci52MS5CbG9ja2VkUGxheWVyUmVtb3ZlZE5vdGlmaWNhdGlvbhoZLmJncy5w", + "cm90b2NvbC5OT19SRVNQT05TRSIGgvkrAggCEncKFE9uUmVjZW50UGxheWVy", + "c0FkZGVkEjwuYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5SZWNlbnRQ", + "bGF5ZXJzQWRkZWROb3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVT", + "UE9OU0UiBoL5KwIICxJ7ChZPblJlY2VudFBsYXllcnNSZW1vdmVkEj4uYmdz", + "LnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5SZWNlbnRQbGF5ZXJzUmVtb3Zl", + "ZE5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkr", + "AggMGjiC+SsuCixibmV0LnByb3RvY29sLnVzZXJfbWFuYWdlci5Vc2VyTWFu", + "YWdlck5vdGlmeYr5KwIIAUIDgAEA")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RoleTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.SubscribeRequest), Bgs.Protocol.UserManager.V1.SubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.SubscribeResponse), Bgs.Protocol.UserManager.V1.SubscribeResponse.Parser, new[]{ "BlockedPlayers", "RecentPlayers", "Role" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.UnsubscribeRequest), Bgs.Protocol.UserManager.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.AddRecentPlayersRequest), Bgs.Protocol.UserManager.V1.AddRecentPlayersRequest.Parser, new[]{ "Players", "AgentId", "Program" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.AddRecentPlayersResponse), Bgs.Protocol.UserManager.V1.AddRecentPlayersResponse.Parser, new[]{ "PlayersAdded", "PlayersRemoved" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.ClearRecentPlayersRequest), Bgs.Protocol.UserManager.V1.ClearRecentPlayersRequest.Parser, new[]{ "AgentId", "Program" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.ClearRecentPlayersResponse), Bgs.Protocol.UserManager.V1.ClearRecentPlayersResponse.Parser, new[]{ "PlayersRemoved" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.BlockPlayerRequest), Bgs.Protocol.UserManager.V1.BlockPlayerRequest.Parser, new[]{ "AgentId", "TargetId", "Role" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.UnblockPlayerRequest), Bgs.Protocol.UserManager.V1.UnblockPlayerRequest.Parser, new[]{ "AgentId", "TargetId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.BlockedPlayerAddedNotification), Bgs.Protocol.UserManager.V1.BlockedPlayerAddedNotification.Parser, new[]{ "Player", "GameAccountId", "AccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.BlockedPlayerRemovedNotification), Bgs.Protocol.UserManager.V1.BlockedPlayerRemovedNotification.Parser, new[]{ "Player", "GameAccountId", "AccountId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.RecentPlayersAddedNotification), Bgs.Protocol.UserManager.V1.RecentPlayersAddedNotification.Parser, new[]{ "Player" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.RecentPlayersRemovedNotification), Bgs.Protocol.UserManager.V1.RecentPlayersRemovedNotification.Parser, new[]{ "Player" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.RoleTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.SubscribeRequest), global::Bgs.Protocol.UserManager.V1.SubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.SubscribeResponse), global::Bgs.Protocol.UserManager.V1.SubscribeResponse.Parser, new[]{ "BlockedPlayers", "RecentPlayers", "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.UnsubscribeRequest), global::Bgs.Protocol.UserManager.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.AddRecentPlayersRequest), global::Bgs.Protocol.UserManager.V1.AddRecentPlayersRequest.Parser, new[]{ "Players", "AgentId", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.ClearRecentPlayersRequest), global::Bgs.Protocol.UserManager.V1.ClearRecentPlayersRequest.Parser, new[]{ "AgentId", "Program" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.BlockPlayerRequest), global::Bgs.Protocol.UserManager.V1.BlockPlayerRequest.Parser, new[]{ "AgentId", "TargetId", "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.UnblockPlayerRequest), global::Bgs.Protocol.UserManager.V1.UnblockPlayerRequest.Parser, new[]{ "AgentId", "TargetId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.BlockedPlayerAddedNotification), global::Bgs.Protocol.UserManager.V1.BlockedPlayerAddedNotification.Parser, new[]{ "Player", "GameAccountId", "AccountId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.BlockedPlayerRemovedNotification), global::Bgs.Protocol.UserManager.V1.BlockedPlayerRemovedNotification.Parser, new[]{ "Player", "GameAccountId", "AccountId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.RecentPlayersAddedNotification), global::Bgs.Protocol.UserManager.V1.RecentPlayersAddedNotification.Parser, new[]{ "Player" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.RecentPlayersRemovedNotification), global::Bgs.Protocol.UserManager.V1.RecentPlayersRemovedNotification.Parser, new[]{ "Player" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class SubscribeRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest(SubscribeRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; objectId_ = other.objectId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeRequest Clone() { return new SubscribeRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "object_id" field. public const int ObjectIdFieldNumber = 2; + private readonly static ulong ObjectIdDefaultValue = 0UL; + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ObjectId { - get { return objectId_; } + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } set { + _hasBits0 |= 1; objectId_ = value; } } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SubscribeRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SubscribeRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -176,69 +214,85 @@ namespace Bgs.Protocol.UserManager.V1 } if (!object.Equals(AgentId, other.AgentId)) return false; if (ObjectId != other.ObjectId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (ObjectId != 0UL) { + if (HasObjectId) { output.WriteRawTag(16); output.WriteUInt64(ObjectId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (ObjectId != 0UL) { + if (HasObjectId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SubscribeRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.ObjectId != 0UL) { + if (other.HasObjectId) { ObjectId = other.ObjectId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 16: { @@ -251,66 +305,78 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class SubscribeResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeResponse() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeResponse(SubscribeResponse other) : this() { blockedPlayers_ = other.blockedPlayers_.Clone(); recentPlayers_ = other.recentPlayers_.Clone(); role_ = other.role_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SubscribeResponse Clone() { return new SubscribeResponse(this); } /// Field number for the "blocked_players" field. public const int BlockedPlayersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_blockedPlayers_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.UserManager.V1.BlockedPlayer.Parser); - private readonly pbc::RepeatedField blockedPlayers_ = new pbc::RepeatedField(); - public pbc::RepeatedField BlockedPlayers { + private static readonly pb::FieldCodec _repeated_blockedPlayers_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.UserManager.V1.BlockedPlayer.Parser); + private readonly pbc::RepeatedField blockedPlayers_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField BlockedPlayers { get { return blockedPlayers_; } } /// Field number for the "recent_players" field. public const int RecentPlayersFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_recentPlayers_codec - = pb::FieldCodec.ForMessage(18, Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); - private readonly pbc::RepeatedField recentPlayers_ = new pbc::RepeatedField(); - public pbc::RepeatedField RecentPlayers { + private static readonly pb::FieldCodec _repeated_recentPlayers_codec + = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); + private readonly pbc::RepeatedField recentPlayers_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField RecentPlayers { get { return recentPlayers_; } } /// Field number for the "role" field. public const int RoleFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_role_codec - = pb::FieldCodec.ForMessage(26, Bgs.Protocol.Role.Parser); - private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); - public pbc::RepeatedField Role { + private static readonly pb::FieldCodec _repeated_role_codec + = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Role.Parser); + private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Role { get { return role_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SubscribeResponse); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SubscribeResponse other) { if (ReferenceEquals(other, null)) { return false; @@ -321,35 +387,49 @@ namespace Bgs.Protocol.UserManager.V1 if(!blockedPlayers_.Equals(other.blockedPlayers_)) return false; if(!recentPlayers_.Equals(other.recentPlayers_)) return false; if(!role_.Equals(other.role_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= blockedPlayers_.GetHashCode(); hash ^= recentPlayers_.GetHashCode(); hash ^= role_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { blockedPlayers_.WriteTo(output, _repeated_blockedPlayers_codec); recentPlayers_.WriteTo(output, _repeated_recentPlayers_codec); role_.WriteTo(output, _repeated_role_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += blockedPlayers_.CalculateSize(_repeated_blockedPlayers_codec); size += recentPlayers_.CalculateSize(_repeated_recentPlayers_codec); size += role_.CalculateSize(_repeated_role_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SubscribeResponse other) { if (other == null) { return; @@ -357,14 +437,16 @@ namespace Bgs.Protocol.UserManager.V1 blockedPlayers_.Add(other.blockedPlayers_); recentPlayers_.Add(other.recentPlayers_); role_.Add(other.role_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { blockedPlayers_.AddEntriesFrom(input, _repeated_blockedPlayers_codec); @@ -384,58 +466,94 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class UnsubscribeRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsubscribeRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[2]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[2]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest(UnsubscribeRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; objectId_ = other.objectId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsubscribeRequest Clone() { return new UnsubscribeRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "object_id" field. public const int ObjectIdFieldNumber = 2; + private readonly static ulong ObjectIdDefaultValue = 0UL; + private ulong objectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ObjectId { - get { return objectId_; } + get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } } set { + _hasBits0 |= 1; objectId_ = value; } } + /// Gets whether the "object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasObjectId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearObjectId() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UnsubscribeRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UnsubscribeRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -445,69 +563,85 @@ namespace Bgs.Protocol.UserManager.V1 } if (!object.Equals(AgentId, other.AgentId)) return false; if (ObjectId != other.ObjectId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (ObjectId != 0UL) hash ^= ObjectId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasObjectId) hash ^= ObjectId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (ObjectId != 0UL) { + if (HasObjectId) { output.WriteRawTag(16); output.WriteUInt64(ObjectId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (ObjectId != 0UL) { + if (HasObjectId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UnsubscribeRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.ObjectId != 0UL) { + if (other.HasObjectId) { ObjectId = other.ObjectId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 16: { @@ -520,68 +654,105 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class AddRecentPlayersRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddRecentPlayersRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[3]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[3]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public AddRecentPlayersRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public AddRecentPlayersRequest(AddRecentPlayersRequest other) : this() { + _hasBits0 = other._hasBits0; players_ = other.players_.Clone(); - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public AddRecentPlayersRequest Clone() { return new AddRecentPlayersRequest(this); } /// Field number for the "players" field. public const int PlayersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_players_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); - private readonly pbc::RepeatedField players_ = new pbc::RepeatedField(); - public pbc::RepeatedField Players { + private static readonly pb::FieldCodec _repeated_players_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); + private readonly pbc::RepeatedField players_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Players { get { return players_; } } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 2; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "program" field. public const int ProgramFieldNumber = 3; + private readonly static uint ProgramDefaultValue = 0; + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Program { - get { return program_; } + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } set { + _hasBits0 |= 1; program_ = value; } } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as AddRecentPlayersRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(AddRecentPlayersRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -592,77 +763,93 @@ namespace Bgs.Protocol.UserManager.V1 if(!players_.Equals(other.players_)) return false; if (!object.Equals(AgentId, other.AgentId)) return false; if (Program != other.Program) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= players_.GetHashCode(); - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { players_.WriteTo(output, _repeated_players_codec); - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(18); output.WriteMessage(AgentId); } - if (Program != 0) { + if (HasProgram) { output.WriteRawTag(24); output.WriteUInt32(Program); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += players_.CalculateSize(_repeated_players_codec); - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (Program != 0) { + if (HasProgram) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(AddRecentPlayersRequest other) { if (other == null) { return; } players_.Add(other.players_); - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.Program != 0) { + if (other.HasProgram) { Program = other.Program; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { players_.AddEntriesFrom(input, _repeated_players_codec); break; } case 18: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 24: { @@ -675,173 +862,94 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class AddRecentPlayersResponse : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddRecentPlayersResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[4]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public AddRecentPlayersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - public AddRecentPlayersResponse(AddRecentPlayersResponse other) : this() { - playersAdded_ = other.playersAdded_.Clone(); - playersRemoved_ = other.playersRemoved_.Clone(); - } - - public AddRecentPlayersResponse Clone() { - return new AddRecentPlayersResponse(this); - } - - /// Field number for the "players_added" field. - public const int PlayersAddedFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_playersAdded_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); - private readonly pbc::RepeatedField playersAdded_ = new pbc::RepeatedField(); - public pbc::RepeatedField PlayersAdded { - get { return playersAdded_; } - } - - /// Field number for the "players_removed" field. - public const int PlayersRemovedFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_playersRemoved_codec - = pb::FieldCodec.ForFixed32(26); - private readonly pbc::RepeatedField playersRemoved_ = new pbc::RepeatedField(); - public pbc::RepeatedField PlayersRemoved { - get { return playersRemoved_; } - } - - public override bool Equals(object other) { - return Equals(other as AddRecentPlayersResponse); - } - - public bool Equals(AddRecentPlayersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!playersAdded_.Equals(other.playersAdded_)) return false; - if(!playersRemoved_.Equals(other.playersRemoved_)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - hash ^= playersAdded_.GetHashCode(); - hash ^= playersRemoved_.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - playersAdded_.WriteTo(output, _repeated_playersAdded_codec); - playersRemoved_.WriteTo(output, _repeated_playersRemoved_codec); - } - - public int CalculateSize() { - int size = 0; - size += playersAdded_.CalculateSize(_repeated_playersAdded_codec); - size += playersRemoved_.CalculateSize(_repeated_playersRemoved_codec); - return size; - } - - public void MergeFrom(AddRecentPlayersResponse other) { - if (other == null) { - return; - } - playersAdded_.Add(other.playersAdded_); - playersRemoved_.Add(other.playersRemoved_); - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - playersAdded_.AddEntriesFrom(input, _repeated_playersAdded_codec); - break; - } - case 26: - case 29: { - playersRemoved_.AddEntriesFrom(input, _repeated_playersRemoved_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class ClearRecentPlayersRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClearRecentPlayersRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[5]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[4]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClearRecentPlayersRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClearRecentPlayersRequest(ClearRecentPlayersRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; program_ = other.program_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClearRecentPlayersRequest Clone() { return new ClearRecentPlayersRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "program" field. public const int ProgramFieldNumber = 2; + private readonly static uint ProgramDefaultValue = 0; + private uint program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Program { - get { return program_; } + get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } } set { + _hasBits0 |= 1; program_ = value; } } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ClearRecentPlayersRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ClearRecentPlayersRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -851,69 +959,85 @@ namespace Bgs.Protocol.UserManager.V1 } if (!object.Equals(AgentId, other.AgentId)) return false; if (Program != other.Program) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (Program != 0) hash ^= Program.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (Program != 0) { + if (HasProgram) { output.WriteRawTag(16); output.WriteUInt32(Program); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (Program != 0) { + if (HasProgram) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ClearRecentPlayersRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.Program != 0) { + if (other.HasProgram) { Program = other.Program; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 16: { @@ -926,165 +1050,116 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed partial class ClearRecentPlayersResponse : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClearRecentPlayersResponse()); - public static pb::MessageParser Parser { get { return _parser; } } - - public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[6]; } - } - - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - public ClearRecentPlayersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - public ClearRecentPlayersResponse(ClearRecentPlayersResponse other) : this() { - playersRemoved_ = other.playersRemoved_.Clone(); - } - - public ClearRecentPlayersResponse Clone() { - return new ClearRecentPlayersResponse(this); - } - - /// Field number for the "players_removed" field. - public const int PlayersRemovedFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_playersRemoved_codec - = pb::FieldCodec.ForFixed32(10); - private readonly pbc::RepeatedField playersRemoved_ = new pbc::RepeatedField(); - public pbc::RepeatedField PlayersRemoved { - get { return playersRemoved_; } - } - - public override bool Equals(object other) { - return Equals(other as ClearRecentPlayersResponse); - } - - public bool Equals(ClearRecentPlayersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!playersRemoved_.Equals(other.playersRemoved_)) return false; - return true; - } - - public override int GetHashCode() { - int hash = 1; - hash ^= playersRemoved_.GetHashCode(); - return hash; - } - - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - public void WriteTo(pb::CodedOutputStream output) { - playersRemoved_.WriteTo(output, _repeated_playersRemoved_codec); - } - - public int CalculateSize() { - int size = 0; - size += playersRemoved_.CalculateSize(_repeated_playersRemoved_codec); - return size; - } - - public void MergeFrom(ClearRecentPlayersResponse other) { - if (other == null) { - return; - } - playersRemoved_.Add(other.playersRemoved_); - } - - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: - case 13: { - playersRemoved_.AddEntriesFrom(input, _repeated_playersRemoved_codec); - break; - } - } - } - } - - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class BlockPlayerRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockPlayerRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[7]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[5]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockPlayerRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockPlayerRequest(BlockPlayerRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; + _hasBits0 = other._hasBits0; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; role_ = other.role_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockPlayerRequest Clone() { return new BlockPlayerRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "target_id" field. public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId { + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { get { return targetId_; } set { targetId_ = value; } } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } /// Field number for the "role" field. public const int RoleFieldNumber = 3; + private readonly static uint RoleDefaultValue = 0; + private uint role_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Role { - get { return role_; } + get { if ((_hasBits0 & 1) != 0) { return role_; } else { return RoleDefaultValue; } } set { + _hasBits0 |= 1; role_ = value; } } + /// Gets whether the "role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRole { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRole() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as BlockPlayerRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(BlockPlayerRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -1095,90 +1170,106 @@ namespace Bgs.Protocol.UserManager.V1 if (!object.Equals(AgentId, other.AgentId)) return false; if (!object.Equals(TargetId, other.TargetId)) return false; if (Role != other.Role) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); - if (Role != 0) hash ^= Role.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (HasRole) hash ^= Role.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { output.WriteRawTag(18); output.WriteMessage(TargetId); } - if (Role != 0) { + if (HasRole) { output.WriteRawTag(24); output.WriteUInt32(Role); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); } - if (Role != 0) { + if (HasRole) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Role); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(BlockPlayerRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } TargetId.MergeFrom(other.TargetId); } - if (other.Role != 0) { + if (other.HasRole) { Role = other.Role; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(targetId_); + input.ReadMessage(TargetId); break; } case 24: { @@ -1191,58 +1282,89 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class UnblockPlayerRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnblockPlayerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[8]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[6]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnblockPlayerRequest() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnblockPlayerRequest(UnblockPlayerRequest other) : this() { - AgentId = other.agentId_ != null ? other.AgentId.Clone() : null; - TargetId = other.targetId_ != null ? other.TargetId.Clone() : null; + agentId_ = other.HasAgentId ? other.agentId_.Clone() : null; + targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnblockPlayerRequest Clone() { return new UnblockPlayerRequest(this); } /// Field number for the "agent_id" field. public const int AgentIdFieldNumber = 1; - private Bgs.Protocol.EntityId agentId_; - public Bgs.Protocol.EntityId AgentId { + private global::Bgs.Protocol.EntityId agentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AgentId { get { return agentId_; } set { agentId_ = value; } } + /// Gets whether the agent_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAgentId { + get { return agentId_ != null; } + } + /// Clears the value of the agent_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAgentId() { + agentId_ = null; + } /// Field number for the "target_id" field. public const int TargetIdFieldNumber = 2; - private Bgs.Protocol.EntityId targetId_; - public Bgs.Protocol.EntityId TargetId { + private global::Bgs.Protocol.EntityId targetId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId TargetId { get { return targetId_; } set { targetId_ = value; } } + /// Gets whether the target_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTargetId { + get { return targetId_ != null; } + } + /// Clears the value of the target_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTargetId() { + targetId_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UnblockPlayerRequest); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UnblockPlayerRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -1252,79 +1374,95 @@ namespace Bgs.Protocol.UserManager.V1 } if (!object.Equals(AgentId, other.AgentId)) return false; if (!object.Equals(TargetId, other.TargetId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (agentId_ != null) hash ^= AgentId.GetHashCode(); - if (targetId_ != null) hash ^= TargetId.GetHashCode(); + if (HasAgentId) hash ^= AgentId.GetHashCode(); + if (HasTargetId) hash ^= TargetId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (agentId_ != null) { + if (HasAgentId) { output.WriteRawTag(10); output.WriteMessage(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { output.WriteRawTag(18); output.WriteMessage(TargetId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (agentId_ != null) { + if (HasAgentId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId); } - if (targetId_ != null) { + if (HasTargetId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UnblockPlayerRequest other) { if (other == null) { return; } - if (other.agentId_ != null) { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (other.HasAgentId) { + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } - if (other.targetId_ != null) { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (other.HasTargetId) { + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } TargetId.MergeFrom(other.TargetId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (agentId_ == null) { - agentId_ = new Bgs.Protocol.EntityId(); + if (!HasAgentId) { + AgentId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(agentId_); + input.ReadMessage(AgentId); break; } case 18: { - if (targetId_ == null) { - targetId_ = new Bgs.Protocol.EntityId(); + if (!HasTargetId) { + TargetId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(targetId_); + input.ReadMessage(TargetId); break; } } @@ -1333,69 +1471,111 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class BlockedPlayerAddedNotification : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockedPlayerAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[9]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[7]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayerAddedNotification() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayerAddedNotification(BlockedPlayerAddedNotification other) : this() { - Player = other.player_ != null ? other.Player.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; + player_ = other.HasPlayer ? other.player_.Clone() : null; + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayerAddedNotification Clone() { return new BlockedPlayerAddedNotification(this); } /// Field number for the "player" field. public const int PlayerFieldNumber = 1; - private Bgs.Protocol.UserManager.V1.BlockedPlayer player_; - public Bgs.Protocol.UserManager.V1.BlockedPlayer Player { + private global::Bgs.Protocol.UserManager.V1.BlockedPlayer player_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UserManager.V1.BlockedPlayer Player { get { return player_; } set { player_ = value; } } + /// Gets whether the player field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPlayer { + get { return player_ != null; } + } + /// Clears the value of the player field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPlayer() { + player_ = null; + } /// Field number for the "game_account_id" field. public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId { + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { get { return gameAccountId_; } set { gameAccountId_ = value; } } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } /// Field number for the "account_id" field. public const int AccountIdFieldNumber = 3; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId { + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { get { return accountId_; } set { accountId_ = value; } } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as BlockedPlayerAddedNotification); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(BlockedPlayerAddedNotification other) { if (ReferenceEquals(other, null)) { return false; @@ -1406,100 +1586,116 @@ namespace Bgs.Protocol.UserManager.V1 if (!object.Equals(Player, other.Player)) return false; if (!object.Equals(GameAccountId, other.GameAccountId)) return false; if (!object.Equals(AccountId, other.AccountId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (player_ != null) hash ^= Player.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); + if (HasPlayer) hash ^= Player.GetHashCode(); + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (player_ != null) { + if (HasPlayer) { output.WriteRawTag(10); output.WriteMessage(Player); } - if (gameAccountId_ != null) { + if (HasGameAccountId) { output.WriteRawTag(18); output.WriteMessage(GameAccountId); } - if (accountId_ != null) { + if (HasAccountId) { output.WriteRawTag(26); output.WriteMessage(AccountId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (player_ != null) { + if (HasPlayer) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Player); } - if (gameAccountId_ != null) { + if (HasGameAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); } - if (accountId_ != null) { + if (HasAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(BlockedPlayerAddedNotification other) { if (other == null) { return; } - if (other.player_ != null) { - if (player_ == null) { - player_ = new Bgs.Protocol.UserManager.V1.BlockedPlayer(); + if (other.HasPlayer) { + if (!HasPlayer) { + Player = new global::Bgs.Protocol.UserManager.V1.BlockedPlayer(); } Player.MergeFrom(other.Player); } - if (other.gameAccountId_ != null) { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); } GameAccountId.MergeFrom(other.GameAccountId); } - if (other.accountId_ != null) { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } AccountId.MergeFrom(other.AccountId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (player_ == null) { - player_ = new Bgs.Protocol.UserManager.V1.BlockedPlayer(); + if (!HasPlayer) { + Player = new global::Bgs.Protocol.UserManager.V1.BlockedPlayer(); } - input.ReadMessage(player_); + input.ReadMessage(Player); break; } case 18: { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(gameAccountId_); + input.ReadMessage(GameAccountId); break; } case 26: { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(accountId_); + input.ReadMessage(AccountId); break; } } @@ -1508,69 +1704,111 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class BlockedPlayerRemovedNotification : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockedPlayerRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[10]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[8]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayerRemovedNotification() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayerRemovedNotification(BlockedPlayerRemovedNotification other) : this() { - Player = other.player_ != null ? other.Player.Clone() : null; - GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; + player_ = other.HasPlayer ? other.player_.Clone() : null; + gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayerRemovedNotification Clone() { return new BlockedPlayerRemovedNotification(this); } /// Field number for the "player" field. public const int PlayerFieldNumber = 1; - private Bgs.Protocol.UserManager.V1.BlockedPlayer player_; - public Bgs.Protocol.UserManager.V1.BlockedPlayer Player { + private global::Bgs.Protocol.UserManager.V1.BlockedPlayer player_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.UserManager.V1.BlockedPlayer Player { get { return player_; } set { player_ = value; } } + /// Gets whether the player field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPlayer { + get { return player_ != null; } + } + /// Clears the value of the player field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPlayer() { + player_ = null; + } /// Field number for the "game_account_id" field. public const int GameAccountIdFieldNumber = 2; - private Bgs.Protocol.EntityId gameAccountId_; - public Bgs.Protocol.EntityId GameAccountId { + private global::Bgs.Protocol.EntityId gameAccountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId GameAccountId { get { return gameAccountId_; } set { gameAccountId_ = value; } } + /// Gets whether the game_account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGameAccountId { + get { return gameAccountId_ != null; } + } + /// Clears the value of the game_account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGameAccountId() { + gameAccountId_ = null; + } /// Field number for the "account_id" field. public const int AccountIdFieldNumber = 3; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId { + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { get { return accountId_; } set { accountId_ = value; } } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as BlockedPlayerRemovedNotification); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(BlockedPlayerRemovedNotification other) { if (ReferenceEquals(other, null)) { return false; @@ -1581,100 +1819,116 @@ namespace Bgs.Protocol.UserManager.V1 if (!object.Equals(Player, other.Player)) return false; if (!object.Equals(GameAccountId, other.GameAccountId)) return false; if (!object.Equals(AccountId, other.AccountId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (player_ != null) hash ^= Player.GetHashCode(); - if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); - if (accountId_ != null) hash ^= AccountId.GetHashCode(); + if (HasPlayer) hash ^= Player.GetHashCode(); + if (HasGameAccountId) hash ^= GameAccountId.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (player_ != null) { + if (HasPlayer) { output.WriteRawTag(10); output.WriteMessage(Player); } - if (gameAccountId_ != null) { + if (HasGameAccountId) { output.WriteRawTag(18); output.WriteMessage(GameAccountId); } - if (accountId_ != null) { + if (HasAccountId) { output.WriteRawTag(26); output.WriteMessage(AccountId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (player_ != null) { + if (HasPlayer) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Player); } - if (gameAccountId_ != null) { + if (HasGameAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); } - if (accountId_ != null) { + if (HasAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(BlockedPlayerRemovedNotification other) { if (other == null) { return; } - if (other.player_ != null) { - if (player_ == null) { - player_ = new Bgs.Protocol.UserManager.V1.BlockedPlayer(); + if (other.HasPlayer) { + if (!HasPlayer) { + Player = new global::Bgs.Protocol.UserManager.V1.BlockedPlayer(); } Player.MergeFrom(other.Player); } - if (other.gameAccountId_ != null) { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); + if (other.HasGameAccountId) { + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); } GameAccountId.MergeFrom(other.GameAccountId); } - if (other.accountId_ != null) { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } AccountId.MergeFrom(other.AccountId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (player_ == null) { - player_ = new Bgs.Protocol.UserManager.V1.BlockedPlayer(); + if (!HasPlayer) { + Player = new global::Bgs.Protocol.UserManager.V1.BlockedPlayer(); } - input.ReadMessage(player_); + input.ReadMessage(Player); break; } case 18: { - if (gameAccountId_ == null) { - gameAccountId_ = new Bgs.Protocol.EntityId(); + if (!HasGameAccountId) { + GameAccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(gameAccountId_); + input.ReadMessage(GameAccountId); break; } case 26: { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(accountId_); + input.ReadMessage(AccountId); break; } } @@ -1683,46 +1937,56 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class RecentPlayersAddedNotification : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecentPlayersAddedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[11]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[9]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayersAddedNotification() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayersAddedNotification(RecentPlayersAddedNotification other) : this() { player_ = other.player_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayersAddedNotification Clone() { return new RecentPlayersAddedNotification(this); } /// Field number for the "player" field. public const int PlayerFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_player_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); - private readonly pbc::RepeatedField player_ = new pbc::RepeatedField(); - public pbc::RepeatedField Player { + private static readonly pb::FieldCodec _repeated_player_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); + private readonly pbc::RepeatedField player_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Player { get { return player_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RecentPlayersAddedNotification); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RecentPlayersAddedNotification other) { if (ReferenceEquals(other, null)) { return false; @@ -1731,42 +1995,58 @@ namespace Bgs.Protocol.UserManager.V1 return true; } if(!player_.Equals(other.player_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= player_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { player_.WriteTo(output, _repeated_player_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += player_.CalculateSize(_repeated_player_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RecentPlayersAddedNotification other) { if (other == null) { return; } player_.Add(other.player_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { player_.AddEntriesFrom(input, _repeated_player_codec); @@ -1778,46 +2058,56 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class RecentPlayersRemovedNotification : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecentPlayersRemovedNotification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[12]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[10]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayersRemovedNotification() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayersRemovedNotification(RecentPlayersRemovedNotification other) : this() { player_ = other.player_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayersRemovedNotification Clone() { return new RecentPlayersRemovedNotification(this); } /// Field number for the "player" field. public const int PlayerFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_player_codec - = pb::FieldCodec.ForMessage(10, Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); - private readonly pbc::RepeatedField player_ = new pbc::RepeatedField(); - public pbc::RepeatedField Player { + private static readonly pb::FieldCodec _repeated_player_codec + = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser); + private readonly pbc::RepeatedField player_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Player { get { return player_; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RecentPlayersRemovedNotification); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RecentPlayersRemovedNotification other) { if (ReferenceEquals(other, null)) { return false; @@ -1826,42 +2116,58 @@ namespace Bgs.Protocol.UserManager.V1 return true; } if(!player_.Equals(other.player_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= player_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { player_.WriteTo(output, _repeated_player_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += player_.CalculateSize(_repeated_player_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RecentPlayersRemovedNotification other) { if (other == null) { return; } player_.Add(other.player_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { player_.AddEntriesFrom(input, _repeated_player_codec); diff --git a/Source/Framework/Proto/UserManagerTypes.cs b/Source/Framework/Proto/UserManagerTypes.cs index 74f9b9a42..e6f907560 100644 --- a/Source/Framework/Proto/UserManagerTypes.cs +++ b/Source/Framework/Proto/UserManagerTypes.cs @@ -1,16 +1,17 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: bgs/low/pb/client/user_manager_types.proto +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/user_manager_types.proto +// #pragma warning disable 1591, 0612, 3021 #region Designer generated code -using pb = Google.Protobuf; -using pbc = Google.Protobuf.Collections; -using pbr = Google.Protobuf.Reflection; -namespace Bgs.Protocol.UserManager.V1 -{ +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol.UserManager.V1 { - /// Holder for reflection information generated from bgs/low/pb/client/user_manager_types.proto - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + /// Holder for reflection information generated from bgs/low/pb/client/user_manager_types.proto public static partial class UserManagerTypesReflection { #region Descriptor @@ -21,125 +22,203 @@ namespace Bgs.Protocol.UserManager.V1 private static pbr::FileDescriptor descriptor; static UserManagerTypesReflection() { - byte[] descriptorData = System.Convert.FromBase64String( + byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CipiZ3MvbG93L3BiL2NsaWVudC91c2VyX21hbmFnZXJfdHlwZXMucHJvdG8S", "HGJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEaJGJncy9sb3cvcGIvY2xp", "ZW50L2VudGl0eV90eXBlcy5wcm90bxonYmdzL2xvdy9wYi9jbGllbnQvYXR0", - "cmlidXRlX3R5cGVzLnByb3RvIq4BCgxSZWNlbnRQbGF5ZXISKQoJZW50aXR5", - "X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEg8KB3Byb2dyYW0Y", + "cmlidXRlX3R5cGVzLnByb3RvIrQBCgxSZWNlbnRQbGF5ZXISKQoJZW50aXR5", + "X2lkGAEgAigLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEg8KB3Byb2dyYW0Y", "AiABKAkSGAoQdGltZXN0YW1wX3BsYXllZBgDIAEoBhIrCgphdHRyaWJ1dGVz", - "GAQgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0ZRIKCgJpZBgFIAEoBxIP", - "Cgdjb3VudGVyGAYgASgHIm8KDUJsb2NrZWRQbGF5ZXISKgoKYWNjb3VudF9p", - "ZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIMCgRuYW1lGAIgASgJ", - "EhAKBHJvbGUYAyADKA1CAhABEhIKCnByaXZpbGVnZXMYBCABKARCAkgCYgZw", - "cm90bzM=")); + "GAQgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0ZRINCgJpZBgFIAEoBzoB", + "MBISCgdjb3VudGVyGAYgASgHOgEwInIKDUJsb2NrZWRQbGF5ZXISKgoKYWNj", + "b3VudF9pZBgBIAIoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIMCgRuYW1l", + "GAIgASgJEhAKBHJvbGUYAyADKA1CAhABEhUKCnByaXZpbGVnZXMYBCABKAQ6", + "ATA=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.AttributeTypesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.RecentPlayer), Bgs.Protocol.UserManager.V1.RecentPlayer.Parser, new[]{ "EntityId", "Program", "TimestampPlayed", "Attributes", "Id", "Counter" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.BlockedPlayer), Bgs.Protocol.UserManager.V1.BlockedPlayer.Parser, new[]{ "AccountId", "Name", "Role", "Privileges" }, null, null, null) + new pbr::FileDescriptor[] { global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.AttributeTypesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.RecentPlayer), global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser, new[]{ "EntityId", "Program", "TimestampPlayed", "Attributes", "Id", "Counter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.BlockedPlayer), global::Bgs.Protocol.UserManager.V1.BlockedPlayer.Parser, new[]{ "AccountId", "Name", "Role", "Privileges" }, null, null, null, null) })); } #endregion } #region Messages - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class RecentPlayer : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecentPlayer()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor.MessageTypes[0]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor.MessageTypes[0]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayer() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayer(RecentPlayer other) : this() { - EntityId = other.entityId_ != null ? other.EntityId.Clone() : null; + _hasBits0 = other._hasBits0; + entityId_ = other.HasEntityId ? other.entityId_.Clone() : null; program_ = other.program_; timestampPlayed_ = other.timestampPlayed_; attributes_ = other.attributes_.Clone(); id_ = other.id_; counter_ = other.counter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RecentPlayer Clone() { return new RecentPlayer(this); } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 1; - private Bgs.Protocol.EntityId entityId_; - public Bgs.Protocol.EntityId EntityId { + private global::Bgs.Protocol.EntityId entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId EntityId { get { return entityId_; } set { entityId_ = value; } } + /// Gets whether the entity_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasEntityId { + get { return entityId_ != null; } + } + /// Clears the value of the entity_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearEntityId() { + entityId_ = null; + } /// Field number for the "program" field. public const int ProgramFieldNumber = 2; - private string program_ = ""; + private readonly static string ProgramDefaultValue = ""; + + private string program_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Program { - get { return program_; } + get { return program_ ?? ProgramDefaultValue; } set { program_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "program" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasProgram { + get { return program_ != null; } + } + /// Clears the value of the "program" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearProgram() { + program_ = null; + } /// Field number for the "timestamp_played" field. public const int TimestampPlayedFieldNumber = 3; + private readonly static ulong TimestampPlayedDefaultValue = 0UL; + private ulong timestampPlayed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong TimestampPlayed { - get { return timestampPlayed_; } + get { if ((_hasBits0 & 1) != 0) { return timestampPlayed_; } else { return TimestampPlayedDefaultValue; } } set { + _hasBits0 |= 1; timestampPlayed_ = value; } } + /// Gets whether the "timestamp_played" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTimestampPlayed { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "timestamp_played" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTimestampPlayed() { + _hasBits0 &= ~1; + } /// Field number for the "attributes" field. public const int AttributesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(34, Bgs.Protocol.Attribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - public pbc::RepeatedField Attributes { + private static readonly pb::FieldCodec _repeated_attributes_codec + = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Attribute.Parser); + private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Attributes { get { return attributes_; } } /// Field number for the "id" field. public const int IdFieldNumber = 5; + private readonly static uint IdDefaultValue = 0; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Id { - get { return id_; } + get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } } set { + _hasBits0 |= 2; id_ = value; } } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~2; + } /// Field number for the "counter" field. public const int CounterFieldNumber = 6; + private readonly static uint CounterDefaultValue = 0; + private uint counter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Counter { - get { return counter_; } + get { if ((_hasBits0 & 4) != 0) { return counter_; } else { return CounterDefaultValue; } } set { + _hasBits0 |= 4; counter_ = value; } } + /// Gets whether the "counter" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCounter { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "counter" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCounter() { + _hasBits0 &= ~4; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RecentPlayer); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RecentPlayer other) { if (ReferenceEquals(other, null)) { return false; @@ -153,106 +232,122 @@ namespace Bgs.Protocol.UserManager.V1 if(!attributes_.Equals(other.attributes_)) return false; if (Id != other.Id) return false; if (Counter != other.Counter) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (entityId_ != null) hash ^= EntityId.GetHashCode(); - if (Program.Length != 0) hash ^= Program.GetHashCode(); - if (TimestampPlayed != 0UL) hash ^= TimestampPlayed.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (HasProgram) hash ^= Program.GetHashCode(); + if (HasTimestampPlayed) hash ^= TimestampPlayed.GetHashCode(); hash ^= attributes_.GetHashCode(); - if (Id != 0) hash ^= Id.GetHashCode(); - if (Counter != 0) hash ^= Counter.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (HasCounter) hash ^= Counter.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (entityId_ != null) { + if (HasEntityId) { output.WriteRawTag(10); output.WriteMessage(EntityId); } - if (Program.Length != 0) { + if (HasProgram) { output.WriteRawTag(18); output.WriteString(Program); } - if (TimestampPlayed != 0UL) { + if (HasTimestampPlayed) { output.WriteRawTag(25); output.WriteFixed64(TimestampPlayed); } attributes_.WriteTo(output, _repeated_attributes_codec); - if (Id != 0) { + if (HasId) { output.WriteRawTag(45); output.WriteFixed32(Id); } - if (Counter != 0) { + if (HasCounter) { output.WriteRawTag(53); output.WriteFixed32(Counter); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (entityId_ != null) { + if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } - if (Program.Length != 0) { + if (HasProgram) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Program); } - if (TimestampPlayed != 0UL) { + if (HasTimestampPlayed) { size += 1 + 8; } size += attributes_.CalculateSize(_repeated_attributes_codec); - if (Id != 0) { + if (HasId) { size += 1 + 4; } - if (Counter != 0) { + if (HasCounter) { size += 1 + 4; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RecentPlayer other) { if (other == null) { return; } - if (other.entityId_ != null) { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (other.HasEntityId) { + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } - if (other.Program.Length != 0) { + if (other.HasProgram) { Program = other.Program; } - if (other.TimestampPlayed != 0UL) { + if (other.HasTimestampPlayed) { TimestampPlayed = other.TimestampPlayed; } attributes_.Add(other.attributes_); - if (other.Id != 0) { + if (other.HasId) { Id = other.Id; } - if (other.Counter != 0) { + if (other.HasCounter) { Counter = other.Counter; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (entityId_ == null) { - entityId_ = new Bgs.Protocol.EntityId(); + if (!HasEntityId) { + EntityId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(entityId_); + input.ReadMessage(EntityId); break; } case 18: { @@ -281,79 +376,129 @@ namespace Bgs.Protocol.UserManager.V1 } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class BlockedPlayer : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockedPlayer()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor.MessageTypes[1]; } + get { return global::Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor.MessageTypes[1]; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayer() { OnConstruction(); } partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayer(BlockedPlayer other) : this() { - AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; + _hasBits0 = other._hasBits0; + accountId_ = other.HasAccountId ? other.accountId_.Clone() : null; name_ = other.name_; role_ = other.role_.Clone(); privileges_ = other.privileges_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BlockedPlayer Clone() { return new BlockedPlayer(this); } /// Field number for the "account_id" field. public const int AccountIdFieldNumber = 1; - private Bgs.Protocol.EntityId accountId_; - public Bgs.Protocol.EntityId AccountId { + private global::Bgs.Protocol.EntityId accountId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.EntityId AccountId { get { return accountId_; } set { accountId_ = value; } } + /// Gets whether the account_id field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAccountId { + get { return accountId_ != null; } + } + /// Clears the value of the account_id field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAccountId() { + accountId_ = null; + } /// Field number for the "name" field. public const int NameFieldNumber = 2; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } /// Field number for the "role" field. public const int RoleFieldNumber = 3; private static readonly pb::FieldCodec _repeated_role_codec = pb::FieldCodec.ForUInt32(26); private readonly pbc::RepeatedField role_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Role { get { return role_; } } /// Field number for the "privileges" field. public const int PrivilegesFieldNumber = 4; + private readonly static ulong PrivilegesDefaultValue = 0UL; + private ulong privileges_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong Privileges { - get { return privileges_; } + get { if ((_hasBits0 & 1) != 0) { return privileges_; } else { return PrivilegesDefaultValue; } } set { + _hasBits0 |= 1; privileges_ = value; } } + /// Gets whether the "privileges" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPrivileges { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "privileges" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPrivileges() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as BlockedPlayer); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(BlockedPlayer other) { if (ReferenceEquals(other, null)) { return false; @@ -365,84 +510,100 @@ namespace Bgs.Protocol.UserManager.V1 if (Name != other.Name) return false; if(!role_.Equals(other.role_)) return false; if (Privileges != other.Privileges) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; - if (accountId_ != null) hash ^= AccountId.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (HasAccountId) hash ^= AccountId.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); hash ^= role_.GetHashCode(); - if (Privileges != 0UL) hash ^= Privileges.GetHashCode(); + if (HasPrivileges) hash ^= Privileges.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { - if (accountId_ != null) { + if (HasAccountId) { output.WriteRawTag(10); output.WriteMessage(AccountId); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(18); output.WriteString(Name); } role_.WriteTo(output, _repeated_role_codec); - if (Privileges != 0UL) { + if (HasPrivileges) { output.WriteRawTag(32); output.WriteUInt64(Privileges); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; - if (accountId_ != null) { + if (HasAccountId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); } - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } size += role_.CalculateSize(_repeated_role_codec); - if (Privileges != 0UL) { + if (HasPrivileges) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Privileges); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(BlockedPlayer other) { if (other == null) { return; } - if (other.accountId_ != null) { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (other.HasAccountId) { + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } AccountId.MergeFrom(other.AccountId); } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } role_.Add(other.role_); - if (other.Privileges != 0UL) { + if (other.HasPrivileges) { Privileges = other.Privileges; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (accountId_ == null) { - accountId_ = new Bgs.Protocol.EntityId(); + if (!HasAccountId) { + AccountId = new global::Bgs.Protocol.EntityId(); } - input.ReadMessage(accountId_); + input.ReadMessage(AccountId); break; } case 18: { diff --git a/Source/Framework/Proto/VoiceTypes.cs b/Source/Framework/Proto/VoiceTypes.cs new file mode 100644 index 000000000..989a93d5f --- /dev/null +++ b/Source/Framework/Proto/VoiceTypes.cs @@ -0,0 +1,372 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: bgs/low/pb/client/voice_types.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Bgs.Protocol { + + /// Holder for reflection information generated from bgs/low/pb/client/voice_types.proto + public static partial class VoiceTypesReflection { + + #region Descriptor + /// File descriptor for bgs/low/pb/client/voice_types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VoiceTypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNiZ3MvbG93L3BiL2NsaWVudC92b2ljZV90eXBlcy5wcm90bxIMYmdzLnBy", + "b3RvY29sIs8BChBWb2ljZUNyZWRlbnRpYWxzEhAKCHZvaWNlX2lkGAEgASgJ", + "Eg0KBXRva2VuGAIgASgJEgsKA3VybBgDIAEoCRJBCglqb2luX3R5cGUYBCAB", + "KA4yGy5iZ3MucHJvdG9jb2wuVm9pY2VKb2luVHlwZToRVk9JQ0VfSk9JTl9O", + "T1JNQUwSSgoLbXV0ZV9yZWFzb24YBSABKA4yHS5iZ3MucHJvdG9jb2wuVm9p", + "Y2VNdXRlUmVhc29uOhZWT0lDRV9NVVRFX1JFQVNPTl9OT05FKjwKDVZvaWNl", + "Sm9pblR5cGUSFQoRVk9JQ0VfSk9JTl9OT1JNQUwQABIUChBWT0lDRV9KT0lO", + "X01VVEVEEAEqowEKD1ZvaWNlTXV0ZVJlYXNvbhIaChZWT0lDRV9NVVRFX1JF", + "QVNPTl9OT05FEAASMgouVk9JQ0VfTVVURV9SRUFTT05fUEFSRU5UQUxfQ09O", + "VFJPTF9MSVNURU5fT05MWRABEh8KG1ZPSUNFX01VVEVfUkVBU09OX1JFUVVF", + "U1RFRBACEh8KG1ZPSUNFX01VVEVfUkVBU09OX1NRVUVMQ0hFRBAD")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.VoiceJoinType), typeof(global::Bgs.Protocol.VoiceMuteReason), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.VoiceCredentials), global::Bgs.Protocol.VoiceCredentials.Parser, new[]{ "VoiceId", "Token", "Url", "JoinType", "MuteReason" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum VoiceJoinType { + [pbr::OriginalName("VOICE_JOIN_NORMAL")] VoiceJoinNormal = 0, + [pbr::OriginalName("VOICE_JOIN_MUTED")] VoiceJoinMuted = 1, + } + + public enum VoiceMuteReason { + [pbr::OriginalName("VOICE_MUTE_REASON_NONE")] None = 0, + [pbr::OriginalName("VOICE_MUTE_REASON_PARENTAL_CONTROL_LISTEN_ONLY")] ParentalControlListenOnly = 1, + [pbr::OriginalName("VOICE_MUTE_REASON_REQUESTED")] Requested = 2, + [pbr::OriginalName("VOICE_MUTE_REASON_SQUELCHED")] Squelched = 3, + } + + #endregion + + #region Messages + public sealed partial class VoiceCredentials : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VoiceCredentials()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Bgs.Protocol.VoiceTypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VoiceCredentials() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VoiceCredentials(VoiceCredentials other) : this() { + _hasBits0 = other._hasBits0; + voiceId_ = other.voiceId_; + token_ = other.token_; + url_ = other.url_; + joinType_ = other.joinType_; + muteReason_ = other.muteReason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public VoiceCredentials Clone() { + return new VoiceCredentials(this); + } + + /// Field number for the "voice_id" field. + public const int VoiceIdFieldNumber = 1; + private readonly static string VoiceIdDefaultValue = ""; + + private string voiceId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string VoiceId { + get { return voiceId_ ?? VoiceIdDefaultValue; } + set { + voiceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "voice_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVoiceId { + get { return voiceId_ != null; } + } + /// Clears the value of the "voice_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVoiceId() { + voiceId_ = null; + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 2; + private readonly static string TokenDefaultValue = ""; + + private string token_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Token { + get { return token_ ?? TokenDefaultValue; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasToken { + get { return token_ != null; } + } + /// Clears the value of the "token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearToken() { + token_ = null; + } + + /// Field number for the "url" field. + public const int UrlFieldNumber = 3; + private readonly static string UrlDefaultValue = ""; + + private string url_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Url { + get { return url_ ?? UrlDefaultValue; } + set { + url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "url" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUrl { + get { return url_ != null; } + } + /// Clears the value of the "url" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUrl() { + url_ = null; + } + + /// Field number for the "join_type" field. + public const int JoinTypeFieldNumber = 4; + private readonly static global::Bgs.Protocol.VoiceJoinType JoinTypeDefaultValue = global::Bgs.Protocol.VoiceJoinType.VoiceJoinNormal; + + private global::Bgs.Protocol.VoiceJoinType joinType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.VoiceJoinType JoinType { + get { if ((_hasBits0 & 1) != 0) { return joinType_; } else { return JoinTypeDefaultValue; } } + set { + _hasBits0 |= 1; + joinType_ = value; + } + } + /// Gets whether the "join_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasJoinType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "join_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearJoinType() { + _hasBits0 &= ~1; + } + + /// Field number for the "mute_reason" field. + public const int MuteReasonFieldNumber = 5; + private readonly static global::Bgs.Protocol.VoiceMuteReason MuteReasonDefaultValue = global::Bgs.Protocol.VoiceMuteReason.None; + + private global::Bgs.Protocol.VoiceMuteReason muteReason_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Bgs.Protocol.VoiceMuteReason MuteReason { + get { if ((_hasBits0 & 2) != 0) { return muteReason_; } else { return MuteReasonDefaultValue; } } + set { + _hasBits0 |= 2; + muteReason_ = value; + } + } + /// Gets whether the "mute_reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMuteReason { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "mute_reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMuteReason() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as VoiceCredentials); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(VoiceCredentials other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (VoiceId != other.VoiceId) return false; + if (Token != other.Token) return false; + if (Url != other.Url) return false; + if (JoinType != other.JoinType) return false; + if (MuteReason != other.MuteReason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasVoiceId) hash ^= VoiceId.GetHashCode(); + if (HasToken) hash ^= Token.GetHashCode(); + if (HasUrl) hash ^= Url.GetHashCode(); + if (HasJoinType) hash ^= JoinType.GetHashCode(); + if (HasMuteReason) hash ^= MuteReason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (HasVoiceId) { + output.WriteRawTag(10); + output.WriteString(VoiceId); + } + if (HasToken) { + output.WriteRawTag(18); + output.WriteString(Token); + } + if (HasUrl) { + output.WriteRawTag(26); + output.WriteString(Url); + } + if (HasJoinType) { + output.WriteRawTag(32); + output.WriteEnum((int) JoinType); + } + if (HasMuteReason) { + output.WriteRawTag(40); + output.WriteEnum((int) MuteReason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasVoiceId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VoiceId); + } + if (HasToken) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (HasUrl) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); + } + if (HasJoinType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) JoinType); + } + if (HasMuteReason) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MuteReason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(VoiceCredentials other) { + if (other == null) { + return; + } + if (other.HasVoiceId) { + VoiceId = other.VoiceId; + } + if (other.HasToken) { + Token = other.Token; + } + if (other.HasUrl) { + Url = other.Url; + } + if (other.HasJoinType) { + JoinType = other.JoinType; + } + if (other.HasMuteReason) { + MuteReason = other.MuteReason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + VoiceId = input.ReadString(); + break; + } + case 18: { + Token = input.ReadString(); + break; + } + case 26: { + Url = input.ReadString(); + break; + } + case 32: { + JoinType = (global::Bgs.Protocol.VoiceJoinType) input.ReadEnum(); + break; + } + case 40: { + MuteReason = (global::Bgs.Protocol.VoiceMuteReason) input.ReadEnum(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Source/Framework/Singleton/Singleton.cs b/Source/Framework/Singleton/Singleton.cs index cd0baa723..6bb2b69db 100644 --- a/Source/Framework/Singleton/Singleton.cs +++ b/Source/Framework/Singleton/Singleton.cs @@ -21,7 +21,7 @@ using System.Reflection; public class Singleton where T : class { private static volatile T instance; - private static object syncRoot = new Object(); + private static object syncRoot = new object(); public static T Instance {