Files
CypherCore/Source/Framework/Proto/UserManagerService.cs
T
2020-04-25 00:12:46 -04:00

2187 lines
81 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/user_manager_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.UserManager.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/user_manager_service.proto</summary>
public static partial class UserManagerServiceReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/user_manager_service.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static UserManagerServiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CixiZ3MvbG93L3BiL2NsaWVudC91c2VyX21hbmFnZXJfc2VydmljZS5wcm90",
"bxIcYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MRoqYmdzL2xvdy9wYi9j",
"bGllbnQvdXNlcl9tYW5hZ2VyX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2Ns",
"aWVudC9lbnRpdHlfdHlwZXMucHJvdG8aImJncy9sb3cvcGIvY2xpZW50L3Jv",
"bGVfdHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5w",
"cm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVz",
"c2FnZV9vcHRpb25zLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxf",
"ZXh0ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjhiZ3MvbG93L3BiL2Ns",
"aWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rfb3B0aW9ucy5wcm90bxo5",
"YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvc2VydmljZV9v",
"cHRpb25zLnByb3RvIk8KEFN1YnNjcmliZVJlcXVlc3QSKAoIYWdlbnRfaWQY",
"ASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSEQoJb2JqZWN0X2lkGAIg",
"AigEIr8BChFTdWJzY3JpYmVSZXNwb25zZRJECg9ibG9ja2VkX3BsYXllcnMY",
"ASADKAsyKy5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLkJsb2NrZWRQ",
"bGF5ZXISQgoOcmVjZW50X3BsYXllcnMYAiADKAsyKi5iZ3MucHJvdG9jb2wu",
"dXNlcl9tYW5hZ2VyLnYxLlJlY2VudFBsYXllchIgCgRyb2xlGAMgAygLMhIu",
"YmdzLnByb3RvY29sLlJvbGUiUQoSVW5zdWJzY3JpYmVSZXF1ZXN0EigKCGFn",
"ZW50X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEhEKCW9iamVj",
"dF9pZBgCIAEoBCKRAQoXQWRkUmVjZW50UGxheWVyc1JlcXVlc3QSOwoHcGxh",
"eWVycxgBIAMoCzIqLmJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEuUmVj",
"ZW50UGxheWVyEigKCGFnZW50X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVu",
"dGl0eUlkEg8KB3Byb2dyYW0YAyABKA0iVgoZQ2xlYXJSZWNlbnRQbGF5ZXJz",
"UmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp",
"dHlJZBIPCgdwcm9ncmFtGAIgASgNIncKEkJsb2NrUGxheWVyUmVxdWVzdBIo",
"CghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0",
"YXJnZXRfaWQYAiACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSDAoEcm9s",
"ZRgDIAEoDSJrChRVbmJsb2NrUGxheWVyUmVxdWVzdBIoCghhZ2VudF9pZBgB",
"IAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0YXJnZXRfaWQYAiAC",
"KAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQiugEKHkJsb2NrZWRQbGF5ZXJB",
"ZGRlZE5vdGlmaWNhdGlvbhI7CgZwbGF5ZXIYASACKAsyKy5iZ3MucHJvdG9j",
"b2wudXNlcl9tYW5hZ2VyLnYxLkJsb2NrZWRQbGF5ZXISLwoPZ2FtZV9hY2Nv",
"dW50X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEioKCmFjY291",
"bnRfaWQYAyABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQivAEKIEJsb2Nr",
"ZWRQbGF5ZXJSZW1vdmVkTm90aWZpY2F0aW9uEjsKBnBsYXllchgBIAIoCzIr",
"LmJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEuQmxvY2tlZFBsYXllchIv",
"Cg9nYW1lX2FjY291bnRfaWQYAiABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5",
"SWQSKgoKYWNjb3VudF9pZBgDIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJ",
"ZCJcCh5SZWNlbnRQbGF5ZXJzQWRkZWROb3RpZmljYXRpb24SOgoGcGxheWVy",
"GAEgAygLMiouYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5SZWNlbnRQ",
"bGF5ZXIiXgogUmVjZW50UGxheWVyc1JlbW92ZWROb3RpZmljYXRpb24SOgoG",
"cGxheWVyGAEgAygLMiouYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5S",
"ZWNlbnRQbGF5ZXIytwYKElVzZXJNYW5hZ2VyU2VydmljZRJ0CglTdWJzY3Jp",
"YmUSLi5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlN1YnNjcmliZVJl",
"cXVlc3QaLy5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlN1YnNjcmli",
"ZVJlc3BvbnNlIgaC+SsCCAESZwoQQWRkUmVjZW50UGxheWVycxI1LmJncy5w",
"cm90b2NvbC51c2VyX21hbmFnZXIudjEuQWRkUmVjZW50UGxheWVyc1JlcXVl",
"c3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCAoSawoSQ2xlYXJSZWNl",
"bnRQbGF5ZXJzEjcuYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5DbGVh",
"clJlY2VudFBsYXllcnNSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIG",
"gvkrAggLEl0KC0Jsb2NrUGxheWVyEjAuYmdzLnByb3RvY29sLnVzZXJfbWFu",
"YWdlci52MS5CbG9ja1BsYXllclJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9E",
"YXRhIgaC+SsCCBQSYQoNVW5ibG9ja1BsYXllchIyLmJncy5wcm90b2NvbC51",
"c2VyX21hbmFnZXIudjEuVW5ibG9ja1BsYXllclJlcXVlc3QaFC5iZ3MucHJv",
"dG9jb2wuTm9EYXRhIgaC+SsCCBUSZwoVQmxvY2tQbGF5ZXJGb3JTZXNzaW9u",
"EjAuYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5CbG9ja1BsYXllclJl",
"cXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCCgSXQoLVW5zdWJz",
"Y3JpYmUSMC5iZ3MucHJvdG9jb2wudXNlcl9tYW5hZ2VyLnYxLlVuc3Vic2Ny",
"aWJlUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIMxpLgvkr",
"LwotYm5ldC5wcm90b2NvbC51c2VyX21hbmFnZXIuVXNlck1hbmFnZXJTZXJ2",
"aWNlgvkrDioMdXNlcl9tYW5hZ2VyivkrAhABMrsEChNVc2VyTWFuYWdlckxp",
"c3RlbmVyEncKFE9uQmxvY2tlZFBsYXllckFkZGVkEjwuYmdzLnByb3RvY29s",
"LnVzZXJfbWFuYWdlci52MS5CbG9ja2VkUGxheWVyQWRkZWROb3RpZmljYXRp",
"b24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIARJ7ChZPbkJs",
"b2NrZWRQbGF5ZXJSZW1vdmVkEj4uYmdzLnByb3RvY29sLnVzZXJfbWFuYWdl",
"ci52MS5CbG9ja2VkUGxheWVyUmVtb3ZlZE5vdGlmaWNhdGlvbhoZLmJncy5w",
"cm90b2NvbC5OT19SRVNQT05TRSIGgvkrAggCEncKFE9uUmVjZW50UGxheWVy",
"c0FkZGVkEjwuYmdzLnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5SZWNlbnRQ",
"bGF5ZXJzQWRkZWROb3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVT",
"UE9OU0UiBoL5KwIICxJ7ChZPblJlY2VudFBsYXllcnNSZW1vdmVkEj4uYmdz",
"LnByb3RvY29sLnVzZXJfbWFuYWdlci52MS5SZWNlbnRQbGF5ZXJzUmVtb3Zl",
"ZE5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkr",
"AggMGjiC+SsuCixibmV0LnByb3RvY29sLnVzZXJfbWFuYWdlci5Vc2VyTWFu",
"YWdlck5vdGlmeYr5KwIIAUIDgAEA"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.RoleTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.SubscribeRequest), global::Bgs.Protocol.UserManager.V1.SubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.SubscribeResponse), global::Bgs.Protocol.UserManager.V1.SubscribeResponse.Parser, new[]{ "BlockedPlayers", "RecentPlayers", "Role" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.UnsubscribeRequest), global::Bgs.Protocol.UserManager.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.AddRecentPlayersRequest), global::Bgs.Protocol.UserManager.V1.AddRecentPlayersRequest.Parser, new[]{ "Players", "AgentId", "Program" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.ClearRecentPlayersRequest), global::Bgs.Protocol.UserManager.V1.ClearRecentPlayersRequest.Parser, new[]{ "AgentId", "Program" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.BlockPlayerRequest), global::Bgs.Protocol.UserManager.V1.BlockPlayerRequest.Parser, new[]{ "AgentId", "TargetId", "Role" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.UnblockPlayerRequest), global::Bgs.Protocol.UserManager.V1.UnblockPlayerRequest.Parser, new[]{ "AgentId", "TargetId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.BlockedPlayerAddedNotification), global::Bgs.Protocol.UserManager.V1.BlockedPlayerAddedNotification.Parser, new[]{ "Player", "GameAccountId", "AccountId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.BlockedPlayerRemovedNotification), global::Bgs.Protocol.UserManager.V1.BlockedPlayerRemovedNotification.Parser, new[]{ "Player", "GameAccountId", "AccountId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.RecentPlayersAddedNotification), global::Bgs.Protocol.UserManager.V1.RecentPlayersAddedNotification.Parser, new[]{ "Player" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UserManager.V1.RecentPlayersRemovedNotification), global::Bgs.Protocol.UserManager.V1.RecentPlayersRemovedNotification.Parser, new[]{ "Player" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class SubscribeRequest : pb::IMessage<SubscribeRequest> {
private static readonly pb::MessageParser<SubscribeRequest> _parser = new pb::MessageParser<SubscribeRequest>(() => new SubscribeRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubscribeRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeRequest(SubscribeRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
objectId_ = other.objectId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeRequest Clone() {
return new SubscribeRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "object_id" field.</summary>
public const int ObjectIdFieldNumber = 2;
private readonly static ulong ObjectIdDefaultValue = 0UL;
private ulong objectId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ObjectId {
get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } }
set {
_hasBits0 |= 1;
objectId_ = value;
}
}
/// <summary>Gets whether the "object_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasObjectId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "object_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearObjectId() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SubscribeRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubscribeRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ObjectId != other.ObjectId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasObjectId) hash ^= ObjectId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasObjectId) {
output.WriteRawTag(16);
output.WriteUInt64(ObjectId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasObjectId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubscribeRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasObjectId) {
ObjectId = other.ObjectId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 16: {
ObjectId = input.ReadUInt64();
break;
}
}
}
}
}
public sealed partial class SubscribeResponse : pb::IMessage<SubscribeResponse> {
private static readonly pb::MessageParser<SubscribeResponse> _parser = new pb::MessageParser<SubscribeResponse>(() => new SubscribeResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubscribeResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeResponse(SubscribeResponse other) : this() {
blockedPlayers_ = other.blockedPlayers_.Clone();
recentPlayers_ = other.recentPlayers_.Clone();
role_ = other.role_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeResponse Clone() {
return new SubscribeResponse(this);
}
/// <summary>Field number for the "blocked_players" field.</summary>
public const int BlockedPlayersFieldNumber = 1;
private static readonly pb::FieldCodec<global::Bgs.Protocol.UserManager.V1.BlockedPlayer> _repeated_blockedPlayers_codec
= pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.UserManager.V1.BlockedPlayer.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.BlockedPlayer> blockedPlayers_ = new pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.BlockedPlayer>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.BlockedPlayer> BlockedPlayers {
get { return blockedPlayers_; }
}
/// <summary>Field number for the "recent_players" field.</summary>
public const int RecentPlayersFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.UserManager.V1.RecentPlayer> _repeated_recentPlayers_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer> recentPlayers_ = new pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer> RecentPlayers {
get { return recentPlayers_; }
}
/// <summary>Field number for the "role" field.</summary>
public const int RoleFieldNumber = 3;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Role> _repeated_role_codec
= pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Role.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Role> role_ = new pbc::RepeatedField<global::Bgs.Protocol.Role>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Role> Role {
get { return role_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SubscribeResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubscribeResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!blockedPlayers_.Equals(other.blockedPlayers_)) return false;
if(!recentPlayers_.Equals(other.recentPlayers_)) return false;
if(!role_.Equals(other.role_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= blockedPlayers_.GetHashCode();
hash ^= recentPlayers_.GetHashCode();
hash ^= role_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
blockedPlayers_.WriteTo(output, _repeated_blockedPlayers_codec);
recentPlayers_.WriteTo(output, _repeated_recentPlayers_codec);
role_.WriteTo(output, _repeated_role_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += blockedPlayers_.CalculateSize(_repeated_blockedPlayers_codec);
size += recentPlayers_.CalculateSize(_repeated_recentPlayers_codec);
size += role_.CalculateSize(_repeated_role_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubscribeResponse other) {
if (other == null) {
return;
}
blockedPlayers_.Add(other.blockedPlayers_);
recentPlayers_.Add(other.recentPlayers_);
role_.Add(other.role_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
blockedPlayers_.AddEntriesFrom(input, _repeated_blockedPlayers_codec);
break;
}
case 18: {
recentPlayers_.AddEntriesFrom(input, _repeated_recentPlayers_codec);
break;
}
case 26: {
role_.AddEntriesFrom(input, _repeated_role_codec);
break;
}
}
}
}
}
public sealed partial class UnsubscribeRequest : pb::IMessage<UnsubscribeRequest> {
private static readonly pb::MessageParser<UnsubscribeRequest> _parser = new pb::MessageParser<UnsubscribeRequest>(() => new UnsubscribeRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UnsubscribeRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeRequest(UnsubscribeRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
objectId_ = other.objectId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeRequest Clone() {
return new UnsubscribeRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "object_id" field.</summary>
public const int ObjectIdFieldNumber = 2;
private readonly static ulong ObjectIdDefaultValue = 0UL;
private ulong objectId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ObjectId {
get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } }
set {
_hasBits0 |= 1;
objectId_ = value;
}
}
/// <summary>Gets whether the "object_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasObjectId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "object_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearObjectId() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UnsubscribeRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UnsubscribeRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ObjectId != other.ObjectId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasObjectId) hash ^= ObjectId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasObjectId) {
output.WriteRawTag(16);
output.WriteUInt64(ObjectId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasObjectId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UnsubscribeRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasObjectId) {
ObjectId = other.ObjectId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 16: {
ObjectId = input.ReadUInt64();
break;
}
}
}
}
}
public sealed partial class AddRecentPlayersRequest : pb::IMessage<AddRecentPlayersRequest> {
private static readonly pb::MessageParser<AddRecentPlayersRequest> _parser = new pb::MessageParser<AddRecentPlayersRequest>(() => new AddRecentPlayersRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<AddRecentPlayersRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AddRecentPlayersRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AddRecentPlayersRequest(AddRecentPlayersRequest other) : this() {
_hasBits0 = other._hasBits0;
players_ = other.players_.Clone();
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
program_ = other.program_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AddRecentPlayersRequest Clone() {
return new AddRecentPlayersRequest(this);
}
/// <summary>Field number for the "players" field.</summary>
public const int PlayersFieldNumber = 1;
private static readonly pb::FieldCodec<global::Bgs.Protocol.UserManager.V1.RecentPlayer> _repeated_players_codec
= pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer> players_ = new pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer> Players {
get { return players_; }
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "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 AddRecentPlayersRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(AddRecentPlayersRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!players_.Equals(other.players_)) return false;
if (!object.Equals(AgentId, other.AgentId)) return false;
if (Program != other.Program) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= players_.GetHashCode();
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasProgram) hash ^= Program.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
players_.WriteTo(output, _repeated_players_codec);
if (HasAgentId) {
output.WriteRawTag(18);
output.WriteMessage(AgentId);
}
if (HasProgram) {
output.WriteRawTag(24);
output.WriteUInt32(Program);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += players_.CalculateSize(_repeated_players_codec);
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasProgram) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(AddRecentPlayersRequest other) {
if (other == null) {
return;
}
players_.Add(other.players_);
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasProgram) {
Program = other.Program;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
players_.AddEntriesFrom(input, _repeated_players_codec);
break;
}
case 18: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
Program = input.ReadUInt32();
break;
}
}
}
}
}
public sealed partial class ClearRecentPlayersRequest : pb::IMessage<ClearRecentPlayersRequest> {
private static readonly pb::MessageParser<ClearRecentPlayersRequest> _parser = new pb::MessageParser<ClearRecentPlayersRequest>(() => new ClearRecentPlayersRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ClearRecentPlayersRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClearRecentPlayersRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClearRecentPlayersRequest(ClearRecentPlayersRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
program_ = other.program_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClearRecentPlayersRequest Clone() {
return new ClearRecentPlayersRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "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) {
return Equals(other as ClearRecentPlayersRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ClearRecentPlayersRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (Program != other.Program) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasProgram) hash ^= Program.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasProgram) {
output.WriteRawTag(16);
output.WriteUInt32(Program);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasProgram) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ClearRecentPlayersRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasProgram) {
Program = other.Program;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 16: {
Program = input.ReadUInt32();
break;
}
}
}
}
}
public sealed partial class BlockPlayerRequest : pb::IMessage<BlockPlayerRequest> {
private static readonly pb::MessageParser<BlockPlayerRequest> _parser = new pb::MessageParser<BlockPlayerRequest>(() => new BlockPlayerRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BlockPlayerRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockPlayerRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockPlayerRequest(BlockPlayerRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
targetId_ = other.HasTargetId ? other.targetId_.Clone() : null;
role_ = other.role_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockPlayerRequest Clone() {
return new BlockPlayerRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "target_id" field.</summary>
public const int TargetIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId targetId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId TargetId {
get { return targetId_; }
set {
targetId_ = value;
}
}
/// <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 "role" field.</summary>
public const int RoleFieldNumber = 3;
private readonly static uint RoleDefaultValue = 0;
private uint role_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Role {
get { if ((_hasBits0 & 1) != 0) { return role_; } else { return RoleDefaultValue; } }
set {
_hasBits0 |= 1;
role_ = value;
}
}
/// <summary>Gets whether the "role" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasRole {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "role" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearRole() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as BlockPlayerRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(BlockPlayerRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (!object.Equals(TargetId, other.TargetId)) return false;
if (Role != other.Role) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasTargetId) hash ^= TargetId.GetHashCode();
if (HasRole) hash ^= Role.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasTargetId) {
output.WriteRawTag(18);
output.WriteMessage(TargetId);
}
if (HasRole) {
output.WriteRawTag(24);
output.WriteUInt32(Role);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasTargetId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
}
if (HasRole) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Role);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(BlockPlayerRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasTargetId) {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
TargetId.MergeFrom(other.TargetId);
}
if (other.HasRole) {
Role = other.Role;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 18: {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(TargetId);
break;
}
case 24: {
Role = input.ReadUInt32();
break;
}
}
}
}
}
public sealed partial class UnblockPlayerRequest : pb::IMessage<UnblockPlayerRequest> {
private static readonly pb::MessageParser<UnblockPlayerRequest> _parser = new pb::MessageParser<UnblockPlayerRequest>(() => new UnblockPlayerRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UnblockPlayerRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnblockPlayerRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnblockPlayerRequest(UnblockPlayerRequest other) : this() {
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
targetId_ = other.HasTargetId ? other.targetId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnblockPlayerRequest Clone() {
return new UnblockPlayerRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "target_id" field.</summary>
public const int TargetIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId targetId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId TargetId {
get { return targetId_; }
set {
targetId_ = value;
}
}
/// <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;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UnblockPlayerRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UnblockPlayerRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (!object.Equals(TargetId, other.TargetId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasTargetId) hash ^= TargetId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasTargetId) {
output.WriteRawTag(18);
output.WriteMessage(TargetId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasTargetId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UnblockPlayerRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasTargetId) {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
TargetId.MergeFrom(other.TargetId);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 18: {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(TargetId);
break;
}
}
}
}
}
public sealed partial class BlockedPlayerAddedNotification : pb::IMessage<BlockedPlayerAddedNotification> {
private static readonly pb::MessageParser<BlockedPlayerAddedNotification> _parser = new pb::MessageParser<BlockedPlayerAddedNotification>(() => new BlockedPlayerAddedNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BlockedPlayerAddedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayerAddedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayerAddedNotification(BlockedPlayerAddedNotification other) : this() {
player_ = other.HasPlayer ? other.player_.Clone() : null;
gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null;
accountId_ = other.HasAccountId ? other.accountId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayerAddedNotification Clone() {
return new BlockedPlayerAddedNotification(this);
}
/// <summary>Field number for the "player" field.</summary>
public const int PlayerFieldNumber = 1;
private global::Bgs.Protocol.UserManager.V1.BlockedPlayer player_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.UserManager.V1.BlockedPlayer Player {
get { return player_; }
set {
player_ = value;
}
}
/// <summary>Gets whether the player field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPlayer {
get { return player_ != null; }
}
/// <summary>Clears the value of the player field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearPlayer() {
player_ = null;
}
/// <summary>Field number for the "game_account_id" field.</summary>
public const int GameAccountIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId gameAccountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId GameAccountId {
get { return gameAccountId_; }
set {
gameAccountId_ = value;
}
}
/// <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;
}
/// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 3;
private global::Bgs.Protocol.EntityId accountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; }
set {
accountId_ = value;
}
}
/// <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;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as BlockedPlayerAddedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(BlockedPlayerAddedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Player, other.Player)) return false;
if (!object.Equals(GameAccountId, other.GameAccountId)) return false;
if (!object.Equals(AccountId, other.AccountId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasPlayer) hash ^= Player.GetHashCode();
if (HasGameAccountId) hash ^= GameAccountId.GetHashCode();
if (HasAccountId) hash ^= AccountId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasPlayer) {
output.WriteRawTag(10);
output.WriteMessage(Player);
}
if (HasGameAccountId) {
output.WriteRawTag(18);
output.WriteMessage(GameAccountId);
}
if (HasAccountId) {
output.WriteRawTag(26);
output.WriteMessage(AccountId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasPlayer) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Player);
}
if (HasGameAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId);
}
if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(BlockedPlayerAddedNotification other) {
if (other == null) {
return;
}
if (other.HasPlayer) {
if (!HasPlayer) {
Player = new global::Bgs.Protocol.UserManager.V1.BlockedPlayer();
}
Player.MergeFrom(other.Player);
}
if (other.HasGameAccountId) {
if (!HasGameAccountId) {
GameAccountId = new global::Bgs.Protocol.EntityId();
}
GameAccountId.MergeFrom(other.GameAccountId);
}
if (other.HasAccountId) {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
AccountId.MergeFrom(other.AccountId);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasPlayer) {
Player = new global::Bgs.Protocol.UserManager.V1.BlockedPlayer();
}
input.ReadMessage(Player);
break;
}
case 18: {
if (!HasGameAccountId) {
GameAccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(GameAccountId);
break;
}
case 26: {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AccountId);
break;
}
}
}
}
}
public sealed partial class BlockedPlayerRemovedNotification : pb::IMessage<BlockedPlayerRemovedNotification> {
private static readonly pb::MessageParser<BlockedPlayerRemovedNotification> _parser = new pb::MessageParser<BlockedPlayerRemovedNotification>(() => new BlockedPlayerRemovedNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BlockedPlayerRemovedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[8]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayerRemovedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayerRemovedNotification(BlockedPlayerRemovedNotification other) : this() {
player_ = other.HasPlayer ? other.player_.Clone() : null;
gameAccountId_ = other.HasGameAccountId ? other.gameAccountId_.Clone() : null;
accountId_ = other.HasAccountId ? other.accountId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BlockedPlayerRemovedNotification Clone() {
return new BlockedPlayerRemovedNotification(this);
}
/// <summary>Field number for the "player" field.</summary>
public const int PlayerFieldNumber = 1;
private global::Bgs.Protocol.UserManager.V1.BlockedPlayer player_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.UserManager.V1.BlockedPlayer Player {
get { return player_; }
set {
player_ = value;
}
}
/// <summary>Gets whether the player field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPlayer {
get { return player_ != null; }
}
/// <summary>Clears the value of the player field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearPlayer() {
player_ = null;
}
/// <summary>Field number for the "game_account_id" field.</summary>
public const int GameAccountIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId gameAccountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId GameAccountId {
get { return gameAccountId_; }
set {
gameAccountId_ = value;
}
}
/// <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;
}
/// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 3;
private global::Bgs.Protocol.EntityId accountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; }
set {
accountId_ = value;
}
}
/// <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;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as BlockedPlayerRemovedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(BlockedPlayerRemovedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Player, other.Player)) return false;
if (!object.Equals(GameAccountId, other.GameAccountId)) return false;
if (!object.Equals(AccountId, other.AccountId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasPlayer) hash ^= Player.GetHashCode();
if (HasGameAccountId) hash ^= GameAccountId.GetHashCode();
if (HasAccountId) hash ^= AccountId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasPlayer) {
output.WriteRawTag(10);
output.WriteMessage(Player);
}
if (HasGameAccountId) {
output.WriteRawTag(18);
output.WriteMessage(GameAccountId);
}
if (HasAccountId) {
output.WriteRawTag(26);
output.WriteMessage(AccountId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasPlayer) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Player);
}
if (HasGameAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId);
}
if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(BlockedPlayerRemovedNotification other) {
if (other == null) {
return;
}
if (other.HasPlayer) {
if (!HasPlayer) {
Player = new global::Bgs.Protocol.UserManager.V1.BlockedPlayer();
}
Player.MergeFrom(other.Player);
}
if (other.HasGameAccountId) {
if (!HasGameAccountId) {
GameAccountId = new global::Bgs.Protocol.EntityId();
}
GameAccountId.MergeFrom(other.GameAccountId);
}
if (other.HasAccountId) {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
AccountId.MergeFrom(other.AccountId);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasPlayer) {
Player = new global::Bgs.Protocol.UserManager.V1.BlockedPlayer();
}
input.ReadMessage(Player);
break;
}
case 18: {
if (!HasGameAccountId) {
GameAccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(GameAccountId);
break;
}
case 26: {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AccountId);
break;
}
}
}
}
}
public sealed partial class RecentPlayersAddedNotification : pb::IMessage<RecentPlayersAddedNotification> {
private static readonly pb::MessageParser<RecentPlayersAddedNotification> _parser = new pb::MessageParser<RecentPlayersAddedNotification>(() => new RecentPlayersAddedNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RecentPlayersAddedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[9]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayersAddedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayersAddedNotification(RecentPlayersAddedNotification other) : this() {
player_ = other.player_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayersAddedNotification Clone() {
return new RecentPlayersAddedNotification(this);
}
/// <summary>Field number for the "player" field.</summary>
public const int PlayerFieldNumber = 1;
private static readonly pb::FieldCodec<global::Bgs.Protocol.UserManager.V1.RecentPlayer> _repeated_player_codec
= pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer> player_ = new pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer> Player {
get { return player_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RecentPlayersAddedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RecentPlayersAddedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!player_.Equals(other.player_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= player_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
player_.WriteTo(output, _repeated_player_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += player_.CalculateSize(_repeated_player_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RecentPlayersAddedNotification other) {
if (other == null) {
return;
}
player_.Add(other.player_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
player_.AddEntriesFrom(input, _repeated_player_codec);
break;
}
}
}
}
}
public sealed partial class RecentPlayersRemovedNotification : pb::IMessage<RecentPlayersRemovedNotification> {
private static readonly pb::MessageParser<RecentPlayersRemovedNotification> _parser = new pb::MessageParser<RecentPlayersRemovedNotification>(() => new RecentPlayersRemovedNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RecentPlayersRemovedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.UserManager.V1.UserManagerServiceReflection.Descriptor.MessageTypes[10]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayersRemovedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayersRemovedNotification(RecentPlayersRemovedNotification other) : this() {
player_ = other.player_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RecentPlayersRemovedNotification Clone() {
return new RecentPlayersRemovedNotification(this);
}
/// <summary>Field number for the "player" field.</summary>
public const int PlayerFieldNumber = 1;
private static readonly pb::FieldCodec<global::Bgs.Protocol.UserManager.V1.RecentPlayer> _repeated_player_codec
= pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.UserManager.V1.RecentPlayer.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer> player_ = new pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.UserManager.V1.RecentPlayer> Player {
get { return player_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RecentPlayersRemovedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RecentPlayersRemovedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!player_.Equals(other.player_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= player_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
player_.WriteTo(output, _repeated_player_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += player_.CalculateSize(_repeated_player_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RecentPlayersRemovedNotification other) {
if (other == null) {
return;
}
player_.Add(other.player_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
player_.AddEntriesFrom(input, _repeated_player_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code