// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: bgs/low/pb/client/club_invitation.proto // #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Bgs.Protocol.Club.V1 { /// Holder for reflection information generated from bgs/low/pb/client/club_invitation.proto public static partial class ClubInvitationReflection { #region Descriptor /// File descriptor for bgs/low/pb/client/club_invitation.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ClubInvitationReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CidiZ3MvbG93L3BiL2NsaWVudC9jbHViX2ludml0YXRpb24ucHJvdG8SFGJn", "cy5wcm90b2NvbC5jbHViLnYxGiFiZ3MvbG93L3BiL2NsaWVudC9jbHViX2Nv", "cmUucHJvdG8aI2Jncy9sb3cvcGIvY2xpZW50L2NsdWJfbWVtYmVyLnByb3Rv", "GjViZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL2F0dHJpYnV0ZV90", "eXBlcy5wcm90byIzCghDbHViU2xvdBIMCgRyb2xlGAEgASgNEhkKEWRlZmF1", "bHRfc3RyZWFtX2lkGAIgASgEIqcBChVTZW5kSW52aXRhdGlvbk9wdGlvbnMS", "MQoJdGFyZ2V0X2lkGAEgASgLMh4uYmdzLnByb3RvY29sLmNsdWIudjEuTWVt", "YmVySWQSLAoEc2xvdBgCIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLkNs", "dWJTbG90Ei0KCWF0dHJpYnV0ZRgDIAMoCzIaLmJncy5wcm90b2NvbC52Mi5B", "dHRyaWJ1dGUijgMKDkNsdWJJbnZpdGF0aW9uEgoKAmlkGAEgASgGEjgKB2lu", "dml0ZXIYAiABKAsyJy5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJEZXNj", "cmlwdGlvbhI4CgdpbnZpdGVlGAMgASgLMicuYmdzLnByb3RvY29sLmNsdWIu", "djEuTWVtYmVyRGVzY3JpcHRpb24SMwoEY2x1YhgEIAEoCzIlLmJncy5wcm90", "b2NvbC5jbHViLnYxLkNsdWJEZXNjcmlwdGlvbhIsCgRzbG90GAUgASgLMh4u", "YmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YlNsb3QSLQoJYXR0cmlidXRlGAYg", "AygLMhouYmdzLnByb3RvY29sLnYyLkF0dHJpYnV0ZRIVCg1jcmVhdGlvbl90", "aW1lGAcgASgEEhcKD2V4cGlyYXRpb25fdGltZRgIIAEoBBI6CglzdWdnZXN0", "ZXIYCSABKAsyJy5iZ3MucHJvdG9jb2wuY2x1Yi52MS5NZW1iZXJEZXNjcmlw", "dGlvbiKnAQoVU2VuZFN1Z2dlc3Rpb25PcHRpb25zEjEKCXRhcmdldF9pZBgB", "IAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJlcklkEiwKBHNsb3QY", "AiABKAsyHi5iZ3MucHJvdG9jb2wuY2x1Yi52MS5DbHViU2xvdBItCglhdHRy", "aWJ1dGUYAyADKAsyGi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlIrICCg5D", "bHViU3VnZ2VzdGlvbhIKCgJpZBgBIAEoBhIPCgdjbHViX2lkGAIgASgEEjoK", "CXN1Z2dlc3RlchgDIAEoCzInLmJncy5wcm90b2NvbC5jbHViLnYxLk1lbWJl", "ckRlc2NyaXB0aW9uEjoKCXN1Z2dlc3RlZRgEIAEoCzInLmJncy5wcm90b2Nv", "bC5jbHViLnYxLk1lbWJlckRlc2NyaXB0aW9uEiwKBHNsb3QYBSABKAsyHi5i", "Z3MucHJvdG9jb2wuY2x1Yi52MS5DbHViU2xvdBItCglhdHRyaWJ1dGUYBiAD", "KAsyGi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlEhUKDWNyZWF0aW9uX3Rp", "bWUYByABKAQSFwoPZXhwaXJhdGlvbl90aW1lGAggASgEIqkBChNDcmVhdGVU", "aWNrZXRPcHRpb25zEiwKBHNsb3QYASABKAsyHi5iZ3MucHJvdG9jb2wuY2x1", "Yi52MS5DbHViU2xvdBItCglhdHRyaWJ1dGUYAiADKAsyGi5iZ3MucHJvdG9j", "b2wudjIuQXR0cmlidXRlEhwKFGFsbG93ZWRfcmVkZWVtX2NvdW50GAMgASgN", "EhcKD2V4cGlyYXRpb25fdGltZRgEIAEoBCLQAgoKQ2x1YlRpY2tldBIKCgJp", "ZBgBIAEoCRI4CgdjcmVhdG9yGAIgASgLMicuYmdzLnByb3RvY29sLmNsdWIu", "djEuTWVtYmVyRGVzY3JpcHRpb24SMwoEY2x1YhgDIAEoCzIlLmJncy5wcm90", "b2NvbC5jbHViLnYxLkNsdWJEZXNjcmlwdGlvbhIsCgRzbG90GAQgASgLMh4u", "YmdzLnByb3RvY29sLmNsdWIudjEuQ2x1YlNsb3QSLQoJYXR0cmlidXRlGAUg", "AygLMhouYmdzLnByb3RvY29sLnYyLkF0dHJpYnV0ZRIcChRjdXJyZW50X3Jl", "ZGVlbV9jb3VudBgGIAEoDRIcChRhbGxvd2VkX3JlZGVlbV9jb3VudBgHIAEo", "DRIVCg1jcmVhdGlvbl90aW1lGAggASgEEhcKD2V4cGlyYXRpb25fdGltZRgJ", "IAEoBA==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubMemberReflection.Descriptor, global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSlot), global::Bgs.Protocol.Club.V1.ClubSlot.Parser, new[]{ "Role", "DefaultStreamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SendInvitationOptions), global::Bgs.Protocol.Club.V1.SendInvitationOptions.Parser, new[]{ "TargetId", "Slot", "Attribute" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubInvitation), global::Bgs.Protocol.Club.V1.ClubInvitation.Parser, new[]{ "Id", "Inviter", "Invitee", "Club", "Slot", "Attribute", "CreationTime", "ExpirationTime", "Suggester" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.SendSuggestionOptions), global::Bgs.Protocol.Club.V1.SendSuggestionOptions.Parser, new[]{ "TargetId", "Slot", "Attribute" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubSuggestion), global::Bgs.Protocol.Club.V1.ClubSuggestion.Parser, new[]{ "Id", "ClubId", "Suggester", "Suggestee", "Slot", "Attribute", "CreationTime", "ExpirationTime" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.CreateTicketOptions), global::Bgs.Protocol.Club.V1.CreateTicketOptions.Parser, new[]{ "Slot", "Attribute", "AllowedRedeemCount", "ExpirationTime" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubTicket), global::Bgs.Protocol.Club.V1.ClubTicket.Parser, new[]{ "Id", "Creator", "Club", "Slot", "Attribute", "CurrentRedeemCount", "AllowedRedeemCount", "CreationTime", "ExpirationTime" }, null, null, null, null) })); } #endregion } #region Messages public sealed partial class ClubSlot : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSlot()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubSlot() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubSlot(ClubSlot other) : this() { _hasBits0 = other._hasBits0; role_ = other.role_; defaultStreamId_ = other.defaultStreamId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubSlot Clone() { return new ClubSlot(this); } /// Field number for the "role" field. public const int RoleFieldNumber = 1; private readonly static uint RoleDefaultValue = 0; private uint role_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Role { get { if ((_hasBits0 & 1) != 0) { return role_; } else { return RoleDefaultValue; } } set { _hasBits0 |= 1; role_ = value; } } /// Gets whether the "role" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasRole { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "role" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearRole() { _hasBits0 &= ~1; } /// Field number for the "default_stream_id" field. public const int DefaultStreamIdFieldNumber = 2; private readonly static ulong DefaultStreamIdDefaultValue = 0UL; private ulong defaultStreamId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong DefaultStreamId { get { if ((_hasBits0 & 2) != 0) { return defaultStreamId_; } else { return DefaultStreamIdDefaultValue; } } set { _hasBits0 |= 2; defaultStreamId_ = value; } } /// Gets whether the "default_stream_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasDefaultStreamId { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "default_stream_id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearDefaultStreamId() { _hasBits0 &= ~2; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ClubSlot); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ClubSlot other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Role != other.Role) return false; if (DefaultStreamId != other.DefaultStreamId) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasRole) hash ^= Role.GetHashCode(); if (HasDefaultStreamId) hash ^= DefaultStreamId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (HasRole) { output.WriteRawTag(8); output.WriteUInt32(Role); } if (HasDefaultStreamId) { output.WriteRawTag(16); output.WriteUInt64(DefaultStreamId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasRole) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Role); } if (HasDefaultStreamId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DefaultStreamId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ClubSlot other) { if (other == null) { return; } if (other.HasRole) { Role = other.Role; } if (other.HasDefaultStreamId) { DefaultStreamId = other.DefaultStreamId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Role = input.ReadUInt32(); break; } case 16: { DefaultStreamId = input.ReadUInt64(); break; } } } } } public sealed partial class SendInvitationOptions : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendInvitationOptions()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendInvitationOptions() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendInvitationOptions(SendInvitationOptions other) : this() { targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; slot_ = other.HasSlot ? other.slot_.Clone() : null; attribute_ = other.attribute_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendInvitationOptions Clone() { return new SendInvitationOptions(this); } /// Field number for the "target_id" field. public const int TargetIdFieldNumber = 1; private global::Bgs.Protocol.Club.V1.MemberId targetId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.MemberId TargetId { get { return targetId_; } set { targetId_ = value; } } /// Gets whether the target_id field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasTargetId { get { return targetId_ != null; } } /// Clears the value of the target_id field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearTargetId() { targetId_ = null; } /// Field number for the "slot" field. public const int SlotFieldNumber = 2; private global::Bgs.Protocol.Club.V1.ClubSlot slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.ClubSlot Slot { get { return slot_; } set { slot_ = value; } } /// Gets whether the slot field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSlot { get { return slot_ != null; } } /// Clears the value of the slot field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSlot() { slot_ = null; } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 3; private static readonly pb::FieldCodec _repeated_attribute_codec = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.V2.Attribute.Parser); private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Attribute { get { return attribute_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SendInvitationOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SendInvitationOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(TargetId, other.TargetId)) return false; if (!object.Equals(Slot, other.Slot)) return false; if(!attribute_.Equals(other.attribute_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasTargetId) hash ^= TargetId.GetHashCode(); if (HasSlot) hash ^= Slot.GetHashCode(); hash ^= attribute_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (HasTargetId) { output.WriteRawTag(10); output.WriteMessage(TargetId); } if (HasSlot) { output.WriteRawTag(18); output.WriteMessage(Slot); } attribute_.WriteTo(output, _repeated_attribute_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasTargetId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); } if (HasSlot) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); } size += attribute_.CalculateSize(_repeated_attribute_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SendInvitationOptions other) { if (other == null) { return; } if (other.HasTargetId) { if (!HasTargetId) { TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); } TargetId.MergeFrom(other.TargetId); } if (other.HasSlot) { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } Slot.MergeFrom(other.Slot); } attribute_.Add(other.attribute_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (!HasTargetId) { TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); } input.ReadMessage(TargetId); break; } case 18: { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } input.ReadMessage(Slot); break; } case 26: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } } } } } public sealed partial class ClubInvitation : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubInvitation()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubInvitation() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubInvitation(ClubInvitation other) : this() { _hasBits0 = other._hasBits0; id_ = other.id_; inviter_ = other.HasInviter ? other.inviter_.Clone() : null; invitee_ = other.HasInvitee ? other.invitee_.Clone() : null; club_ = other.HasClub ? other.club_.Clone() : null; slot_ = other.HasSlot ? other.slot_.Clone() : null; attribute_ = other.attribute_.Clone(); creationTime_ = other.creationTime_; expirationTime_ = other.expirationTime_; suggester_ = other.HasSuggester ? other.suggester_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubInvitation Clone() { return new ClubInvitation(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private readonly static ulong IdDefaultValue = 0UL; private ulong id_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong Id { get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } set { _hasBits0 |= 1; id_ = value; } } /// Gets whether the "id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasId { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearId() { _hasBits0 &= ~1; } /// Field number for the "inviter" field. public const int InviterFieldNumber = 2; private global::Bgs.Protocol.Club.V1.MemberDescription inviter_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.MemberDescription Inviter { get { return inviter_; } set { inviter_ = value; } } /// Gets whether the inviter field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasInviter { get { return inviter_ != null; } } /// Clears the value of the inviter field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearInviter() { inviter_ = null; } /// Field number for the "invitee" field. public const int InviteeFieldNumber = 3; private global::Bgs.Protocol.Club.V1.MemberDescription invitee_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.MemberDescription Invitee { get { return invitee_; } set { invitee_ = value; } } /// Gets whether the invitee field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasInvitee { get { return invitee_ != null; } } /// Clears the value of the invitee field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearInvitee() { invitee_ = null; } /// Field number for the "club" field. public const int ClubFieldNumber = 4; private global::Bgs.Protocol.Club.V1.ClubDescription club_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.ClubDescription Club { get { return club_; } set { club_ = value; } } /// Gets whether the club field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasClub { get { return club_ != null; } } /// Clears the value of the club field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearClub() { club_ = null; } /// Field number for the "slot" field. public const int SlotFieldNumber = 5; private global::Bgs.Protocol.Club.V1.ClubSlot slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.ClubSlot Slot { get { return slot_; } set { slot_ = value; } } /// Gets whether the slot field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSlot { get { return slot_ != null; } } /// Clears the value of the slot field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSlot() { slot_ = null; } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 6; private static readonly pb::FieldCodec _repeated_attribute_codec = pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.V2.Attribute.Parser); private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Attribute { get { return attribute_; } } /// Field number for the "creation_time" field. public const int CreationTimeFieldNumber = 7; private readonly static ulong CreationTimeDefaultValue = 0UL; private ulong creationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong CreationTime { get { if ((_hasBits0 & 2) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } set { _hasBits0 |= 2; creationTime_ = value; } } /// Gets whether the "creation_time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasCreationTime { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "creation_time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearCreationTime() { _hasBits0 &= ~2; } /// Field number for the "expiration_time" field. public const int ExpirationTimeFieldNumber = 8; private readonly static ulong ExpirationTimeDefaultValue = 0UL; private ulong expirationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ExpirationTime { get { if ((_hasBits0 & 4) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } set { _hasBits0 |= 4; expirationTime_ = value; } } /// Gets whether the "expiration_time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasExpirationTime { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "expiration_time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearExpirationTime() { _hasBits0 &= ~4; } /// Field number for the "suggester" field. public const int SuggesterFieldNumber = 9; private global::Bgs.Protocol.Club.V1.MemberDescription suggester_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.MemberDescription Suggester { get { return suggester_; } set { suggester_ = value; } } /// Gets whether the suggester field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSuggester { get { return suggester_ != null; } } /// Clears the value of the suggester field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSuggester() { suggester_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ClubInvitation); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ClubInvitation other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (!object.Equals(Inviter, other.Inviter)) return false; if (!object.Equals(Invitee, other.Invitee)) return false; if (!object.Equals(Club, other.Club)) return false; if (!object.Equals(Slot, other.Slot)) return false; if(!attribute_.Equals(other.attribute_)) return false; if (CreationTime != other.CreationTime) return false; if (ExpirationTime != other.ExpirationTime) return false; if (!object.Equals(Suggester, other.Suggester)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasId) hash ^= Id.GetHashCode(); if (HasInviter) hash ^= Inviter.GetHashCode(); if (HasInvitee) hash ^= Invitee.GetHashCode(); if (HasClub) hash ^= Club.GetHashCode(); if (HasSlot) hash ^= Slot.GetHashCode(); hash ^= attribute_.GetHashCode(); if (HasCreationTime) hash ^= CreationTime.GetHashCode(); if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); if (HasSuggester) hash ^= Suggester.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (HasId) { output.WriteRawTag(9); output.WriteFixed64(Id); } if (HasInviter) { output.WriteRawTag(18); output.WriteMessage(Inviter); } if (HasInvitee) { output.WriteRawTag(26); output.WriteMessage(Invitee); } if (HasClub) { output.WriteRawTag(34); output.WriteMessage(Club); } if (HasSlot) { output.WriteRawTag(42); output.WriteMessage(Slot); } attribute_.WriteTo(output, _repeated_attribute_codec); if (HasCreationTime) { output.WriteRawTag(56); output.WriteUInt64(CreationTime); } if (HasExpirationTime) { output.WriteRawTag(64); output.WriteUInt64(ExpirationTime); } if (HasSuggester) { output.WriteRawTag(74); output.WriteMessage(Suggester); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasId) { size += 1 + 8; } if (HasInviter) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Inviter); } if (HasInvitee) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitee); } if (HasClub) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Club); } if (HasSlot) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); } size += attribute_.CalculateSize(_repeated_attribute_codec); if (HasCreationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); } if (HasExpirationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); } if (HasSuggester) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggester); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ClubInvitation other) { if (other == null) { return; } if (other.HasId) { Id = other.Id; } if (other.HasInviter) { if (!HasInviter) { Inviter = new global::Bgs.Protocol.Club.V1.MemberDescription(); } Inviter.MergeFrom(other.Inviter); } if (other.HasInvitee) { if (!HasInvitee) { Invitee = new global::Bgs.Protocol.Club.V1.MemberDescription(); } Invitee.MergeFrom(other.Invitee); } if (other.HasClub) { if (!HasClub) { Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); } Club.MergeFrom(other.Club); } if (other.HasSlot) { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } Slot.MergeFrom(other.Slot); } attribute_.Add(other.attribute_); if (other.HasCreationTime) { CreationTime = other.CreationTime; } if (other.HasExpirationTime) { ExpirationTime = other.ExpirationTime; } if (other.HasSuggester) { if (!HasSuggester) { Suggester = new global::Bgs.Protocol.Club.V1.MemberDescription(); } Suggester.MergeFrom(other.Suggester); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9: { Id = input.ReadFixed64(); break; } case 18: { if (!HasInviter) { Inviter = new global::Bgs.Protocol.Club.V1.MemberDescription(); } input.ReadMessage(Inviter); break; } case 26: { if (!HasInvitee) { Invitee = new global::Bgs.Protocol.Club.V1.MemberDescription(); } input.ReadMessage(Invitee); break; } case 34: { if (!HasClub) { Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); } input.ReadMessage(Club); break; } case 42: { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } input.ReadMessage(Slot); break; } case 50: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } case 56: { CreationTime = input.ReadUInt64(); break; } case 64: { ExpirationTime = input.ReadUInt64(); break; } case 74: { if (!HasSuggester) { Suggester = new global::Bgs.Protocol.Club.V1.MemberDescription(); } input.ReadMessage(Suggester); break; } } } } } public sealed partial class SendSuggestionOptions : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendSuggestionOptions()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendSuggestionOptions() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendSuggestionOptions(SendSuggestionOptions other) : this() { targetId_ = other.HasTargetId ? other.targetId_.Clone() : null; slot_ = other.HasSlot ? other.slot_.Clone() : null; attribute_ = other.attribute_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SendSuggestionOptions Clone() { return new SendSuggestionOptions(this); } /// Field number for the "target_id" field. public const int TargetIdFieldNumber = 1; private global::Bgs.Protocol.Club.V1.MemberId targetId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.MemberId TargetId { get { return targetId_; } set { targetId_ = value; } } /// Gets whether the target_id field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasTargetId { get { return targetId_ != null; } } /// Clears the value of the target_id field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearTargetId() { targetId_ = null; } /// Field number for the "slot" field. public const int SlotFieldNumber = 2; private global::Bgs.Protocol.Club.V1.ClubSlot slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.ClubSlot Slot { get { return slot_; } set { slot_ = value; } } /// Gets whether the slot field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSlot { get { return slot_ != null; } } /// Clears the value of the slot field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSlot() { slot_ = null; } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 3; private static readonly pb::FieldCodec _repeated_attribute_codec = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.V2.Attribute.Parser); private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Attribute { get { return attribute_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SendSuggestionOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SendSuggestionOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(TargetId, other.TargetId)) return false; if (!object.Equals(Slot, other.Slot)) return false; if(!attribute_.Equals(other.attribute_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasTargetId) hash ^= TargetId.GetHashCode(); if (HasSlot) hash ^= Slot.GetHashCode(); hash ^= attribute_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (HasTargetId) { output.WriteRawTag(10); output.WriteMessage(TargetId); } if (HasSlot) { output.WriteRawTag(18); output.WriteMessage(Slot); } attribute_.WriteTo(output, _repeated_attribute_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasTargetId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId); } if (HasSlot) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); } size += attribute_.CalculateSize(_repeated_attribute_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SendSuggestionOptions other) { if (other == null) { return; } if (other.HasTargetId) { if (!HasTargetId) { TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); } TargetId.MergeFrom(other.TargetId); } if (other.HasSlot) { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } Slot.MergeFrom(other.Slot); } attribute_.Add(other.attribute_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (!HasTargetId) { TargetId = new global::Bgs.Protocol.Club.V1.MemberId(); } input.ReadMessage(TargetId); break; } case 18: { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } input.ReadMessage(Slot); break; } case 26: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } } } } } public sealed partial class ClubSuggestion : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubSuggestion()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubSuggestion() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubSuggestion(ClubSuggestion other) : this() { _hasBits0 = other._hasBits0; id_ = other.id_; clubId_ = other.clubId_; suggester_ = other.HasSuggester ? other.suggester_.Clone() : null; suggestee_ = other.HasSuggestee ? other.suggestee_.Clone() : null; slot_ = other.HasSlot ? other.slot_.Clone() : null; attribute_ = other.attribute_.Clone(); creationTime_ = other.creationTime_; expirationTime_ = other.expirationTime_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubSuggestion Clone() { return new ClubSuggestion(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private readonly static ulong IdDefaultValue = 0UL; private ulong id_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong Id { get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } set { _hasBits0 |= 1; id_ = value; } } /// Gets whether the "id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasId { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearId() { _hasBits0 &= ~1; } /// Field number for the "club_id" field. public const int ClubIdFieldNumber = 2; private readonly static ulong ClubIdDefaultValue = 0UL; private ulong clubId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ClubId { get { if ((_hasBits0 & 2) != 0) { return clubId_; } else { return ClubIdDefaultValue; } } set { _hasBits0 |= 2; clubId_ = value; } } /// Gets whether the "club_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasClubId { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "club_id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearClubId() { _hasBits0 &= ~2; } /// Field number for the "suggester" field. public const int SuggesterFieldNumber = 3; private global::Bgs.Protocol.Club.V1.MemberDescription suggester_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.MemberDescription Suggester { get { return suggester_; } set { suggester_ = value; } } /// Gets whether the suggester field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSuggester { get { return suggester_ != null; } } /// Clears the value of the suggester field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSuggester() { suggester_ = null; } /// Field number for the "suggestee" field. public const int SuggesteeFieldNumber = 4; private global::Bgs.Protocol.Club.V1.MemberDescription suggestee_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.MemberDescription Suggestee { get { return suggestee_; } set { suggestee_ = value; } } /// Gets whether the suggestee field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSuggestee { get { return suggestee_ != null; } } /// Clears the value of the suggestee field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSuggestee() { suggestee_ = null; } /// Field number for the "slot" field. public const int SlotFieldNumber = 5; private global::Bgs.Protocol.Club.V1.ClubSlot slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.ClubSlot Slot { get { return slot_; } set { slot_ = value; } } /// Gets whether the slot field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSlot { get { return slot_ != null; } } /// Clears the value of the slot field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSlot() { slot_ = null; } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 6; private static readonly pb::FieldCodec _repeated_attribute_codec = pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.V2.Attribute.Parser); private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Attribute { get { return attribute_; } } /// Field number for the "creation_time" field. public const int CreationTimeFieldNumber = 7; private readonly static ulong CreationTimeDefaultValue = 0UL; private ulong creationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong CreationTime { get { if ((_hasBits0 & 4) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } set { _hasBits0 |= 4; creationTime_ = value; } } /// Gets whether the "creation_time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasCreationTime { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "creation_time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearCreationTime() { _hasBits0 &= ~4; } /// Field number for the "expiration_time" field. public const int ExpirationTimeFieldNumber = 8; private readonly static ulong ExpirationTimeDefaultValue = 0UL; private ulong expirationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ExpirationTime { get { if ((_hasBits0 & 8) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } set { _hasBits0 |= 8; expirationTime_ = value; } } /// Gets whether the "expiration_time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasExpirationTime { get { return (_hasBits0 & 8) != 0; } } /// Clears the value of the "expiration_time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearExpirationTime() { _hasBits0 &= ~8; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ClubSuggestion); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ClubSuggestion other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (ClubId != other.ClubId) return false; if (!object.Equals(Suggester, other.Suggester)) return false; if (!object.Equals(Suggestee, other.Suggestee)) return false; if (!object.Equals(Slot, other.Slot)) return false; if(!attribute_.Equals(other.attribute_)) return false; if (CreationTime != other.CreationTime) return false; if (ExpirationTime != other.ExpirationTime) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasId) hash ^= Id.GetHashCode(); if (HasClubId) hash ^= ClubId.GetHashCode(); if (HasSuggester) hash ^= Suggester.GetHashCode(); if (HasSuggestee) hash ^= Suggestee.GetHashCode(); if (HasSlot) hash ^= Slot.GetHashCode(); hash ^= attribute_.GetHashCode(); if (HasCreationTime) hash ^= CreationTime.GetHashCode(); if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (HasId) { output.WriteRawTag(9); output.WriteFixed64(Id); } if (HasClubId) { output.WriteRawTag(16); output.WriteUInt64(ClubId); } if (HasSuggester) { output.WriteRawTag(26); output.WriteMessage(Suggester); } if (HasSuggestee) { output.WriteRawTag(34); output.WriteMessage(Suggestee); } if (HasSlot) { output.WriteRawTag(42); output.WriteMessage(Slot); } attribute_.WriteTo(output, _repeated_attribute_codec); if (HasCreationTime) { output.WriteRawTag(56); output.WriteUInt64(CreationTime); } if (HasExpirationTime) { output.WriteRawTag(64); output.WriteUInt64(ExpirationTime); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasId) { size += 1 + 8; } if (HasClubId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId); } if (HasSuggester) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggester); } if (HasSuggestee) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Suggestee); } if (HasSlot) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); } size += attribute_.CalculateSize(_repeated_attribute_codec); if (HasCreationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); } if (HasExpirationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ClubSuggestion other) { if (other == null) { return; } if (other.HasId) { Id = other.Id; } if (other.HasClubId) { ClubId = other.ClubId; } if (other.HasSuggester) { if (!HasSuggester) { Suggester = new global::Bgs.Protocol.Club.V1.MemberDescription(); } Suggester.MergeFrom(other.Suggester); } if (other.HasSuggestee) { if (!HasSuggestee) { Suggestee = new global::Bgs.Protocol.Club.V1.MemberDescription(); } Suggestee.MergeFrom(other.Suggestee); } if (other.HasSlot) { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } Slot.MergeFrom(other.Slot); } attribute_.Add(other.attribute_); if (other.HasCreationTime) { CreationTime = other.CreationTime; } if (other.HasExpirationTime) { ExpirationTime = other.ExpirationTime; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9: { Id = input.ReadFixed64(); break; } case 16: { ClubId = input.ReadUInt64(); break; } case 26: { if (!HasSuggester) { Suggester = new global::Bgs.Protocol.Club.V1.MemberDescription(); } input.ReadMessage(Suggester); break; } case 34: { if (!HasSuggestee) { Suggestee = new global::Bgs.Protocol.Club.V1.MemberDescription(); } input.ReadMessage(Suggestee); break; } case 42: { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } input.ReadMessage(Slot); break; } case 50: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } case 56: { CreationTime = input.ReadUInt64(); break; } case 64: { ExpirationTime = input.ReadUInt64(); break; } } } } } public sealed partial class CreateTicketOptions : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTicketOptions()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CreateTicketOptions() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CreateTicketOptions(CreateTicketOptions other) : this() { _hasBits0 = other._hasBits0; slot_ = other.HasSlot ? other.slot_.Clone() : null; attribute_ = other.attribute_.Clone(); allowedRedeemCount_ = other.allowedRedeemCount_; expirationTime_ = other.expirationTime_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CreateTicketOptions Clone() { return new CreateTicketOptions(this); } /// Field number for the "slot" field. public const int SlotFieldNumber = 1; private global::Bgs.Protocol.Club.V1.ClubSlot slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.ClubSlot Slot { get { return slot_; } set { slot_ = value; } } /// Gets whether the slot field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSlot { get { return slot_ != null; } } /// Clears the value of the slot field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSlot() { slot_ = null; } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 2; private static readonly pb::FieldCodec _repeated_attribute_codec = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser); private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Attribute { get { return attribute_; } } /// Field number for the "allowed_redeem_count" field. public const int AllowedRedeemCountFieldNumber = 3; private readonly static uint AllowedRedeemCountDefaultValue = 0; private uint allowedRedeemCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint AllowedRedeemCount { get { if ((_hasBits0 & 1) != 0) { return allowedRedeemCount_; } else { return AllowedRedeemCountDefaultValue; } } set { _hasBits0 |= 1; allowedRedeemCount_ = value; } } /// Gets whether the "allowed_redeem_count" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasAllowedRedeemCount { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "allowed_redeem_count" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearAllowedRedeemCount() { _hasBits0 &= ~1; } /// Field number for the "expiration_time" field. public const int ExpirationTimeFieldNumber = 4; private readonly static ulong ExpirationTimeDefaultValue = 0UL; private ulong expirationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ExpirationTime { get { if ((_hasBits0 & 2) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } set { _hasBits0 |= 2; expirationTime_ = value; } } /// Gets whether the "expiration_time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasExpirationTime { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "expiration_time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearExpirationTime() { _hasBits0 &= ~2; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as CreateTicketOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(CreateTicketOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Slot, other.Slot)) return false; if(!attribute_.Equals(other.attribute_)) return false; if (AllowedRedeemCount != other.AllowedRedeemCount) return false; if (ExpirationTime != other.ExpirationTime) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasSlot) hash ^= Slot.GetHashCode(); hash ^= attribute_.GetHashCode(); if (HasAllowedRedeemCount) hash ^= AllowedRedeemCount.GetHashCode(); if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (HasSlot) { output.WriteRawTag(10); output.WriteMessage(Slot); } attribute_.WriteTo(output, _repeated_attribute_codec); if (HasAllowedRedeemCount) { output.WriteRawTag(24); output.WriteUInt32(AllowedRedeemCount); } if (HasExpirationTime) { output.WriteRawTag(32); output.WriteUInt64(ExpirationTime); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasSlot) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); } size += attribute_.CalculateSize(_repeated_attribute_codec); if (HasAllowedRedeemCount) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AllowedRedeemCount); } if (HasExpirationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(CreateTicketOptions other) { if (other == null) { return; } if (other.HasSlot) { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } Slot.MergeFrom(other.Slot); } attribute_.Add(other.attribute_); if (other.HasAllowedRedeemCount) { AllowedRedeemCount = other.AllowedRedeemCount; } if (other.HasExpirationTime) { ExpirationTime = other.ExpirationTime; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } input.ReadMessage(Slot); break; } case 18: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } case 24: { AllowedRedeemCount = input.ReadUInt32(); break; } case 32: { ExpirationTime = input.ReadUInt64(); break; } } } } } public sealed partial class ClubTicket : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClubTicket()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.Club.V1.ClubInvitationReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubTicket() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubTicket(ClubTicket other) : this() { _hasBits0 = other._hasBits0; id_ = other.id_; creator_ = other.HasCreator ? other.creator_.Clone() : null; club_ = other.HasClub ? other.club_.Clone() : null; slot_ = other.HasSlot ? other.slot_.Clone() : null; attribute_ = other.attribute_.Clone(); currentRedeemCount_ = other.currentRedeemCount_; allowedRedeemCount_ = other.allowedRedeemCount_; creationTime_ = other.creationTime_; expirationTime_ = other.expirationTime_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClubTicket Clone() { return new ClubTicket(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private readonly static string IdDefaultValue = ""; private string id_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Id { get { return id_ ?? IdDefaultValue; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Gets whether the "id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasId { get { return id_ != null; } } /// Clears the value of the "id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearId() { id_ = null; } /// Field number for the "creator" field. public const int CreatorFieldNumber = 2; private global::Bgs.Protocol.Club.V1.MemberDescription creator_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.MemberDescription Creator { get { return creator_; } set { creator_ = value; } } /// Gets whether the creator field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasCreator { get { return creator_ != null; } } /// Clears the value of the creator field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearCreator() { creator_ = null; } /// Field number for the "club" field. public const int ClubFieldNumber = 3; private global::Bgs.Protocol.Club.V1.ClubDescription club_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.ClubDescription Club { get { return club_; } set { club_ = value; } } /// Gets whether the club field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasClub { get { return club_ != null; } } /// Clears the value of the club field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearClub() { club_ = null; } /// Field number for the "slot" field. public const int SlotFieldNumber = 4; private global::Bgs.Protocol.Club.V1.ClubSlot slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Club.V1.ClubSlot Slot { get { return slot_; } set { slot_ = value; } } /// Gets whether the slot field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSlot { get { return slot_ != null; } } /// Clears the value of the slot field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSlot() { slot_ = null; } /// Field number for the "attribute" field. public const int AttributeFieldNumber = 5; private static readonly pb::FieldCodec _repeated_attribute_codec = pb::FieldCodec.ForMessage(42, global::Bgs.Protocol.V2.Attribute.Parser); private readonly pbc::RepeatedField attribute_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Attribute { get { return attribute_; } } /// Field number for the "current_redeem_count" field. public const int CurrentRedeemCountFieldNumber = 6; private readonly static uint CurrentRedeemCountDefaultValue = 0; private uint currentRedeemCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint CurrentRedeemCount { get { if ((_hasBits0 & 1) != 0) { return currentRedeemCount_; } else { return CurrentRedeemCountDefaultValue; } } set { _hasBits0 |= 1; currentRedeemCount_ = value; } } /// Gets whether the "current_redeem_count" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasCurrentRedeemCount { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "current_redeem_count" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearCurrentRedeemCount() { _hasBits0 &= ~1; } /// Field number for the "allowed_redeem_count" field. public const int AllowedRedeemCountFieldNumber = 7; private readonly static uint AllowedRedeemCountDefaultValue = 0; private uint allowedRedeemCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint AllowedRedeemCount { get { if ((_hasBits0 & 2) != 0) { return allowedRedeemCount_; } else { return AllowedRedeemCountDefaultValue; } } set { _hasBits0 |= 2; allowedRedeemCount_ = value; } } /// Gets whether the "allowed_redeem_count" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasAllowedRedeemCount { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "allowed_redeem_count" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearAllowedRedeemCount() { _hasBits0 &= ~2; } /// Field number for the "creation_time" field. public const int CreationTimeFieldNumber = 8; private readonly static ulong CreationTimeDefaultValue = 0UL; private ulong creationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong CreationTime { get { if ((_hasBits0 & 4) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } } set { _hasBits0 |= 4; creationTime_ = value; } } /// Gets whether the "creation_time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasCreationTime { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "creation_time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearCreationTime() { _hasBits0 &= ~4; } /// Field number for the "expiration_time" field. public const int ExpirationTimeFieldNumber = 9; private readonly static ulong ExpirationTimeDefaultValue = 0UL; private ulong expirationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ulong ExpirationTime { get { if ((_hasBits0 & 8) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } } set { _hasBits0 |= 8; expirationTime_ = value; } } /// Gets whether the "expiration_time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasExpirationTime { get { return (_hasBits0 & 8) != 0; } } /// Clears the value of the "expiration_time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearExpirationTime() { _hasBits0 &= ~8; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ClubTicket); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ClubTicket other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (!object.Equals(Creator, other.Creator)) return false; if (!object.Equals(Club, other.Club)) return false; if (!object.Equals(Slot, other.Slot)) return false; if(!attribute_.Equals(other.attribute_)) return false; if (CurrentRedeemCount != other.CurrentRedeemCount) return false; if (AllowedRedeemCount != other.AllowedRedeemCount) return false; if (CreationTime != other.CreationTime) return false; if (ExpirationTime != other.ExpirationTime) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasId) hash ^= Id.GetHashCode(); if (HasCreator) hash ^= Creator.GetHashCode(); if (HasClub) hash ^= Club.GetHashCode(); if (HasSlot) hash ^= Slot.GetHashCode(); hash ^= attribute_.GetHashCode(); if (HasCurrentRedeemCount) hash ^= CurrentRedeemCount.GetHashCode(); if (HasAllowedRedeemCount) hash ^= AllowedRedeemCount.GetHashCode(); if (HasCreationTime) hash ^= CreationTime.GetHashCode(); if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (HasId) { output.WriteRawTag(10); output.WriteString(Id); } if (HasCreator) { output.WriteRawTag(18); output.WriteMessage(Creator); } if (HasClub) { output.WriteRawTag(26); output.WriteMessage(Club); } if (HasSlot) { output.WriteRawTag(34); output.WriteMessage(Slot); } attribute_.WriteTo(output, _repeated_attribute_codec); if (HasCurrentRedeemCount) { output.WriteRawTag(48); output.WriteUInt32(CurrentRedeemCount); } if (HasAllowedRedeemCount) { output.WriteRawTag(56); output.WriteUInt32(AllowedRedeemCount); } if (HasCreationTime) { output.WriteRawTag(64); output.WriteUInt64(CreationTime); } if (HasExpirationTime) { output.WriteRawTag(72); output.WriteUInt64(ExpirationTime); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (HasCreator) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator); } if (HasClub) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Club); } if (HasSlot) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Slot); } size += attribute_.CalculateSize(_repeated_attribute_codec); if (HasCurrentRedeemCount) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrentRedeemCount); } if (HasAllowedRedeemCount) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AllowedRedeemCount); } if (HasCreationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime); } if (HasExpirationTime) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ClubTicket other) { if (other == null) { return; } if (other.HasId) { Id = other.Id; } if (other.HasCreator) { if (!HasCreator) { Creator = new global::Bgs.Protocol.Club.V1.MemberDescription(); } Creator.MergeFrom(other.Creator); } if (other.HasClub) { if (!HasClub) { Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); } Club.MergeFrom(other.Club); } if (other.HasSlot) { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } Slot.MergeFrom(other.Slot); } attribute_.Add(other.attribute_); if (other.HasCurrentRedeemCount) { CurrentRedeemCount = other.CurrentRedeemCount; } if (other.HasAllowedRedeemCount) { AllowedRedeemCount = other.AllowedRedeemCount; } if (other.HasCreationTime) { CreationTime = other.CreationTime; } if (other.HasExpirationTime) { ExpirationTime = other.ExpirationTime; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } case 18: { if (!HasCreator) { Creator = new global::Bgs.Protocol.Club.V1.MemberDescription(); } input.ReadMessage(Creator); break; } case 26: { if (!HasClub) { Club = new global::Bgs.Protocol.Club.V1.ClubDescription(); } input.ReadMessage(Club); break; } case 34: { if (!HasSlot) { Slot = new global::Bgs.Protocol.Club.V1.ClubSlot(); } input.ReadMessage(Slot); break; } case 42: { attribute_.AddEntriesFrom(input, _repeated_attribute_codec); break; } case 48: { CurrentRedeemCount = input.ReadUInt32(); break; } case 56: { AllowedRedeemCount = input.ReadUInt32(); break; } case 64: { CreationTime = input.ReadUInt64(); break; } case 72: { ExpirationTime = input.ReadUInt64(); break; } } } } } #endregion } #endregion Designer generated code