Files
CypherCore/Source/Framework/Proto/ClubMember.cs
T

3618 lines
128 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/club_member.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Bgs.Protocol.Club.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/club_member.proto</summary>
public static partial class ClubMemberReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/club_member.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ClubMemberReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiNiZ3MvbG93L3BiL2NsaWVudC9jbHViX21lbWJlci5wcm90bxIUYmdzLnBy",
"b3RvY29sLmNsdWIudjEaJmJncy9sb3cvcGIvY2xpZW50L2NsdWJfbWVtYmVy",
"X2lkLnByb3RvGjViZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL2F0",
"dHJpYnV0ZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQvY2x1Yl9l",
"bnVtLnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8a",
"N2Jncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29w",
"dGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNp",
"b25zL21lc3NhZ2Vfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQv",
"Z2xvYmFsX2V4dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9s",
"b3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9u",
"cy5wcm90byKyAwoGTWVtYmVyEioKAmlkGAEgASgLMh4uYmdzLnByb3RvY29s",
"LmNsdWIudjEuTWVtYmVySWQSGgoKYmF0dGxlX3RhZxgCIAEoCUIGgvkrAggB",
"EhAKBHJvbGUYAyADKA1CAhABEi0KCWF0dHJpYnV0ZRgEIAMoCzIaLmJncy5w",
"cm90b2NvbC52Mi5BdHRyaWJ1dGUSEQoJam9pbl90aW1lGAUgASgEElAKDnBy",
"ZXNlbmNlX2xldmVsGAYgASgOMiMuYmdzLnByb3RvY29sLmNsdWIudjEuUHJl",
"c2VuY2VMZXZlbDoTUFJFU0VOQ0VfTEVWRUxfTk9ORRIWCg5tb2RlcmF0b3Jf",
"bXV0ZRgHIAEoCBJNCg13aGlzcGVyX2xldmVsGAggASgOMiIuYmdzLnByb3Rv",
"Y29sLmNsdWIudjEuV2hpc3BlckxldmVsOhJXSElTUEVSX0xFVkVMX09QRU4S",
"DAoEbm90ZRgJIAEoCRIOCgZhY3RpdmUYMiABKAgSNQoFdm9pY2UYMyABKAsy",
"Ji5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJWb2ljZVN0YXRlIlEKDE1l",
"bWJlclJlc3VsdBIxCgltZW1iZXJfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wu",
"Y2x1Yi52MS5NZW1iZXJJZBIOCgZzdGF0dXMYAiABKA0ilAEKE1JlbW92ZU1l",
"bWJlck9wdGlvbnMSKgoCaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52",
"MS5NZW1iZXJJZBJRCgZyZWFzb24YAiABKA4yJy5iZ3MucHJvdG9jb2wuY2x1",
"Yi52MS5DbHViUmVtb3ZlZFJlYXNvbjoYQ0xVQl9SRU1PVkVEX1JFQVNPTl9O",
"T05FIpgBChdNZW1iZXJSZW1vdmVkQXNzaWdubWVudBIqCgJpZBgBIAEoCzIe",
"LmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkElEKBnJlYXNvbhgCIAEo",
"DjInLmJncy5wcm90b2NvbC5jbHViLnYxLkNsdWJSZW1vdmVkUmVhc29uOhhD",
"TFVCX1JFTU9WRURfUkVBU09OX05PTkUioAEKEk1lbWJlclZvaWNlT3B0aW9u",
"cxIRCglzdHJlYW1faWQYASABKAQSDgoGam9pbmVkGAIgASgIElcKCm1pY3Jv",
"cGhvbmUYAyABKA4yKi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5Wb2ljZU1pY3Jv",
"cGhvbmVTdGF0ZToXTUlDUk9QSE9ORV9TVEFURV9OT1JNQUwSDgoGYWN0aXZl",
"GAQgASgIIqoBChBNZW1iZXJWb2ljZVN0YXRlEgoKAmlkGAEgASgJEhEKCXN0",
"cmVhbV9pZBgCIAEoBBIOCgZqb2luZWQYAyABKAgSVwoKbWljcm9waG9uZRgE",
"IAEoDjIqLmJncy5wcm90b2NvbC5jbHViLnYxLlZvaWNlTWljcm9waG9uZVN0",
"YXRlOhdNSUNST1BIT05FX1NUQVRFX05PUk1BTBIOCgZhY3RpdmUYBSABKAgi",
"cAoTQ3JlYXRlTWVtYmVyT3B0aW9ucxIqCgJpZBgBIAEoCzIeLmJncy5wcm90",
"b2NvbC5jbHViLnYxLk1lbWJlcklkEi0KCWF0dHJpYnV0ZRgCIAMoCzIaLmJn",
"cy5wcm90b2NvbC52Mi5BdHRyaWJ1dGUiWwoRTWVtYmVyRGVzY3JpcHRpb24S",
"KgoCaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBIa",
"CgpiYXR0bGVfdGFnGAIgASgJQgaC+SsCCAEiZgoLUm9sZU9wdGlvbnMSMQoJ",
"bWVtYmVyX2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVtYmVy",
"SWQSJAoEcm9sZRgCIAMoDUIWEAGK+SsGKgQKAggBivkrBioECgIQASJVCg5S",
"b2xlQXNzaWdubWVudBIxCgltZW1iZXJfaWQYASABKAsyHi5iZ3MucHJvdG9j",
"b2wuY2x1Yi52MS5NZW1iZXJJZBIQCgRyb2xlGAIgAygNQgIQASJ9ChlNZW1i",
"ZXJBdHRyaWJ1dGVBc3NpZ25tZW50EjEKCW1lbWJlcl9pZBgBIAEoCzIeLmJn",
"cy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEi0KCWF0dHJpYnV0ZRgCIAMo",
"CzIaLmJncy5wcm90b2NvbC52Mi5BdHRyaWJ1dGUiUQoWU3Vic2NyaWJlclN0",
"YXRlT3B0aW9ucxI3CgV2b2ljZRgBIAEoCzIoLmJncy5wcm90b2NvbC5jbHVi",
"LnYxLk1lbWJlclZvaWNlT3B0aW9ucyKVAQoZU3Vic2NyaWJlclN0YXRlQXNz",
"aWdubWVudBIxCgltZW1iZXJfaWQYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1",
"Yi52MS5NZW1iZXJJZBIOCgZhY3RpdmUYAiABKAgSNQoFdm9pY2UYAyABKAsy",
"Ji5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJWb2ljZVN0YXRlIooCChJN",
"ZW1iZXJTdGF0ZU9wdGlvbnMSLQoJYXR0cmlidXRlGAEgAygLMhouYmdzLnBy",
"b3RvY29sLnYyLkF0dHJpYnV0ZRJQCg5wcmVzZW5jZV9sZXZlbBgCIAEoDjIj",
"LmJncy5wcm90b2NvbC5jbHViLnYxLlByZXNlbmNlTGV2ZWw6E1BSRVNFTkNF",
"X0xFVkVMX05PTkUSFgoObW9kZXJhdG9yX211dGUYAyABKAgSTQoNd2hpc3Bl",
"cl9sZXZlbBgEIAEoDjIiLmJncy5wcm90b2NvbC5jbHViLnYxLldoaXNwZXJM",
"ZXZlbDoSV0hJU1BFUl9MRVZFTF9PUEVOEgwKBG5vdGUYBSABKAkiwAIKFU1l",
"bWJlclN0YXRlQXNzaWdubWVudBIxCgltZW1iZXJfaWQYASABKAsyHi5iZ3Mu",
"cHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJJZBItCglhdHRyaWJ1dGUYAiADKAsy",
"Gi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlElAKDnByZXNlbmNlX2xldmVs",
"GAMgASgOMiMuYmdzLnByb3RvY29sLmNsdWIudjEuUHJlc2VuY2VMZXZlbDoT",
"UFJFU0VOQ0VfTEVWRUxfTk9ORRIWCg5tb2RlcmF0b3JfbXV0ZRgEIAEoCBJN",
"Cg13aGlzcGVyX2xldmVsGAUgASgOMiIuYmdzLnByb3RvY29sLmNsdWIudjEu",
"V2hpc3BlckxldmVsOhJXSElTUEVSX0xFVkVMX09QRU4SDAoEbm90ZRgGIAEo",
"CVAA"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubMemberIdReflection.Descriptor, global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubEnumReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.Member), global::Bgs.Protocol.Club.V1.Member.Parser, new[]{ "Id", "BattleTag", "Role", "Attribute", "JoinTime", "PresenceLevel", "ModeratorMute", "WhisperLevel", "Note", "Active", "Voice" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberResult), global::Bgs.Protocol.Club.V1.MemberResult.Parser, new[]{ "MemberId", "Status" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RemoveMemberOptions), global::Bgs.Protocol.Club.V1.RemoveMemberOptions.Parser, new[]{ "Id", "Reason" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberRemovedAssignment), global::Bgs.Protocol.Club.V1.MemberRemovedAssignment.Parser, new[]{ "Id", "Reason" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberVoiceOptions), global::Bgs.Protocol.Club.V1.MemberVoiceOptions.Parser, new[]{ "StreamId", "Joined", "Microphone", "Active" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberVoiceState), global::Bgs.Protocol.Club.V1.MemberVoiceState.Parser, new[]{ "Id", "StreamId", "Joined", "Microphone", "Active" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateMemberOptions), global::Bgs.Protocol.Club.V1.CreateMemberOptions.Parser, new[]{ "Id", "Attribute" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberDescription), global::Bgs.Protocol.Club.V1.MemberDescription.Parser, new[]{ "Id", "BattleTag" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RoleOptions), global::Bgs.Protocol.Club.V1.RoleOptions.Parser, new[]{ "MemberId", "Role" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.RoleAssignment), global::Bgs.Protocol.Club.V1.RoleAssignment.Parser, new[]{ "MemberId", "Role" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberAttributeAssignment), global::Bgs.Protocol.Club.V1.MemberAttributeAssignment.Parser, new[]{ "MemberId", "Attribute" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscriberStateOptions), global::Bgs.Protocol.Club.V1.SubscriberStateOptions.Parser, new[]{ "Voice" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SubscriberStateAssignment), global::Bgs.Protocol.Club.V1.SubscriberStateAssignment.Parser, new[]{ "MemberId", "Active", "Voice" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberStateOptions), global::Bgs.Protocol.Club.V1.MemberStateOptions.Parser, new[]{ "Attribute", "PresenceLevel", "ModeratorMute", "WhisperLevel", "Note" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberStateAssignment), global::Bgs.Protocol.Club.V1.MemberStateAssignment.Parser, new[]{ "MemberId", "Attribute", "PresenceLevel", "ModeratorMute", "WhisperLevel", "Note" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class Member : pb::IMessage<Member> {
private static readonly pb::MessageParser<Member> _parser = new pb::MessageParser<Member>(() => new Member());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Member> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Member() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Member(Member other) : this() {
_hasBits0 = other._hasBits0;
id_ = other.HasId ? other.id_.Clone() : null;
battleTag_ = other.battleTag_;
role_ = other.role_.Clone();
attribute_ = other.attribute_.Clone();
joinTime_ = other.joinTime_;
presenceLevel_ = other.presenceLevel_;
moderatorMute_ = other.moderatorMute_;
whisperLevel_ = other.whisperLevel_;
note_ = other.note_;
active_ = other.active_;
voice_ = other.HasVoice ? other.voice_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Member Clone() {
return new Member(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Gets whether the id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return id_ != null; }
}
/// <summary>Clears the value of the id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
id_ = null;
}
/// <summary>Field number for the "battle_tag" field.</summary>
public const int BattleTagFieldNumber = 2;
private readonly static string BattleTagDefaultValue = "";
private string battleTag_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string BattleTag {
get { return battleTag_ ?? BattleTagDefaultValue; }
set {
battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "battle_tag" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasBattleTag {
get { return battleTag_ != null; }
}
/// <summary>Clears the value of the "battle_tag" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearBattleTag() {
battleTag_ = null;
}
/// <summary>Field number for the "role" field.</summary>
public const int RoleFieldNumber = 3;
private static readonly pb::FieldCodec<uint> _repeated_role_codec
= pb::FieldCodec.ForUInt32(26);
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> Role {
get { return role_; }
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 4;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
get { return attribute_; }
}
/// <summary>Field number for the "join_time" field.</summary>
public const int JoinTimeFieldNumber = 5;
private readonly static ulong JoinTimeDefaultValue = 0UL;
private ulong joinTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong JoinTime {
get { if ((_hasBits0 & 1) != 0) { return joinTime_; } else { return JoinTimeDefaultValue; } }
set {
_hasBits0 |= 1;
joinTime_ = value;
}
}
/// <summary>Gets whether the "join_time" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasJoinTime {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "join_time" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearJoinTime() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "presence_level" field.</summary>
public const int PresenceLevelFieldNumber = 6;
private readonly static global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevelDefaultValue = global::Bgs.Protocol.Club.V1.PresenceLevel.None;
private global::Bgs.Protocol.Club.V1.PresenceLevel presenceLevel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevel {
get { if ((_hasBits0 & 2) != 0) { return presenceLevel_; } else { return PresenceLevelDefaultValue; } }
set {
_hasBits0 |= 2;
presenceLevel_ = value;
}
}
/// <summary>Gets whether the "presence_level" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPresenceLevel {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "presence_level" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearPresenceLevel() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "moderator_mute" field.</summary>
public const int ModeratorMuteFieldNumber = 7;
private readonly static bool ModeratorMuteDefaultValue = false;
private bool moderatorMute_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool ModeratorMute {
get { if ((_hasBits0 & 4) != 0) { return moderatorMute_; } else { return ModeratorMuteDefaultValue; } }
set {
_hasBits0 |= 4;
moderatorMute_ = value;
}
}
/// <summary>Gets whether the "moderator_mute" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasModeratorMute {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "moderator_mute" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearModeratorMute() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "whisper_level" field.</summary>
public const int WhisperLevelFieldNumber = 8;
private readonly static global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevelDefaultValue = global::Bgs.Protocol.Club.V1.WhisperLevel.Open;
private global::Bgs.Protocol.Club.V1.WhisperLevel whisperLevel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevel {
get { if ((_hasBits0 & 8) != 0) { return whisperLevel_; } else { return WhisperLevelDefaultValue; } }
set {
_hasBits0 |= 8;
whisperLevel_ = value;
}
}
/// <summary>Gets whether the "whisper_level" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasWhisperLevel {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "whisper_level" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearWhisperLevel() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "note" field.</summary>
public const int NoteFieldNumber = 9;
private readonly static string NoteDefaultValue = "";
private string note_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Note {
get { return note_ ?? NoteDefaultValue; }
set {
note_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "note" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasNote {
get { return note_ != null; }
}
/// <summary>Clears the value of the "note" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearNote() {
note_ = null;
}
/// <summary>Field number for the "active" field.</summary>
public const int ActiveFieldNumber = 50;
private readonly static bool ActiveDefaultValue = false;
private bool active_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Active {
get { if ((_hasBits0 & 16) != 0) { return active_; } else { return ActiveDefaultValue; } }
set {
_hasBits0 |= 16;
active_ = value;
}
}
/// <summary>Gets whether the "active" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasActive {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "active" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearActive() {
_hasBits0 &= ~16;
}
/// <summary>Field number for the "voice" field.</summary>
public const int VoiceFieldNumber = 51;
private global::Bgs.Protocol.Club.V1.MemberVoiceState voice_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberVoiceState Voice {
get { return voice_; }
set {
voice_ = value;
}
}
/// <summary>Gets whether the voice field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasVoice {
get { return voice_ != null; }
}
/// <summary>Clears the value of the voice field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearVoice() {
voice_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Member);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Member other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Id, other.Id)) return false;
if (BattleTag != other.BattleTag) return false;
if(!role_.Equals(other.role_)) return false;
if(!attribute_.Equals(other.attribute_)) return false;
if (JoinTime != other.JoinTime) return false;
if (PresenceLevel != other.PresenceLevel) return false;
if (ModeratorMute != other.ModeratorMute) return false;
if (WhisperLevel != other.WhisperLevel) return false;
if (Note != other.Note) return false;
if (Active != other.Active) return false;
if (!object.Equals(Voice, other.Voice)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasId) hash ^= Id.GetHashCode();
if (HasBattleTag) hash ^= BattleTag.GetHashCode();
hash ^= role_.GetHashCode();
hash ^= attribute_.GetHashCode();
if (HasJoinTime) hash ^= JoinTime.GetHashCode();
if (HasPresenceLevel) hash ^= PresenceLevel.GetHashCode();
if (HasModeratorMute) hash ^= ModeratorMute.GetHashCode();
if (HasWhisperLevel) hash ^= WhisperLevel.GetHashCode();
if (HasNote) hash ^= Note.GetHashCode();
if (HasActive) hash ^= Active.GetHashCode();
if (HasVoice) hash ^= Voice.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasId) {
output.WriteRawTag(10);
output.WriteMessage(Id);
}
if (HasBattleTag) {
output.WriteRawTag(18);
output.WriteString(BattleTag);
}
role_.WriteTo(output, _repeated_role_codec);
attribute_.WriteTo(output, _repeated_attribute_codec);
if (HasJoinTime) {
output.WriteRawTag(40);
output.WriteUInt64(JoinTime);
}
if (HasPresenceLevel) {
output.WriteRawTag(48);
output.WriteEnum((int) PresenceLevel);
}
if (HasModeratorMute) {
output.WriteRawTag(56);
output.WriteBool(ModeratorMute);
}
if (HasWhisperLevel) {
output.WriteRawTag(64);
output.WriteEnum((int) WhisperLevel);
}
if (HasNote) {
output.WriteRawTag(74);
output.WriteString(Note);
}
if (HasActive) {
output.WriteRawTag(144, 3);
output.WriteBool(Active);
}
if (HasVoice) {
output.WriteRawTag(154, 3);
output.WriteMessage(Voice);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id);
}
if (HasBattleTag) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag);
}
size += role_.CalculateSize(_repeated_role_codec);
size += attribute_.CalculateSize(_repeated_attribute_codec);
if (HasJoinTime) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(JoinTime);
}
if (HasPresenceLevel) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresenceLevel);
}
if (HasModeratorMute) {
size += 1 + 1;
}
if (HasWhisperLevel) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WhisperLevel);
}
if (HasNote) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
}
if (HasActive) {
size += 2 + 1;
}
if (HasVoice) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(Voice);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Member other) {
if (other == null) {
return;
}
if (other.HasId) {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
Id.MergeFrom(other.Id);
}
if (other.HasBattleTag) {
BattleTag = other.BattleTag;
}
role_.Add(other.role_);
attribute_.Add(other.attribute_);
if (other.HasJoinTime) {
JoinTime = other.JoinTime;
}
if (other.HasPresenceLevel) {
PresenceLevel = other.PresenceLevel;
}
if (other.HasModeratorMute) {
ModeratorMute = other.ModeratorMute;
}
if (other.HasWhisperLevel) {
WhisperLevel = other.WhisperLevel;
}
if (other.HasNote) {
Note = other.Note;
}
if (other.HasActive) {
Active = other.Active;
}
if (other.HasVoice) {
if (!HasVoice) {
Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceState();
}
Voice.MergeFrom(other.Voice);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(Id);
break;
}
case 18: {
BattleTag = input.ReadString();
break;
}
case 26:
case 24: {
role_.AddEntriesFrom(input, _repeated_role_codec);
break;
}
case 34: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
case 40: {
JoinTime = input.ReadUInt64();
break;
}
case 48: {
PresenceLevel = (global::Bgs.Protocol.Club.V1.PresenceLevel) input.ReadEnum();
break;
}
case 56: {
ModeratorMute = input.ReadBool();
break;
}
case 64: {
WhisperLevel = (global::Bgs.Protocol.Club.V1.WhisperLevel) input.ReadEnum();
break;
}
case 74: {
Note = input.ReadString();
break;
}
case 400: {
Active = input.ReadBool();
break;
}
case 410: {
if (!HasVoice) {
Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceState();
}
input.ReadMessage(Voice);
break;
}
}
}
}
}
public sealed partial class MemberResult : pb::IMessage<MemberResult> {
private static readonly pb::MessageParser<MemberResult> _parser = new pb::MessageParser<MemberResult>(() => new MemberResult());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberResult> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberResult() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberResult(MemberResult other) : this() {
_hasBits0 = other._hasBits0;
memberId_ = other.HasMemberId ? other.memberId_.Clone() : null;
status_ = other.status_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberResult Clone() {
return new MemberResult(this);
}
/// <summary>Field number for the "member_id" field.</summary>
public const int MemberIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId memberId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId MemberId {
get { return memberId_; }
set {
memberId_ = value;
}
}
/// <summary>Gets whether the member_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMemberId {
get { return memberId_ != null; }
}
/// <summary>Clears the value of the member_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMemberId() {
memberId_ = null;
}
/// <summary>Field number for the "status" field.</summary>
public const int StatusFieldNumber = 2;
private readonly static uint StatusDefaultValue = 0;
private uint status_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Status {
get { if ((_hasBits0 & 1) != 0) { return status_; } else { return StatusDefaultValue; } }
set {
_hasBits0 |= 1;
status_ = value;
}
}
/// <summary>Gets whether the "status" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStatus {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "status" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStatus() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberResult);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberResult other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(MemberId, other.MemberId)) return false;
if (Status != other.Status) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMemberId) hash ^= MemberId.GetHashCode();
if (HasStatus) hash ^= Status.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasMemberId) {
output.WriteRawTag(10);
output.WriteMessage(MemberId);
}
if (HasStatus) {
output.WriteRawTag(16);
output.WriteUInt32(Status);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMemberId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId);
}
if (HasStatus) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberResult other) {
if (other == null) {
return;
}
if (other.HasMemberId) {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
MemberId.MergeFrom(other.MemberId);
}
if (other.HasStatus) {
Status = other.Status;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(MemberId);
break;
}
case 16: {
Status = input.ReadUInt32();
break;
}
}
}
}
}
public sealed partial class RemoveMemberOptions : pb::IMessage<RemoveMemberOptions> {
private static readonly pb::MessageParser<RemoveMemberOptions> _parser = new pb::MessageParser<RemoveMemberOptions>(() => new RemoveMemberOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RemoveMemberOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RemoveMemberOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RemoveMemberOptions(RemoveMemberOptions other) : this() {
_hasBits0 = other._hasBits0;
id_ = other.HasId ? other.id_.Clone() : null;
reason_ = other.reason_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RemoveMemberOptions Clone() {
return new RemoveMemberOptions(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Gets whether the id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return id_ != null; }
}
/// <summary>Clears the value of the id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
id_ = null;
}
/// <summary>Field number for the "reason" field.</summary>
public const int ReasonFieldNumber = 2;
private readonly static global::Bgs.Protocol.Club.V1.ClubRemovedReason ReasonDefaultValue = global::Bgs.Protocol.Club.V1.ClubRemovedReason.None;
private global::Bgs.Protocol.Club.V1.ClubRemovedReason reason_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.ClubRemovedReason Reason {
get { if ((_hasBits0 & 1) != 0) { return reason_; } else { return ReasonDefaultValue; } }
set {
_hasBits0 |= 1;
reason_ = value;
}
}
/// <summary>Gets whether the "reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReason {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "reason" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReason() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RemoveMemberOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RemoveMemberOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Id, other.Id)) return false;
if (Reason != other.Reason) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasId) hash ^= Id.GetHashCode();
if (HasReason) hash ^= Reason.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasId) {
output.WriteRawTag(10);
output.WriteMessage(Id);
}
if (HasReason) {
output.WriteRawTag(16);
output.WriteEnum((int) Reason);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id);
}
if (HasReason) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RemoveMemberOptions other) {
if (other == null) {
return;
}
if (other.HasId) {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
Id.MergeFrom(other.Id);
}
if (other.HasReason) {
Reason = other.Reason;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(Id);
break;
}
case 16: {
Reason = (global::Bgs.Protocol.Club.V1.ClubRemovedReason) input.ReadEnum();
break;
}
}
}
}
}
public sealed partial class MemberRemovedAssignment : pb::IMessage<MemberRemovedAssignment> {
private static readonly pb::MessageParser<MemberRemovedAssignment> _parser = new pb::MessageParser<MemberRemovedAssignment>(() => new MemberRemovedAssignment());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberRemovedAssignment> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRemovedAssignment() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRemovedAssignment(MemberRemovedAssignment other) : this() {
_hasBits0 = other._hasBits0;
id_ = other.HasId ? other.id_.Clone() : null;
reason_ = other.reason_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberRemovedAssignment Clone() {
return new MemberRemovedAssignment(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Gets whether the id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return id_ != null; }
}
/// <summary>Clears the value of the id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
id_ = null;
}
/// <summary>Field number for the "reason" field.</summary>
public const int ReasonFieldNumber = 2;
private readonly static global::Bgs.Protocol.Club.V1.ClubRemovedReason ReasonDefaultValue = global::Bgs.Protocol.Club.V1.ClubRemovedReason.None;
private global::Bgs.Protocol.Club.V1.ClubRemovedReason reason_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.ClubRemovedReason Reason {
get { if ((_hasBits0 & 1) != 0) { return reason_; } else { return ReasonDefaultValue; } }
set {
_hasBits0 |= 1;
reason_ = value;
}
}
/// <summary>Gets whether the "reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReason {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "reason" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReason() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberRemovedAssignment);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberRemovedAssignment other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Id, other.Id)) return false;
if (Reason != other.Reason) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasId) hash ^= Id.GetHashCode();
if (HasReason) hash ^= Reason.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasId) {
output.WriteRawTag(10);
output.WriteMessage(Id);
}
if (HasReason) {
output.WriteRawTag(16);
output.WriteEnum((int) Reason);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id);
}
if (HasReason) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberRemovedAssignment other) {
if (other == null) {
return;
}
if (other.HasId) {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
Id.MergeFrom(other.Id);
}
if (other.HasReason) {
Reason = other.Reason;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(Id);
break;
}
case 16: {
Reason = (global::Bgs.Protocol.Club.V1.ClubRemovedReason) input.ReadEnum();
break;
}
}
}
}
}
public sealed partial class MemberVoiceOptions : pb::IMessage<MemberVoiceOptions> {
private static readonly pb::MessageParser<MemberVoiceOptions> _parser = new pb::MessageParser<MemberVoiceOptions>(() => new MemberVoiceOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberVoiceOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberVoiceOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberVoiceOptions(MemberVoiceOptions other) : this() {
_hasBits0 = other._hasBits0;
streamId_ = other.streamId_;
joined_ = other.joined_;
microphone_ = other.microphone_;
active_ = other.active_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberVoiceOptions Clone() {
return new MemberVoiceOptions(this);
}
/// <summary>Field number for the "stream_id" field.</summary>
public const int StreamIdFieldNumber = 1;
private readonly static ulong StreamIdDefaultValue = 0UL;
private ulong streamId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong StreamId {
get { if ((_hasBits0 & 1) != 0) { return streamId_; } else { return StreamIdDefaultValue; } }
set {
_hasBits0 |= 1;
streamId_ = value;
}
}
/// <summary>Gets whether the "stream_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStreamId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "stream_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStreamId() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "joined" field.</summary>
public const int JoinedFieldNumber = 2;
private readonly static bool JoinedDefaultValue = false;
private bool joined_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Joined {
get { if ((_hasBits0 & 2) != 0) { return joined_; } else { return JoinedDefaultValue; } }
set {
_hasBits0 |= 2;
joined_ = value;
}
}
/// <summary>Gets whether the "joined" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasJoined {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "joined" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearJoined() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "microphone" field.</summary>
public const int MicrophoneFieldNumber = 3;
private readonly static global::Bgs.Protocol.Club.V1.VoiceMicrophoneState MicrophoneDefaultValue = global::Bgs.Protocol.Club.V1.VoiceMicrophoneState.MicrophoneStateNormal;
private global::Bgs.Protocol.Club.V1.VoiceMicrophoneState microphone_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.VoiceMicrophoneState Microphone {
get { if ((_hasBits0 & 4) != 0) { return microphone_; } else { return MicrophoneDefaultValue; } }
set {
_hasBits0 |= 4;
microphone_ = value;
}
}
/// <summary>Gets whether the "microphone" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMicrophone {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "microphone" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMicrophone() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "active" field.</summary>
public const int ActiveFieldNumber = 4;
private readonly static bool ActiveDefaultValue = false;
private bool active_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Active {
get { if ((_hasBits0 & 8) != 0) { return active_; } else { return ActiveDefaultValue; } }
set {
_hasBits0 |= 8;
active_ = value;
}
}
/// <summary>Gets whether the "active" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasActive {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "active" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearActive() {
_hasBits0 &= ~8;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberVoiceOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberVoiceOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (StreamId != other.StreamId) return false;
if (Joined != other.Joined) return false;
if (Microphone != other.Microphone) return false;
if (Active != other.Active) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasStreamId) hash ^= StreamId.GetHashCode();
if (HasJoined) hash ^= Joined.GetHashCode();
if (HasMicrophone) hash ^= Microphone.GetHashCode();
if (HasActive) hash ^= Active.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasStreamId) {
output.WriteRawTag(8);
output.WriteUInt64(StreamId);
}
if (HasJoined) {
output.WriteRawTag(16);
output.WriteBool(Joined);
}
if (HasMicrophone) {
output.WriteRawTag(24);
output.WriteEnum((int) Microphone);
}
if (HasActive) {
output.WriteRawTag(32);
output.WriteBool(Active);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasStreamId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId);
}
if (HasJoined) {
size += 1 + 1;
}
if (HasMicrophone) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Microphone);
}
if (HasActive) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberVoiceOptions other) {
if (other == null) {
return;
}
if (other.HasStreamId) {
StreamId = other.StreamId;
}
if (other.HasJoined) {
Joined = other.Joined;
}
if (other.HasMicrophone) {
Microphone = other.Microphone;
}
if (other.HasActive) {
Active = other.Active;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
StreamId = input.ReadUInt64();
break;
}
case 16: {
Joined = input.ReadBool();
break;
}
case 24: {
Microphone = (global::Bgs.Protocol.Club.V1.VoiceMicrophoneState) input.ReadEnum();
break;
}
case 32: {
Active = input.ReadBool();
break;
}
}
}
}
}
public sealed partial class MemberVoiceState : pb::IMessage<MemberVoiceState> {
private static readonly pb::MessageParser<MemberVoiceState> _parser = new pb::MessageParser<MemberVoiceState>(() => new MemberVoiceState());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberVoiceState> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberVoiceState() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberVoiceState(MemberVoiceState other) : this() {
_hasBits0 = other._hasBits0;
id_ = other.id_;
streamId_ = other.streamId_;
joined_ = other.joined_;
microphone_ = other.microphone_;
active_ = other.active_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberVoiceState Clone() {
return new MemberVoiceState(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private readonly static string IdDefaultValue = "";
private string id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Id {
get { return id_ ?? IdDefaultValue; }
set {
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return id_ != null; }
}
/// <summary>Clears the value of the "id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
id_ = null;
}
/// <summary>Field number for the "stream_id" field.</summary>
public const int StreamIdFieldNumber = 2;
private readonly static ulong StreamIdDefaultValue = 0UL;
private ulong streamId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong StreamId {
get { if ((_hasBits0 & 1) != 0) { return streamId_; } else { return StreamIdDefaultValue; } }
set {
_hasBits0 |= 1;
streamId_ = value;
}
}
/// <summary>Gets whether the "stream_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStreamId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "stream_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStreamId() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "joined" field.</summary>
public const int JoinedFieldNumber = 3;
private readonly static bool JoinedDefaultValue = false;
private bool joined_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Joined {
get { if ((_hasBits0 & 2) != 0) { return joined_; } else { return JoinedDefaultValue; } }
set {
_hasBits0 |= 2;
joined_ = value;
}
}
/// <summary>Gets whether the "joined" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasJoined {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "joined" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearJoined() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "microphone" field.</summary>
public const int MicrophoneFieldNumber = 4;
private readonly static global::Bgs.Protocol.Club.V1.VoiceMicrophoneState MicrophoneDefaultValue = global::Bgs.Protocol.Club.V1.VoiceMicrophoneState.MicrophoneStateNormal;
private global::Bgs.Protocol.Club.V1.VoiceMicrophoneState microphone_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.VoiceMicrophoneState Microphone {
get { if ((_hasBits0 & 4) != 0) { return microphone_; } else { return MicrophoneDefaultValue; } }
set {
_hasBits0 |= 4;
microphone_ = value;
}
}
/// <summary>Gets whether the "microphone" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMicrophone {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "microphone" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMicrophone() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "active" field.</summary>
public const int ActiveFieldNumber = 5;
private readonly static bool ActiveDefaultValue = false;
private bool active_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Active {
get { if ((_hasBits0 & 8) != 0) { return active_; } else { return ActiveDefaultValue; } }
set {
_hasBits0 |= 8;
active_ = value;
}
}
/// <summary>Gets whether the "active" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasActive {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "active" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearActive() {
_hasBits0 &= ~8;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberVoiceState);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberVoiceState other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (StreamId != other.StreamId) return false;
if (Joined != other.Joined) return false;
if (Microphone != other.Microphone) return false;
if (Active != other.Active) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasId) hash ^= Id.GetHashCode();
if (HasStreamId) hash ^= StreamId.GetHashCode();
if (HasJoined) hash ^= Joined.GetHashCode();
if (HasMicrophone) hash ^= Microphone.GetHashCode();
if (HasActive) hash ^= Active.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasId) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (HasStreamId) {
output.WriteRawTag(16);
output.WriteUInt64(StreamId);
}
if (HasJoined) {
output.WriteRawTag(24);
output.WriteBool(Joined);
}
if (HasMicrophone) {
output.WriteRawTag(32);
output.WriteEnum((int) Microphone);
}
if (HasActive) {
output.WriteRawTag(40);
output.WriteBool(Active);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
}
if (HasStreamId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId);
}
if (HasJoined) {
size += 1 + 1;
}
if (HasMicrophone) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Microphone);
}
if (HasActive) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberVoiceState other) {
if (other == null) {
return;
}
if (other.HasId) {
Id = other.Id;
}
if (other.HasStreamId) {
StreamId = other.StreamId;
}
if (other.HasJoined) {
Joined = other.Joined;
}
if (other.HasMicrophone) {
Microphone = other.Microphone;
}
if (other.HasActive) {
Active = other.Active;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Id = input.ReadString();
break;
}
case 16: {
StreamId = input.ReadUInt64();
break;
}
case 24: {
Joined = input.ReadBool();
break;
}
case 32: {
Microphone = (global::Bgs.Protocol.Club.V1.VoiceMicrophoneState) input.ReadEnum();
break;
}
case 40: {
Active = input.ReadBool();
break;
}
}
}
}
}
public sealed partial class CreateMemberOptions : pb::IMessage<CreateMemberOptions> {
private static readonly pb::MessageParser<CreateMemberOptions> _parser = new pb::MessageParser<CreateMemberOptions>(() => new CreateMemberOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<CreateMemberOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CreateMemberOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CreateMemberOptions(CreateMemberOptions other) : this() {
id_ = other.HasId ? other.id_.Clone() : null;
attribute_ = other.attribute_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CreateMemberOptions Clone() {
return new CreateMemberOptions(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Gets whether the id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return id_ != null; }
}
/// <summary>Clears the value of the id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
id_ = null;
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
get { return attribute_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as CreateMemberOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(CreateMemberOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Id, other.Id)) return false;
if(!attribute_.Equals(other.attribute_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasId) hash ^= Id.GetHashCode();
hash ^= attribute_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasId) {
output.WriteRawTag(10);
output.WriteMessage(Id);
}
attribute_.WriteTo(output, _repeated_attribute_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id);
}
size += attribute_.CalculateSize(_repeated_attribute_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(CreateMemberOptions other) {
if (other == null) {
return;
}
if (other.HasId) {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
Id.MergeFrom(other.Id);
}
attribute_.Add(other.attribute_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(Id);
break;
}
case 18: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
}
}
}
}
public sealed partial class MemberDescription : pb::IMessage<MemberDescription> {
private static readonly pb::MessageParser<MemberDescription> _parser = new pb::MessageParser<MemberDescription>(() => new MemberDescription());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberDescription> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberDescription() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberDescription(MemberDescription other) : this() {
id_ = other.HasId ? other.id_.Clone() : null;
battleTag_ = other.battleTag_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberDescription Clone() {
return new MemberDescription(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Gets whether the id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return id_ != null; }
}
/// <summary>Clears the value of the id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
id_ = null;
}
/// <summary>Field number for the "battle_tag" field.</summary>
public const int BattleTagFieldNumber = 2;
private readonly static string BattleTagDefaultValue = "";
private string battleTag_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string BattleTag {
get { return battleTag_ ?? BattleTagDefaultValue; }
set {
battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "battle_tag" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasBattleTag {
get { return battleTag_ != null; }
}
/// <summary>Clears the value of the "battle_tag" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearBattleTag() {
battleTag_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberDescription);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberDescription other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Id, other.Id)) return false;
if (BattleTag != other.BattleTag) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasId) hash ^= Id.GetHashCode();
if (HasBattleTag) hash ^= BattleTag.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasId) {
output.WriteRawTag(10);
output.WriteMessage(Id);
}
if (HasBattleTag) {
output.WriteRawTag(18);
output.WriteString(BattleTag);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id);
}
if (HasBattleTag) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberDescription other) {
if (other == null) {
return;
}
if (other.HasId) {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
Id.MergeFrom(other.Id);
}
if (other.HasBattleTag) {
BattleTag = other.BattleTag;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasId) {
Id = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(Id);
break;
}
case 18: {
BattleTag = input.ReadString();
break;
}
}
}
}
}
public sealed partial class RoleOptions : pb::IMessage<RoleOptions> {
private static readonly pb::MessageParser<RoleOptions> _parser = new pb::MessageParser<RoleOptions>(() => new RoleOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RoleOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[8]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RoleOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RoleOptions(RoleOptions other) : this() {
memberId_ = other.HasMemberId ? other.memberId_.Clone() : null;
role_ = other.role_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RoleOptions Clone() {
return new RoleOptions(this);
}
/// <summary>Field number for the "member_id" field.</summary>
public const int MemberIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId memberId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId MemberId {
get { return memberId_; }
set {
memberId_ = value;
}
}
/// <summary>Gets whether the member_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMemberId {
get { return memberId_ != null; }
}
/// <summary>Clears the value of the member_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMemberId() {
memberId_ = null;
}
/// <summary>Field number for the "role" field.</summary>
public const int RoleFieldNumber = 2;
private static readonly pb::FieldCodec<uint> _repeated_role_codec
= pb::FieldCodec.ForUInt32(18);
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> Role {
get { return role_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RoleOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RoleOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(MemberId, other.MemberId)) return false;
if(!role_.Equals(other.role_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMemberId) hash ^= MemberId.GetHashCode();
hash ^= role_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasMemberId) {
output.WriteRawTag(10);
output.WriteMessage(MemberId);
}
role_.WriteTo(output, _repeated_role_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMemberId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId);
}
size += role_.CalculateSize(_repeated_role_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RoleOptions other) {
if (other == null) {
return;
}
if (other.HasMemberId) {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
MemberId.MergeFrom(other.MemberId);
}
role_.Add(other.role_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(MemberId);
break;
}
case 18:
case 16: {
role_.AddEntriesFrom(input, _repeated_role_codec);
break;
}
}
}
}
}
public sealed partial class RoleAssignment : pb::IMessage<RoleAssignment> {
private static readonly pb::MessageParser<RoleAssignment> _parser = new pb::MessageParser<RoleAssignment>(() => new RoleAssignment());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RoleAssignment> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[9]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RoleAssignment() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RoleAssignment(RoleAssignment other) : this() {
memberId_ = other.HasMemberId ? other.memberId_.Clone() : null;
role_ = other.role_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RoleAssignment Clone() {
return new RoleAssignment(this);
}
/// <summary>Field number for the "member_id" field.</summary>
public const int MemberIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId memberId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId MemberId {
get { return memberId_; }
set {
memberId_ = value;
}
}
/// <summary>Gets whether the member_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMemberId {
get { return memberId_ != null; }
}
/// <summary>Clears the value of the member_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMemberId() {
memberId_ = null;
}
/// <summary>Field number for the "role" field.</summary>
public const int RoleFieldNumber = 2;
private static readonly pb::FieldCodec<uint> _repeated_role_codec
= pb::FieldCodec.ForUInt32(18);
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> Role {
get { return role_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RoleAssignment);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RoleAssignment other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(MemberId, other.MemberId)) return false;
if(!role_.Equals(other.role_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMemberId) hash ^= MemberId.GetHashCode();
hash ^= role_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasMemberId) {
output.WriteRawTag(10);
output.WriteMessage(MemberId);
}
role_.WriteTo(output, _repeated_role_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMemberId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId);
}
size += role_.CalculateSize(_repeated_role_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RoleAssignment other) {
if (other == null) {
return;
}
if (other.HasMemberId) {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
MemberId.MergeFrom(other.MemberId);
}
role_.Add(other.role_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(MemberId);
break;
}
case 18:
case 16: {
role_.AddEntriesFrom(input, _repeated_role_codec);
break;
}
}
}
}
}
public sealed partial class MemberAttributeAssignment : pb::IMessage<MemberAttributeAssignment> {
private static readonly pb::MessageParser<MemberAttributeAssignment> _parser = new pb::MessageParser<MemberAttributeAssignment>(() => new MemberAttributeAssignment());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberAttributeAssignment> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[10]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberAttributeAssignment() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberAttributeAssignment(MemberAttributeAssignment other) : this() {
memberId_ = other.HasMemberId ? other.memberId_.Clone() : null;
attribute_ = other.attribute_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberAttributeAssignment Clone() {
return new MemberAttributeAssignment(this);
}
/// <summary>Field number for the "member_id" field.</summary>
public const int MemberIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId memberId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId MemberId {
get { return memberId_; }
set {
memberId_ = value;
}
}
/// <summary>Gets whether the member_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMemberId {
get { return memberId_ != null; }
}
/// <summary>Clears the value of the member_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMemberId() {
memberId_ = null;
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
get { return attribute_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberAttributeAssignment);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberAttributeAssignment other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(MemberId, other.MemberId)) return false;
if(!attribute_.Equals(other.attribute_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMemberId) hash ^= MemberId.GetHashCode();
hash ^= attribute_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasMemberId) {
output.WriteRawTag(10);
output.WriteMessage(MemberId);
}
attribute_.WriteTo(output, _repeated_attribute_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMemberId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId);
}
size += attribute_.CalculateSize(_repeated_attribute_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberAttributeAssignment other) {
if (other == null) {
return;
}
if (other.HasMemberId) {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
MemberId.MergeFrom(other.MemberId);
}
attribute_.Add(other.attribute_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(MemberId);
break;
}
case 18: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
}
}
}
}
public sealed partial class SubscriberStateOptions : pb::IMessage<SubscriberStateOptions> {
private static readonly pb::MessageParser<SubscriberStateOptions> _parser = new pb::MessageParser<SubscriberStateOptions>(() => new SubscriberStateOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubscriberStateOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[11]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateOptions(SubscriberStateOptions other) : this() {
voice_ = other.HasVoice ? other.voice_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateOptions Clone() {
return new SubscriberStateOptions(this);
}
/// <summary>Field number for the "voice" field.</summary>
public const int VoiceFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberVoiceOptions voice_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberVoiceOptions Voice {
get { return voice_; }
set {
voice_ = value;
}
}
/// <summary>Gets whether the voice field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasVoice {
get { return voice_ != null; }
}
/// <summary>Clears the value of the voice field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearVoice() {
voice_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SubscriberStateOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubscriberStateOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Voice, other.Voice)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasVoice) hash ^= Voice.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasVoice) {
output.WriteRawTag(10);
output.WriteMessage(Voice);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasVoice) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Voice);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubscriberStateOptions other) {
if (other == null) {
return;
}
if (other.HasVoice) {
if (!HasVoice) {
Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceOptions();
}
Voice.MergeFrom(other.Voice);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasVoice) {
Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceOptions();
}
input.ReadMessage(Voice);
break;
}
}
}
}
}
public sealed partial class SubscriberStateAssignment : pb::IMessage<SubscriberStateAssignment> {
private static readonly pb::MessageParser<SubscriberStateAssignment> _parser = new pb::MessageParser<SubscriberStateAssignment>(() => new SubscriberStateAssignment());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubscriberStateAssignment> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[12]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateAssignment() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateAssignment(SubscriberStateAssignment other) : this() {
_hasBits0 = other._hasBits0;
memberId_ = other.HasMemberId ? other.memberId_.Clone() : null;
active_ = other.active_;
voice_ = other.HasVoice ? other.voice_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscriberStateAssignment Clone() {
return new SubscriberStateAssignment(this);
}
/// <summary>Field number for the "member_id" field.</summary>
public const int MemberIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId memberId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId MemberId {
get { return memberId_; }
set {
memberId_ = value;
}
}
/// <summary>Gets whether the member_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMemberId {
get { return memberId_ != null; }
}
/// <summary>Clears the value of the member_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMemberId() {
memberId_ = null;
}
/// <summary>Field number for the "active" field.</summary>
public const int ActiveFieldNumber = 2;
private readonly static bool ActiveDefaultValue = false;
private bool active_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Active {
get { if ((_hasBits0 & 1) != 0) { return active_; } else { return ActiveDefaultValue; } }
set {
_hasBits0 |= 1;
active_ = value;
}
}
/// <summary>Gets whether the "active" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasActive {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "active" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearActive() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "voice" field.</summary>
public const int VoiceFieldNumber = 3;
private global::Bgs.Protocol.Club.V1.MemberVoiceState voice_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberVoiceState Voice {
get { return voice_; }
set {
voice_ = value;
}
}
/// <summary>Gets whether the voice field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasVoice {
get { return voice_ != null; }
}
/// <summary>Clears the value of the voice field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearVoice() {
voice_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SubscriberStateAssignment);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubscriberStateAssignment other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(MemberId, other.MemberId)) return false;
if (Active != other.Active) return false;
if (!object.Equals(Voice, other.Voice)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMemberId) hash ^= MemberId.GetHashCode();
if (HasActive) hash ^= Active.GetHashCode();
if (HasVoice) hash ^= Voice.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasMemberId) {
output.WriteRawTag(10);
output.WriteMessage(MemberId);
}
if (HasActive) {
output.WriteRawTag(16);
output.WriteBool(Active);
}
if (HasVoice) {
output.WriteRawTag(26);
output.WriteMessage(Voice);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMemberId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId);
}
if (HasActive) {
size += 1 + 1;
}
if (HasVoice) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Voice);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubscriberStateAssignment other) {
if (other == null) {
return;
}
if (other.HasMemberId) {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
MemberId.MergeFrom(other.MemberId);
}
if (other.HasActive) {
Active = other.Active;
}
if (other.HasVoice) {
if (!HasVoice) {
Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceState();
}
Voice.MergeFrom(other.Voice);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(MemberId);
break;
}
case 16: {
Active = input.ReadBool();
break;
}
case 26: {
if (!HasVoice) {
Voice = new global::Bgs.Protocol.Club.V1.MemberVoiceState();
}
input.ReadMessage(Voice);
break;
}
}
}
}
}
public sealed partial class MemberStateOptions : pb::IMessage<MemberStateOptions> {
private static readonly pb::MessageParser<MemberStateOptions> _parser = new pb::MessageParser<MemberStateOptions>(() => new MemberStateOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberStateOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[13]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateOptions(MemberStateOptions other) : this() {
_hasBits0 = other._hasBits0;
attribute_ = other.attribute_.Clone();
presenceLevel_ = other.presenceLevel_;
moderatorMute_ = other.moderatorMute_;
whisperLevel_ = other.whisperLevel_;
note_ = other.note_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateOptions Clone() {
return new MemberStateOptions(this);
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 1;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
get { return attribute_; }
}
/// <summary>Field number for the "presence_level" field.</summary>
public const int PresenceLevelFieldNumber = 2;
private readonly static global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevelDefaultValue = global::Bgs.Protocol.Club.V1.PresenceLevel.None;
private global::Bgs.Protocol.Club.V1.PresenceLevel presenceLevel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevel {
get { if ((_hasBits0 & 1) != 0) { return presenceLevel_; } else { return PresenceLevelDefaultValue; } }
set {
_hasBits0 |= 1;
presenceLevel_ = value;
}
}
/// <summary>Gets whether the "presence_level" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPresenceLevel {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "presence_level" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearPresenceLevel() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "moderator_mute" field.</summary>
public const int ModeratorMuteFieldNumber = 3;
private readonly static bool ModeratorMuteDefaultValue = false;
private bool moderatorMute_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool ModeratorMute {
get { if ((_hasBits0 & 2) != 0) { return moderatorMute_; } else { return ModeratorMuteDefaultValue; } }
set {
_hasBits0 |= 2;
moderatorMute_ = value;
}
}
/// <summary>Gets whether the "moderator_mute" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasModeratorMute {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "moderator_mute" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearModeratorMute() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "whisper_level" field.</summary>
public const int WhisperLevelFieldNumber = 4;
private readonly static global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevelDefaultValue = global::Bgs.Protocol.Club.V1.WhisperLevel.Open;
private global::Bgs.Protocol.Club.V1.WhisperLevel whisperLevel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevel {
get { if ((_hasBits0 & 4) != 0) { return whisperLevel_; } else { return WhisperLevelDefaultValue; } }
set {
_hasBits0 |= 4;
whisperLevel_ = value;
}
}
/// <summary>Gets whether the "whisper_level" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasWhisperLevel {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "whisper_level" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearWhisperLevel() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "note" field.</summary>
public const int NoteFieldNumber = 5;
private readonly static string NoteDefaultValue = "";
private string note_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Note {
get { return note_ ?? NoteDefaultValue; }
set {
note_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "note" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasNote {
get { return note_ != null; }
}
/// <summary>Clears the value of the "note" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearNote() {
note_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberStateOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberStateOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!attribute_.Equals(other.attribute_)) return false;
if (PresenceLevel != other.PresenceLevel) return false;
if (ModeratorMute != other.ModeratorMute) return false;
if (WhisperLevel != other.WhisperLevel) return false;
if (Note != other.Note) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= attribute_.GetHashCode();
if (HasPresenceLevel) hash ^= PresenceLevel.GetHashCode();
if (HasModeratorMute) hash ^= ModeratorMute.GetHashCode();
if (HasWhisperLevel) hash ^= WhisperLevel.GetHashCode();
if (HasNote) hash ^= Note.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
attribute_.WriteTo(output, _repeated_attribute_codec);
if (HasPresenceLevel) {
output.WriteRawTag(16);
output.WriteEnum((int) PresenceLevel);
}
if (HasModeratorMute) {
output.WriteRawTag(24);
output.WriteBool(ModeratorMute);
}
if (HasWhisperLevel) {
output.WriteRawTag(32);
output.WriteEnum((int) WhisperLevel);
}
if (HasNote) {
output.WriteRawTag(42);
output.WriteString(Note);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += attribute_.CalculateSize(_repeated_attribute_codec);
if (HasPresenceLevel) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresenceLevel);
}
if (HasModeratorMute) {
size += 1 + 1;
}
if (HasWhisperLevel) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WhisperLevel);
}
if (HasNote) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberStateOptions other) {
if (other == null) {
return;
}
attribute_.Add(other.attribute_);
if (other.HasPresenceLevel) {
PresenceLevel = other.PresenceLevel;
}
if (other.HasModeratorMute) {
ModeratorMute = other.ModeratorMute;
}
if (other.HasWhisperLevel) {
WhisperLevel = other.WhisperLevel;
}
if (other.HasNote) {
Note = other.Note;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
case 16: {
PresenceLevel = (global::Bgs.Protocol.Club.V1.PresenceLevel) input.ReadEnum();
break;
}
case 24: {
ModeratorMute = input.ReadBool();
break;
}
case 32: {
WhisperLevel = (global::Bgs.Protocol.Club.V1.WhisperLevel) input.ReadEnum();
break;
}
case 42: {
Note = input.ReadString();
break;
}
}
}
}
}
public sealed partial class MemberStateAssignment : pb::IMessage<MemberStateAssignment> {
private static readonly pb::MessageParser<MemberStateAssignment> _parser = new pb::MessageParser<MemberStateAssignment>(() => new MemberStateAssignment());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemberStateAssignment> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor.MessageTypes[14]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateAssignment() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateAssignment(MemberStateAssignment other) : this() {
_hasBits0 = other._hasBits0;
memberId_ = other.HasMemberId ? other.memberId_.Clone() : null;
attribute_ = other.attribute_.Clone();
presenceLevel_ = other.presenceLevel_;
moderatorMute_ = other.moderatorMute_;
whisperLevel_ = other.whisperLevel_;
note_ = other.note_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemberStateAssignment Clone() {
return new MemberStateAssignment(this);
}
/// <summary>Field number for the "member_id" field.</summary>
public const int MemberIdFieldNumber = 1;
private global::Bgs.Protocol.Club.V1.MemberId memberId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.MemberId MemberId {
get { return memberId_; }
set {
memberId_ = value;
}
}
/// <summary>Gets whether the member_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMemberId {
get { return memberId_ != null; }
}
/// <summary>Clears the value of the member_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMemberId() {
memberId_ = null;
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
get { return attribute_; }
}
/// <summary>Field number for the "presence_level" field.</summary>
public const int PresenceLevelFieldNumber = 3;
private readonly static global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevelDefaultValue = global::Bgs.Protocol.Club.V1.PresenceLevel.None;
private global::Bgs.Protocol.Club.V1.PresenceLevel presenceLevel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.PresenceLevel PresenceLevel {
get { if ((_hasBits0 & 1) != 0) { return presenceLevel_; } else { return PresenceLevelDefaultValue; } }
set {
_hasBits0 |= 1;
presenceLevel_ = value;
}
}
/// <summary>Gets whether the "presence_level" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasPresenceLevel {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "presence_level" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearPresenceLevel() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "moderator_mute" field.</summary>
public const int ModeratorMuteFieldNumber = 4;
private readonly static bool ModeratorMuteDefaultValue = false;
private bool moderatorMute_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool ModeratorMute {
get { if ((_hasBits0 & 2) != 0) { return moderatorMute_; } else { return ModeratorMuteDefaultValue; } }
set {
_hasBits0 |= 2;
moderatorMute_ = value;
}
}
/// <summary>Gets whether the "moderator_mute" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasModeratorMute {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "moderator_mute" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearModeratorMute() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "whisper_level" field.</summary>
public const int WhisperLevelFieldNumber = 5;
private readonly static global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevelDefaultValue = global::Bgs.Protocol.Club.V1.WhisperLevel.Open;
private global::Bgs.Protocol.Club.V1.WhisperLevel whisperLevel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Club.V1.WhisperLevel WhisperLevel {
get { if ((_hasBits0 & 4) != 0) { return whisperLevel_; } else { return WhisperLevelDefaultValue; } }
set {
_hasBits0 |= 4;
whisperLevel_ = value;
}
}
/// <summary>Gets whether the "whisper_level" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasWhisperLevel {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "whisper_level" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearWhisperLevel() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "note" field.</summary>
public const int NoteFieldNumber = 6;
private readonly static string NoteDefaultValue = "";
private string note_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Note {
get { return note_ ?? NoteDefaultValue; }
set {
note_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "note" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasNote {
get { return note_ != null; }
}
/// <summary>Clears the value of the "note" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearNote() {
note_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemberStateAssignment);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemberStateAssignment other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(MemberId, other.MemberId)) return false;
if(!attribute_.Equals(other.attribute_)) return false;
if (PresenceLevel != other.PresenceLevel) return false;
if (ModeratorMute != other.ModeratorMute) return false;
if (WhisperLevel != other.WhisperLevel) return false;
if (Note != other.Note) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMemberId) hash ^= MemberId.GetHashCode();
hash ^= attribute_.GetHashCode();
if (HasPresenceLevel) hash ^= PresenceLevel.GetHashCode();
if (HasModeratorMute) hash ^= ModeratorMute.GetHashCode();
if (HasWhisperLevel) hash ^= WhisperLevel.GetHashCode();
if (HasNote) hash ^= Note.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasMemberId) {
output.WriteRawTag(10);
output.WriteMessage(MemberId);
}
attribute_.WriteTo(output, _repeated_attribute_codec);
if (HasPresenceLevel) {
output.WriteRawTag(24);
output.WriteEnum((int) PresenceLevel);
}
if (HasModeratorMute) {
output.WriteRawTag(32);
output.WriteBool(ModeratorMute);
}
if (HasWhisperLevel) {
output.WriteRawTag(40);
output.WriteEnum((int) WhisperLevel);
}
if (HasNote) {
output.WriteRawTag(50);
output.WriteString(Note);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMemberId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemberId);
}
size += attribute_.CalculateSize(_repeated_attribute_codec);
if (HasPresenceLevel) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresenceLevel);
}
if (HasModeratorMute) {
size += 1 + 1;
}
if (HasWhisperLevel) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WhisperLevel);
}
if (HasNote) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemberStateAssignment other) {
if (other == null) {
return;
}
if (other.HasMemberId) {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
MemberId.MergeFrom(other.MemberId);
}
attribute_.Add(other.attribute_);
if (other.HasPresenceLevel) {
PresenceLevel = other.PresenceLevel;
}
if (other.HasModeratorMute) {
ModeratorMute = other.ModeratorMute;
}
if (other.HasWhisperLevel) {
WhisperLevel = other.WhisperLevel;
}
if (other.HasNote) {
Note = other.Note;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasMemberId) {
MemberId = new global::Bgs.Protocol.Club.V1.MemberId();
}
input.ReadMessage(MemberId);
break;
}
case 18: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
case 24: {
PresenceLevel = (global::Bgs.Protocol.Club.V1.PresenceLevel) input.ReadEnum();
break;
}
case 32: {
ModeratorMute = input.ReadBool();
break;
}
case 40: {
WhisperLevel = (global::Bgs.Protocol.Club.V1.WhisperLevel) input.ReadEnum();
break;
}
case 50: {
Note = input.ReadString();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code