Bnet/Services: Updated bnet proto files

This commit is contained in:
hondacrx
2020-04-25 00:12:46 -04:00
parent 8a9bd6504c
commit fbd2922b3d
68 changed files with 104838 additions and 37901 deletions
+2 -17
View File
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15 # Visual Studio Version 16
VisualStudioVersion = 15.0.26730.10 VisualStudioVersion = 16.0.29926.136
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BNetServer", "Source\BNetServer\BNetServer.csproj", "{EEBFCEE3-CFAC-4D2E-927F-8E24E07A4218}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BNetServer", "Source\BNetServer\BNetServer.csproj", "{EEBFCEE3-CFAC-4D2E-927F-8E24E07A4218}"
EndProject EndProject
@@ -17,8 +17,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Servers", "Servers", "{480E
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libs", "Libs", "{0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libs", "Libs", "{0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Google.Protobuf", "Deps\Source\Google.Protobuf\Google.Protobuf.csproj", "{54EBBA35-DEFE-4967-8B87-4FBA47FDC33D}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|linux-x64 = Debug|linux-x64 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|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.ActiveCfg = Release|x64
{2F7515AD-18E3-4ACA-A14B-1929F76299E7}.Release|win-x64.Build.0 = 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 EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@@ -111,7 +97,6 @@ Global
{3B8C9AB8-2DC3-4655-BF67-AE2001D3B4F6} = {0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19} {3B8C9AB8-2DC3-4655-BF67-AE2001D3B4F6} = {0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19}
{1899C17C-1FA4-4807-B90E-0336C5748C1A} = {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} {2F7515AD-18E3-4ACA-A14B-1929F76299E7} = {0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19}
{54EBBA35-DEFE-4967-8B87-4FBA47FDC33D} = {0C88588D-45B8-4AA9-8EEA-DB1A1BD19D19}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {836F0B44-1360-4E79-8ED9-F3D23C2ACEF5} SolutionGuid = {836F0B44-1360-4E79-8ED9-F3D23C2ACEF5}
+1 -1
View File
@@ -354,7 +354,7 @@ namespace BNetServer.Networking
response.State = new Bgs.Protocol.Account.V1.AccountState(); response.State = new Bgs.Protocol.Account.V1.AccountState();
response.State.PrivacyInfo = new Bgs.Protocol.Account.V1.PrivacyInfo(); response.State.PrivacyInfo = new Bgs.Protocol.Account.V1.PrivacyInfo();
response.State.PrivacyInfo.IsUsingRid = false; response.State.PrivacyInfo.IsUsingRid = false;
response.State.PrivacyInfo.IsRealIdVisibleForViewFriends = false; response.State.PrivacyInfo.IsVisibleForViewFriends = false;
response.State.PrivacyInfo.IsHiddenFromFriendFinder = true; response.State.PrivacyInfo.IsHiddenFromFriendFinder = true;
response.Tags = new Bgs.Protocol.Account.V1.AccountFieldTags(); response.Tags = new Bgs.Protocol.Account.V1.AccountFieldTags();
+5 -227
View File
@@ -31,28 +31,13 @@ namespace BNetServer.Networking
{ {
switch (methodId) 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: case 13:
{ {
GetAccountRequest request = new GetAccountRequest(); ResolveAccountRequest request = new ResolveAccountRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
GetAccountResponse response = new GetAccountResponse(); ResolveAccountResponse response = new ResolveAccountResponse();
BattlenetRpcErrorCode status = HandleGetAccount(request, response); BattlenetRpcErrorCode status = HandleResolveAccount(request, response);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.GetAccount(GetAccountRequest: {1}) returned GetAccountResponse: {2} status: {3}.", Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.GetAccount(GetAccountRequest: {1}) returned GetAccountResponse: {2} status: {3}.",
GetCallerInfo(), request.ToString(), response.ToString(), status); GetCallerInfo(), request.ToString(), response.ToString(), status);
if (status == 0) if (status == 0)
@@ -61,21 +46,6 @@ namespace BNetServer.Networking
SendResponse(token, status); SendResponse(token, status);
break; 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: case 15:
{ {
IsIgrAddressRequest request = new IsIgrAddressRequest(); IsIgrAddressRequest request = new IsIgrAddressRequest();
@@ -91,39 +61,11 @@ namespace BNetServer.Networking
SendResponse(token, status); SendResponse(token, status);
break; 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: case 25:
{ {
SubscriptionUpdateRequest request = new SubscriptionUpdateRequest(); SubscriptionUpdateRequest request = new SubscriptionUpdateRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
SubscriptionUpdateResponse response = new SubscriptionUpdateResponse(); SubscriptionUpdateResponse response = new SubscriptionUpdateResponse();
BattlenetRpcErrorCode status = HandleSubscribe(request, response); BattlenetRpcErrorCode status = HandleSubscribe(request, response);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method AccountService.Subscribe(SubscriptionUpdateRequest: {1}) returned SubscriptionUpdateResponse: {2} status: {3}.", 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); SendResponse(token, status);
break; 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: case 37:
{ {
GetAuthorizedDataRequest request = new GetAuthorizedDataRequest(); GetAuthorizedDataRequest request = new GetAuthorizedDataRequest();
@@ -269,90 +196,6 @@ namespace BNetServer.Networking
SendResponse(token, status); SendResponse(token, status);
break; 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: default:
Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId); Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId);
SendResponse(token, BattlenetRpcErrorCode.RpcInvalidMethod); 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()); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.ResolveAccount({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());
return BattlenetRpcErrorCode.RpcNotImplemented; return BattlenetRpcErrorCode.RpcNotImplemented;
} }
@@ -384,18 +215,6 @@ namespace BNetServer.Networking
return BattlenetRpcErrorCode.RpcNotImplemented; 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) BattlenetRpcErrorCode HandleSubscribe(SubscriptionUpdateRequest request, SubscriptionUpdateResponse response)
{ {
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.Subscribe({1})", GetCallerInfo(), request.ToString()); 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; 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) BattlenetRpcErrorCode HandleGetAuthorizedData(GetAuthorizedDataRequest request, GetAuthorizedDataResponse response)
{ {
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GetAuthorizedData({1})", GetCallerInfo(), request.ToString()); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GetAuthorizedData({1})", GetCallerInfo(), request.ToString());
return BattlenetRpcErrorCode.RpcNotImplemented; 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) BattlenetRpcErrorCode HandleGameAccountFlagUpdate(GameAccountFlagUpdateRequest request)
{ {
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GameAccountFlagUpdate({1})", GetCallerInfo(), request.ToString()); Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method AccountService.GameAccountFlagUpdate({1})", GetCallerInfo(), request.ToString());
return BattlenetRpcErrorCode.RpcNotImplemented; 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 class AccountListener : ServiceBase
@@ -23,114 +23,6 @@ using Google.Protobuf;
namespace BNetServer.Networking 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 class ChallengeListener : ServiceBase
{ {
public ChallengeListener(Session session, uint serviceHash) : base(session, serviceHash) { } public ChallengeListener(Session session, uint serviceHash) : base(session, serviceHash) { }
@@ -139,32 +31,6 @@ namespace BNetServer.Networking
{ {
switch (methodId) 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: case 3:
{ {
ChallengeExternalRequest request = new ChallengeExternalRequest(); 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) BattlenetRpcErrorCode HandleOnExternalChallenge(ChallengeExternalRequest request)
{ {
Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeListener.OnExternalChallenge: {1}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method ChallengeListener.OnExternalChallenge: {1}",
@@ -1,312 +0,0 @@
/*
* Copyright (C) 2012-2020 CypherCore <http://github.com/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 <http://www.gnu.org/licenses/>.
*/
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;
}
}
}
+13 -101
View File
@@ -35,7 +35,6 @@ namespace BNetServer.Networking
{ {
SubscribeRequest request = new SubscribeRequest(); SubscribeRequest request = new SubscribeRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
SubscribeResponse response = new SubscribeResponse(); SubscribeResponse response = new SubscribeResponse();
BattlenetRpcErrorCode status = HandleSubscribe(request, response); BattlenetRpcErrorCode status = HandleSubscribe(request, response);
@@ -51,7 +50,6 @@ namespace BNetServer.Networking
{ {
SendInvitationRequest request = new SendInvitationRequest(); SendInvitationRequest request = new SendInvitationRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
NoData response = new NoData(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleSendInvitation(request, response); BattlenetRpcErrorCode status = HandleSendInvitation(request, response);
@@ -65,9 +63,8 @@ namespace BNetServer.Networking
} }
case 3: case 3:
{ {
GenericInvitationRequest request = new GenericInvitationRequest(); AcceptInvitationRequest request = new AcceptInvitationRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
NoData response = new NoData(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleAcceptInvitation(request, response); BattlenetRpcErrorCode status = HandleAcceptInvitation(request, response);
@@ -81,9 +78,8 @@ namespace BNetServer.Networking
} }
case 4: case 4:
{ {
GenericInvitationRequest request = new GenericInvitationRequest(); RevokeInvitationRequest request = new RevokeInvitationRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
NoData response = new NoData(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleRevokeInvitation(request, response); BattlenetRpcErrorCode status = HandleRevokeInvitation(request, response);
@@ -97,9 +93,8 @@ namespace BNetServer.Networking
} }
case 5: case 5:
{ {
GenericInvitationRequest request = new GenericInvitationRequest(); DeclineInvitationRequest request = new DeclineInvitationRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
NoData response = new NoData(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleDeclineInvitation(request, response); BattlenetRpcErrorCode status = HandleDeclineInvitation(request, response);
@@ -113,9 +108,8 @@ namespace BNetServer.Networking
} }
case 6: case 6:
{ {
GenericInvitationRequest request = new GenericInvitationRequest(); IgnoreInvitationRequest request = new IgnoreInvitationRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
NoData response = new NoData(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleIgnoreInvitation(request, response); BattlenetRpcErrorCode status = HandleIgnoreInvitation(request, response);
@@ -127,29 +121,12 @@ namespace BNetServer.Networking
SendResponse(token, status); SendResponse(token, status);
break; 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: case 8:
{ {
GenericFriendRequest request = new GenericFriendRequest(); RemoveFriendRequest request = new RemoveFriendRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
GenericFriendResponse response = new GenericFriendResponse(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleRemoveFriend(request, response); 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}.", 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); GetCallerInfo(), request.ToString(), response.ToString(), status);
@@ -163,7 +140,6 @@ namespace BNetServer.Networking
{ {
ViewFriendsRequest request = new ViewFriendsRequest(); ViewFriendsRequest request = new ViewFriendsRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
ViewFriendsResponse response = new ViewFriendsResponse(); ViewFriendsResponse response = new ViewFriendsResponse();
BattlenetRpcErrorCode status = HandleViewFriends(request, response); BattlenetRpcErrorCode status = HandleViewFriends(request, response);
@@ -179,7 +155,6 @@ namespace BNetServer.Networking
{ {
UpdateFriendStateRequest request = new UpdateFriendStateRequest(); UpdateFriendStateRequest request = new UpdateFriendStateRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
NoData response = new NoData(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleUpdateFriendState(request, response); BattlenetRpcErrorCode status = HandleUpdateFriendState(request, response);
@@ -195,7 +170,6 @@ namespace BNetServer.Networking
{ {
UnsubscribeRequest request = new UnsubscribeRequest(); UnsubscribeRequest request = new UnsubscribeRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
NoData response = new NoData(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleUnsubscribe(request, response); BattlenetRpcErrorCode status = HandleUnsubscribe(request, response);
@@ -209,9 +183,8 @@ namespace BNetServer.Networking
} }
case 12: case 12:
{ {
GenericFriendRequest request = new GenericFriendRequest(); RevokeAllInvitationsRequest request = new RevokeAllInvitationsRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
NoData response = new NoData(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleRevokeAllInvitations(request, response); BattlenetRpcErrorCode status = HandleRevokeAllInvitations(request, response);
@@ -223,38 +196,6 @@ namespace BNetServer.Networking
SendResponse(token, status); SendResponse(token, status);
break; 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: default:
Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId); Log.outError(LogFilter.ServiceProtobuf, "Bad method id {0}.", methodId);
SendResponse(token, BattlenetRpcErrorCode.RpcInvalidMethod); SendResponse(token, BattlenetRpcErrorCode.RpcInvalidMethod);
@@ -276,42 +217,35 @@ namespace BNetServer.Networking
return BattlenetRpcErrorCode.RpcNotImplemented; 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}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.AcceptInvitation: {1}",
GetCallerInfo(), request.ToString()); GetCallerInfo(), request.ToString());
return BattlenetRpcErrorCode.RpcNotImplemented; 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}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.RevokeInvitation: {1}",
GetCallerInfo(), request.ToString()); GetCallerInfo(), request.ToString());
return BattlenetRpcErrorCode.RpcNotImplemented; 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}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.DeclineInvitation: {1}",
GetCallerInfo(), request.ToString()); GetCallerInfo(), request.ToString());
return BattlenetRpcErrorCode.RpcNotImplemented; 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}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.IgnoreInvitation: {1}",
GetCallerInfo(), request.ToString()); GetCallerInfo(), request.ToString());
return BattlenetRpcErrorCode.RpcNotImplemented; return BattlenetRpcErrorCode.RpcNotImplemented;
} }
BattlenetRpcErrorCode HandleAssignRole(AssignRoleRequest request, NoData response) BattlenetRpcErrorCode HandleRemoveFriend(RemoveFriendRequest 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)
{ {
Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.RemoveFriend: {1}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.RemoveFriend: {1}",
GetCallerInfo(), request.ToString()); GetCallerInfo(), request.ToString());
@@ -339,27 +273,12 @@ namespace BNetServer.Networking
return BattlenetRpcErrorCode.RpcNotImplemented; 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}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method FriendsService.RevokeAllInvitations: {1}",
GetCallerInfo(), request.ToString()); GetCallerInfo(), request.ToString());
return BattlenetRpcErrorCode.RpcNotImplemented; 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 class FriendsListener : ServiceBase
@@ -374,7 +293,6 @@ namespace BNetServer.Networking
{ {
FriendNotification request = new FriendNotification(); FriendNotification request = new FriendNotification();
request.MergeFrom(stream); request.MergeFrom(stream);
BattlenetRpcErrorCode status = HandleOnFriendAdded(request); BattlenetRpcErrorCode status = HandleOnFriendAdded(request);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnFriendAdded(bgs.protocol.friends.v1.FriendNotification: {1}) status: {2}.", 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(); FriendNotification request = new FriendNotification();
request.MergeFrom(stream); request.MergeFrom(stream);
BattlenetRpcErrorCode status = HandleOnFriendRemoved(request); BattlenetRpcErrorCode status = HandleOnFriendRemoved(request);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnFriendRemoved(bgs.protocol.friends.v1.FriendNotification: {1}) status: {2}.", 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(); InvitationNotification request = new InvitationNotification();
request.MergeFrom(stream); request.MergeFrom(stream);
BattlenetRpcErrorCode status = HandleOnReceivedInvitationAdded(request); BattlenetRpcErrorCode status = HandleOnReceivedInvitationAdded(request);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnReceivedInvitationAdded(bgs.protocol.friends.v1.InvitationNotification: {1}) status: {2}.", 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(); InvitationNotification request = new InvitationNotification();
request.MergeFrom(stream); request.MergeFrom(stream);
BattlenetRpcErrorCode status = HandleOnReceivedInvitationRemoved(request); BattlenetRpcErrorCode status = HandleOnReceivedInvitationRemoved(request);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnReceivedInvitationRemoved(bgs.protocol.friends.v1.InvitationNotification: {1}) status: {2}.", 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(); InvitationNotification request = new InvitationNotification();
request.MergeFrom(stream); request.MergeFrom(stream);
BattlenetRpcErrorCode status = HandleOnSentInvitationAdded(request); BattlenetRpcErrorCode status = HandleOnSentInvitationAdded(request);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnSentInvitationAdded(bgs.protocol.friends.v1.InvitationNotification: {1}) status: {2}.", 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(); InvitationNotification request = new InvitationNotification();
request.MergeFrom(stream); request.MergeFrom(stream);
BattlenetRpcErrorCode status = HandleOnSentInvitationRemoved(request); BattlenetRpcErrorCode status = HandleOnSentInvitationRemoved(request);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnSentInvitationRemoved(bgs.protocol.friends.v1.InvitationNotification: {1}) status: {2}.", 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(); UpdateFriendStateNotification request = new UpdateFriendStateNotification();
request.MergeFrom(stream); request.MergeFrom(stream);
BattlenetRpcErrorCode status = HandleOnUpdateFriendState(request); BattlenetRpcErrorCode status = HandleOnUpdateFriendState(request);
Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnUpdateFriendState(bgs.protocol.friends.v1.UpdateFriendStateNotification: {1}) status: {2}.", Log.outDebug(LogFilter.ServiceProtobuf, "{0} Client called server method FriendsListener.OnUpdateFriendState(bgs.protocol.friends.v1.UpdateFriendStateNotification: {1}) status: {2}.",
@@ -30,8 +30,6 @@ namespace BNetServer.Services
AddService<AccountService>(OriginalHash.AccountService); AddService<AccountService>(OriginalHash.AccountService);
AddService<AccountListener>(OriginalHash.AccountListener); AddService<AccountListener>(OriginalHash.AccountListener);
AddService<AuthenticationService>(OriginalHash.AuthenticationService); AddService<AuthenticationService>(OriginalHash.AuthenticationService);
AddService<ChallengeService>(OriginalHash.ChallengeService);
AddService<ChannelService>(OriginalHash.ChannelService);
AddService<ConnectionService>(OriginalHash.ConnectionService); AddService<ConnectionService>(OriginalHash.ConnectionService);
AddService<FriendsService>(OriginalHash.FriendsService); AddService<FriendsService>(OriginalHash.FriendsService);
AddService<GameUtilitiesService>(OriginalHash.GameUtilitiesService); AddService<GameUtilitiesService>(OriginalHash.GameUtilitiesService);
@@ -51,7 +51,7 @@ namespace BNetServer.Networking
AddRecentPlayersRequest request = new AddRecentPlayersRequest(); AddRecentPlayersRequest request = new AddRecentPlayersRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
AddRecentPlayersResponse response = new AddRecentPlayersResponse(); NoData response = new NoData();
BattlenetRpcErrorCode status = HandleAddRecentPlayers(request, response); 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}.", 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); GetCallerInfo(), request.ToString(), response.ToString(), status);
@@ -65,9 +65,9 @@ namespace BNetServer.Networking
{ {
ClearRecentPlayersRequest request = new ClearRecentPlayersRequest(); ClearRecentPlayersRequest request = new ClearRecentPlayersRequest();
request.MergeFrom(stream); request.MergeFrom(stream);
ClearRecentPlayersResponse response = new ClearRecentPlayersResponse();
NoData response = new NoData();
BattlenetRpcErrorCode status = HandleClearRecentPlayers(request, response); 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}.", 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); GetCallerInfo(), request.ToString(), response.ToString(), status);
@@ -171,14 +171,14 @@ namespace BNetServer.Networking
return BattlenetRpcErrorCode.RpcNotImplemented; 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}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method UserManagerService.AddRecentPlayers: {1}",
GetCallerInfo(), request.ToString()); GetCallerInfo(), request.ToString());
return BattlenetRpcErrorCode.RpcNotImplemented; 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}", Log.outError(LogFilter.ServiceProtobuf, "{0} Client tried to call not implemented method UserManagerService.ClearRecentPlayers: {1}",
GetCallerInfo(), request.ToString()); GetCallerInfo(), request.ToString());
+1 -4
View File
@@ -5,12 +5,9 @@
<Platforms>x64</Platforms> <Platforms>x64</Platforms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Deps\Source\Google.Protobuf\Google.Protobuf.csproj" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.11.4" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> <PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="MySqlConnector" Version="0.62.0-beta4" /> <PackageReference Include="MySqlConnector" Version="0.62.0-beta4" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.7.0" /> <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.7.0" />
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+280
View File
@@ -0,0 +1,280 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/api/client/v1/channel_id.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/client/v1/channel_id.proto</summary>
public static partial class ChannelIdReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/api/client/v1/channel_id.proto</summary>
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<ChannelId> {
private static readonly pb::MessageParser<ChannelId> _parser = new pb::MessageParser<ChannelId>(() => new ChannelId());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ChannelId> 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);
}
/// <summary>Field number for the "type" field.</summary>
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;
}
}
/// <summary>Gets whether the "type" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasType {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "type" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearType() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "host" field.</summary>
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;
}
}
/// <summary>Gets whether the host field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasHost {
get { return host_ != null; }
}
/// <summary>Clears the value of the host field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearHost() {
host_ = null;
}
/// <summary>Field number for the "id" field.</summary>
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;
}
}
/// <summary>Gets whether the "id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "id" field</summary>
[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
@@ -0,0 +1,804 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/api/client/v2/attribute_types.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/client/v2/attribute_types.proto</summary>
public static partial class AttributeTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/api/client/v2/attribute_types.proto</summary>
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<Variant> {
private static readonly pb::MessageParser<Variant> _parser = new pb::MessageParser<Variant>(() => new Variant());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Variant> 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);
}
/// <summary>Field number for the "bool_value" field.</summary>
public const int BoolValueFieldNumber = 1;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool BoolValue {
get { return HasBoolValue ? (bool) type_ : false; }
set {
type_ = value;
typeCase_ = TypeOneofCase.BoolValue;
}
}
/// <summary>Gets whether the "bool_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasBoolValue {
get { return typeCase_ == TypeOneofCase.BoolValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "bool_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearBoolValue() {
if (HasBoolValue) {
ClearType();
}
}
/// <summary>Field number for the "int_value" field.</summary>
public const int IntValueFieldNumber = 2;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long IntValue {
get { return HasIntValue ? (long) type_ : 0L; }
set {
type_ = value;
typeCase_ = TypeOneofCase.IntValue;
}
}
/// <summary>Gets whether the "int_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasIntValue {
get { return typeCase_ == TypeOneofCase.IntValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "int_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearIntValue() {
if (HasIntValue) {
ClearType();
}
}
/// <summary>Field number for the "float_value" field.</summary>
public const int FloatValueFieldNumber = 3;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double FloatValue {
get { return HasFloatValue ? (double) type_ : 0D; }
set {
type_ = value;
typeCase_ = TypeOneofCase.FloatValue;
}
}
/// <summary>Gets whether the "float_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasFloatValue {
get { return typeCase_ == TypeOneofCase.FloatValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "float_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearFloatValue() {
if (HasFloatValue) {
ClearType();
}
}
/// <summary>Field number for the "string_value" field.</summary>
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;
}
}
/// <summary>Gets whether the "string_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStringValue {
get { return typeCase_ == TypeOneofCase.StringValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "string_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStringValue() {
if (HasStringValue) {
ClearType();
}
}
/// <summary>Field number for the "blob_value" field.</summary>
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;
}
}
/// <summary>Gets whether the "blob_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasBlobValue {
get { return typeCase_ == TypeOneofCase.BlobValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "blob_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearBlobValue() {
if (HasBlobValue) {
ClearType();
}
}
/// <summary>Field number for the "uint_value" field.</summary>
public const int UintValueFieldNumber = 6;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong UintValue {
get { return HasUintValue ? (ulong) type_ : 0UL; }
set {
type_ = value;
typeCase_ = TypeOneofCase.UintValue;
}
}
/// <summary>Gets whether the "uint_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUintValue {
get { return typeCase_ == TypeOneofCase.UintValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "uint_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUintValue() {
if (HasUintValue) {
ClearType();
}
}
private object type_;
/// <summary>Enum of possible cases for the "type" oneof.</summary>
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<Attribute> {
private static readonly pb::MessageParser<Attribute> _parser = new pb::MessageParser<Attribute>(() => new Attribute());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Attribute> 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);
}
/// <summary>Field number for the "name" field.</summary>
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");
}
}
/// <summary>Gets whether the "name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasName {
get { return name_ != null; }
}
/// <summary>Clears the value of the "name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearName() {
name_ = null;
}
/// <summary>Field number for the "value" field.</summary>
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;
}
}
/// <summary>Gets whether the value field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasValue {
get { return value_ != null; }
}
/// <summary>Clears the value of the value field</summary>
[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<AttributeFilter> {
private static readonly pb::MessageParser<AttributeFilter> _parser = new pb::MessageParser<AttributeFilter>(() => new AttributeFilter());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<AttributeFilter> 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);
}
/// <summary>Field number for the "op" field.</summary>
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;
}
}
/// <summary>Gets whether the "op" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasOp {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "op" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearOp() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> 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
/// <summary>Container for nested types declared in the AttributeFilter message type.</summary>
[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
@@ -0,0 +1,416 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/api/client/v2/report_service.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/client/v2/report_service.proto</summary>
public static partial class ReportServiceReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/api/client/v2/report_service.proto</summary>
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<SubmitReportRequest> {
private static readonly pb::MessageParser<SubmitReportRequest> _parser = new pb::MessageParser<SubmitReportRequest>(() => new SubmitReportRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubmitReportRequest> 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);
}
/// <summary>Field number for the "agent_id" field.</summary>
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;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "user_description" field.</summary>
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");
}
}
/// <summary>Gets whether the "user_description" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUserDescription {
get { return userDescription_ != null; }
}
/// <summary>Clears the value of the "user_description" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUserDescription() {
userDescription_ = null;
}
/// <summary>Field number for the "program" field.</summary>
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;
}
}
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "program" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProgram() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "user_options" field.</summary>
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;
}
}
/// <summary>Gets whether the "user_options" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUserOptions {
get { return typeCase_ == TypeOneofCase.UserOptions; }
}
/// <summary> Clears the value of the oneof if it's currently set to "user_options" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUserOptions() {
if (HasUserOptions) {
ClearType();
}
}
/// <summary>Field number for the "club_options" field.</summary>
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;
}
}
/// <summary>Gets whether the "club_options" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasClubOptions {
get { return typeCase_ == TypeOneofCase.ClubOptions; }
}
/// <summary> Clears the value of the oneof if it's currently set to "club_options" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearClubOptions() {
if (HasClubOptions) {
ClearType();
}
}
private object type_;
/// <summary>Enum of possible cases for the "type" oneof.</summary>
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
@@ -0,0 +1,865 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/api/client/v2/report_types.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/client/v2/report_types.proto</summary>
public static partial class ReportTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/api/client/v2/report_types.proto</summary>
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<ReportItem> {
private static readonly pb::MessageParser<ReportItem> _parser = new pb::MessageParser<ReportItem>(() => new ReportItem());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ReportItem> 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);
}
/// <summary>Field number for the "message_id" field.</summary>
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;
}
}
/// <summary>Gets whether the "message_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMessageId {
get { return typeCase_ == TypeOneofCase.MessageId; }
}
/// <summary> Clears the value of the oneof if it's currently set to "message_id" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMessageId() {
if (HasMessageId) {
ClearType();
}
}
private object type_;
/// <summary>Enum of possible cases for the "type" oneof.</summary>
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<UserOptions> {
private static readonly pb::MessageParser<UserOptions> _parser = new pb::MessageParser<UserOptions>(() => new UserOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UserOptions> 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);
}
/// <summary>Field number for the "target_id" field.</summary>
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;
}
}
/// <summary>Gets whether the target_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTargetId {
get { return targetId_ != null; }
}
/// <summary>Clears the value of the target_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTargetId() {
targetId_ = null;
}
/// <summary>Field number for the "type" field.</summary>
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;
}
}
/// <summary>Gets whether the "type" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasType {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "type" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearType() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "source" field.</summary>
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;
}
}
/// <summary>Gets whether the "source" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSource {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "source" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSource() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "item" field.</summary>
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;
}
}
/// <summary>Gets whether the item field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasItem {
get { return item_ != null; }
}
/// <summary>Clears the value of the item field</summary>
[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<ClubOptions> {
private static readonly pb::MessageParser<ClubOptions> _parser = new pb::MessageParser<ClubOptions>(() => new ClubOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ClubOptions> 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);
}
/// <summary>Field number for the "club_id" field.</summary>
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;
}
}
/// <summary>Gets whether the "club_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasClubId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "club_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearClubId() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "stream_id" field.</summary>
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;
}
}
/// <summary>Gets whether the "stream_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStreamId {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "stream_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStreamId() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "type" field.</summary>
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;
}
}
/// <summary>Gets whether the "type" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasType {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "type" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearType() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "source" field.</summary>
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;
}
}
/// <summary>Gets whether the "source" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSource {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "source" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSource() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "item" field.</summary>
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;
}
}
/// <summary>Gets whether the item field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasItem {
get { return item_ != null; }
}
/// <summary>Clears the value of the item field</summary>
[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
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+591
View File
@@ -0,0 +1,591 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/club_ban.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/club_ban.proto</summary>
public static partial class ClubBanReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/club_ban.proto</summary>
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<AddBanOptions> {
private static readonly pb::MessageParser<AddBanOptions> _parser = new pb::MessageParser<AddBanOptions>(() => new AddBanOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<AddBanOptions> 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);
}
/// <summary>Field number for the "target_id" field.</summary>
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;
}
}
/// <summary>Gets whether the target_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTargetId {
get { return targetId_ != null; }
}
/// <summary>Clears the value of the target_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTargetId() {
targetId_ = null;
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
get { return attribute_; }
}
/// <summary>Field number for the "reason" field.</summary>
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");
}
}
/// <summary>Gets whether the "reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReason {
get { return reason_ != null; }
}
/// <summary>Clears the value of the "reason" field</summary>
[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<ClubBan> {
private static readonly pb::MessageParser<ClubBan> _parser = new pb::MessageParser<ClubBan>(() => new ClubBan());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ClubBan> 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);
}
/// <summary>Field number for the "id" field.</summary>
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;
}
}
/// <summary>Gets whether the id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return id_ != null; }
}
/// <summary>Clears the value of the id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
id_ = null;
}
/// <summary>Field number for the "battle_tag" field.</summary>
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");
}
}
/// <summary>Gets whether the "battle_tag" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasBattleTag {
get { return battleTag_ != null; }
}
/// <summary>Clears the value of the "battle_tag" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearBattleTag() {
battleTag_ = null;
}
/// <summary>Field number for the "creator" field.</summary>
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;
}
}
/// <summary>Gets whether the creator field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasCreator {
get { return creator_ != null; }
}
/// <summary>Clears the value of the creator field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearCreator() {
creator_ = null;
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 4;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
get { return attribute_; }
}
/// <summary>Field number for the "reason" field.</summary>
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");
}
}
/// <summary>Gets whether the "reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReason {
get { return reason_ != null; }
}
/// <summary>Clears the value of the "reason" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReason() {
reason_ = null;
}
/// <summary>Field number for the "creation_time" field.</summary>
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;
}
}
/// <summary>Gets whether the "creation_time" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasCreationTime {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "creation_time" field</summary>
[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
File diff suppressed because it is too large Load Diff
+115
View File
@@ -0,0 +1,115 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/club_enum.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/club_enum.proto</summary>
public static partial class ClubEnumReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/club_enum.proto</summary>
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
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+235
View File
@@ -0,0 +1,235 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/club_member_id.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/club_member_id.proto</summary>
public static partial class ClubMemberIdReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/club_member_id.proto</summary>
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<MemberId> {
private static readonly pb::MessageParser<MemberId> _parser = new pb::MessageParser<MemberId>(() => new MemberId());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberId> 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);
}
/// <summary>Field number for the "account_id" field.</summary>
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;
}
}
/// <summary>Gets whether the account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAccountId {
get { return accountId_ != null; }
}
/// <summary>Clears the value of the account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAccountId() {
accountId_ = null;
}
/// <summary>Field number for the "unique_id" field.</summary>
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;
}
}
/// <summary>Gets whether the "unique_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUniqueId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "unique_id" field</summary>
[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
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+58
View File
@@ -0,0 +1,58 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/club_types.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/club_types.proto</summary>
public static partial class ClubTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/club_types.proto</summary>
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
File diff suppressed because it is too large Load Diff
+122 -40
View File
@@ -1,15 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pb = Google.Protobuf; using pb = global::Google.Protobuf;
using pbr = Google.Protobuf.Reflection; using pbc = global::Google.Protobuf.Collections;
namespace Bgs.Protocol using pbr = global::Google.Protobuf.Reflection;
{ using scg = global::System.Collections.Generic;
namespace Bgs.Protocol {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/content_handle_types.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/content_handle_types.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class ContentHandleTypesReflection { public static partial class ContentHandleTypesReflection {
#region Descriptor #region Descriptor
@@ -20,97 +22,161 @@ namespace Bgs.Protocol
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static ContentHandleTypesReflection() { static ContentHandleTypesReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CixiZ3MvbG93L3BiL2NsaWVudC9jb250ZW50X2hhbmRsZV90eXBlcy5wcm90", "CixiZ3MvbG93L3BiL2NsaWVudC9jb250ZW50X2hhbmRsZV90eXBlcy5wcm90",
"bxIMYmdzLnByb3RvY29sIk8KDUNvbnRlbnRIYW5kbGUSDgoGcmVnaW9uGAEg", "bxIMYmdzLnByb3RvY29sIk8KDUNvbnRlbnRIYW5kbGUSDgoGcmVnaW9uGAEg",
"ASgHEg0KBXVzYWdlGAIgASgHEgwKBGhhc2gYAyABKAwSEQoJcHJvdG9fdXJs", "AigHEg0KBXVzYWdlGAIgAigHEgwKBGhhc2gYAyACKAwSEQoJcHJvdG9fdXJs",
"GAQgASgJQiUKDWJuZXQucHJvdG9jb2xCEkNvbnRlbnRIYW5kbGVQcm90b0gC", "GAQgASgJQiMKDWJuZXQucHJvdG9jb2xCEkNvbnRlbnRIYW5kbGVQcm90bw=="));
"YgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(null, 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(typeof(global::Bgs.Protocol.ContentHandle), global::Bgs.Protocol.ContentHandle.Parser, new[]{ "Region", "Usage", "Hash", "ProtoUrl" }, null, null, null, null)
})); }));
} }
#endregion #endregion
} }
#region Messages #region Messages
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ContentHandle : pb::IMessage<ContentHandle> { public sealed partial class ContentHandle : pb::IMessage<ContentHandle> {
private static readonly pb::MessageParser<ContentHandle> _parser = new pb::MessageParser<ContentHandle>(() => new ContentHandle()); private static readonly pb::MessageParser<ContentHandle> _parser = new pb::MessageParser<ContentHandle>(() => new ContentHandle());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ContentHandle> Parser { get { return _parser; } } public static pb::MessageParser<ContentHandle> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ContentHandle() { public ContentHandle() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ContentHandle(ContentHandle other) : this() { public ContentHandle(ContentHandle other) : this() {
_hasBits0 = other._hasBits0;
region_ = other.region_; region_ = other.region_;
usage_ = other.usage_; usage_ = other.usage_;
hash_ = other.hash_; hash_ = other.hash_;
protoUrl_ = other.protoUrl_; protoUrl_ = other.protoUrl_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ContentHandle Clone() { public ContentHandle Clone() {
return new ContentHandle(this); return new ContentHandle(this);
} }
/// <summary>Field number for the "region" field.</summary> /// <summary>Field number for the "region" field.</summary>
public const int RegionFieldNumber = 1; public const int RegionFieldNumber = 1;
private readonly static uint RegionDefaultValue = 0;
private uint region_; private uint region_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Region { public uint Region {
get { return region_; } get { if ((_hasBits0 & 1) != 0) { return region_; } else { return RegionDefaultValue; } }
set { set {
_hasBits0 |= 1;
region_ = value; region_ = value;
} }
} }
/// <summary>Gets whether the "region" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasRegion {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "region" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearRegion() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "usage" field.</summary> /// <summary>Field number for the "usage" field.</summary>
public const int UsageFieldNumber = 2; public const int UsageFieldNumber = 2;
private readonly static uint UsageDefaultValue = 0;
private uint usage_; private uint usage_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Usage { public uint Usage {
get { return usage_; } get { if ((_hasBits0 & 2) != 0) { return usage_; } else { return UsageDefaultValue; } }
set { set {
_hasBits0 |= 2;
usage_ = value; usage_ = value;
} }
} }
/// <summary>Gets whether the "usage" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUsage {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "usage" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUsage() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "hash" field.</summary> /// <summary>Field number for the "hash" field.</summary>
public const int HashFieldNumber = 3; 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 { public pb::ByteString Hash {
get { return hash_; } get { return hash_ ?? HashDefaultValue; }
set { set {
hash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); hash_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
} }
} }
/// <summary>Gets whether the "hash" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasHash {
get { return hash_ != null; }
}
/// <summary>Clears the value of the "hash" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearHash() {
hash_ = null;
}
/// <summary>Field number for the "proto_url" field.</summary> /// <summary>Field number for the "proto_url" field.</summary>
public const int ProtoUrlFieldNumber = 4; public const int ProtoUrlFieldNumber = 4;
private string protoUrl_ = ""; private readonly static string ProtoUrlDefaultValue = "";
private string protoUrl_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ProtoUrl { public string ProtoUrl {
get { return protoUrl_; } get { return protoUrl_ ?? ProtoUrlDefaultValue; }
set { set {
protoUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); protoUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
} }
} }
/// <summary>Gets whether the "proto_url" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProtoUrl {
get { return protoUrl_ != null; }
}
/// <summary>Clears the value of the "proto_url" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProtoUrl() {
protoUrl_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as ContentHandle); return Equals(other as ContentHandle);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ContentHandle other) { public bool Equals(ContentHandle other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -122,82 +188,98 @@ namespace Bgs.Protocol
if (Usage != other.Usage) return false; if (Usage != other.Usage) return false;
if (Hash != other.Hash) return false; if (Hash != other.Hash) return false;
if (ProtoUrl != other.ProtoUrl) return false; if (ProtoUrl != other.ProtoUrl) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (Region != 0) hash ^= Region.GetHashCode(); if (HasRegion) hash ^= Region.GetHashCode();
if (Usage != 0) hash ^= Usage.GetHashCode(); if (HasUsage) hash ^= Usage.GetHashCode();
if (Hash.Length != 0) hash ^= Hash.GetHashCode(); if (HasHash) hash ^= Hash.GetHashCode();
if (ProtoUrl.Length != 0) hash ^= ProtoUrl.GetHashCode(); if (HasProtoUrl) hash ^= ProtoUrl.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (Region != 0) { if (HasRegion) {
output.WriteRawTag(13); output.WriteRawTag(13);
output.WriteFixed32(Region); output.WriteFixed32(Region);
} }
if (Usage != 0) { if (HasUsage) {
output.WriteRawTag(21); output.WriteRawTag(21);
output.WriteFixed32(Usage); output.WriteFixed32(Usage);
} }
if (Hash.Length != 0) { if (HasHash) {
output.WriteRawTag(26); output.WriteRawTag(26);
output.WriteBytes(Hash); output.WriteBytes(Hash);
} }
if (ProtoUrl.Length != 0) { if (HasProtoUrl) {
output.WriteRawTag(34); output.WriteRawTag(34);
output.WriteString(ProtoUrl); output.WriteString(ProtoUrl);
} }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (Region != 0) { if (HasRegion) {
size += 1 + 4; size += 1 + 4;
} }
if (Usage != 0) { if (HasUsage) {
size += 1 + 4; size += 1 + 4;
} }
if (Hash.Length != 0) { if (HasHash) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Hash); size += 1 + pb::CodedOutputStream.ComputeBytesSize(Hash);
} }
if (ProtoUrl.Length != 0) { if (HasProtoUrl) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ProtoUrl); size += 1 + pb::CodedOutputStream.ComputeStringSize(ProtoUrl);
} }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ContentHandle other) { public void MergeFrom(ContentHandle other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.Region != 0) { if (other.HasRegion) {
Region = other.Region; Region = other.Region;
} }
if (other.Usage != 0) { if (other.HasUsage) {
Usage = other.Usage; Usage = other.Usage;
} }
if (other.Hash.Length != 0) { if (other.HasHash) {
Hash = other.Hash; Hash = other.Hash;
} }
if (other.ProtoUrl.Length != 0) { if (other.HasProtoUrl) {
ProtoUrl = other.ProtoUrl; ProtoUrl = other.ProtoUrl;
} }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 13: { case 13: {
Region = input.ReadFixed32(); Region = input.ReadFixed32();
File diff suppressed because it is too large Load Diff
+166 -309
View File
@@ -1,15 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pb = Google.Protobuf; using pb = global::Google.Protobuf;
using pbr = Google.Protobuf.Reflection; using pbc = global::Google.Protobuf.Collections;
namespace Bgs.Protocol using pbr = global::Google.Protobuf.Reflection;
{ using scg = global::System.Collections.Generic;
namespace Bgs.Protocol {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/entity_types.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/entity_types.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class EntityTypesReflection { public static partial class EntityTypesReflection {
#region Descriptor #region Descriptor
@@ -20,83 +22,119 @@ namespace Bgs.Protocol
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static EntityTypesReflection() { static EntityTypesReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlwZXMucHJvdG8SDGJncy5w", "CiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlwZXMucHJvdG8SDGJncy5w",
"cm90b2NvbBo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMv", "cm90b2NvbBo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMv",
"ZmllbGRfb3B0aW9ucy5wcm90byIlCghFbnRpdHlJZBIMCgRoaWdoGAEgASgG", "ZmllbGRfb3B0aW9ucy5wcm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFs",
"EgsKA2xvdxgCIAEoBiJnCghJZGVudGl0eRIqCgphY2NvdW50X2lkGAEgASgL", "X2V4dGVuc2lvbnMvbWVzc2FnZV9vcHRpb25zLnByb3RvIj0KCEVudGl0eUlk",
"MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEi8KD2dhbWVfYWNjb3VudF9pZBgC", "EhQKBGhpZ2gYASACKAZCBoL5KwIIAhITCgNsb3cYAiACKAZCBoL5KwIIAjoG",
"IAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCKjAQoLQWNjb3VudEluZm8S", "gvkrAggBInsKCElkZW50aXR5EjQKCmFjY291bnRfaWQYASABKAsyFi5iZ3Mu",
"FAoMYWNjb3VudF9wYWlkGAEgASgIEhIKCmNvdW50cnlfaWQYAiABKAcSEgoK", "cHJvdG9jb2wuRW50aXR5SWRCCIr5KwQ6AhABEjkKD2dhbWVfYWNjb3VudF9p",
"YmF0dGxlX3RhZxgDIAEoCRIVCg1tYW51YWxfcmV2aWV3GAQgASgIEigKCGlk", "ZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZEIIivkrBDoCEAJCHAoN",
"ZW50aXR5GAUgASgLMhYuYmdzLnByb3RvY29sLklkZW50aXR5EhUKDWFjY291", "Ym5ldC5wcm90b2NvbEILRW50aXR5UHJvdG8="));
"bnRfbXV0ZWQYBiABKAhCHgoNYm5ldC5wcm90b2NvbEILRW50aXR5UHJvdG9I",
"AmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { Bgs.Protocol.FieldOptionsReflection.Descriptor, }, new pbr::FileDescriptor[] { global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(null, 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(global::Bgs.Protocol.EntityId), global::Bgs.Protocol.EntityId.Parser, new[]{ "High", "Low" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Identity), Bgs.Protocol.Identity.Parser, new[]{ "AccountId", "GameAccountId" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Identity), global::Bgs.Protocol.Identity.Parser, new[]{ "AccountId", "GameAccountId" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.AccountInfo), Bgs.Protocol.AccountInfo.Parser, new[]{ "AccountPaid", "CountryId", "BattleTag", "ManualReview", "Identity", "AccountMuted" }, null, null, null)
})); }));
} }
#endregion #endregion
} }
#region Messages #region Messages
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class EntityId : pb::IMessage<EntityId> { public sealed partial class EntityId : pb::IMessage<EntityId> {
private static readonly pb::MessageParser<EntityId> _parser = new pb::MessageParser<EntityId>(() => new EntityId()); private static readonly pb::MessageParser<EntityId> _parser = new pb::MessageParser<EntityId>(() => new EntityId());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<EntityId> Parser { get { return _parser; } } public static pb::MessageParser<EntityId> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public EntityId() { public EntityId() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public EntityId(EntityId other) : this() { public EntityId(EntityId other) : this() {
_hasBits0 = other._hasBits0;
high_ = other.high_; high_ = other.high_;
low_ = other.low_; low_ = other.low_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public EntityId Clone() { public EntityId Clone() {
return new EntityId(this); return new EntityId(this);
} }
/// <summary>Field number for the "high" field.</summary> /// <summary>Field number for the "high" field.</summary>
public const int HighFieldNumber = 1; public const int HighFieldNumber = 1;
private readonly static ulong HighDefaultValue = 0UL;
private ulong high_; private ulong high_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong High { public ulong High {
get { return high_; } get { if ((_hasBits0 & 1) != 0) { return high_; } else { return HighDefaultValue; } }
set { set {
_hasBits0 |= 1;
high_ = value; high_ = value;
} }
} }
/// <summary>Gets whether the "high" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasHigh {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "high" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearHigh() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "low" field.</summary> /// <summary>Field number for the "low" field.</summary>
public const int LowFieldNumber = 2; public const int LowFieldNumber = 2;
private readonly static ulong LowDefaultValue = 0UL;
private ulong low_; private ulong low_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong Low { public ulong Low {
get { return low_; } get { if ((_hasBits0 & 2) != 0) { return low_; } else { return LowDefaultValue; } }
set { set {
_hasBits0 |= 2;
low_ = value; low_ = value;
} }
} }
/// <summary>Gets whether the "low" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasLow {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "low" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearLow() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as EntityId); return Equals(other as EntityId);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(EntityId other) { public bool Equals(EntityId other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -106,60 +144,76 @@ namespace Bgs.Protocol
} }
if (High != other.High) return false; if (High != other.High) return false;
if (Low != other.Low) return false; if (Low != other.Low) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (High != 0UL) hash ^= High.GetHashCode(); if (HasHigh) hash ^= High.GetHashCode();
if (Low != 0UL) hash ^= Low.GetHashCode(); if (HasLow) hash ^= Low.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (High != 0UL) { if (HasHigh) {
output.WriteRawTag(9); output.WriteRawTag(9);
output.WriteFixed64(High); output.WriteFixed64(High);
} }
if (Low != 0UL) { if (HasLow) {
output.WriteRawTag(17); output.WriteRawTag(17);
output.WriteFixed64(Low); output.WriteFixed64(Low);
} }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (High != 0UL) { if (HasHigh) {
size += 1 + 8; size += 1 + 8;
} }
if (Low != 0UL) { if (HasLow) {
size += 1 + 8; size += 1 + 8;
} }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(EntityId other) { public void MergeFrom(EntityId other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.High != 0UL) { if (other.HasHigh) {
High = other.High; High = other.High;
} }
if (other.Low != 0UL) { if (other.HasLow) {
Low = other.Low; Low = other.Low;
} }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 9: { case 9: {
High = input.ReadFixed64(); High = input.ReadFixed64();
@@ -175,58 +229,89 @@ namespace Bgs.Protocol
} }
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Identity : pb::IMessage<Identity> { public sealed partial class Identity : pb::IMessage<Identity> {
private static readonly pb::MessageParser<Identity> _parser = new pb::MessageParser<Identity>(() => new Identity()); private static readonly pb::MessageParser<Identity> _parser = new pb::MessageParser<Identity>(() => new Identity());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Identity> Parser { get { return _parser; } } public static pb::MessageParser<Identity> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Identity() { public Identity() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Identity(Identity other) : this() { public Identity(Identity other) : this() {
AccountId = other.accountId_ != null ? other.AccountId.Clone() : null; accountId_ = other.HasAccountId ? other.accountId_.Clone() : null;
GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null; gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Identity Clone() { public Identity Clone() {
return new Identity(this); return new Identity(this);
} }
/// <summary>Field number for the "account_id" field.</summary> /// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 1; public const int AccountIdFieldNumber = 1;
private Bgs.Protocol.EntityId accountId_; private global::Bgs.Protocol.EntityId accountId_;
public Bgs.Protocol.EntityId AccountId { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; } get { return accountId_; }
set { set {
accountId_ = value; accountId_ = value;
} }
} }
/// <summary>Gets whether the account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAccountId {
get { return accountId_ != null; }
}
/// <summary>Clears the value of the account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAccountId() {
accountId_ = null;
}
/// <summary>Field number for the "game_account_id" field.</summary> /// <summary>Field number for the "game_account_id" field.</summary>
public const int GameAccountIdFieldNumber = 2; public const int GameAccountIdFieldNumber = 2;
private Bgs.Protocol.EntityId gameAccountId_; private global::Bgs.Protocol.EntityId gameAccountId_;
public Bgs.Protocol.EntityId GameAccountId { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId GameAccountId {
get { return gameAccountId_; } get { return gameAccountId_; }
set { set {
gameAccountId_ = value; gameAccountId_ = value;
} }
} }
/// <summary>Gets whether the game_account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasGameAccountId {
get { return gameAccountId_ != null; }
}
/// <summary>Clears the value of the game_account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearGameAccountId() {
gameAccountId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as Identity); return Equals(other as Identity);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Identity other) { public bool Equals(Identity other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -236,323 +321,95 @@ namespace Bgs.Protocol
} }
if (!object.Equals(AccountId, other.AccountId)) return false; if (!object.Equals(AccountId, other.AccountId)) return false;
if (!object.Equals(GameAccountId, other.GameAccountId)) 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() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (accountId_ != null) hash ^= AccountId.GetHashCode(); if (HasAccountId) hash ^= AccountId.GetHashCode();
if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode(); if (HasGameAccountId) hash ^= GameAccountId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (accountId_ != null) { if (HasAccountId) {
output.WriteRawTag(10); output.WriteRawTag(10);
output.WriteMessage(AccountId); output.WriteMessage(AccountId);
} }
if (gameAccountId_ != null) { if (HasGameAccountId) {
output.WriteRawTag(18); output.WriteRawTag(18);
output.WriteMessage(GameAccountId); output.WriteMessage(GameAccountId);
} }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (accountId_ != null) { if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
} }
if (gameAccountId_ != null) { if (HasGameAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId); size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId);
} }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Identity other) { public void MergeFrom(Identity other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.accountId_ != null) { if (other.HasAccountId) {
if (accountId_ == null) { if (!HasAccountId) {
accountId_ = new Bgs.Protocol.EntityId(); AccountId = new global::Bgs.Protocol.EntityId();
} }
AccountId.MergeFrom(other.AccountId); AccountId.MergeFrom(other.AccountId);
} }
if (other.gameAccountId_ != null) { if (other.HasGameAccountId) {
if (gameAccountId_ == null) { if (!HasGameAccountId) {
gameAccountId_ = new Bgs.Protocol.EntityId(); GameAccountId = new global::Bgs.Protocol.EntityId();
} }
GameAccountId.MergeFrom(other.GameAccountId); GameAccountId.MergeFrom(other.GameAccountId);
} }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 10: { case 10: {
if (accountId_ == null) { if (!HasAccountId) {
accountId_ = new Bgs.Protocol.EntityId(); AccountId = new global::Bgs.Protocol.EntityId();
} }
input.ReadMessage(accountId_); input.ReadMessage(AccountId);
break; break;
} }
case 18: { case 18: {
if (gameAccountId_ == null) { if (!HasGameAccountId) {
gameAccountId_ = new Bgs.Protocol.EntityId(); GameAccountId = new global::Bgs.Protocol.EntityId();
} }
input.ReadMessage(gameAccountId_); input.ReadMessage(GameAccountId);
break;
}
}
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class AccountInfo : pb::IMessage<AccountInfo> {
private static readonly pb::MessageParser<AccountInfo> _parser = new pb::MessageParser<AccountInfo>(() => new AccountInfo());
public static pb::MessageParser<AccountInfo> 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);
}
/// <summary>Field number for the "account_paid" field.</summary>
public const int AccountPaidFieldNumber = 1;
private bool accountPaid_;
public bool AccountPaid {
get { return accountPaid_; }
set {
accountPaid_ = value;
}
}
/// <summary>Field number for the "country_id" field.</summary>
public const int CountryIdFieldNumber = 2;
private uint countryId_;
public uint CountryId {
get { return countryId_; }
set {
countryId_ = value;
}
}
/// <summary>Field number for the "battle_tag" field.</summary>
public const int BattleTagFieldNumber = 3;
private string battleTag_ = "";
public string BattleTag {
get { return battleTag_; }
set {
battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "manual_review" field.</summary>
public const int ManualReviewFieldNumber = 4;
private bool manualReview_;
public bool ManualReview {
get { return manualReview_; }
set {
manualReview_ = value;
}
}
/// <summary>Field number for the "identity" field.</summary>
public const int IdentityFieldNumber = 5;
private Bgs.Protocol.Identity identity_;
public Bgs.Protocol.Identity Identity {
get { return identity_; }
set {
identity_ = value;
}
}
/// <summary>Field number for the "account_muted" field.</summary>
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();
break; break;
} }
} }
+229
View File
@@ -0,0 +1,229 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/ets_types.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/ets_types.proto</summary>
public static partial class EtsTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/ets_types.proto</summary>
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<TimeSeriesId> {
private static readonly pb::MessageParser<TimeSeriesId> _parser = new pb::MessageParser<TimeSeriesId>(() => new TimeSeriesId());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<TimeSeriesId> 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);
}
/// <summary>Field number for the "epoch" field.</summary>
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;
}
}
/// <summary>Gets whether the "epoch" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasEpoch {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "epoch" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearEpoch() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "position" field.</summary>
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;
}
}
/// <summary>Gets whether the "position" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPosition {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "position" field</summary>
[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
+510
View File
@@ -0,0 +1,510 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/event_view_types.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/event_view_types.proto</summary>
public static partial class EventViewTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/event_view_types.proto</summary>
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<GetEventOptions> {
private static readonly pb::MessageParser<GetEventOptions> _parser = new pb::MessageParser<GetEventOptions>(() => new GetEventOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<GetEventOptions> 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);
}
/// <summary>Field number for the "fetch_from" field.</summary>
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;
}
}
/// <summary>Gets whether the "fetch_from" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasFetchFrom {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "fetch_from" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearFetchFrom() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "fetch_until" field.</summary>
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;
}
}
/// <summary>Gets whether the "fetch_until" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasFetchUntil {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "fetch_until" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearFetchUntil() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "max_events" field.</summary>
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;
}
}
/// <summary>Gets whether the "max_events" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMaxEvents {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "max_events" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMaxEvents() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "order" field.</summary>
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;
}
}
/// <summary>Gets whether the "order" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasOrder {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "order" field</summary>
[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<ViewMarker> {
private static readonly pb::MessageParser<ViewMarker> _parser = new pb::MessageParser<ViewMarker>(() => new ViewMarker());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ViewMarker> 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);
}
/// <summary>Field number for the "last_read_time" field.</summary>
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;
}
}
/// <summary>Gets whether the "last_read_time" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasLastReadTime {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "last_read_time" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearLastReadTime() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "last_message_time" field.</summary>
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;
}
}
/// <summary>Gets whether the "last_message_time" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasLastMessageTime {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "last_message_time" field</summary>
[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
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+166 -59
View File
@@ -1,16 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pb = Google.Protobuf; using pb = global::Google.Protobuf;
using pbc = Google.Protobuf.Collections; using pbc = global::Google.Protobuf.Collections;
using pbr = Google.Protobuf.Reflection; using pbr = global::Google.Protobuf.Reflection;
namespace Bgs.Protocol.GameUtilities.V1 using scg = global::System.Collections.Generic;
{ namespace Bgs.Protocol.GameUtilities.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/game_utilities_types.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/game_utilities_types.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class GameUtilitiesTypesReflection { public static partial class GameUtilitiesTypesReflection {
#region Descriptor #region Descriptor
@@ -21,91 +22,127 @@ namespace Bgs.Protocol.GameUtilities.V1
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static GameUtilitiesTypesReflection() { static GameUtilitiesTypesReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CixiZ3MvbG93L3BiL2NsaWVudC9nYW1lX3V0aWxpdGllc190eXBlcy5wcm90", "CixiZ3MvbG93L3BiL2NsaWVudC9nYW1lX3V0aWxpdGllc190eXBlcy5wcm90",
"bxIeYmdzLnByb3RvY29sLmdhbWVfdXRpbGl0aWVzLnYxGidiZ3MvbG93L3Bi", "bxIeYmdzLnByb3RvY29sLmdhbWVfdXRpbGl0aWVzLnYxGidiZ3MvbG93L3Bi",
"L2NsaWVudC9hdHRyaWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xp", "L2NsaWVudC9hdHRyaWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xp",
"ZW50L2VudGl0eV90eXBlcy5wcm90byJ3Cg9QbGF5ZXJWYXJpYWJsZXMSKAoI", "ZW50L2VudGl0eV90eXBlcy5wcm90byJ3Cg9QbGF5ZXJWYXJpYWJsZXMSKAoI",
"aWRlbnRpdHkYASABKAsyFi5iZ3MucHJvdG9jb2wuSWRlbnRpdHkSDgoGcmF0", "aWRlbnRpdHkYASACKAsyFi5iZ3MucHJvdG9jb2wuSWRlbnRpdHkSDgoGcmF0",
"aW5nGAIgASgBEioKCWF0dHJpYnV0ZRgDIAMoCzIXLmJncy5wcm90b2NvbC5B", "aW5nGAIgASgBEioKCWF0dHJpYnV0ZRgDIAMoCzIXLmJncy5wcm90b2NvbC5B",
"dHRyaWJ1dGUiQAoKQ2xpZW50SW5mbxIWCg5jbGllbnRfYWRkcmVzcxgBIAEo", "dHRyaWJ1dGUiQAoKQ2xpZW50SW5mbxIWCg5jbGllbnRfYWRkcmVzcxgBIAEo",
"CRIaChJwcml2aWxlZ2VkX25ldHdvcmsYAiABKAhCPAofYm5ldC5wcm90b2Nv", "CRIaChJwcml2aWxlZ2VkX25ldHdvcmsYAiABKAhCOgofYm5ldC5wcm90b2Nv",
"bC5nYW1lX3V0aWxpdGllcy52MUIXR2FtZVV0aWxpdGllc1R5cGVzUHJvdG9I", "bC5nYW1lX3V0aWxpdGllcy52MUIXR2FtZVV0aWxpdGllc1R5cGVzUHJvdG8="));
"AmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, }, new pbr::FileDescriptor[] { global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(null, 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(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(Bgs.Protocol.GameUtilities.V1.ClientInfo), Bgs.Protocol.GameUtilities.V1.ClientInfo.Parser, new[]{ "ClientAddress", "PrivilegedNetwork" }, 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 #endregion
} }
#region Messages #region Messages
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class PlayerVariables : pb::IMessage<PlayerVariables> { public sealed partial class PlayerVariables : pb::IMessage<PlayerVariables> {
private static readonly pb::MessageParser<PlayerVariables> _parser = new pb::MessageParser<PlayerVariables>(() => new PlayerVariables()); private static readonly pb::MessageParser<PlayerVariables> _parser = new pb::MessageParser<PlayerVariables>(() => new PlayerVariables());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<PlayerVariables> Parser { get { return _parser; } } public static pb::MessageParser<PlayerVariables> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public PlayerVariables() { public PlayerVariables() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public PlayerVariables(PlayerVariables other) : this() { 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_; rating_ = other.rating_;
attribute_ = other.attribute_.Clone(); attribute_ = other.attribute_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public PlayerVariables Clone() { public PlayerVariables Clone() {
return new PlayerVariables(this); return new PlayerVariables(this);
} }
/// <summary>Field number for the "identity" field.</summary> /// <summary>Field number for the "identity" field.</summary>
public const int IdentityFieldNumber = 1; public const int IdentityFieldNumber = 1;
private Bgs.Protocol.Identity identity_; private global::Bgs.Protocol.Identity identity_;
public Bgs.Protocol.Identity Identity { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Identity Identity {
get { return identity_; } get { return identity_; }
set { set {
identity_ = value; identity_ = value;
} }
} }
/// <summary>Gets whether the identity field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasIdentity {
get { return identity_ != null; }
}
/// <summary>Clears the value of the identity field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearIdentity() {
identity_ = null;
}
/// <summary>Field number for the "rating" field.</summary> /// <summary>Field number for the "rating" field.</summary>
public const int RatingFieldNumber = 2; public const int RatingFieldNumber = 2;
private readonly static double RatingDefaultValue = 0D;
private double rating_; private double rating_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double Rating { public double Rating {
get { return rating_; } get { if ((_hasBits0 & 1) != 0) { return rating_; } else { return RatingDefaultValue; } }
set { set {
_hasBits0 |= 1;
rating_ = value; rating_ = value;
} }
} }
/// <summary>Gets whether the "rating" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasRating {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "rating" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearRating() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "attribute" field.</summary> /// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 3; public const int AttributeFieldNumber = 3;
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec private static readonly pb::FieldCodec<global::Bgs.Protocol.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(26, Bgs.Protocol.Attribute.Parser); = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Attribute.Parser);
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>(); private readonly pbc::RepeatedField<global::Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.Attribute>();
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Attribute> Attribute {
get { return attribute_; } get { return attribute_; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as PlayerVariables); return Equals(other as PlayerVariables);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(PlayerVariables other) { public bool Equals(PlayerVariables other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -114,75 +151,91 @@ namespace Bgs.Protocol.GameUtilities.V1
return true; return true;
} }
if (!object.Equals(Identity, other.Identity)) return false; 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; if(!attribute_.Equals(other.attribute_)) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (identity_ != null) hash ^= Identity.GetHashCode(); if (HasIdentity) hash ^= Identity.GetHashCode();
if (Rating != 0D) hash ^= Rating.GetHashCode(); if (HasRating) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Rating);
hash ^= attribute_.GetHashCode(); hash ^= attribute_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (identity_ != null) { if (HasIdentity) {
output.WriteRawTag(10); output.WriteRawTag(10);
output.WriteMessage(Identity); output.WriteMessage(Identity);
} }
if (Rating != 0D) { if (HasRating) {
output.WriteRawTag(17); output.WriteRawTag(17);
output.WriteDouble(Rating); output.WriteDouble(Rating);
} }
attribute_.WriteTo(output, _repeated_attribute_codec); attribute_.WriteTo(output, _repeated_attribute_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (identity_ != null) { if (HasIdentity) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity); size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity);
} }
if (Rating != 0D) { if (HasRating) {
size += 1 + 8; size += 1 + 8;
} }
size += attribute_.CalculateSize(_repeated_attribute_codec); size += attribute_.CalculateSize(_repeated_attribute_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(PlayerVariables other) { public void MergeFrom(PlayerVariables other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.identity_ != null) { if (other.HasIdentity) {
if (identity_ == null) { if (!HasIdentity) {
identity_ = new Bgs.Protocol.Identity(); Identity = new global::Bgs.Protocol.Identity();
} }
Identity.MergeFrom(other.Identity); Identity.MergeFrom(other.Identity);
} }
if (other.Rating != 0D) { if (other.HasRating) {
Rating = other.Rating; Rating = other.Rating;
} }
attribute_.Add(other.attribute_); attribute_.Add(other.attribute_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 10: { case 10: {
if (identity_ == null) { if (!HasIdentity) {
identity_ = new Bgs.Protocol.Identity(); Identity = new global::Bgs.Protocol.Identity();
} }
input.ReadMessage(identity_); input.ReadMessage(Identity);
break; break;
} }
case 17: { case 17: {
@@ -199,58 +252,96 @@ namespace Bgs.Protocol.GameUtilities.V1
} }
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ClientInfo : pb::IMessage<ClientInfo> { public sealed partial class ClientInfo : pb::IMessage<ClientInfo> {
private static readonly pb::MessageParser<ClientInfo> _parser = new pb::MessageParser<ClientInfo>(() => new ClientInfo()); private static readonly pb::MessageParser<ClientInfo> _parser = new pb::MessageParser<ClientInfo>(() => new ClientInfo());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ClientInfo> Parser { get { return _parser; } } public static pb::MessageParser<ClientInfo> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClientInfo() { public ClientInfo() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClientInfo(ClientInfo other) : this() { public ClientInfo(ClientInfo other) : this() {
_hasBits0 = other._hasBits0;
clientAddress_ = other.clientAddress_; clientAddress_ = other.clientAddress_;
privilegedNetwork_ = other.privilegedNetwork_; privilegedNetwork_ = other.privilegedNetwork_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClientInfo Clone() { public ClientInfo Clone() {
return new ClientInfo(this); return new ClientInfo(this);
} }
/// <summary>Field number for the "client_address" field.</summary> /// <summary>Field number for the "client_address" field.</summary>
public const int ClientAddressFieldNumber = 1; public const int ClientAddressFieldNumber = 1;
private string clientAddress_ = ""; private readonly static string ClientAddressDefaultValue = "";
private string clientAddress_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ClientAddress { public string ClientAddress {
get { return clientAddress_; } get { return clientAddress_ ?? ClientAddressDefaultValue; }
set { set {
clientAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); clientAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
} }
} }
/// <summary>Gets whether the "client_address" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasClientAddress {
get { return clientAddress_ != null; }
}
/// <summary>Clears the value of the "client_address" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearClientAddress() {
clientAddress_ = null;
}
/// <summary>Field number for the "privileged_network" field.</summary> /// <summary>Field number for the "privileged_network" field.</summary>
public const int PrivilegedNetworkFieldNumber = 2; public const int PrivilegedNetworkFieldNumber = 2;
private readonly static bool PrivilegedNetworkDefaultValue = false;
private bool privilegedNetwork_; private bool privilegedNetwork_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool PrivilegedNetwork { public bool PrivilegedNetwork {
get { return privilegedNetwork_; } get { if ((_hasBits0 & 1) != 0) { return privilegedNetwork_; } else { return PrivilegedNetworkDefaultValue; } }
set { set {
_hasBits0 |= 1;
privilegedNetwork_ = value; privilegedNetwork_ = value;
} }
} }
/// <summary>Gets whether the "privileged_network" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPrivilegedNetwork {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "privileged_network" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearPrivilegedNetwork() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as ClientInfo); return Equals(other as ClientInfo);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ClientInfo other) { public bool Equals(ClientInfo other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -260,60 +351,76 @@ namespace Bgs.Protocol.GameUtilities.V1
} }
if (ClientAddress != other.ClientAddress) return false; if (ClientAddress != other.ClientAddress) return false;
if (PrivilegedNetwork != other.PrivilegedNetwork) return false; if (PrivilegedNetwork != other.PrivilegedNetwork) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (ClientAddress.Length != 0) hash ^= ClientAddress.GetHashCode(); if (HasClientAddress) hash ^= ClientAddress.GetHashCode();
if (PrivilegedNetwork != false) hash ^= PrivilegedNetwork.GetHashCode(); if (HasPrivilegedNetwork) hash ^= PrivilegedNetwork.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (ClientAddress.Length != 0) { if (HasClientAddress) {
output.WriteRawTag(10); output.WriteRawTag(10);
output.WriteString(ClientAddress); output.WriteString(ClientAddress);
} }
if (PrivilegedNetwork != false) { if (HasPrivilegedNetwork) {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteBool(PrivilegedNetwork); output.WriteBool(PrivilegedNetwork);
} }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (ClientAddress.Length != 0) { if (HasClientAddress) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientAddress); size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientAddress);
} }
if (PrivilegedNetwork != false) { if (HasPrivilegedNetwork) {
size += 1 + 1; size += 1 + 1;
} }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ClientInfo other) { public void MergeFrom(ClientInfo other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.ClientAddress.Length != 0) { if (other.HasClientAddress) {
ClientAddress = other.ClientAddress; ClientAddress = other.ClientAddress;
} }
if (other.PrivilegedNetwork != false) { if (other.HasPrivilegedNetwork) {
PrivilegedNetwork = other.PrivilegedNetwork; PrivilegedNetwork = other.PrivilegedNetwork;
} }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 10: { case 10: {
ClientAddress = input.ReadString(); ClientAddress = input.ReadString();
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,281 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/message_options.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/message_options.proto</summary>
public static partial class MessageOptionsReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/global_extensions/message_options.proto</summary>
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
}
/// <summary>Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/message_options.proto</summary>
public static partial class MessageOptionsExtensions {
public static readonly pb::Extension<global::Google.Protobuf.MessageOptions, global::Bgs.Protocol.BGSMessageOptions> MessageOptions_ =
new pb::Extension<global::Google.Protobuf.MessageOptions, global::Bgs.Protocol.BGSMessageOptions>(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSMessageOptions.Parser));
}
#region Messages
public sealed partial class BGSMessageOptions : pb::IMessage<BGSMessageOptions> {
private static readonly pb::MessageParser<BGSMessageOptions> _parser = new pb::MessageParser<BGSMessageOptions>(() => new BGSMessageOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BGSMessageOptions> 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);
}
/// <summary>Field number for the "custom_select_shard" field.</summary>
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;
}
}
/// <summary>Gets whether the "custom_select_shard" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasCustomSelectShard {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "custom_select_shard" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearCustomSelectShard() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "custom_validator" field.</summary>
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;
}
}
/// <summary>Gets whether the "custom_validator" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasCustomValidator {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "custom_validator" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearCustomValidator() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "client_id_fanout" field.</summary>
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;
}
}
/// <summary>Gets whether the "client_id_fanout" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasClientIdFanout {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "client_id_fanout" field</summary>
[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
@@ -1,14 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pbr = Google.Protobuf.Reflection; using pb = global::Google.Protobuf;
namespace Bgs.Protocol using pbc = global::Google.Protobuf.Collections;
{ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Bgs.Protocol {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/method_options.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/method_options.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class MethodOptionsReflection { public static partial class MethodOptionsReflection {
#region Descriptor #region Descriptor
@@ -19,20 +22,176 @@ namespace Bgs.Protocol
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static MethodOptionsReflection() { static MethodOptionsReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CjhiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rf", "CjhiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rf",
"b3B0aW9ucy5wcm90bxIMYmdzLnByb3RvY29sGiBnb29nbGUvcHJvdG9idWYv", "b3B0aW9ucy5wcm90bxIMYmdzLnByb3RvY29sGiBnb29nbGUvcHJvdG9idWYv",
"ZGVzY3JpcHRvci5wcm90bzozCgltZXRob2RfaWQSHi5nb29nbGUucHJvdG9i", "ZGVzY3JpcHRvci5wcm90byIeChBCR1NNZXRob2RPcHRpb25zEgoKAmlkGAEg",
"dWYuTWV0aG9kT3B0aW9ucxjQhgMgASgNQiUKDWJuZXQucHJvdG9jb2xCEk1l", "ASgNOlgKDm1ldGhvZF9vcHRpb25zEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhv",
"dGhvZE9wdGlvbnNQcm90b0gCYgZwcm90bzM=")); "ZE9wdGlvbnMYkL8FIAEoCzIeLmJncy5wcm90b2NvbC5CR1NNZXRob2RPcHRp",
"b25zQiMKDWJuZXQucHJvdG9jb2xCEk1ldGhvZE9wdGlvbnNQcm90bw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, }, new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null)); 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 #endregion
} }
/// <summary>Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/method_options.proto</summary>
public static partial class MethodOptionsExtensions {
public static readonly pb::Extension<global::Google.Protobuf.MethodOptions, global::Bgs.Protocol.BGSMethodOptions> MethodOptions_ =
new pb::Extension<global::Google.Protobuf.MethodOptions, global::Bgs.Protocol.BGSMethodOptions>(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSMethodOptions.Parser));
}
#region Messages
public sealed partial class BGSMethodOptions : pb::IMessage<BGSMethodOptions> {
private static readonly pb::MessageParser<BGSMethodOptions> _parser = new pb::MessageParser<BGSMethodOptions>(() => new BGSMethodOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BGSMethodOptions> 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);
}
/// <summary>Field number for the "id" field.</summary>
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;
}
}
/// <summary>Gets whether the "id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "id" field</summary>
[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 #endregion Designer generated code
@@ -0,0 +1,603 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/range.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/range.proto</summary>
public static partial class RangeReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/global_extensions/range.proto</summary>
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<UnsignedIntRange> {
private static readonly pb::MessageParser<UnsignedIntRange> _parser = new pb::MessageParser<UnsignedIntRange>(() => new UnsignedIntRange());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UnsignedIntRange> 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);
}
/// <summary>Field number for the "min" field.</summary>
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;
}
}
/// <summary>Gets whether the "min" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMin {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "min" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMin() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "max" field.</summary>
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;
}
}
/// <summary>Gets whether the "max" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMax {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "max" field</summary>
[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<SignedIntRange> {
private static readonly pb::MessageParser<SignedIntRange> _parser = new pb::MessageParser<SignedIntRange>(() => new SignedIntRange());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SignedIntRange> 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);
}
/// <summary>Field number for the "min" field.</summary>
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;
}
}
/// <summary>Gets whether the "min" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMin {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "min" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMin() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "max" field.</summary>
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;
}
}
/// <summary>Gets whether the "max" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMax {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "max" field</summary>
[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<FloatRange> {
private static readonly pb::MessageParser<FloatRange> _parser = new pb::MessageParser<FloatRange>(() => new FloatRange());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<FloatRange> 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);
}
/// <summary>Field number for the "min" field.</summary>
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;
}
}
/// <summary>Gets whether the "min" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMin {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "min" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMin() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "max" field.</summary>
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;
}
}
/// <summary>Gets whether the "max" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMax {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "max" field</summary>
[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
@@ -1,14 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pbr = Google.Protobuf.Reflection; using pb = global::Google.Protobuf;
namespace Bgs.Protocol using pbc = global::Google.Protobuf.Collections;
{ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Bgs.Protocol {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/service_options.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/service_options.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class ServiceOptionsReflection { public static partial class ServiceOptionsReflection {
#region Descriptor #region Descriptor
@@ -19,22 +22,491 @@ namespace Bgs.Protocol
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static ServiceOptionsReflection() { static ServiceOptionsReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNl", "CjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNl",
"X29wdGlvbnMucHJvdG8SDGJncy5wcm90b2NvbBogZ29vZ2xlL3Byb3RvYnVm", "X29wdGlvbnMucHJvdG8SDGJncy5wcm90b2NvbBogZ29vZ2xlL3Byb3RvYnVm",
"L2Rlc2NyaXB0b3IucHJvdG86Ugoob3JpZ2luYWxfZnVsbHlfcXVhbGlmaWVk", "L2Rlc2NyaXB0b3IucHJvdG8iUQoRQkdTU2VydmljZU9wdGlvbnMSFwoPZGVz",
"X2Rlc2NyaXB0b3JfbmFtZRIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0", "Y3JpcHRvcl9uYW1lGAEgASgJEg8KB3ZlcnNpb24YBCABKA0SEgoKc2hhcmRf",
"aW9ucxjpByABKAk6NQoKc2VydmljZV9pZBIfLmdvb2dsZS5wcm90b2J1Zi5T", "bmFtZRgFIAEoCSJNChFTREtTZXJ2aWNlT3B0aW9ucxIPCgdpbmJvdW5kGAEg",
"ZXJ2aWNlT3B0aW9ucxjQhgMgASgNQiYKDWJuZXQucHJvdG9jb2xCE1NlcnZp", "ASgIEhAKCG91dGJvdW5kGAIgASgIEhUKDXVzZV9jbGllbnRfaWQYAyABKAg6",
"Y2VPcHRpb25zUHJvdG9IAmIGcHJvdG8z")); "WwoPc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP",
"cHRpb25zGJC/BSABKAsyHy5iZ3MucHJvdG9jb2wuQkdTU2VydmljZU9wdGlv",
"bnM6XwoTc2RrX3NlcnZpY2Vfb3B0aW9ucxIfLmdvb2dsZS5wcm90b2J1Zi5T",
"ZXJ2aWNlT3B0aW9ucxiRvwUgASgLMh8uYmdzLnByb3RvY29sLlNES1NlcnZp",
"Y2VPcHRpb25zQiQKDWJuZXQucHJvdG9jb2xCE1NlcnZpY2VPcHRpb25zUHJv",
"dG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, }, new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null)); 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 #endregion
} }
/// <summary>Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/service_options.proto</summary>
public static partial class ServiceOptionsExtensions {
public static readonly pb::Extension<global::Google.Protobuf.ServiceOptions, global::Bgs.Protocol.BGSServiceOptions> ServiceOptions_ =
new pb::Extension<global::Google.Protobuf.ServiceOptions, global::Bgs.Protocol.BGSServiceOptions>(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSServiceOptions.Parser));
public static readonly pb::Extension<global::Google.Protobuf.ServiceOptions, global::Bgs.Protocol.SDKServiceOptions> SdkServiceOptions =
new pb::Extension<global::Google.Protobuf.ServiceOptions, global::Bgs.Protocol.SDKServiceOptions>(90001, pb::FieldCodec.ForMessage(720010, global::Bgs.Protocol.SDKServiceOptions.Parser));
}
#region Messages
public sealed partial class BGSServiceOptions : pb::IMessage<BGSServiceOptions> {
private static readonly pb::MessageParser<BGSServiceOptions> _parser = new pb::MessageParser<BGSServiceOptions>(() => new BGSServiceOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BGSServiceOptions> 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);
}
/// <summary>Field number for the "descriptor_name" field.</summary>
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");
}
}
/// <summary>Gets whether the "descriptor_name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasDescriptorName {
get { return descriptorName_ != null; }
}
/// <summary>Clears the value of the "descriptor_name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearDescriptorName() {
descriptorName_ = null;
}
/// <summary>Field number for the "version" field.</summary>
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;
}
}
/// <summary>Gets whether the "version" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasVersion {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "version" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearVersion() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "shard_name" field.</summary>
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");
}
}
/// <summary>Gets whether the "shard_name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasShardName {
get { return shardName_ != null; }
}
/// <summary>Clears the value of the "shard_name" field</summary>
[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<SDKServiceOptions> {
private static readonly pb::MessageParser<SDKServiceOptions> _parser = new pb::MessageParser<SDKServiceOptions>(() => new SDKServiceOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SDKServiceOptions> 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);
}
/// <summary>Field number for the "inbound" field.</summary>
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;
}
}
/// <summary>Gets whether the "inbound" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInbound {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "inbound" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInbound() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "outbound" field.</summary>
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;
}
}
/// <summary>Gets whether the "outbound" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasOutbound {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "outbound" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearOutbound() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "use_client_id" field.</summary>
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;
}
}
/// <summary>Gets whether the "use_client_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUseClientId {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "use_client_id" field</summary>
[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 #endregion Designer generated code
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+238
View File
@@ -0,0 +1,238 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/message_types.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/message_types.proto</summary>
public static partial class MessageTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/message_types.proto</summary>
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<MessageId> {
private static readonly pb::MessageParser<MessageId> _parser = new pb::MessageParser<MessageId>(() => new MessageId());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MessageId> 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);
}
/// <summary>Field number for the "epoch" field.</summary>
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;
}
}
/// <summary>Gets whether the "epoch" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasEpoch {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "epoch" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearEpoch() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "position" field.</summary>
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;
}
}
/// <summary>Gets whether the "position" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPosition {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "position" field</summary>
[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
File diff suppressed because it is too large Load Diff
+394
View File
@@ -0,0 +1,394 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/presence_listener.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/presence_listener.proto</summary>
public static partial class PresenceListenerReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/presence_listener.proto</summary>
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<SubscribeNotification> {
private static readonly pb::MessageParser<SubscribeNotification> _parser = new pb::MessageParser<SubscribeNotification>(() => new SubscribeNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubscribeNotification> 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);
}
/// <summary>Field number for the "subscriber_id" field.</summary>
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;
}
}
/// <summary>Gets whether the subscriber_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSubscriberId {
get { return subscriberId_ != null; }
}
/// <summary>Clears the value of the subscriber_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSubscriberId() {
subscriberId_ = null;
}
/// <summary>Field number for the "state" field.</summary>
public const int StateFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Presence.V1.PresenceState> _repeated_state_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.PresenceState.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Presence.V1.PresenceState> state_ = new pbc::RepeatedField<global::Bgs.Protocol.Presence.V1.PresenceState>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Presence.V1.PresenceState> 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<StateChangedNotification> {
private static readonly pb::MessageParser<StateChangedNotification> _parser = new pb::MessageParser<StateChangedNotification>(() => new StateChangedNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StateChangedNotification> 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);
}
/// <summary>Field number for the "subscriber_id" field.</summary>
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;
}
}
/// <summary>Gets whether the subscriber_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSubscriberId {
get { return subscriberId_ != null; }
}
/// <summary>Clears the value of the subscriber_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSubscriberId() {
subscriberId_ = null;
}
/// <summary>Field number for the "state" field.</summary>
public const int StateFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Presence.V1.PresenceState> _repeated_state_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Presence.V1.PresenceState.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Presence.V1.PresenceState> state_ = new pbc::RepeatedField<global::Bgs.Protocol.Presence.V1.PresenceState>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Presence.V1.PresenceState> 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
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+117 -39
View File
@@ -1,16 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pb = Google.Protobuf; using pb = global::Google.Protobuf;
using pbc = Google.Protobuf.Collections; using pbc = global::Google.Protobuf.Collections;
using pbr = Google.Protobuf.Reflection; using pbr = global::Google.Protobuf.Reflection;
namespace Bgs.Protocol.Profanity.V1 using scg = global::System.Collections.Generic;
{ namespace Bgs.Protocol.Profanity.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/profanity_filter_config.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/profanity_filter_config.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class ProfanityFilterConfigReflection { public static partial class ProfanityFilterConfigReflection {
#region Descriptor #region Descriptor
@@ -21,76 +22,111 @@ namespace Bgs.Protocol.Profanity.V1
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static ProfanityFilterConfigReflection() { static ProfanityFilterConfigReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"Ci9iZ3MvbG93L3BiL2NsaWVudC9wcm9mYW5pdHlfZmlsdGVyX2NvbmZpZy5w", "Ci9iZ3MvbG93L3BiL2NsaWVudC9wcm9mYW5pdHlfZmlsdGVyX2NvbmZpZy5w",
"cm90bxIZYmdzLnByb3RvY29sLnByb2Zhbml0eS52MSIpCgpXb3JkRmlsdGVy", "cm90bxIZYmdzLnByb3RvY29sLnByb2Zhbml0eS52MSIpCgpXb3JkRmlsdGVy",
"EgwKBHR5cGUYASABKAkSDQoFcmVnZXgYAiABKAkiRQoLV29yZEZpbHRlcnMS", "EgwKBHR5cGUYASACKAkSDQoFcmVnZXgYAiACKAkiRQoLV29yZEZpbHRlcnMS",
"NgoHZmlsdGVycxgBIAMoCzIlLmJncy5wcm90b2NvbC5wcm9mYW5pdHkudjEu", "NgoHZmlsdGVycxgBIAMoCzIlLmJncy5wcm90b2NvbC5wcm9mYW5pdHkudjEu",
"V29yZEZpbHRlckICSAJiBnByb3RvMw==")); "V29yZEZpbHRlcg=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(null, 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(global::Bgs.Protocol.Profanity.V1.WordFilter), global::Bgs.Protocol.Profanity.V1.WordFilter.Parser, new[]{ "Type", "Regex" }, null, 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(typeof(global::Bgs.Protocol.Profanity.V1.WordFilters), global::Bgs.Protocol.Profanity.V1.WordFilters.Parser, new[]{ "Filters" }, null, null, null, null)
})); }));
} }
#endregion #endregion
} }
#region Messages #region Messages
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class WordFilter : pb::IMessage<WordFilter> { public sealed partial class WordFilter : pb::IMessage<WordFilter> {
private static readonly pb::MessageParser<WordFilter> _parser = new pb::MessageParser<WordFilter>(() => new WordFilter()); private static readonly pb::MessageParser<WordFilter> _parser = new pb::MessageParser<WordFilter>(() => new WordFilter());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<WordFilter> Parser { get { return _parser; } } public static pb::MessageParser<WordFilter> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public WordFilter() { public WordFilter() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public WordFilter(WordFilter other) : this() { public WordFilter(WordFilter other) : this() {
type_ = other.type_; type_ = other.type_;
regex_ = other.regex_; regex_ = other.regex_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public WordFilter Clone() { public WordFilter Clone() {
return new WordFilter(this); return new WordFilter(this);
} }
/// <summary>Field number for the "type" field.</summary> /// <summary>Field number for the "type" field.</summary>
public const int TypeFieldNumber = 1; public const int TypeFieldNumber = 1;
private string type_ = ""; private readonly static string TypeDefaultValue = "";
private string type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Type { public string Type {
get { return type_; } get { return type_ ?? TypeDefaultValue; }
set { set {
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
} }
} }
/// <summary>Gets whether the "type" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasType {
get { return type_ != null; }
}
/// <summary>Clears the value of the "type" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearType() {
type_ = null;
}
/// <summary>Field number for the "regex" field.</summary> /// <summary>Field number for the "regex" field.</summary>
public const int RegexFieldNumber = 2; public const int RegexFieldNumber = 2;
private string regex_ = ""; private readonly static string RegexDefaultValue = "";
private string regex_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Regex { public string Regex {
get { return regex_; } get { return regex_ ?? RegexDefaultValue; }
set { set {
regex_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); regex_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
} }
} }
/// <summary>Gets whether the "regex" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasRegex {
get { return regex_ != null; }
}
/// <summary>Clears the value of the "regex" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearRegex() {
regex_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as WordFilter); return Equals(other as WordFilter);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(WordFilter other) { public bool Equals(WordFilter other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -100,60 +136,76 @@ namespace Bgs.Protocol.Profanity.V1
} }
if (Type != other.Type) return false; if (Type != other.Type) return false;
if (Regex != other.Regex) return false; if (Regex != other.Regex) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (Type.Length != 0) hash ^= Type.GetHashCode(); if (HasType) hash ^= Type.GetHashCode();
if (Regex.Length != 0) hash ^= Regex.GetHashCode(); if (HasRegex) hash ^= Regex.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (Type.Length != 0) { if (HasType) {
output.WriteRawTag(10); output.WriteRawTag(10);
output.WriteString(Type); output.WriteString(Type);
} }
if (Regex.Length != 0) { if (HasRegex) {
output.WriteRawTag(18); output.WriteRawTag(18);
output.WriteString(Regex); output.WriteString(Regex);
} }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (Type.Length != 0) { if (HasType) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
} }
if (Regex.Length != 0) { if (HasRegex) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Regex); size += 1 + pb::CodedOutputStream.ComputeStringSize(Regex);
} }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(WordFilter other) { public void MergeFrom(WordFilter other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.Type.Length != 0) { if (other.HasType) {
Type = other.Type; Type = other.Type;
} }
if (other.Regex.Length != 0) { if (other.HasRegex) {
Regex = other.Regex; Regex = other.Regex;
} }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 10: { case 10: {
Type = input.ReadString(); Type = input.ReadString();
@@ -169,46 +221,56 @@ namespace Bgs.Protocol.Profanity.V1
} }
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class WordFilters : pb::IMessage<WordFilters> { public sealed partial class WordFilters : pb::IMessage<WordFilters> {
private static readonly pb::MessageParser<WordFilters> _parser = new pb::MessageParser<WordFilters>(() => new WordFilters()); private static readonly pb::MessageParser<WordFilters> _parser = new pb::MessageParser<WordFilters>(() => new WordFilters());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<WordFilters> Parser { get { return _parser; } } public static pb::MessageParser<WordFilters> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public WordFilters() { public WordFilters() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public WordFilters(WordFilters other) : this() { public WordFilters(WordFilters other) : this() {
filters_ = other.filters_.Clone(); filters_ = other.filters_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public WordFilters Clone() { public WordFilters Clone() {
return new WordFilters(this); return new WordFilters(this);
} }
/// <summary>Field number for the "filters" field.</summary> /// <summary>Field number for the "filters" field.</summary>
public const int FiltersFieldNumber = 1; public const int FiltersFieldNumber = 1;
private static readonly pb::FieldCodec<Bgs.Protocol.Profanity.V1.WordFilter> _repeated_filters_codec private static readonly pb::FieldCodec<global::Bgs.Protocol.Profanity.V1.WordFilter> _repeated_filters_codec
= pb::FieldCodec.ForMessage(10, Bgs.Protocol.Profanity.V1.WordFilter.Parser); = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Profanity.V1.WordFilter.Parser);
private readonly pbc::RepeatedField<Bgs.Protocol.Profanity.V1.WordFilter> filters_ = new pbc::RepeatedField<Bgs.Protocol.Profanity.V1.WordFilter>(); private readonly pbc::RepeatedField<global::Bgs.Protocol.Profanity.V1.WordFilter> filters_ = new pbc::RepeatedField<global::Bgs.Protocol.Profanity.V1.WordFilter>();
public pbc::RepeatedField<Bgs.Protocol.Profanity.V1.WordFilter> Filters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Profanity.V1.WordFilter> Filters {
get { return filters_; } get { return filters_; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as WordFilters); return Equals(other as WordFilters);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(WordFilters other) { public bool Equals(WordFilters other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -217,42 +279,58 @@ namespace Bgs.Protocol.Profanity.V1
return true; return true;
} }
if(!filters_.Equals(other.filters_)) return false; if(!filters_.Equals(other.filters_)) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
hash ^= filters_.GetHashCode(); hash ^= filters_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
filters_.WriteTo(output, _repeated_filters_codec); filters_.WriteTo(output, _repeated_filters_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
size += filters_.CalculateSize(_repeated_filters_codec); size += filters_.CalculateSize(_repeated_filters_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(WordFilters other) { public void MergeFrom(WordFilters other) {
if (other == null) { if (other == null) {
return; return;
} }
filters_.Add(other.filters_); filters_.Add(other.filters_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 10: { case 10: {
filters_.AddEntriesFrom(input, _repeated_filters_codec); filters_.AddEntriesFrom(input, _repeated_filters_codec);
+362 -285
View File
@@ -1,16 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pb = Google.Protobuf; using pb = global::Google.Protobuf;
using pbc = Google.Protobuf.Collections; using pbc = global::Google.Protobuf.Collections;
using pbr = Google.Protobuf.Reflection; using pbr = global::Google.Protobuf.Reflection;
namespace Bgs.Protocol.Report.V1 using scg = global::System.Collections.Generic;
{ namespace Bgs.Protocol.Report.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/report_service.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/report_service.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class ReportServiceReflection { public static partial class ReportServiceReflection {
#region Descriptor #region Descriptor
@@ -21,316 +22,128 @@ namespace Bgs.Protocol.Report.V1
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static ReportServiceReflection() { static ReportServiceReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CiZiZ3MvbG93L3BiL2NsaWVudC9yZXBvcnRfc2VydmljZS5wcm90bxIWYmdz", "CiZiZ3MvbG93L3BiL2NsaWVudC9yZXBvcnRfc2VydmljZS5wcm90bxIWYmdz",
"LnByb3RvY29sLnJlcG9ydC52MRonYmdzL2xvdy9wYi9jbGllbnQvYXR0cmli", "LnByb3RvY29sLnJlcG9ydC52MRolYmdzL2xvdy9wYi9jbGllbnQvYWNjb3Vu",
"dXRlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw", "dF90eXBlcy5wcm90bxokYmdzL2xvdy9wYi9jbGllbnQvcmVwb3J0X3R5cGVz",
"ZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90byLi", "LnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8aOWJn",
"AQoGUmVwb3J0EhMKC3JlcG9ydF90eXBlGAEgASgJEioKCWF0dHJpYnV0ZRgC", "cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0",
"IAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUSEgoKcmVwb3J0X3FvcxgD", "aW9ucy5wcm90bxo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lv",
"IAEoBRIxChFyZXBvcnRpbmdfYWNjb3VudBgEIAEoCzIWLmJncy5wcm90b2Nv", "bnMvZmllbGRfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xv",
"bC5FbnRpdHlJZBI2ChZyZXBvcnRpbmdfZ2FtZV9hY2NvdW50GAUgASgLMhYu", "YmFsX2V4dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9sb3cv",
"YmdzLnByb3RvY29sLkVudGl0eUlkEhgKEHJlcG9ydF90aW1lc3RhbXAYBiAB", "cGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5w",
"KAYiQwoRU2VuZFJlcG9ydFJlcXVlc3QSLgoGcmVwb3J0GAEgASgLMh4uYmdz", "cm90byJcChFTZW5kUmVwb3J0UmVxdWVzdBIuCgZyZXBvcnQYASACKAsyHi5i",
"LnByb3RvY29sLnJlcG9ydC52MS5SZXBvcnQyXgoNUmVwb3J0U2VydmljZRJN", "Z3MucHJvdG9jb2wucmVwb3J0LnYxLlJlcG9ydBIPCgdwcm9ncmFtGAIgASgN",
"CgpTZW5kUmVwb3J0EikuYmdzLnByb3RvY29sLnJlcG9ydC52MS5TZW5kUmVw", "OgaC+SsCEAEipQEKE1N1Ym1pdFJlcG9ydFJlcXVlc3QSPAoIYWdlbnRfaWQY",
"b3J0UmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGFCBUgCgAEAYgZwcm90", "ASABKAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEhh",
"bzM=")); "bmRsZRI3CgtyZXBvcnRfdHlwZRgCIAEoCzIiLmJncy5wcm90b2NvbC5yZXBv",
"cnQudjEuUmVwb3J0VHlwZRIPCgdwcm9ncmFtGAMgASgNOgaC+SsCEAEy/QEK",
"DVJlcG9ydFNlcnZpY2USVQoKU2VuZFJlcG9ydBIpLmJncy5wcm90b2NvbC5y",
"ZXBvcnQudjEuU2VuZFJlcG9ydFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9E",
"YXRhIgaC+SsCCAESWQoMU3VibWl0UmVwb3J0EisuYmdzLnByb3RvY29sLnJl",
"cG9ydC52MS5TdWJtaXRSZXBvcnRSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5v",
"RGF0YSIGgvkrAggCGjqC+SskCiJibmV0LnByb3RvY29sLnJlcG9ydC5SZXBv",
"cnRTZXJ2aWNlgvkrCCoGcmVwb3J0ivkrAhABQgOAAQA="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, }, 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, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(null, 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(global::Bgs.Protocol.Report.V1.SendReportRequest), global::Bgs.Protocol.Report.V1.SendReportRequest.Parser, new[]{ "Report", "Program" }, null, 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::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.SubmitReportRequest), global::Bgs.Protocol.Report.V1.SubmitReportRequest.Parser, new[]{ "AgentId", "ReportType", "Program" }, null, null, null, null)
})); }));
} }
#endregion #endregion
} }
#region Messages #region Messages
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Report : pb::IMessage<Report> {
private static readonly pb::MessageParser<Report> _parser = new pb::MessageParser<Report>(() => new Report());
public static pb::MessageParser<Report> 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);
}
/// <summary>Field number for the "report_type" field.</summary>
public const int ReportTypeFieldNumber = 1;
private string reportType_ = "";
public string ReportType {
get { return reportType_; }
set {
reportType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 2;
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(18, Bgs.Protocol.Attribute.Parser);
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute {
get { return attribute_; }
}
/// <summary>Field number for the "report_qos" field.</summary>
public const int ReportQosFieldNumber = 3;
private int reportQos_;
public int ReportQos {
get { return reportQos_; }
set {
reportQos_ = value;
}
}
/// <summary>Field number for the "reporting_account" field.</summary>
public const int ReportingAccountFieldNumber = 4;
private Bgs.Protocol.EntityId reportingAccount_;
public Bgs.Protocol.EntityId ReportingAccount {
get { return reportingAccount_; }
set {
reportingAccount_ = value;
}
}
/// <summary>Field number for the "reporting_game_account" field.</summary>
public const int ReportingGameAccountFieldNumber = 5;
private Bgs.Protocol.EntityId reportingGameAccount_;
public Bgs.Protocol.EntityId ReportingGameAccount {
get { return reportingGameAccount_; }
set {
reportingGameAccount_ = value;
}
}
/// <summary>Field number for the "report_timestamp" field.</summary>
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<SendReportRequest> { public sealed partial class SendReportRequest : pb::IMessage<SendReportRequest> {
private static readonly pb::MessageParser<SendReportRequest> _parser = new pb::MessageParser<SendReportRequest>(() => new SendReportRequest()); private static readonly pb::MessageParser<SendReportRequest> _parser = new pb::MessageParser<SendReportRequest>(() => new SendReportRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SendReportRequest> Parser { get { return _parser; } } public static pb::MessageParser<SendReportRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SendReportRequest() { public SendReportRequest() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SendReportRequest(SendReportRequest other) : this() { 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() { public SendReportRequest Clone() {
return new SendReportRequest(this); return new SendReportRequest(this);
} }
/// <summary>Field number for the "report" field.</summary> /// <summary>Field number for the "report" field.</summary>
public const int ReportFieldNumber = 1; public const int ReportFieldNumber = 1;
private Bgs.Protocol.Report.V1.Report report_; private global::Bgs.Protocol.Report.V1.Report report_;
public Bgs.Protocol.Report.V1.Report Report { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V1.Report Report {
get { return report_; } get { return report_; }
set { set {
report_ = value; report_ = value;
} }
} }
/// <summary>Gets whether the report field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReport {
get { return report_ != null; }
}
/// <summary>Clears the value of the report field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReport() {
report_ = null;
}
/// <summary>Field number for the "program" field.</summary>
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;
}
}
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "program" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProgram() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as SendReportRequest); return Equals(other as SendReportRequest);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SendReportRequest other) { public bool Equals(SendReportRequest other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -339,58 +152,322 @@ namespace Bgs.Protocol.Report.V1
return true; return true;
} }
if (!object.Equals(Report, other.Report)) return false; 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() { public override int GetHashCode() {
int hash = 1; 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; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (report_ != null) { if (HasReport) {
output.WriteRawTag(10); output.WriteRawTag(10);
output.WriteMessage(Report); output.WriteMessage(Report);
} }
if (HasProgram) {
output.WriteRawTag(16);
output.WriteUInt32(Program);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (report_ != null) { if (HasReport) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Report); size += 1 + pb::CodedOutputStream.ComputeMessageSize(Report);
} }
if (HasProgram) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SendReportRequest other) { public void MergeFrom(SendReportRequest other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.report_ != null) { if (other.HasReport) {
if (report_ == null) { if (!HasReport) {
report_ = new Bgs.Protocol.Report.V1.Report(); Report = new global::Bgs.Protocol.Report.V1.Report();
} }
Report.MergeFrom(other.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) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 10: { case 10: {
if (report_ == null) { if (!HasReport) {
report_ = new Bgs.Protocol.Report.V1.Report(); 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<SubmitReportRequest> {
private static readonly pb::MessageParser<SubmitReportRequest> _parser = new pb::MessageParser<SubmitReportRequest>(() => new SubmitReportRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubmitReportRequest> 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);
}
/// <summary>Field number for the "agent_id" field.</summary>
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;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "report_type" field.</summary>
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;
}
}
/// <summary>Gets whether the report_type field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReportType {
get { return reportType_ != null; }
}
/// <summary>Clears the value of the report_type field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReportType() {
reportType_ = null;
}
/// <summary>Field number for the "program" field.</summary>
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;
}
}
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "program" field</summary>
[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; break;
} }
} }
File diff suppressed because it is too large Load Diff
+269 -231
View File
@@ -1,244 +1,282 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pb = Google.Protobuf; using pb = global::Google.Protobuf;
using pbr = Google.Protobuf.Reflection; using pbc = global::Google.Protobuf.Collections;
namespace Bgs.Protocol.Resources.V1 using pbr = global::Google.Protobuf.Reflection;
{ using scg = global::System.Collections.Generic;
namespace Bgs.Protocol.Resources.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/resource_service.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/resource_service.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()] public static partial class ResourceServiceReflection {
public static partial class ResourceServiceReflection
{
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/resource_service.proto</summary>
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
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/resource_service.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
} }
#region Messages private static pbr::FileDescriptor descriptor;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ContentHandleRequest : pb::IMessage<ContentHandleRequest>
{
private static readonly pb::MessageParser<ContentHandleRequest> _parser = new pb::MessageParser<ContentHandleRequest>(() => new ContentHandleRequest());
public static pb::MessageParser<ContentHandleRequest> 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);
}
/// <summary>Field number for the "program" field.</summary>
public const int ProgramFieldNumber = 1;
private uint program_;
public uint Program
{
get { return program_; }
set
{
program_ = value;
}
}
/// <summary>Field number for the "stream" field.</summary>
public const int StreamFieldNumber = 2;
private uint stream_;
public uint Stream
{
get { return stream_; }
set
{
stream_ = value;
}
}
/// <summary>Field number for the "version" field.</summary>
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;
}
}
}
}
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 #endregion
}
#region Messages
public sealed partial class ContentHandleRequest : pb::IMessage<ContentHandleRequest> {
private static readonly pb::MessageParser<ContentHandleRequest> _parser = new pb::MessageParser<ContentHandleRequest>(() => new ContentHandleRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ContentHandleRequest> 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);
}
/// <summary>Field number for the "program" field.</summary>
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;
}
}
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "program" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProgram() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "stream" field.</summary>
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;
}
}
/// <summary>Gets whether the "stream" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStream {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "stream" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStream() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "version" field.</summary>
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;
}
}
/// <summary>Gets whether the "version" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasVersion {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "version" field</summary>
[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 #endregion Designer generated code
+503 -68
View File
@@ -1,16 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pb = Google.Protobuf; using pb = global::Google.Protobuf;
using pbc = Google.Protobuf.Collections; using pbc = global::Google.Protobuf.Collections;
using pbr = Google.Protobuf.Reflection; using pbr = global::Google.Protobuf.Reflection;
namespace Bgs.Protocol using scg = global::System.Collections.Generic;
{ namespace Bgs.Protocol {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/role_types.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/role_types.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class RoleTypesReflection { public static partial class RoleTypesReflection {
#region Descriptor #region Descriptor
@@ -21,46 +22,56 @@ namespace Bgs.Protocol
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static RoleTypesReflection() { static RoleTypesReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CiJiZ3MvbG93L3BiL2NsaWVudC9yb2xlX3R5cGVzLnByb3RvEgxiZ3MucHJv", "CiJiZ3MvbG93L3BiL2NsaWVudC9yb2xlX3R5cGVzLnByb3RvEgxiZ3MucHJv",
"dG9jb2waJ2Jncy9sb3cvcGIvY2xpZW50L2F0dHJpYnV0ZV90eXBlcy5wcm90", "dG9jb2wiwgEKBFJvbGUSCgoCaWQYASACKA0SDAoEbmFtZRgCIAIoCRIRCglw",
"byLuAQoEUm9sZRIKCgJpZBgBIAEoDRIMCgRuYW1lGAIgASgJEhEKCXByaXZp", "cml2aWxlZ2UYAyADKAkSGwoPYXNzaWduYWJsZV9yb2xlGAQgAygNQgIQARIQ",
"bGVnZRgDIAMoCRIbCg9hc3NpZ25hYmxlX3JvbGUYBCADKA1CAhABEhAKCHJl", "CghyZXF1aXJlZBgFIAEoCBIOCgZ1bmlxdWUYBiABKAgSFwoPcmVsZWdhdGlv",
"cXVpcmVkGAUgASgIEg4KBnVuaXF1ZRgGIAEoCBIXCg9yZWxlZ2F0aW9uX3Jv", "bl9yb2xlGAcgASgNEhkKDWtpY2thYmxlX3JvbGUYCSADKA1CAhABEhoKDnJl",
"bGUYByABKA0SKgoJYXR0cmlidXRlGAggAygLMhcuYmdzLnByb3RvY29sLkF0", "bW92YWJsZV9yb2xlGAogAygNQgIQASLGAQoJUm9sZVN0YXRlEgwKBG5hbWUY",
"dHJpYnV0ZRIZCg1raWNrYWJsZV9yb2xlGAkgAygNQgIQARIaCg5yZW1vdmFi", "AiABKAkSGwoPYXNzaWduYWJsZV9yb2xlGAQgAygNQgIQARIQCghyZXF1aXJl",
"bGVfcm9sZRgKIAMoDUICEAFCAkgCYgZwcm90bzM=")); "ZBgFIAEoCBIOCgZ1bmlxdWUYBiABKAgSFwoPcmVsZWdhdGlvbl9yb2xlGAcg",
"ASgNEhkKDWtpY2thYmxlX3JvbGUYCSADKA1CAhABEhoKDnJlbW92YWJsZV9y",
"b2xlGAogAygNQgIQARIcChBtZW50aW9uYWJsZV9yb2xlGAsgAygNQgIQAQ=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, }, new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(null, 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::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 #endregion
} }
#region Messages #region Messages
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Role : pb::IMessage<Role> { public sealed partial class Role : pb::IMessage<Role> {
private static readonly pb::MessageParser<Role> _parser = new pb::MessageParser<Role>(() => new Role()); private static readonly pb::MessageParser<Role> _parser = new pb::MessageParser<Role>(() => new Role());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Role> Parser { get { return _parser; } } public static pb::MessageParser<Role> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Role() { public Role() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Role(Role other) : this() { public Role(Role other) : this() {
_hasBits0 = other._hasBits0;
id_ = other.id_; id_ = other.id_;
name_ = other.name_; name_ = other.name_;
privilege_ = other.privilege_.Clone(); privilege_ = other.privilege_.Clone();
@@ -68,40 +79,69 @@ namespace Bgs.Protocol
required_ = other.required_; required_ = other.required_;
unique_ = other.unique_; unique_ = other.unique_;
relegationRole_ = other.relegationRole_; relegationRole_ = other.relegationRole_;
attribute_ = other.attribute_.Clone();
kickableRole_ = other.kickableRole_.Clone(); kickableRole_ = other.kickableRole_.Clone();
removableRole_ = other.removableRole_.Clone(); removableRole_ = other.removableRole_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Role Clone() { public Role Clone() {
return new Role(this); return new Role(this);
} }
/// <summary>Field number for the "id" field.</summary> /// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1; public const int IdFieldNumber = 1;
private readonly static uint IdDefaultValue = 0;
private uint id_; private uint id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Id { public uint Id {
get { return id_; } get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
set { set {
_hasBits0 |= 1;
id_ = value; id_ = value;
} }
} }
/// <summary>Gets whether the "id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "name" field.</summary> /// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 2; public const int NameFieldNumber = 2;
private string name_ = ""; private readonly static string NameDefaultValue = "";
private string name_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name { public string Name {
get { return name_; } get { return name_ ?? NameDefaultValue; }
set { set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
} }
} }
/// <summary>Gets whether the "name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasName {
get { return name_ != null; }
}
/// <summary>Clears the value of the "name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearName() {
name_ = null;
}
/// <summary>Field number for the "privilege" field.</summary> /// <summary>Field number for the "privilege" field.</summary>
public const int PrivilegeFieldNumber = 3; public const int PrivilegeFieldNumber = 3;
private static readonly pb::FieldCodec<string> _repeated_privilege_codec private static readonly pb::FieldCodec<string> _repeated_privilege_codec
= pb::FieldCodec.ForString(26); = pb::FieldCodec.ForString(26);
private readonly pbc::RepeatedField<string> privilege_ = new pbc::RepeatedField<string>(); private readonly pbc::RepeatedField<string> privilege_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<string> Privilege { public pbc::RepeatedField<string> Privilege {
get { return privilege_; } get { return privilege_; }
} }
@@ -111,47 +151,81 @@ namespace Bgs.Protocol
private static readonly pb::FieldCodec<uint> _repeated_assignableRole_codec private static readonly pb::FieldCodec<uint> _repeated_assignableRole_codec
= pb::FieldCodec.ForUInt32(34); = pb::FieldCodec.ForUInt32(34);
private readonly pbc::RepeatedField<uint> assignableRole_ = new pbc::RepeatedField<uint>(); private readonly pbc::RepeatedField<uint> assignableRole_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> AssignableRole { public pbc::RepeatedField<uint> AssignableRole {
get { return assignableRole_; } get { return assignableRole_; }
} }
/// <summary>Field number for the "required" field.</summary> /// <summary>Field number for the "required" field.</summary>
public const int RequiredFieldNumber = 5; public const int RequiredFieldNumber = 5;
private readonly static bool RequiredDefaultValue = false;
private bool required_; private bool required_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Required { public bool Required {
get { return required_; } get { if ((_hasBits0 & 2) != 0) { return required_; } else { return RequiredDefaultValue; } }
set { set {
_hasBits0 |= 2;
required_ = value; required_ = value;
} }
} }
/// <summary>Gets whether the "required" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasRequired {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "required" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearRequired() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "unique" field.</summary> /// <summary>Field number for the "unique" field.</summary>
public const int UniqueFieldNumber = 6; public const int UniqueFieldNumber = 6;
private readonly static bool UniqueDefaultValue = false;
private bool unique_; private bool unique_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Unique { public bool Unique {
get { return unique_; } get { if ((_hasBits0 & 4) != 0) { return unique_; } else { return UniqueDefaultValue; } }
set { set {
_hasBits0 |= 4;
unique_ = value; unique_ = value;
} }
} }
/// <summary>Gets whether the "unique" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUnique {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "unique" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUnique() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "relegation_role" field.</summary> /// <summary>Field number for the "relegation_role" field.</summary>
public const int RelegationRoleFieldNumber = 7; public const int RelegationRoleFieldNumber = 7;
private readonly static uint RelegationRoleDefaultValue = 0;
private uint relegationRole_; private uint relegationRole_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint RelegationRole { public uint RelegationRole {
get { return relegationRole_; } get { if ((_hasBits0 & 8) != 0) { return relegationRole_; } else { return RelegationRoleDefaultValue; } }
set { set {
_hasBits0 |= 8;
relegationRole_ = value; relegationRole_ = value;
} }
} }
/// <summary>Gets whether the "relegation_role" field is set</summary>
/// <summary>Field number for the "attribute" field.</summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public const int AttributeFieldNumber = 8; public bool HasRelegationRole {
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec get { return (_hasBits0 & 8) != 0; }
= pb::FieldCodec.ForMessage(66, Bgs.Protocol.Attribute.Parser); }
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>(); /// <summary>Clears the value of the "relegation_role" field</summary>
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
get { return attribute_; } public void ClearRelegationRole() {
_hasBits0 &= ~8;
} }
/// <summary>Field number for the "kickable_role" field.</summary> /// <summary>Field number for the "kickable_role" field.</summary>
@@ -159,6 +233,7 @@ namespace Bgs.Protocol
private static readonly pb::FieldCodec<uint> _repeated_kickableRole_codec private static readonly pb::FieldCodec<uint> _repeated_kickableRole_codec
= pb::FieldCodec.ForUInt32(74); = pb::FieldCodec.ForUInt32(74);
private readonly pbc::RepeatedField<uint> kickableRole_ = new pbc::RepeatedField<uint>(); private readonly pbc::RepeatedField<uint> kickableRole_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> KickableRole { public pbc::RepeatedField<uint> KickableRole {
get { return kickableRole_; } get { return kickableRole_; }
} }
@@ -168,14 +243,17 @@ namespace Bgs.Protocol
private static readonly pb::FieldCodec<uint> _repeated_removableRole_codec private static readonly pb::FieldCodec<uint> _repeated_removableRole_codec
= pb::FieldCodec.ForUInt32(82); = pb::FieldCodec.ForUInt32(82);
private readonly pbc::RepeatedField<uint> removableRole_ = new pbc::RepeatedField<uint>(); private readonly pbc::RepeatedField<uint> removableRole_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> RemovableRole { public pbc::RepeatedField<uint> RemovableRole {
get { return removableRole_; } get { return removableRole_; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as Role); return Equals(other as Role);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Role other) { public bool Equals(Role other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -190,116 +268,127 @@ namespace Bgs.Protocol
if (Required != other.Required) return false; if (Required != other.Required) return false;
if (Unique != other.Unique) return false; if (Unique != other.Unique) return false;
if (RelegationRole != other.RelegationRole) return false; if (RelegationRole != other.RelegationRole) return false;
if(!attribute_.Equals(other.attribute_)) return false;
if(!kickableRole_.Equals(other.kickableRole_)) return false; if(!kickableRole_.Equals(other.kickableRole_)) return false;
if(!removableRole_.Equals(other.removableRole_)) return false; if(!removableRole_.Equals(other.removableRole_)) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (Id != 0) hash ^= Id.GetHashCode(); if (HasId) hash ^= Id.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode(); if (HasName) hash ^= Name.GetHashCode();
hash ^= privilege_.GetHashCode(); hash ^= privilege_.GetHashCode();
hash ^= assignableRole_.GetHashCode(); hash ^= assignableRole_.GetHashCode();
if (Required != false) hash ^= Required.GetHashCode(); if (HasRequired) hash ^= Required.GetHashCode();
if (Unique != false) hash ^= Unique.GetHashCode(); if (HasUnique) hash ^= Unique.GetHashCode();
if (RelegationRole != 0) hash ^= RelegationRole.GetHashCode(); if (HasRelegationRole) hash ^= RelegationRole.GetHashCode();
hash ^= attribute_.GetHashCode();
hash ^= kickableRole_.GetHashCode(); hash ^= kickableRole_.GetHashCode();
hash ^= removableRole_.GetHashCode(); hash ^= removableRole_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (Id != 0) { if (HasId) {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteUInt32(Id); output.WriteUInt32(Id);
} }
if (Name.Length != 0) { if (HasName) {
output.WriteRawTag(18); output.WriteRawTag(18);
output.WriteString(Name); output.WriteString(Name);
} }
privilege_.WriteTo(output, _repeated_privilege_codec); privilege_.WriteTo(output, _repeated_privilege_codec);
assignableRole_.WriteTo(output, _repeated_assignableRole_codec); assignableRole_.WriteTo(output, _repeated_assignableRole_codec);
if (Required != false) { if (HasRequired) {
output.WriteRawTag(40); output.WriteRawTag(40);
output.WriteBool(Required); output.WriteBool(Required);
} }
if (Unique != false) { if (HasUnique) {
output.WriteRawTag(48); output.WriteRawTag(48);
output.WriteBool(Unique); output.WriteBool(Unique);
} }
if (RelegationRole != 0) { if (HasRelegationRole) {
output.WriteRawTag(56); output.WriteRawTag(56);
output.WriteUInt32(RelegationRole); output.WriteUInt32(RelegationRole);
} }
attribute_.WriteTo(output, _repeated_attribute_codec);
kickableRole_.WriteTo(output, _repeated_kickableRole_codec); kickableRole_.WriteTo(output, _repeated_kickableRole_codec);
removableRole_.WriteTo(output, _repeated_removableRole_codec); removableRole_.WriteTo(output, _repeated_removableRole_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (Id != 0) { if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
} }
if (Name.Length != 0) { if (HasName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
} }
size += privilege_.CalculateSize(_repeated_privilege_codec); size += privilege_.CalculateSize(_repeated_privilege_codec);
size += assignableRole_.CalculateSize(_repeated_assignableRole_codec); size += assignableRole_.CalculateSize(_repeated_assignableRole_codec);
if (Required != false) { if (HasRequired) {
size += 1 + 1; size += 1 + 1;
} }
if (Unique != false) { if (HasUnique) {
size += 1 + 1; size += 1 + 1;
} }
if (RelegationRole != 0) { if (HasRelegationRole) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelegationRole); size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelegationRole);
} }
size += attribute_.CalculateSize(_repeated_attribute_codec);
size += kickableRole_.CalculateSize(_repeated_kickableRole_codec); size += kickableRole_.CalculateSize(_repeated_kickableRole_codec);
size += removableRole_.CalculateSize(_repeated_removableRole_codec); size += removableRole_.CalculateSize(_repeated_removableRole_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Role other) { public void MergeFrom(Role other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.Id != 0) { if (other.HasId) {
Id = other.Id; Id = other.Id;
} }
if (other.Name.Length != 0) { if (other.HasName) {
Name = other.Name; Name = other.Name;
} }
privilege_.Add(other.privilege_); privilege_.Add(other.privilege_);
assignableRole_.Add(other.assignableRole_); assignableRole_.Add(other.assignableRole_);
if (other.Required != false) { if (other.HasRequired) {
Required = other.Required; Required = other.Required;
} }
if (other.Unique != false) { if (other.HasUnique) {
Unique = other.Unique; Unique = other.Unique;
} }
if (other.RelegationRole != 0) { if (other.HasRelegationRole) {
RelegationRole = other.RelegationRole; RelegationRole = other.RelegationRole;
} }
attribute_.Add(other.attribute_);
kickableRole_.Add(other.kickableRole_); kickableRole_.Add(other.kickableRole_);
removableRole_.Add(other.removableRole_); removableRole_.Add(other.removableRole_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 8: { case 8: {
Id = input.ReadUInt32(); Id = input.ReadUInt32();
@@ -330,10 +419,6 @@ namespace Bgs.Protocol
RelegationRole = input.ReadUInt32(); RelegationRole = input.ReadUInt32();
break; break;
} }
case 66: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
case 74: case 74:
case 72: { case 72: {
kickableRole_.AddEntriesFrom(input, _repeated_kickableRole_codec); kickableRole_.AddEntriesFrom(input, _repeated_kickableRole_codec);
@@ -350,6 +435,356 @@ namespace Bgs.Protocol
} }
public sealed partial class RoleState : pb::IMessage<RoleState> {
private static readonly pb::MessageParser<RoleState> _parser = new pb::MessageParser<RoleState>(() => new RoleState());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RoleState> 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);
}
/// <summary>Field number for the "name" field.</summary>
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");
}
}
/// <summary>Gets whether the "name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasName {
get { return name_ != null; }
}
/// <summary>Clears the value of the "name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearName() {
name_ = null;
}
/// <summary>Field number for the "assignable_role" field.</summary>
public const int AssignableRoleFieldNumber = 4;
private static readonly pb::FieldCodec<uint> _repeated_assignableRole_codec
= pb::FieldCodec.ForUInt32(34);
private readonly pbc::RepeatedField<uint> assignableRole_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> AssignableRole {
get { return assignableRole_; }
}
/// <summary>Field number for the "required" field.</summary>
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;
}
}
/// <summary>Gets whether the "required" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasRequired {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "required" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearRequired() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "unique" field.</summary>
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;
}
}
/// <summary>Gets whether the "unique" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUnique {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "unique" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUnique() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "relegation_role" field.</summary>
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;
}
}
/// <summary>Gets whether the "relegation_role" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasRelegationRole {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "relegation_role" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearRelegationRole() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "kickable_role" field.</summary>
public const int KickableRoleFieldNumber = 9;
private static readonly pb::FieldCodec<uint> _repeated_kickableRole_codec
= pb::FieldCodec.ForUInt32(74);
private readonly pbc::RepeatedField<uint> kickableRole_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> KickableRole {
get { return kickableRole_; }
}
/// <summary>Field number for the "removable_role" field.</summary>
public const int RemovableRoleFieldNumber = 10;
private static readonly pb::FieldCodec<uint> _repeated_removableRole_codec
= pb::FieldCodec.ForUInt32(82);
private readonly pbc::RepeatedField<uint> removableRole_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> RemovableRole {
get { return removableRole_; }
}
/// <summary>Field number for the "mentionable_role" field.</summary>
public const int MentionableRoleFieldNumber = 11;
private static readonly pb::FieldCodec<uint> _repeated_mentionableRole_codec
= pb::FieldCodec.ForUInt32(90);
private readonly pbc::RepeatedField<uint> mentionableRole_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> 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 #endregion
} }
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+250 -89
View File
@@ -1,16 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // <auto-generated>
// 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
// </auto-generated>
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
using pb = Google.Protobuf; using pb = global::Google.Protobuf;
using pbc = Google.Protobuf.Collections; using pbc = global::Google.Protobuf.Collections;
using pbr = Google.Protobuf.Reflection; using pbr = global::Google.Protobuf.Reflection;
namespace Bgs.Protocol.UserManager.V1 using scg = global::System.Collections.Generic;
{ namespace Bgs.Protocol.UserManager.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/user_manager_types.proto</summary> /// <summary>Holder for reflection information generated from bgs/low/pb/client/user_manager_types.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class UserManagerTypesReflection { public static partial class UserManagerTypesReflection {
#region Descriptor #region Descriptor
@@ -21,125 +22,203 @@ namespace Bgs.Protocol.UserManager.V1
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static UserManagerTypesReflection() { static UserManagerTypesReflection() {
byte[] descriptorData = System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CipiZ3MvbG93L3BiL2NsaWVudC91c2VyX21hbmFnZXJfdHlwZXMucHJvdG8S", "CipiZ3MvbG93L3BiL2NsaWVudC91c2VyX21hbmFnZXJfdHlwZXMucHJvdG8S",
"HGJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEaJGJncy9sb3cvcGIvY2xp", "HGJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEaJGJncy9sb3cvcGIvY2xp",
"ZW50L2VudGl0eV90eXBlcy5wcm90bxonYmdzL2xvdy9wYi9jbGllbnQvYXR0", "ZW50L2VudGl0eV90eXBlcy5wcm90bxonYmdzL2xvdy9wYi9jbGllbnQvYXR0",
"cmlidXRlX3R5cGVzLnByb3RvIq4BCgxSZWNlbnRQbGF5ZXISKQoJZW50aXR5", "cmlidXRlX3R5cGVzLnByb3RvIrQBCgxSZWNlbnRQbGF5ZXISKQoJZW50aXR5",
"X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEg8KB3Byb2dyYW0Y", "X2lkGAEgAigLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEg8KB3Byb2dyYW0Y",
"AiABKAkSGAoQdGltZXN0YW1wX3BsYXllZBgDIAEoBhIrCgphdHRyaWJ1dGVz", "AiABKAkSGAoQdGltZXN0YW1wX3BsYXllZBgDIAEoBhIrCgphdHRyaWJ1dGVz",
"GAQgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0ZRIKCgJpZBgFIAEoBxIP", "GAQgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0ZRINCgJpZBgFIAEoBzoB",
"Cgdjb3VudGVyGAYgASgHIm8KDUJsb2NrZWRQbGF5ZXISKgoKYWNjb3VudF9p", "MBISCgdjb3VudGVyGAYgASgHOgEwInIKDUJsb2NrZWRQbGF5ZXISKgoKYWNj",
"ZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIMCgRuYW1lGAIgASgJ", "b3VudF9pZBgBIAIoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIMCgRuYW1l",
"EhAKBHJvbGUYAyADKA1CAhABEhIKCnByaXZpbGVnZXMYBCABKARCAkgCYgZw", "GAIgASgJEhAKBHJvbGUYAyADKA1CAhABEhUKCnByaXZpbGVnZXMYBCABKAQ6",
"cm90bzM=")); "ATA="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.AttributeTypesReflection.Descriptor, }, new pbr::FileDescriptor[] { global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.AttributeTypesReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(null, 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(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(Bgs.Protocol.UserManager.V1.BlockedPlayer), Bgs.Protocol.UserManager.V1.BlockedPlayer.Parser, new[]{ "AccountId", "Name", "Role", "Privileges" }, 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 #endregion
} }
#region Messages #region Messages
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class RecentPlayer : pb::IMessage<RecentPlayer> { public sealed partial class RecentPlayer : pb::IMessage<RecentPlayer> {
private static readonly pb::MessageParser<RecentPlayer> _parser = new pb::MessageParser<RecentPlayer>(() => new RecentPlayer()); private static readonly pb::MessageParser<RecentPlayer> _parser = new pb::MessageParser<RecentPlayer>(() => new RecentPlayer());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RecentPlayer> Parser { get { return _parser; } } public static pb::MessageParser<RecentPlayer> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayer() { public RecentPlayer() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayer(RecentPlayer other) : this() { 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_; program_ = other.program_;
timestampPlayed_ = other.timestampPlayed_; timestampPlayed_ = other.timestampPlayed_;
attributes_ = other.attributes_.Clone(); attributes_ = other.attributes_.Clone();
id_ = other.id_; id_ = other.id_;
counter_ = other.counter_; counter_ = other.counter_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayer Clone() { public RecentPlayer Clone() {
return new RecentPlayer(this); return new RecentPlayer(this);
} }
/// <summary>Field number for the "entity_id" field.</summary> /// <summary>Field number for the "entity_id" field.</summary>
public const int EntityIdFieldNumber = 1; public const int EntityIdFieldNumber = 1;
private Bgs.Protocol.EntityId entityId_; private global::Bgs.Protocol.EntityId entityId_;
public Bgs.Protocol.EntityId EntityId { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId EntityId {
get { return entityId_; } get { return entityId_; }
set { set {
entityId_ = value; entityId_ = value;
} }
} }
/// <summary>Gets whether the entity_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasEntityId {
get { return entityId_ != null; }
}
/// <summary>Clears the value of the entity_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearEntityId() {
entityId_ = null;
}
/// <summary>Field number for the "program" field.</summary> /// <summary>Field number for the "program" field.</summary>
public const int ProgramFieldNumber = 2; public const int ProgramFieldNumber = 2;
private string program_ = ""; private readonly static string ProgramDefaultValue = "";
private string program_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Program { public string Program {
get { return program_; } get { return program_ ?? ProgramDefaultValue; }
set { set {
program_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); program_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
} }
} }
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return program_ != null; }
}
/// <summary>Clears the value of the "program" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProgram() {
program_ = null;
}
/// <summary>Field number for the "timestamp_played" field.</summary> /// <summary>Field number for the "timestamp_played" field.</summary>
public const int TimestampPlayedFieldNumber = 3; public const int TimestampPlayedFieldNumber = 3;
private readonly static ulong TimestampPlayedDefaultValue = 0UL;
private ulong timestampPlayed_; private ulong timestampPlayed_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong TimestampPlayed { public ulong TimestampPlayed {
get { return timestampPlayed_; } get { if ((_hasBits0 & 1) != 0) { return timestampPlayed_; } else { return TimestampPlayedDefaultValue; } }
set { set {
_hasBits0 |= 1;
timestampPlayed_ = value; timestampPlayed_ = value;
} }
} }
/// <summary>Gets whether the "timestamp_played" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTimestampPlayed {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "timestamp_played" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTimestampPlayed() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "attributes" field.</summary> /// <summary>Field number for the "attributes" field.</summary>
public const int AttributesFieldNumber = 4; public const int AttributesFieldNumber = 4;
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attributes_codec private static readonly pb::FieldCodec<global::Bgs.Protocol.Attribute> _repeated_attributes_codec
= pb::FieldCodec.ForMessage(34, Bgs.Protocol.Attribute.Parser); = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Attribute.Parser);
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attributes_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>(); private readonly pbc::RepeatedField<global::Bgs.Protocol.Attribute> attributes_ = new pbc::RepeatedField<global::Bgs.Protocol.Attribute>();
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attributes { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Attribute> Attributes {
get { return attributes_; } get { return attributes_; }
} }
/// <summary>Field number for the "id" field.</summary> /// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 5; public const int IdFieldNumber = 5;
private readonly static uint IdDefaultValue = 0;
private uint id_; private uint id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Id { public uint Id {
get { return id_; } get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } }
set { set {
_hasBits0 |= 2;
id_ = value; id_ = value;
} }
} }
/// <summary>Gets whether the "id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "counter" field.</summary> /// <summary>Field number for the "counter" field.</summary>
public const int CounterFieldNumber = 6; public const int CounterFieldNumber = 6;
private readonly static uint CounterDefaultValue = 0;
private uint counter_; private uint counter_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Counter { public uint Counter {
get { return counter_; } get { if ((_hasBits0 & 4) != 0) { return counter_; } else { return CounterDefaultValue; } }
set { set {
_hasBits0 |= 4;
counter_ = value; counter_ = value;
} }
} }
/// <summary>Gets whether the "counter" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasCounter {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "counter" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearCounter() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as RecentPlayer); return Equals(other as RecentPlayer);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RecentPlayer other) { public bool Equals(RecentPlayer other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -153,106 +232,122 @@ namespace Bgs.Protocol.UserManager.V1
if(!attributes_.Equals(other.attributes_)) return false; if(!attributes_.Equals(other.attributes_)) return false;
if (Id != other.Id) return false; if (Id != other.Id) return false;
if (Counter != other.Counter) return false; if (Counter != other.Counter) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (entityId_ != null) hash ^= EntityId.GetHashCode(); if (HasEntityId) hash ^= EntityId.GetHashCode();
if (Program.Length != 0) hash ^= Program.GetHashCode(); if (HasProgram) hash ^= Program.GetHashCode();
if (TimestampPlayed != 0UL) hash ^= TimestampPlayed.GetHashCode(); if (HasTimestampPlayed) hash ^= TimestampPlayed.GetHashCode();
hash ^= attributes_.GetHashCode(); hash ^= attributes_.GetHashCode();
if (Id != 0) hash ^= Id.GetHashCode(); if (HasId) hash ^= Id.GetHashCode();
if (Counter != 0) hash ^= Counter.GetHashCode(); if (HasCounter) hash ^= Counter.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (entityId_ != null) { if (HasEntityId) {
output.WriteRawTag(10); output.WriteRawTag(10);
output.WriteMessage(EntityId); output.WriteMessage(EntityId);
} }
if (Program.Length != 0) { if (HasProgram) {
output.WriteRawTag(18); output.WriteRawTag(18);
output.WriteString(Program); output.WriteString(Program);
} }
if (TimestampPlayed != 0UL) { if (HasTimestampPlayed) {
output.WriteRawTag(25); output.WriteRawTag(25);
output.WriteFixed64(TimestampPlayed); output.WriteFixed64(TimestampPlayed);
} }
attributes_.WriteTo(output, _repeated_attributes_codec); attributes_.WriteTo(output, _repeated_attributes_codec);
if (Id != 0) { if (HasId) {
output.WriteRawTag(45); output.WriteRawTag(45);
output.WriteFixed32(Id); output.WriteFixed32(Id);
} }
if (Counter != 0) { if (HasCounter) {
output.WriteRawTag(53); output.WriteRawTag(53);
output.WriteFixed32(Counter); output.WriteFixed32(Counter);
} }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (entityId_ != null) { if (HasEntityId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId);
} }
if (Program.Length != 0) { if (HasProgram) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Program); size += 1 + pb::CodedOutputStream.ComputeStringSize(Program);
} }
if (TimestampPlayed != 0UL) { if (HasTimestampPlayed) {
size += 1 + 8; size += 1 + 8;
} }
size += attributes_.CalculateSize(_repeated_attributes_codec); size += attributes_.CalculateSize(_repeated_attributes_codec);
if (Id != 0) { if (HasId) {
size += 1 + 4; size += 1 + 4;
} }
if (Counter != 0) { if (HasCounter) {
size += 1 + 4; size += 1 + 4;
} }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RecentPlayer other) { public void MergeFrom(RecentPlayer other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.entityId_ != null) { if (other.HasEntityId) {
if (entityId_ == null) { if (!HasEntityId) {
entityId_ = new Bgs.Protocol.EntityId(); EntityId = new global::Bgs.Protocol.EntityId();
} }
EntityId.MergeFrom(other.EntityId); EntityId.MergeFrom(other.EntityId);
} }
if (other.Program.Length != 0) { if (other.HasProgram) {
Program = other.Program; Program = other.Program;
} }
if (other.TimestampPlayed != 0UL) { if (other.HasTimestampPlayed) {
TimestampPlayed = other.TimestampPlayed; TimestampPlayed = other.TimestampPlayed;
} }
attributes_.Add(other.attributes_); attributes_.Add(other.attributes_);
if (other.Id != 0) { if (other.HasId) {
Id = other.Id; Id = other.Id;
} }
if (other.Counter != 0) { if (other.HasCounter) {
Counter = other.Counter; Counter = other.Counter;
} }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 10: { case 10: {
if (entityId_ == null) { if (!HasEntityId) {
entityId_ = new Bgs.Protocol.EntityId(); EntityId = new global::Bgs.Protocol.EntityId();
} }
input.ReadMessage(entityId_); input.ReadMessage(EntityId);
break; break;
} }
case 18: { case 18: {
@@ -281,79 +376,129 @@ namespace Bgs.Protocol.UserManager.V1
} }
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class BlockedPlayer : pb::IMessage<BlockedPlayer> { public sealed partial class BlockedPlayer : pb::IMessage<BlockedPlayer> {
private static readonly pb::MessageParser<BlockedPlayer> _parser = new pb::MessageParser<BlockedPlayer>(() => new BlockedPlayer()); private static readonly pb::MessageParser<BlockedPlayer> _parser = new pb::MessageParser<BlockedPlayer>(() => new BlockedPlayer());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BlockedPlayer> Parser { get { return _parser; } } public static pb::MessageParser<BlockedPlayer> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor { 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 { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; } get { return Descriptor; }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayer() { public BlockedPlayer() {
OnConstruction(); OnConstruction();
} }
partial void OnConstruction(); partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayer(BlockedPlayer other) : this() { 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_; name_ = other.name_;
role_ = other.role_.Clone(); role_ = other.role_.Clone();
privileges_ = other.privileges_; privileges_ = other.privileges_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayer Clone() { public BlockedPlayer Clone() {
return new BlockedPlayer(this); return new BlockedPlayer(this);
} }
/// <summary>Field number for the "account_id" field.</summary> /// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 1; public const int AccountIdFieldNumber = 1;
private Bgs.Protocol.EntityId accountId_; private global::Bgs.Protocol.EntityId accountId_;
public Bgs.Protocol.EntityId AccountId { [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; } get { return accountId_; }
set { set {
accountId_ = value; accountId_ = value;
} }
} }
/// <summary>Gets whether the account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAccountId {
get { return accountId_ != null; }
}
/// <summary>Clears the value of the account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAccountId() {
accountId_ = null;
}
/// <summary>Field number for the "name" field.</summary> /// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 2; public const int NameFieldNumber = 2;
private string name_ = ""; private readonly static string NameDefaultValue = "";
private string name_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name { public string Name {
get { return name_; } get { return name_ ?? NameDefaultValue; }
set { set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
} }
} }
/// <summary>Gets whether the "name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasName {
get { return name_ != null; }
}
/// <summary>Clears the value of the "name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearName() {
name_ = null;
}
/// <summary>Field number for the "role" field.</summary> /// <summary>Field number for the "role" field.</summary>
public const int RoleFieldNumber = 3; public const int RoleFieldNumber = 3;
private static readonly pb::FieldCodec<uint> _repeated_role_codec private static readonly pb::FieldCodec<uint> _repeated_role_codec
= pb::FieldCodec.ForUInt32(26); = pb::FieldCodec.ForUInt32(26);
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>(); private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> Role { public pbc::RepeatedField<uint> Role {
get { return role_; } get { return role_; }
} }
/// <summary>Field number for the "privileges" field.</summary> /// <summary>Field number for the "privileges" field.</summary>
public const int PrivilegesFieldNumber = 4; public const int PrivilegesFieldNumber = 4;
private readonly static ulong PrivilegesDefaultValue = 0UL;
private ulong privileges_; private ulong privileges_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong Privileges { public ulong Privileges {
get { return privileges_; } get { if ((_hasBits0 & 1) != 0) { return privileges_; } else { return PrivilegesDefaultValue; } }
set { set {
_hasBits0 |= 1;
privileges_ = value; privileges_ = value;
} }
} }
/// <summary>Gets whether the "privileges" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPrivileges {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "privileges" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearPrivileges() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) { public override bool Equals(object other) {
return Equals(other as BlockedPlayer); return Equals(other as BlockedPlayer);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(BlockedPlayer other) { public bool Equals(BlockedPlayer other) {
if (ReferenceEquals(other, null)) { if (ReferenceEquals(other, null)) {
return false; return false;
@@ -365,84 +510,100 @@ namespace Bgs.Protocol.UserManager.V1
if (Name != other.Name) return false; if (Name != other.Name) return false;
if(!role_.Equals(other.role_)) return false; if(!role_.Equals(other.role_)) return false;
if (Privileges != other.Privileges) return false; if (Privileges != other.Privileges) return false;
return true; return Equals(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (accountId_ != null) hash ^= AccountId.GetHashCode(); if (HasAccountId) hash ^= AccountId.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode(); if (HasName) hash ^= Name.GetHashCode();
hash ^= role_.GetHashCode(); hash ^= role_.GetHashCode();
if (Privileges != 0UL) hash ^= Privileges.GetHashCode(); if (HasPrivileges) hash ^= Privileges.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash; return hash;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
if (accountId_ != null) { if (HasAccountId) {
output.WriteRawTag(10); output.WriteRawTag(10);
output.WriteMessage(AccountId); output.WriteMessage(AccountId);
} }
if (Name.Length != 0) { if (HasName) {
output.WriteRawTag(18); output.WriteRawTag(18);
output.WriteString(Name); output.WriteString(Name);
} }
role_.WriteTo(output, _repeated_role_codec); role_.WriteTo(output, _repeated_role_codec);
if (Privileges != 0UL) { if (HasPrivileges) {
output.WriteRawTag(32); output.WriteRawTag(32);
output.WriteUInt64(Privileges); output.WriteUInt64(Privileges);
} }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() { public int CalculateSize() {
int size = 0; int size = 0;
if (accountId_ != null) { if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId); size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
} }
if (Name.Length != 0) { if (HasName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
} }
size += role_.CalculateSize(_repeated_role_codec); size += role_.CalculateSize(_repeated_role_codec);
if (Privileges != 0UL) { if (HasPrivileges) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Privileges); size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Privileges);
} }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size; return size;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(BlockedPlayer other) { public void MergeFrom(BlockedPlayer other) {
if (other == null) { if (other == null) {
return; return;
} }
if (other.accountId_ != null) { if (other.HasAccountId) {
if (accountId_ == null) { if (!HasAccountId) {
accountId_ = new Bgs.Protocol.EntityId(); AccountId = new global::Bgs.Protocol.EntityId();
} }
AccountId.MergeFrom(other.AccountId); AccountId.MergeFrom(other.AccountId);
} }
if (other.Name.Length != 0) { if (other.HasName) {
Name = other.Name; Name = other.Name;
} }
role_.Add(other.role_); role_.Add(other.role_);
if (other.Privileges != 0UL) { if (other.HasPrivileges) {
Privileges = other.Privileges; Privileges = other.Privileges;
} }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) { public void MergeFrom(pb::CodedInputStream input) {
uint tag; uint tag;
while ((tag = input.ReadTag()) != 0) { while ((tag = input.ReadTag()) != 0) {
switch(tag) { switch(tag) {
default: default:
input.SkipLastField(); _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break; break;
case 10: { case 10: {
if (accountId_ == null) { if (!HasAccountId) {
accountId_ = new Bgs.Protocol.EntityId(); AccountId = new global::Bgs.Protocol.EntityId();
} }
input.ReadMessage(accountId_); input.ReadMessage(AccountId);
break; break;
} }
case 18: { case 18: {
+372
View File
@@ -0,0 +1,372 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/voice_types.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/voice_types.proto</summary>
public static partial class VoiceTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/voice_types.proto</summary>
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<VoiceCredentials> {
private static readonly pb::MessageParser<VoiceCredentials> _parser = new pb::MessageParser<VoiceCredentials>(() => new VoiceCredentials());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<VoiceCredentials> 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);
}
/// <summary>Field number for the "voice_id" field.</summary>
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");
}
}
/// <summary>Gets whether the "voice_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasVoiceId {
get { return voiceId_ != null; }
}
/// <summary>Clears the value of the "voice_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearVoiceId() {
voiceId_ = null;
}
/// <summary>Field number for the "token" field.</summary>
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");
}
}
/// <summary>Gets whether the "token" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasToken {
get { return token_ != null; }
}
/// <summary>Clears the value of the "token" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearToken() {
token_ = null;
}
/// <summary>Field number for the "url" field.</summary>
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");
}
}
/// <summary>Gets whether the "url" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUrl {
get { return url_ != null; }
}
/// <summary>Clears the value of the "url" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUrl() {
url_ = null;
}
/// <summary>Field number for the "join_type" field.</summary>
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;
}
}
/// <summary>Gets whether the "join_type" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasJoinType {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "join_type" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearJoinType() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "mute_reason" field.</summary>
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;
}
}
/// <summary>Gets whether the "mute_reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMuteReason {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "mute_reason" field</summary>
[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
+1 -1
View File
@@ -21,7 +21,7 @@ using System.Reflection;
public class Singleton<T> where T : class public class Singleton<T> where T : class
{ {
private static volatile T instance; private static volatile T instance;
private static object syncRoot = new Object(); private static object syncRoot = new object();
public static T Instance public static T Instance
{ {