Files
CypherCore/Source/Framework/Proto/ClubNotification.cs
T
2021-10-01 12:49:34 -04:00

5224 lines
186 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/club_notification.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_notification.proto</summary>
public static partial class ClubNotificationReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/club_notification.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ClubNotificationReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiliZ3MvbG93L3BiL2NsaWVudC9jbHViX25vdGlmaWNhdGlvbi5wcm90bxIU",
"YmdzLnByb3RvY29sLmNsdWIudjEaImJncy9sb3cvcGIvY2xpZW50L2NsdWJf",
"dHlwZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90",
"bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVzc2Fn",
"ZV9vcHRpb25zLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0",
"ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjhiZ3MvbG93L3BiL2NsaWVu",
"dC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rfb3B0aW9ucy5wcm90bxo5Ymdz",
"L2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvc2VydmljZV9vcHRp",
"b25zLnByb3RvIpYCChVTdWJzY3JpYmVOb3RpZmljYXRpb24SMAoIYWdlbnRf",
"aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj",
"bHViX2lkGAMgASgEEigKBGNsdWIYBCABKAsyGi5iZ3MucHJvdG9jb2wuY2x1",
"Yi52MS5DbHViEiwKBHZpZXcYBSABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52",
"MS5DbHViVmlldxI0CghzZXR0aW5ncxgKIAEoCzIiLmJncy5wcm90b2NvbC5j",
"bHViLnYxLkNsdWJTZXR0aW5ncxIsCgZtZW1iZXIYCyABKAsyHC5iZ3MucHJv",
"dG9jb2wuY2x1Yi52MS5NZW1iZXIiXAoXVW5zdWJzY3JpYmVOb3RpZmljYXRp",
"b24SMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5N",
"ZW1iZXJJZBIPCgdjbHViX2lkGAMgASgEIpwBChhTdGF0ZUNoYW5nZWROb3Rp",
"ZmljYXRpb24SMAoIYWdlbnRfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1",
"Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAMgASgEEj0KCmFzc2lnbm1lbnQY",
"BSABKAsyKS5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViU3RhdGVBc3NpZ25t",
"ZW50IqIBChtTZXR0aW5nc0NoYW5nZWROb3RpZmljYXRpb24SMAoIYWdlbnRf",
"aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj",
"bHViX2lkGAMgASgEEkAKCmFzc2lnbm1lbnQYBCABKAsyLC5iZ3MucHJvdG9j",
"b2wuY2x1Yi52MS5DbHViU2V0dGluZ3NBc3NpZ25tZW50IooBChdNZW1iZXJB",
"ZGRlZE5vdGlmaWNhdGlvbhIwCghhZ2VudF9pZBgBIAEoCzIeLmJncy5wcm90",
"b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAyABKAQSLAoGbWVt",
"YmVyGAQgAygLMhwuYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVyIp0BChlN",
"ZW1iZXJSZW1vdmVkTm90aWZpY2F0aW9uEjAKCGFnZW50X2lkGAEgASgLMh4u",
"YmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgDIAEo",
"BBI9CgZtZW1iZXIYBCADKAsyLS5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1i",
"ZXJSZW1vdmVkQXNzaWdubWVudCKkAQoeTWVtYmVyU3RhdGVDaGFuZ2VkTm90",
"aWZpY2F0aW9uEjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNs",
"dWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgDIAEoBBI/Cgphc3NpZ25tZW50",
"GAQgAygLMisuYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVyU3RhdGVBc3Np",
"Z25tZW50IqwBCiJTdWJzY3JpYmVyU3RhdGVDaGFuZ2VkTm90aWZpY2F0aW9u",
"EjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVt",
"YmVySWQSDwoHY2x1Yl9pZBgDIAEoBBJDCgphc3NpZ25tZW50GAQgAygLMi8u",
"YmdzLnByb3RvY29sLmNsdWIudjEuU3Vic2NyaWJlclN0YXRlQXNzaWdubWVu",
"dCKcAQodTWVtYmVyUm9sZUNoYW5nZWROb3RpZmljYXRpb24SMAoIYWdlbnRf",
"aWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdj",
"bHViX2lkGAMgASgEEjgKCmFzc2lnbm1lbnQYBCADKAsyJC5iZ3MucHJvdG9j",
"b2wuY2x1Yi52MS5Sb2xlQXNzaWdubWVudCKaAQobSW52aXRhdGlvbkFkZGVk",
"Tm90aWZpY2F0aW9uEjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29s",
"LmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgDIAEoBBI4CgppbnZpdGF0",
"aW9uGAQgASgLMiQuYmdzLnByb3RvY29sLmNsdWIudjEuQ2x1Ykludml0YXRp",
"b24i1AEKHUludml0YXRpb25SZW1vdmVkTm90aWZpY2F0aW9uEjAKCGFnZW50",
"X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoH",
"Y2x1Yl9pZBgDIAEoBBIVCg1pbnZpdGF0aW9uX2lkGAQgASgGElkKBnJlYXNv",
"bhgFIAEoDjIlLmJncy5wcm90b2NvbC5JbnZpdGF0aW9uUmVtb3ZlZFJlYXNv",
"bjoiSU5WSVRBVElPTl9SRU1PVkVEX1JFQVNPTl9BQ0NFUFRFRCKaAQobU3Vn",
"Z2VzdGlvbkFkZGVkTm90aWZpY2F0aW9uEjAKCGFnZW50X2lkGAEgASgLMh4u",
"YmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQSDwoHY2x1Yl9pZBgDIAEo",
"BBI4CgpzdWdnZXN0aW9uGAQgASgLMiQuYmdzLnByb3RvY29sLmNsdWIudjEu",
"Q2x1YlN1Z2dlc3Rpb24i1AEKHVN1Z2dlc3Rpb25SZW1vdmVkTm90aWZpY2F0",
"aW9uEjAKCGFnZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEu",
"TWVtYmVySWQSDwoHY2x1Yl9pZBgDIAEoBBIVCg1zdWdnZXN0aW9uX2lkGAQg",
"ASgGElkKBnJlYXNvbhgFIAEoDjIlLmJncy5wcm90b2NvbC5TdWdnZXN0aW9u",
"UmVtb3ZlZFJlYXNvbjoiU1VHR0VTVElPTl9SRU1PVkVEX1JFQVNPTl9BUFBS",
"T1ZFRCKKAQoXU3RyZWFtQWRkZWROb3RpZmljYXRpb24SMAoIYWdlbnRfaWQY",
"ASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHVi",
"X2lkGAMgASgEEiwKBnN0cmVhbRgEIAEoCzIcLmJncy5wcm90b2NvbC5jbHVi",
"LnYxLlN0cmVhbSJxChlTdHJlYW1SZW1vdmVkTm90aWZpY2F0aW9uEjAKCGFn",
"ZW50X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVySWQS",
"DwoHY2x1Yl9pZBgDIAEoBBIRCglzdHJlYW1faWQYBCABKAQitwEKHlN0cmVh",
"bVN0YXRlQ2hhbmdlZE5vdGlmaWNhdGlvbhIwCghhZ2VudF9pZBgBIAEoCzIe",
"LmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAyAB",
"KAQSEQoJc3RyZWFtX2lkGAQgASgEEj8KCmFzc2lnbm1lbnQYBSABKAsyKy5i",
"Z3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1TdGF0ZUFzc2lnbm1lbnQirAEK",
"HlN0cmVhbU1lc3NhZ2VBZGRlZE5vdGlmaWNhdGlvbhIwCghhZ2VudF9pZBgB",
"IAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJf",
"aWQYAyABKAQSEQoJc3RyZWFtX2lkGAQgASgEEjQKB21lc3NhZ2UYBSABKAsy",
"Iy5iZ3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1NZXNzYWdlIq4BCiBTdHJl",
"YW1NZXNzYWdlVXBkYXRlZE5vdGlmaWNhdGlvbhIwCghhZ2VudF9pZBgBIAEo",
"CzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQY",
"AyABKAQSEQoJc3RyZWFtX2lkGAQgASgEEjQKB21lc3NhZ2UYBSABKAsyIy5i",
"Z3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1NZXNzYWdlIrkBCiFTdHJlYW1U",
"eXBpbmdJbmRpY2F0b3JOb3RpZmljYXRpb24SMAoIYWdlbnRfaWQYASABKAsy",
"Hi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIPCgdjbHViX2lkGAMg",
"ASgEEhEKCXN0cmVhbV9pZBgEIAEoBBI+CglpbmRpY2F0b3IYBSADKAsyKy5i",
"Z3MucHJvdG9jb2wuY2x1Yi52MS5TdHJlYW1UeXBpbmdJbmRpY2F0b3Ii0gEK",
"IVN0cmVhbVVucmVhZEluZGljYXRvck5vdGlmaWNhdGlvbhIwCghhZ2VudF9p",
"ZBgBIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2Ns",
"dWJfaWQYAyABKAQSNAoFZXZlbnQYBCABKAsyJS5iZ3MucHJvdG9jb2wuY2x1",
"Yi52MS5TdHJlYW1FdmVudFRpbWUSNAoHbWVzc2FnZRgFIAEoCzIjLmJncy5w",
"cm90b2NvbC5jbHViLnYxLlN0cmVhbU1lc3NhZ2UioQEKIVN0cmVhbUFkdmFu",
"Y2VWaWV3VGltZU5vdGlmaWNhdGlvbhIwCghhZ2VudF9pZBgBIAEoCzIeLmJn",
"cy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEg8KB2NsdWJfaWQYAyABKAQS",
"OQoEdmlldxgEIAMoCzIrLmJncy5wcm90b2NvbC5jbHViLnYxLlN0cmVhbUFk",
"dmFuY2VWaWV3VGltZVAAUAE="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscribeNotification), global::Bgs.Protocol.Club.V1.SubscribeNotification.Parser, new[]{ "AgentId", "ClubId", "Club", "View", "Settings", "Member" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UnsubscribeNotification), global::Bgs.Protocol.Club.V1.UnsubscribeNotification.Parser, new[]{ "AgentId", "ClubId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StateChangedNotification), global::Bgs.Protocol.Club.V1.StateChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SettingsChangedNotification), global::Bgs.Protocol.Club.V1.SettingsChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberAddedNotification), global::Bgs.Protocol.Club.V1.MemberAddedNotification.Parser, new[]{ "AgentId", "ClubId", "Member" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberRemovedNotification), global::Bgs.Protocol.Club.V1.MemberRemovedNotification.Parser, new[]{ "AgentId", "ClubId", "Member" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberStateChangedNotification), global::Bgs.Protocol.Club.V1.MemberStateChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscriberStateChangedNotification), global::Bgs.Protocol.Club.V1.SubscriberStateChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberRoleChangedNotification), global::Bgs.Protocol.Club.V1.MemberRoleChangedNotification.Parser, new[]{ "AgentId", "ClubId", "Assignment" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.InvitationAddedNotification), global::Bgs.Protocol.Club.V1.InvitationAddedNotification.Parser, new[]{ "AgentId", "ClubId", "Invitation" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.InvitationRemovedNotification), global::Bgs.Protocol.Club.V1.InvitationRemovedNotification.Parser, new[]{ "AgentId", "ClubId", "InvitationId", "Reason" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SuggestionAddedNotification), global::Bgs.Protocol.Club.V1.SuggestionAddedNotification.Parser, new[]{ "AgentId", "ClubId", "Suggestion" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SuggestionRemovedNotification), global::Bgs.Protocol.Club.V1.SuggestionRemovedNotification.Parser, new[]{ "AgentId", "ClubId", "SuggestionId", "Reason" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamAddedNotification), global::Bgs.Protocol.Club.V1.StreamAddedNotification.Parser, new[]{ "AgentId", "ClubId", "Stream" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamRemovedNotification), global::Bgs.Protocol.Club.V1.StreamRemovedNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamStateChangedNotification), global::Bgs.Protocol.Club.V1.StreamStateChangedNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Assignment" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamMessageAddedNotification), global::Bgs.Protocol.Club.V1.StreamMessageAddedNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Message" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamMessageUpdatedNotification), global::Bgs.Protocol.Club.V1.StreamMessageUpdatedNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Message" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamTypingIndicatorNotification), global::Bgs.Protocol.Club.V1.StreamTypingIndicatorNotification.Parser, new[]{ "AgentId", "ClubId", "StreamId", "Indicator" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamUnreadIndicatorNotification), global::Bgs.Protocol.Club.V1.StreamUnreadIndicatorNotification.Parser, new[]{ "AgentId", "ClubId", "Event", "Message" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.StreamAdvanceViewTimeNotification), global::Bgs.Protocol.Club.V1.StreamAdvanceViewTimeNotification.Parser, new[]{ "AgentId", "ClubId", "View" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class SubscribeNotification : pb::IMessage<SubscribeNotification> {
private static readonly pb::MessageParser<SubscribeNotification> _parser = new pb::MessageParser<SubscribeNotification>(() => new SubscribeNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[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.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeNotification(SubscribeNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
club_ = other.HasClub ? other.club_.Clone() : null;
view_ = other.HasView ? other.view_.Clone() : null;
settings_ = other.HasSettings ? other.settings_.Clone() : null;
member_ = other.HasMember ? other.member_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeNotification Clone() {
return new SubscribeNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "club" field.</summary>
public const int ClubFieldNumber = 4;
private global::Bgs.Protocol.Club.V1.Club club_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.Club Club {
get { return club_; }
set {
club_ = value;
}
}
/// <summary>Gets whether the club field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasClub {
get { return club_ != null; }
}
/// <summary>Clears the value of the club field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearClub() {
club_ = null;
}
/// <summary>Field number for the "view" field.</summary>
public const int ViewFieldNumber = 5;
private global::Bgs.Protocol.Club.V1.ClubView view_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.ClubView View {
get { return view_; }
set {
view_ = value;
}
}
/// <summary>Gets whether the view field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasView {
get { return view_ != null; }
}
/// <summary>Clears the value of the view field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearView() {
view_ = null;
}
/// <summary>Field number for the "settings" field.</summary>
public const int SettingsFieldNumber = 10;
private global::Bgs.Protocol.Club.V1.ClubSettings settings_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.ClubSettings Settings {
get { return settings_; }
set {
settings_ = value;
}
}
/// <summary>Gets whether the settings field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSettings {
get { return settings_ != null; }
}
/// <summary>Clears the value of the settings field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSettings() {
settings_ = null;
}
/// <summary>Field number for the "member" field.</summary>
public const int MemberFieldNumber = 11;
private global::Bgs.Protocol.Club.V1.Member member_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.Member Member {
get { return member_; }
set {
member_ = value;
}
}
/// <summary>Gets whether the member field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMember {
get { return member_ != null; }
}
/// <summary>Clears the value of the member field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMember() {
member_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SubscribeNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubscribeNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (!object.Equals(Club, other.Club)) return false;
if (!object.Equals(View, other.View)) return false;
if (!object.Equals(Settings, other.Settings)) return false;
if (!object.Equals(Member, other.Member)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasClub) hash ^= Club.GetHashCode();
if (HasView) hash ^= View.GetHashCode();
if (HasSettings) hash ^= Settings.GetHashCode();
if (HasMember) hash ^= Member.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasClub) {
output.WriteRawTag(34);
output.WriteMessage(Club);
}
if (HasView) {
output.WriteRawTag(42);
output.WriteMessage(View);
}
if (HasSettings) {
output.WriteRawTag(82);
output.WriteMessage(Settings);
}
if (HasMember) {
output.WriteRawTag(90);
output.WriteMessage(Member);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasClub) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Club);
}
if (HasView) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(View);
}
if (HasSettings) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings);
}
if (HasMember) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Member);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubscribeNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasClub) {
if (!HasClub) {
Club = new global::Bgs.Protocol.Club.V1.Club();
}
Club.MergeFrom(other.Club);
}
if (other.HasView) {
if (!HasView) {
View = new global::Bgs.Protocol.Club.V1.ClubView();
}
View.MergeFrom(other.View);
}
if (other.HasSettings) {
if (!HasSettings) {
Settings = new global::Bgs.Protocol.Club.V1.ClubSettings();
}
Settings.MergeFrom(other.Settings);
}
if (other.HasMember) {
if (!HasMember) {
Member = new global::Bgs.Protocol.Club.V1.Member();
}
Member.MergeFrom(other.Member);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
if (!HasClub) {
Club = new global::Bgs.Protocol.Club.V1.Club();
}
input.ReadMessage(Club);
break;
}
case 42: {
if (!HasView) {
View = new global::Bgs.Protocol.Club.V1.ClubView();
}
input.ReadMessage(View);
break;
}
case 82: {
if (!HasSettings) {
Settings = new global::Bgs.Protocol.Club.V1.ClubSettings();
}
input.ReadMessage(Settings);
break;
}
case 90: {
if (!HasMember) {
Member = new global::Bgs.Protocol.Club.V1.Member();
}
input.ReadMessage(Member);
break;
}
}
}
}
}
public sealed partial class UnsubscribeNotification : pb::IMessage<UnsubscribeNotification> {
private static readonly pb::MessageParser<UnsubscribeNotification> _parser = new pb::MessageParser<UnsubscribeNotification>(() => new UnsubscribeNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UnsubscribeNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeNotification(UnsubscribeNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeNotification Clone() {
return new UnsubscribeNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UnsubscribeNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UnsubscribeNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UnsubscribeNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
}
}
}
}
public sealed partial class StateChangedNotification : pb::IMessage<StateChangedNotification> {
private static readonly pb::MessageParser<StateChangedNotification> _parser = new pb::MessageParser<StateChangedNotification>(() => new StateChangedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[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.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StateChangedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StateChangedNotification(StateChangedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
assignment_ = other.HasAssignment ? other.assignment_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StateChangedNotification Clone() {
return new StateChangedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "assignment" field.</summary>
public const int AssignmentFieldNumber = 5;
private global::Bgs.Protocol.Club.V1.ClubStateAssignment assignment_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.ClubStateAssignment Assignment {
get { return assignment_; }
set {
assignment_ = value;
}
}
/// <summary>Gets whether the assignment field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAssignment {
get { return assignment_ != null; }
}
/// <summary>Clears the value of the assignment field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAssignment() {
assignment_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StateChangedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StateChangedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (!object.Equals(Assignment, other.Assignment)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasAssignment) hash ^= Assignment.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasAssignment) {
output.WriteRawTag(42);
output.WriteMessage(Assignment);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasAssignment) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StateChangedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasAssignment) {
if (!HasAssignment) {
Assignment = new global::Bgs.Protocol.Club.V1.ClubStateAssignment();
}
Assignment.MergeFrom(other.Assignment);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 42: {
if (!HasAssignment) {
Assignment = new global::Bgs.Protocol.Club.V1.ClubStateAssignment();
}
input.ReadMessage(Assignment);
break;
}
}
}
}
}
public sealed partial class SettingsChangedNotification : pb::IMessage<SettingsChangedNotification> {
private static readonly pb::MessageParser<SettingsChangedNotification> _parser = new pb::MessageParser<SettingsChangedNotification>(() => new SettingsChangedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SettingsChangedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SettingsChangedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SettingsChangedNotification(SettingsChangedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
assignment_ = other.HasAssignment ? other.assignment_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SettingsChangedNotification Clone() {
return new SettingsChangedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "assignment" field.</summary>
public const int AssignmentFieldNumber = 4;
private global::Bgs.Protocol.Club.V1.ClubSettingsAssignment assignment_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.ClubSettingsAssignment Assignment {
get { return assignment_; }
set {
assignment_ = value;
}
}
/// <summary>Gets whether the assignment field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAssignment {
get { return assignment_ != null; }
}
/// <summary>Clears the value of the assignment field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAssignment() {
assignment_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SettingsChangedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SettingsChangedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (!object.Equals(Assignment, other.Assignment)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasAssignment) hash ^= Assignment.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasAssignment) {
output.WriteRawTag(34);
output.WriteMessage(Assignment);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasAssignment) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SettingsChangedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasAssignment) {
if (!HasAssignment) {
Assignment = new global::Bgs.Protocol.Club.V1.ClubSettingsAssignment();
}
Assignment.MergeFrom(other.Assignment);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
if (!HasAssignment) {
Assignment = new global::Bgs.Protocol.Club.V1.ClubSettingsAssignment();
}
input.ReadMessage(Assignment);
break;
}
}
}
}
}
public sealed partial class MemberAddedNotification : pb::IMessage<MemberAddedNotification> {
private static readonly pb::MessageParser<MemberAddedNotification> _parser = new pb::MessageParser<MemberAddedNotification>(() => new MemberAddedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberAddedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberAddedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberAddedNotification(MemberAddedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
member_ = other.member_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberAddedNotification Clone() {
return new MemberAddedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "member" field.</summary>
public const int MemberFieldNumber = 4;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.Member> _repeated_member_codec
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.Member.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.Member> member_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.Member>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.Member> Member {
get { return member_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberAddedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberAddedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if(!member_.Equals(other.member_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
hash ^= member_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
member_.WriteTo(output, _repeated_member_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
size += member_.CalculateSize(_repeated_member_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberAddedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
member_.Add(other.member_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
member_.AddEntriesFrom(input, _repeated_member_codec);
break;
}
}
}
}
}
public sealed partial class MemberRemovedNotification : pb::IMessage<MemberRemovedNotification> {
private static readonly pb::MessageParser<MemberRemovedNotification> _parser = new pb::MessageParser<MemberRemovedNotification>(() => new MemberRemovedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberRemovedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRemovedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRemovedNotification(MemberRemovedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
member_ = other.member_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRemovedNotification Clone() {
return new MemberRemovedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "member" field.</summary>
public const int MemberFieldNumber = 4;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.MemberRemovedAssignment> _repeated_member_codec
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.MemberRemovedAssignment.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.MemberRemovedAssignment> member_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.MemberRemovedAssignment>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.MemberRemovedAssignment> Member {
get { return member_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberRemovedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberRemovedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if(!member_.Equals(other.member_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
hash ^= member_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
member_.WriteTo(output, _repeated_member_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
size += member_.CalculateSize(_repeated_member_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberRemovedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
member_.Add(other.member_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
member_.AddEntriesFrom(input, _repeated_member_codec);
break;
}
}
}
}
}
public sealed partial class MemberStateChangedNotification : pb::IMessage<MemberStateChangedNotification> {
private static readonly pb::MessageParser<MemberStateChangedNotification> _parser = new pb::MessageParser<MemberStateChangedNotification>(() => new MemberStateChangedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberStateChangedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateChangedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateChangedNotification(MemberStateChangedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
assignment_ = other.assignment_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateChangedNotification Clone() {
return new MemberStateChangedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "assignment" field.</summary>
public const int AssignmentFieldNumber = 4;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.MemberStateAssignment> _repeated_assignment_codec
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.MemberStateAssignment.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.MemberStateAssignment> assignment_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.MemberStateAssignment>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.MemberStateAssignment> Assignment {
get { return assignment_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberStateChangedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberStateChangedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if(!assignment_.Equals(other.assignment_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
hash ^= assignment_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
assignment_.WriteTo(output, _repeated_assignment_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
size += assignment_.CalculateSize(_repeated_assignment_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberStateChangedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
assignment_.Add(other.assignment_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
assignment_.AddEntriesFrom(input, _repeated_assignment_codec);
break;
}
}
}
}
}
public sealed partial class SubscriberStateChangedNotification : pb::IMessage<SubscriberStateChangedNotification> {
private static readonly pb::MessageParser<SubscriberStateChangedNotification> _parser = new pb::MessageParser<SubscriberStateChangedNotification>(() => new SubscriberStateChangedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubscriberStateChangedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateChangedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateChangedNotification(SubscriberStateChangedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
assignment_ = other.assignment_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateChangedNotification Clone() {
return new SubscriberStateChangedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "assignment" field.</summary>
public const int AssignmentFieldNumber = 4;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.SubscriberStateAssignment> _repeated_assignment_codec
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.SubscriberStateAssignment.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.SubscriberStateAssignment> assignment_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.SubscriberStateAssignment>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.SubscriberStateAssignment> Assignment {
get { return assignment_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SubscriberStateChangedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubscriberStateChangedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if(!assignment_.Equals(other.assignment_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
hash ^= assignment_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
assignment_.WriteTo(output, _repeated_assignment_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
size += assignment_.CalculateSize(_repeated_assignment_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubscriberStateChangedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
assignment_.Add(other.assignment_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
assignment_.AddEntriesFrom(input, _repeated_assignment_codec);
break;
}
}
}
}
}
public sealed partial class MemberRoleChangedNotification : pb::IMessage<MemberRoleChangedNotification> {
private static readonly pb::MessageParser<MemberRoleChangedNotification> _parser = new pb::MessageParser<MemberRoleChangedNotification>(() => new MemberRoleChangedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberRoleChangedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[8]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRoleChangedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRoleChangedNotification(MemberRoleChangedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
assignment_ = other.assignment_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRoleChangedNotification Clone() {
return new MemberRoleChangedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "assignment" field.</summary>
public const int AssignmentFieldNumber = 4;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.RoleAssignment> _repeated_assignment_codec
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.RoleAssignment.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.RoleAssignment> assignment_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.RoleAssignment>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.RoleAssignment> Assignment {
get { return assignment_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberRoleChangedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberRoleChangedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if(!assignment_.Equals(other.assignment_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
hash ^= assignment_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
assignment_.WriteTo(output, _repeated_assignment_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
size += assignment_.CalculateSize(_repeated_assignment_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberRoleChangedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
assignment_.Add(other.assignment_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
assignment_.AddEntriesFrom(input, _repeated_assignment_codec);
break;
}
}
}
}
}
public sealed partial class InvitationAddedNotification : pb::IMessage<InvitationAddedNotification> {
private static readonly pb::MessageParser<InvitationAddedNotification> _parser = new pb::MessageParser<InvitationAddedNotification>(() => new InvitationAddedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<InvitationAddedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[9]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationAddedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationAddedNotification(InvitationAddedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
invitation_ = other.HasInvitation ? other.invitation_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationAddedNotification Clone() {
return new InvitationAddedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "invitation" field.</summary>
public const int InvitationFieldNumber = 4;
private global::Bgs.Protocol.Club.V1.ClubInvitation invitation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.ClubInvitation Invitation {
get { return invitation_; }
set {
invitation_ = value;
}
}
/// <summary>Gets whether the invitation field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitation {
get { return invitation_ != null; }
}
/// <summary>Clears the value of the invitation field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitation() {
invitation_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as InvitationAddedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(InvitationAddedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (!object.Equals(Invitation, other.Invitation)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasInvitation) hash ^= Invitation.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasInvitation) {
output.WriteRawTag(34);
output.WriteMessage(Invitation);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasInvitation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(InvitationAddedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasInvitation) {
if (!HasInvitation) {
Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitation();
}
Invitation.MergeFrom(other.Invitation);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
if (!HasInvitation) {
Invitation = new global::Bgs.Protocol.Club.V1.ClubInvitation();
}
input.ReadMessage(Invitation);
break;
}
}
}
}
}
public sealed partial class InvitationRemovedNotification : pb::IMessage<InvitationRemovedNotification> {
private static readonly pb::MessageParser<InvitationRemovedNotification> _parser = new pb::MessageParser<InvitationRemovedNotification>(() => new InvitationRemovedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<InvitationRemovedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[10]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationRemovedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationRemovedNotification(InvitationRemovedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
invitationId_ = other.invitationId_;
reason_ = other.reason_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationRemovedNotification Clone() {
return new InvitationRemovedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "invitation_id" field.</summary>
public const int InvitationIdFieldNumber = 4;
private readonly static ulong InvitationIdDefaultValue = 0UL;
private ulong invitationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong InvitationId {
get { if ((_hasBits0 & 2) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } }
set {
_hasBits0 |= 2;
invitationId_ = value;
}
}
/// <summary>Gets whether the "invitation_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitationId {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "invitation_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitationId() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "reason" field.</summary>
public const int ReasonFieldNumber = 5;
private readonly static global::Bgs.Protocol.InvitationRemovedReason ReasonDefaultValue = global::Bgs.Protocol.InvitationRemovedReason.Accepted;
private global::Bgs.Protocol.InvitationRemovedReason reason_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.InvitationRemovedReason Reason {
get { if ((_hasBits0 & 4) != 0) { return reason_; } else { return ReasonDefaultValue; } }
set {
_hasBits0 |= 4;
reason_ = value;
}
}
/// <summary>Gets whether the "reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReason {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "reason" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReason() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as InvitationRemovedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(InvitationRemovedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (InvitationId != other.InvitationId) return false;
if (Reason != other.Reason) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasInvitationId) hash ^= InvitationId.GetHashCode();
if (HasReason) hash ^= Reason.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasInvitationId) {
output.WriteRawTag(33);
output.WriteFixed64(InvitationId);
}
if (HasReason) {
output.WriteRawTag(40);
output.WriteEnum((int) Reason);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasInvitationId) {
size += 1 + 8;
}
if (HasReason) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(InvitationRemovedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasInvitationId) {
InvitationId = other.InvitationId;
}
if (other.HasReason) {
Reason = other.Reason;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 33: {
InvitationId = input.ReadFixed64();
break;
}
case 40: {
Reason = (global::Bgs.Protocol.InvitationRemovedReason) input.ReadEnum();
break;
}
}
}
}
}
public sealed partial class SuggestionAddedNotification : pb::IMessage<SuggestionAddedNotification> {
private static readonly pb::MessageParser<SuggestionAddedNotification> _parser = new pb::MessageParser<SuggestionAddedNotification>(() => new SuggestionAddedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SuggestionAddedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[11]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SuggestionAddedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SuggestionAddedNotification(SuggestionAddedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
suggestion_ = other.HasSuggestion ? other.suggestion_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SuggestionAddedNotification Clone() {
return new SuggestionAddedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "suggestion" field.</summary>
public const int SuggestionFieldNumber = 4;
private global::Bgs.Protocol.Club.V1.ClubSuggestion suggestion_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.ClubSuggestion Suggestion {
get { return suggestion_; }
set {
suggestion_ = value;
}
}
/// <summary>Gets whether the suggestion field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSuggestion {
get { return suggestion_ != null; }
}
/// <summary>Clears the value of the suggestion field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSuggestion() {
suggestion_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SuggestionAddedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SuggestionAddedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (!object.Equals(Suggestion, other.Suggestion)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasSuggestion) hash ^= Suggestion.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasSuggestion) {
output.WriteRawTag(34);
output.WriteMessage(Suggestion);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasSuggestion) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggestion);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SuggestionAddedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasSuggestion) {
if (!HasSuggestion) {
Suggestion = new global::Bgs.Protocol.Club.V1.ClubSuggestion();
}
Suggestion.MergeFrom(other.Suggestion);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
if (!HasSuggestion) {
Suggestion = new global::Bgs.Protocol.Club.V1.ClubSuggestion();
}
input.ReadMessage(Suggestion);
break;
}
}
}
}
}
public sealed partial class SuggestionRemovedNotification : pb::IMessage<SuggestionRemovedNotification> {
private static readonly pb::MessageParser<SuggestionRemovedNotification> _parser = new pb::MessageParser<SuggestionRemovedNotification>(() => new SuggestionRemovedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SuggestionRemovedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[12]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SuggestionRemovedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SuggestionRemovedNotification(SuggestionRemovedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
suggestionId_ = other.suggestionId_;
reason_ = other.reason_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SuggestionRemovedNotification Clone() {
return new SuggestionRemovedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "suggestion_id" field.</summary>
public const int SuggestionIdFieldNumber = 4;
private readonly static ulong SuggestionIdDefaultValue = 0UL;
private ulong suggestionId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong SuggestionId {
get { if ((_hasBits0 & 2) != 0) { return suggestionId_; } else { return SuggestionIdDefaultValue; } }
set {
_hasBits0 |= 2;
suggestionId_ = value;
}
}
/// <summary>Gets whether the "suggestion_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSuggestionId {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "suggestion_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSuggestionId() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "reason" field.</summary>
public const int ReasonFieldNumber = 5;
private readonly static global::Bgs.Protocol.SuggestionRemovedReason ReasonDefaultValue = global::Bgs.Protocol.SuggestionRemovedReason.Approved;
private global::Bgs.Protocol.SuggestionRemovedReason reason_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.SuggestionRemovedReason Reason {
get { if ((_hasBits0 & 4) != 0) { return reason_; } else { return ReasonDefaultValue; } }
set {
_hasBits0 |= 4;
reason_ = value;
}
}
/// <summary>Gets whether the "reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReason {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "reason" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReason() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SuggestionRemovedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SuggestionRemovedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (SuggestionId != other.SuggestionId) return false;
if (Reason != other.Reason) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasSuggestionId) hash ^= SuggestionId.GetHashCode();
if (HasReason) hash ^= Reason.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasSuggestionId) {
output.WriteRawTag(33);
output.WriteFixed64(SuggestionId);
}
if (HasReason) {
output.WriteRawTag(40);
output.WriteEnum((int) Reason);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasSuggestionId) {
size += 1 + 8;
}
if (HasReason) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SuggestionRemovedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasSuggestionId) {
SuggestionId = other.SuggestionId;
}
if (other.HasReason) {
Reason = other.Reason;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 33: {
SuggestionId = input.ReadFixed64();
break;
}
case 40: {
Reason = (global::Bgs.Protocol.SuggestionRemovedReason) input.ReadEnum();
break;
}
}
}
}
}
public sealed partial class StreamAddedNotification : pb::IMessage<StreamAddedNotification> {
private static readonly pb::MessageParser<StreamAddedNotification> _parser = new pb::MessageParser<StreamAddedNotification>(() => new StreamAddedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StreamAddedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[13]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamAddedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamAddedNotification(StreamAddedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
stream_ = other.HasStream ? other.stream_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamAddedNotification Clone() {
return new StreamAddedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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" field.</summary>
public const int StreamFieldNumber = 4;
private global::Bgs.Protocol.Club.V1.Stream stream_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.Stream Stream {
get { return stream_; }
set {
stream_ = value;
}
}
/// <summary>Gets whether the stream field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStream {
get { return stream_ != null; }
}
/// <summary>Clears the value of the stream field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStream() {
stream_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StreamAddedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StreamAddedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (!object.Equals(Stream, other.Stream)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasStream) hash ^= Stream.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasStream) {
output.WriteRawTag(34);
output.WriteMessage(Stream);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasStream) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StreamAddedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasStream) {
if (!HasStream) {
Stream = new global::Bgs.Protocol.Club.V1.Stream();
}
Stream.MergeFrom(other.Stream);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
if (!HasStream) {
Stream = new global::Bgs.Protocol.Club.V1.Stream();
}
input.ReadMessage(Stream);
break;
}
}
}
}
}
public sealed partial class StreamRemovedNotification : pb::IMessage<StreamRemovedNotification> {
private static readonly pb::MessageParser<StreamRemovedNotification> _parser = new pb::MessageParser<StreamRemovedNotification>(() => new StreamRemovedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StreamRemovedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[14]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamRemovedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamRemovedNotification(StreamRemovedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
streamId_ = other.streamId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamRemovedNotification Clone() {
return new StreamRemovedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 = 4;
private readonly static ulong StreamIdDefaultValue = 0UL;
private ulong streamId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong StreamId {
get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } }
set {
_hasBits0 |= 2;
streamId_ = value;
}
}
/// <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;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StreamRemovedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StreamRemovedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (StreamId != other.StreamId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasStreamId) hash ^= StreamId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasStreamId) {
output.WriteRawTag(32);
output.WriteUInt64(StreamId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasStreamId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StreamRemovedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasStreamId) {
StreamId = other.StreamId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 32: {
StreamId = input.ReadUInt64();
break;
}
}
}
}
}
public sealed partial class StreamStateChangedNotification : pb::IMessage<StreamStateChangedNotification> {
private static readonly pb::MessageParser<StreamStateChangedNotification> _parser = new pb::MessageParser<StreamStateChangedNotification>(() => new StreamStateChangedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StreamStateChangedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[15]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamStateChangedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamStateChangedNotification(StreamStateChangedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
streamId_ = other.streamId_;
assignment_ = other.HasAssignment ? other.assignment_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamStateChangedNotification Clone() {
return new StreamStateChangedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 = 4;
private readonly static ulong StreamIdDefaultValue = 0UL;
private ulong streamId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong StreamId {
get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } }
set {
_hasBits0 |= 2;
streamId_ = value;
}
}
/// <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 "assignment" field.</summary>
public const int AssignmentFieldNumber = 5;
private global::Bgs.Protocol.Club.V1.StreamStateAssignment assignment_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.StreamStateAssignment Assignment {
get { return assignment_; }
set {
assignment_ = value;
}
}
/// <summary>Gets whether the assignment field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAssignment {
get { return assignment_ != null; }
}
/// <summary>Clears the value of the assignment field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAssignment() {
assignment_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StreamStateChangedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StreamStateChangedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (StreamId != other.StreamId) return false;
if (!object.Equals(Assignment, other.Assignment)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasStreamId) hash ^= StreamId.GetHashCode();
if (HasAssignment) hash ^= Assignment.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasStreamId) {
output.WriteRawTag(32);
output.WriteUInt64(StreamId);
}
if (HasAssignment) {
output.WriteRawTag(42);
output.WriteMessage(Assignment);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasStreamId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId);
}
if (HasAssignment) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StreamStateChangedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasStreamId) {
StreamId = other.StreamId;
}
if (other.HasAssignment) {
if (!HasAssignment) {
Assignment = new global::Bgs.Protocol.Club.V1.StreamStateAssignment();
}
Assignment.MergeFrom(other.Assignment);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 32: {
StreamId = input.ReadUInt64();
break;
}
case 42: {
if (!HasAssignment) {
Assignment = new global::Bgs.Protocol.Club.V1.StreamStateAssignment();
}
input.ReadMessage(Assignment);
break;
}
}
}
}
}
public sealed partial class StreamMessageAddedNotification : pb::IMessage<StreamMessageAddedNotification> {
private static readonly pb::MessageParser<StreamMessageAddedNotification> _parser = new pb::MessageParser<StreamMessageAddedNotification>(() => new StreamMessageAddedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StreamMessageAddedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[16]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamMessageAddedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamMessageAddedNotification(StreamMessageAddedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
streamId_ = other.streamId_;
message_ = other.HasMessage ? other.message_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamMessageAddedNotification Clone() {
return new StreamMessageAddedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 = 4;
private readonly static ulong StreamIdDefaultValue = 0UL;
private ulong streamId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong StreamId {
get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } }
set {
_hasBits0 |= 2;
streamId_ = value;
}
}
/// <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 "message" field.</summary>
public const int MessageFieldNumber = 5;
private global::Bgs.Protocol.Club.V1.StreamMessage message_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.StreamMessage Message {
get { return message_; }
set {
message_ = value;
}
}
/// <summary>Gets whether the message field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMessage {
get { return message_ != null; }
}
/// <summary>Clears the value of the message field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMessage() {
message_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StreamMessageAddedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StreamMessageAddedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (StreamId != other.StreamId) return false;
if (!object.Equals(Message, other.Message)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasStreamId) hash ^= StreamId.GetHashCode();
if (HasMessage) hash ^= Message.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasStreamId) {
output.WriteRawTag(32);
output.WriteUInt64(StreamId);
}
if (HasMessage) {
output.WriteRawTag(42);
output.WriteMessage(Message);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasStreamId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId);
}
if (HasMessage) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StreamMessageAddedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasStreamId) {
StreamId = other.StreamId;
}
if (other.HasMessage) {
if (!HasMessage) {
Message = new global::Bgs.Protocol.Club.V1.StreamMessage();
}
Message.MergeFrom(other.Message);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 32: {
StreamId = input.ReadUInt64();
break;
}
case 42: {
if (!HasMessage) {
Message = new global::Bgs.Protocol.Club.V1.StreamMessage();
}
input.ReadMessage(Message);
break;
}
}
}
}
}
public sealed partial class StreamMessageUpdatedNotification : pb::IMessage<StreamMessageUpdatedNotification> {
private static readonly pb::MessageParser<StreamMessageUpdatedNotification> _parser = new pb::MessageParser<StreamMessageUpdatedNotification>(() => new StreamMessageUpdatedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StreamMessageUpdatedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[17]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamMessageUpdatedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamMessageUpdatedNotification(StreamMessageUpdatedNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
streamId_ = other.streamId_;
message_ = other.HasMessage ? other.message_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamMessageUpdatedNotification Clone() {
return new StreamMessageUpdatedNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 = 4;
private readonly static ulong StreamIdDefaultValue = 0UL;
private ulong streamId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong StreamId {
get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } }
set {
_hasBits0 |= 2;
streamId_ = value;
}
}
/// <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 "message" field.</summary>
public const int MessageFieldNumber = 5;
private global::Bgs.Protocol.Club.V1.StreamMessage message_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.StreamMessage Message {
get { return message_; }
set {
message_ = value;
}
}
/// <summary>Gets whether the message field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMessage {
get { return message_ != null; }
}
/// <summary>Clears the value of the message field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMessage() {
message_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StreamMessageUpdatedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StreamMessageUpdatedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (StreamId != other.StreamId) return false;
if (!object.Equals(Message, other.Message)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasStreamId) hash ^= StreamId.GetHashCode();
if (HasMessage) hash ^= Message.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasStreamId) {
output.WriteRawTag(32);
output.WriteUInt64(StreamId);
}
if (HasMessage) {
output.WriteRawTag(42);
output.WriteMessage(Message);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasStreamId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId);
}
if (HasMessage) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StreamMessageUpdatedNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasStreamId) {
StreamId = other.StreamId;
}
if (other.HasMessage) {
if (!HasMessage) {
Message = new global::Bgs.Protocol.Club.V1.StreamMessage();
}
Message.MergeFrom(other.Message);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 32: {
StreamId = input.ReadUInt64();
break;
}
case 42: {
if (!HasMessage) {
Message = new global::Bgs.Protocol.Club.V1.StreamMessage();
}
input.ReadMessage(Message);
break;
}
}
}
}
}
public sealed partial class StreamTypingIndicatorNotification : pb::IMessage<StreamTypingIndicatorNotification> {
private static readonly pb::MessageParser<StreamTypingIndicatorNotification> _parser = new pb::MessageParser<StreamTypingIndicatorNotification>(() => new StreamTypingIndicatorNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StreamTypingIndicatorNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[18]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamTypingIndicatorNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamTypingIndicatorNotification(StreamTypingIndicatorNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
streamId_ = other.streamId_;
indicator_ = other.indicator_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamTypingIndicatorNotification Clone() {
return new StreamTypingIndicatorNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 = 4;
private readonly static ulong StreamIdDefaultValue = 0UL;
private ulong streamId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong StreamId {
get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } }
set {
_hasBits0 |= 2;
streamId_ = value;
}
}
/// <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 "indicator" field.</summary>
public const int IndicatorFieldNumber = 5;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.StreamTypingIndicator> _repeated_indicator_codec
= pb::FieldCodec.ForMessage(42, global::Bgs.Protocol.Club.V1.StreamTypingIndicator.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.StreamTypingIndicator> indicator_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.StreamTypingIndicator>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.StreamTypingIndicator> Indicator {
get { return indicator_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StreamTypingIndicatorNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StreamTypingIndicatorNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (StreamId != other.StreamId) return false;
if(!indicator_.Equals(other.indicator_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasStreamId) hash ^= StreamId.GetHashCode();
hash ^= indicator_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasStreamId) {
output.WriteRawTag(32);
output.WriteUInt64(StreamId);
}
indicator_.WriteTo(output, _repeated_indicator_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasStreamId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId);
}
size += indicator_.CalculateSize(_repeated_indicator_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StreamTypingIndicatorNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasStreamId) {
StreamId = other.StreamId;
}
indicator_.Add(other.indicator_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 32: {
StreamId = input.ReadUInt64();
break;
}
case 42: {
indicator_.AddEntriesFrom(input, _repeated_indicator_codec);
break;
}
}
}
}
}
public sealed partial class StreamUnreadIndicatorNotification : pb::IMessage<StreamUnreadIndicatorNotification> {
private static readonly pb::MessageParser<StreamUnreadIndicatorNotification> _parser = new pb::MessageParser<StreamUnreadIndicatorNotification>(() => new StreamUnreadIndicatorNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StreamUnreadIndicatorNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[19]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamUnreadIndicatorNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamUnreadIndicatorNotification(StreamUnreadIndicatorNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
event_ = other.HasEvent ? other.event_.Clone() : null;
message_ = other.HasMessage ? other.message_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamUnreadIndicatorNotification Clone() {
return new StreamUnreadIndicatorNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "event" field.</summary>
public const int EventFieldNumber = 4;
private global::Bgs.Protocol.Club.V1.StreamEventTime event_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.StreamEventTime Event {
get { return event_; }
set {
event_ = value;
}
}
/// <summary>Gets whether the event field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasEvent {
get { return event_ != null; }
}
/// <summary>Clears the value of the event field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearEvent() {
event_ = null;
}
/// <summary>Field number for the "message" field.</summary>
public const int MessageFieldNumber = 5;
private global::Bgs.Protocol.Club.V1.StreamMessage message_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.StreamMessage Message {
get { return message_; }
set {
message_ = value;
}
}
/// <summary>Gets whether the message field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMessage {
get { return message_ != null; }
}
/// <summary>Clears the value of the message field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMessage() {
message_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StreamUnreadIndicatorNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StreamUnreadIndicatorNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if (!object.Equals(Event, other.Event)) return false;
if (!object.Equals(Message, other.Message)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasEvent) hash ^= Event.GetHashCode();
if (HasMessage) hash ^= Message.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
if (HasEvent) {
output.WriteRawTag(34);
output.WriteMessage(Event);
}
if (HasMessage) {
output.WriteRawTag(42);
output.WriteMessage(Message);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasEvent) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Event);
}
if (HasMessage) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StreamUnreadIndicatorNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasEvent) {
if (!HasEvent) {
Event = new global::Bgs.Protocol.Club.V1.StreamEventTime();
}
Event.MergeFrom(other.Event);
}
if (other.HasMessage) {
if (!HasMessage) {
Message = new global::Bgs.Protocol.Club.V1.StreamMessage();
}
Message.MergeFrom(other.Message);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
if (!HasEvent) {
Event = new global::Bgs.Protocol.Club.V1.StreamEventTime();
}
input.ReadMessage(Event);
break;
}
case 42: {
if (!HasMessage) {
Message = new global::Bgs.Protocol.Club.V1.StreamMessage();
}
input.ReadMessage(Message);
break;
}
}
}
}
}
public sealed partial class StreamAdvanceViewTimeNotification : pb::IMessage<StreamAdvanceViewTimeNotification> {
private static readonly pb::MessageParser<StreamAdvanceViewTimeNotification> _parser = new pb::MessageParser<StreamAdvanceViewTimeNotification>(() => new StreamAdvanceViewTimeNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<StreamAdvanceViewTimeNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubNotificationReflection.Descriptor.MessageTypes[20]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamAdvanceViewTimeNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamAdvanceViewTimeNotification(StreamAdvanceViewTimeNotification other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
clubId_ = other.clubId_;
view_ = other.view_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StreamAdvanceViewTimeNotification Clone() {
return new StreamAdvanceViewTimeNotification(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <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 "club_id" field.</summary>
public const int ClubIdFieldNumber = 3;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <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 "view" field.</summary>
public const int ViewFieldNumber = 4;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.StreamAdvanceViewTime> _repeated_view_codec
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Club.V1.StreamAdvanceViewTime.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.StreamAdvanceViewTime> view_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.StreamAdvanceViewTime>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.StreamAdvanceViewTime> View {
get { return view_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StreamAdvanceViewTimeNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StreamAdvanceViewTimeNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ClubId != other.ClubId) return false;
if(!view_.Equals(other.view_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasClubId) hash ^= ClubId.GetHashCode();
hash ^= view_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasClubId) {
output.WriteRawTag(24);
output.WriteUInt64(ClubId);
}
view_.WriteTo(output, _repeated_view_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
size += view_.CalculateSize(_repeated_view_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StreamAdvanceViewTimeNotification other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
view_.Add(other.view_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(AgentId);
break;
}
case 24: {
ClubId = input.ReadUInt64();
break;
}
case 34: {
view_.AddEntriesFrom(input, _repeated_view_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code