// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Avatar.proto // #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 EggLink.DanhengServer.Proto { /// Holder for reflection information generated from Avatar.proto public static partial class AvatarReflection { #region Descriptor /// File descriptor for Avatar.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static AvatarReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CgxBdmF0YXIucHJvdG8aEEVxdWlwUmVsaWMucHJvdG8aFUF2YXRhclNraWxs", "VHJlZS5wcm90byLWAgoGQXZhdGFyEg0KBWxldmVsGAogASgNEhYKDmJhc2Vf", "YXZhdGFyX2lkGA4gASgNEhcKD2RyZXNzZWRfc2tpbl9pZBgBIAEoDRIWCg5j", "dXJfZW5oYW5jZV9pZBgHIAEoDRIRCglwcm9tb3Rpb24YAiABKA0SEQoJaXNf", "bWFya2VkGA0gASgIEicKH2hhc190YWtlbl9wcm9tb3Rpb25fcmV3YXJkX2xp", "c3QYCyADKA0SKAoOc2tpbGx0cmVlX2xpc3QYCSADKAsyEC5BdmF0YXJTa2ls", "bFRyZWUSGwoTZXF1aXBtZW50X3VuaXF1ZV9pZBgFIAEoDRILCgNleHAYAyAB", "KA0SHAoUZmlyc3RfbWV0X3RpbWVfc3RhbXAYBCABKAQSJQoQZXF1aXBfcmVs", "aWNfbGlzdBgIIAMoCzILLkVxdWlwUmVsaWMSDAoEcmFuaxgMIAEoDUIeqgIb", "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.EquipRelicReflection.Descriptor, global::EggLink.DanhengServer.Proto.AvatarSkillTreeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Avatar), global::EggLink.DanhengServer.Proto.Avatar.Parser, new[]{ "Level", "BaseAvatarId", "DressedSkinId", "CurEnhanceId", "Promotion", "IsMarked", "HasTakenPromotionRewardList", "SkilltreeList", "EquipmentUniqueId", "Exp", "FirstMetTimeStamp", "EquipRelicList", "Rank" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Avatar : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Avatar()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::EggLink.DanhengServer.Proto.AvatarReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Avatar() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Avatar(Avatar other) : this() { level_ = other.level_; baseAvatarId_ = other.baseAvatarId_; dressedSkinId_ = other.dressedSkinId_; curEnhanceId_ = other.curEnhanceId_; promotion_ = other.promotion_; isMarked_ = other.isMarked_; hasTakenPromotionRewardList_ = other.hasTakenPromotionRewardList_.Clone(); skilltreeList_ = other.skilltreeList_.Clone(); equipmentUniqueId_ = other.equipmentUniqueId_; exp_ = other.exp_; firstMetTimeStamp_ = other.firstMetTimeStamp_; equipRelicList_ = other.equipRelicList_.Clone(); rank_ = other.rank_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Avatar Clone() { return new Avatar(this); } /// Field number for the "level" field. public const int LevelFieldNumber = 10; private uint level_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Level { get { return level_; } set { level_ = value; } } /// Field number for the "base_avatar_id" field. public const int BaseAvatarIdFieldNumber = 14; private uint baseAvatarId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint BaseAvatarId { get { return baseAvatarId_; } set { baseAvatarId_ = value; } } /// Field number for the "dressed_skin_id" field. public const int DressedSkinIdFieldNumber = 1; private uint dressedSkinId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint DressedSkinId { get { return dressedSkinId_; } set { dressedSkinId_ = value; } } /// Field number for the "cur_enhance_id" field. public const int CurEnhanceIdFieldNumber = 7; private uint curEnhanceId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint CurEnhanceId { get { return curEnhanceId_; } set { curEnhanceId_ = value; } } /// Field number for the "promotion" field. public const int PromotionFieldNumber = 2; private uint promotion_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Promotion { get { return promotion_; } set { promotion_ = value; } } /// Field number for the "is_marked" field. public const int IsMarkedFieldNumber = 13; private bool isMarked_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsMarked { get { return isMarked_; } set { isMarked_ = value; } } /// Field number for the "has_taken_promotion_reward_list" field. public const int HasTakenPromotionRewardListFieldNumber = 11; private static readonly pb::FieldCodec _repeated_hasTakenPromotionRewardList_codec = pb::FieldCodec.ForUInt32(90); private readonly pbc::RepeatedField hasTakenPromotionRewardList_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField HasTakenPromotionRewardList { get { return hasTakenPromotionRewardList_; } } /// Field number for the "skilltree_list" field. public const int SkilltreeListFieldNumber = 9; private static readonly pb::FieldCodec _repeated_skilltreeList_codec = pb::FieldCodec.ForMessage(74, global::EggLink.DanhengServer.Proto.AvatarSkillTree.Parser); private readonly pbc::RepeatedField skilltreeList_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SkilltreeList { get { return skilltreeList_; } } /// Field number for the "equipment_unique_id" field. public const int EquipmentUniqueIdFieldNumber = 5; private uint equipmentUniqueId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint EquipmentUniqueId { get { return equipmentUniqueId_; } set { equipmentUniqueId_ = value; } } /// Field number for the "exp" field. public const int ExpFieldNumber = 3; private uint exp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Exp { get { return exp_; } set { exp_ = value; } } /// Field number for the "first_met_time_stamp" field. public const int FirstMetTimeStampFieldNumber = 4; private ulong firstMetTimeStamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong FirstMetTimeStamp { get { return firstMetTimeStamp_; } set { firstMetTimeStamp_ = value; } } /// Field number for the "equip_relic_list" field. public const int EquipRelicListFieldNumber = 8; private static readonly pb::FieldCodec _repeated_equipRelicList_codec = pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.EquipRelic.Parser); private readonly pbc::RepeatedField equipRelicList_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField EquipRelicList { get { return equipRelicList_; } } /// Field number for the "rank" field. public const int RankFieldNumber = 12; private uint rank_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Rank { get { return rank_; } set { rank_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Avatar); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Avatar other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Level != other.Level) return false; if (BaseAvatarId != other.BaseAvatarId) return false; if (DressedSkinId != other.DressedSkinId) return false; if (CurEnhanceId != other.CurEnhanceId) return false; if (Promotion != other.Promotion) return false; if (IsMarked != other.IsMarked) return false; if(!hasTakenPromotionRewardList_.Equals(other.hasTakenPromotionRewardList_)) return false; if(!skilltreeList_.Equals(other.skilltreeList_)) return false; if (EquipmentUniqueId != other.EquipmentUniqueId) return false; if (Exp != other.Exp) return false; if (FirstMetTimeStamp != other.FirstMetTimeStamp) return false; if(!equipRelicList_.Equals(other.equipRelicList_)) return false; if (Rank != other.Rank) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Level != 0) hash ^= Level.GetHashCode(); if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); if (DressedSkinId != 0) hash ^= DressedSkinId.GetHashCode(); if (CurEnhanceId != 0) hash ^= CurEnhanceId.GetHashCode(); if (Promotion != 0) hash ^= Promotion.GetHashCode(); if (IsMarked != false) hash ^= IsMarked.GetHashCode(); hash ^= hasTakenPromotionRewardList_.GetHashCode(); hash ^= skilltreeList_.GetHashCode(); if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); if (Exp != 0) hash ^= Exp.GetHashCode(); if (FirstMetTimeStamp != 0UL) hash ^= FirstMetTimeStamp.GetHashCode(); hash ^= equipRelicList_.GetHashCode(); if (Rank != 0) hash ^= Rank.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (DressedSkinId != 0) { output.WriteRawTag(8); output.WriteUInt32(DressedSkinId); } if (Promotion != 0) { output.WriteRawTag(16); output.WriteUInt32(Promotion); } if (Exp != 0) { output.WriteRawTag(24); output.WriteUInt32(Exp); } if (FirstMetTimeStamp != 0UL) { output.WriteRawTag(32); output.WriteUInt64(FirstMetTimeStamp); } if (EquipmentUniqueId != 0) { output.WriteRawTag(40); output.WriteUInt32(EquipmentUniqueId); } if (CurEnhanceId != 0) { output.WriteRawTag(56); output.WriteUInt32(CurEnhanceId); } equipRelicList_.WriteTo(output, _repeated_equipRelicList_codec); skilltreeList_.WriteTo(output, _repeated_skilltreeList_codec); if (Level != 0) { output.WriteRawTag(80); output.WriteUInt32(Level); } hasTakenPromotionRewardList_.WriteTo(output, _repeated_hasTakenPromotionRewardList_codec); if (Rank != 0) { output.WriteRawTag(96); output.WriteUInt32(Rank); } if (IsMarked != false) { output.WriteRawTag(104); output.WriteBool(IsMarked); } if (BaseAvatarId != 0) { output.WriteRawTag(112); output.WriteUInt32(BaseAvatarId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (DressedSkinId != 0) { output.WriteRawTag(8); output.WriteUInt32(DressedSkinId); } if (Promotion != 0) { output.WriteRawTag(16); output.WriteUInt32(Promotion); } if (Exp != 0) { output.WriteRawTag(24); output.WriteUInt32(Exp); } if (FirstMetTimeStamp != 0UL) { output.WriteRawTag(32); output.WriteUInt64(FirstMetTimeStamp); } if (EquipmentUniqueId != 0) { output.WriteRawTag(40); output.WriteUInt32(EquipmentUniqueId); } if (CurEnhanceId != 0) { output.WriteRawTag(56); output.WriteUInt32(CurEnhanceId); } equipRelicList_.WriteTo(ref output, _repeated_equipRelicList_codec); skilltreeList_.WriteTo(ref output, _repeated_skilltreeList_codec); if (Level != 0) { output.WriteRawTag(80); output.WriteUInt32(Level); } hasTakenPromotionRewardList_.WriteTo(ref output, _repeated_hasTakenPromotionRewardList_codec); if (Rank != 0) { output.WriteRawTag(96); output.WriteUInt32(Rank); } if (IsMarked != false) { output.WriteRawTag(104); output.WriteBool(IsMarked); } if (BaseAvatarId != 0) { output.WriteRawTag(112); output.WriteUInt32(BaseAvatarId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Level != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); } if (BaseAvatarId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); } if (DressedSkinId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DressedSkinId); } if (CurEnhanceId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurEnhanceId); } if (Promotion != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Promotion); } if (IsMarked != false) { size += 1 + 1; } size += hasTakenPromotionRewardList_.CalculateSize(_repeated_hasTakenPromotionRewardList_codec); size += skilltreeList_.CalculateSize(_repeated_skilltreeList_codec); if (EquipmentUniqueId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); } if (Exp != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Exp); } if (FirstMetTimeStamp != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FirstMetTimeStamp); } size += equipRelicList_.CalculateSize(_repeated_equipRelicList_codec); if (Rank != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rank); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Avatar other) { if (other == null) { return; } if (other.Level != 0) { Level = other.Level; } if (other.BaseAvatarId != 0) { BaseAvatarId = other.BaseAvatarId; } if (other.DressedSkinId != 0) { DressedSkinId = other.DressedSkinId; } if (other.CurEnhanceId != 0) { CurEnhanceId = other.CurEnhanceId; } if (other.Promotion != 0) { Promotion = other.Promotion; } if (other.IsMarked != false) { IsMarked = other.IsMarked; } hasTakenPromotionRewardList_.Add(other.hasTakenPromotionRewardList_); skilltreeList_.Add(other.skilltreeList_); if (other.EquipmentUniqueId != 0) { EquipmentUniqueId = other.EquipmentUniqueId; } if (other.Exp != 0) { Exp = other.Exp; } if (other.FirstMetTimeStamp != 0UL) { FirstMetTimeStamp = other.FirstMetTimeStamp; } equipRelicList_.Add(other.equipRelicList_); if (other.Rank != 0) { Rank = other.Rank; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { DressedSkinId = input.ReadUInt32(); break; } case 16: { Promotion = input.ReadUInt32(); break; } case 24: { Exp = input.ReadUInt32(); break; } case 32: { FirstMetTimeStamp = input.ReadUInt64(); break; } case 40: { EquipmentUniqueId = input.ReadUInt32(); break; } case 56: { CurEnhanceId = input.ReadUInt32(); break; } case 66: { equipRelicList_.AddEntriesFrom(input, _repeated_equipRelicList_codec); break; } case 74: { skilltreeList_.AddEntriesFrom(input, _repeated_skilltreeList_codec); break; } case 80: { Level = input.ReadUInt32(); break; } case 90: case 88: { hasTakenPromotionRewardList_.AddEntriesFrom(input, _repeated_hasTakenPromotionRewardList_codec); break; } case 96: { Rank = input.ReadUInt32(); break; } case 104: { IsMarked = input.ReadBool(); break; } case 112: { BaseAvatarId = input.ReadUInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { DressedSkinId = input.ReadUInt32(); break; } case 16: { Promotion = input.ReadUInt32(); break; } case 24: { Exp = input.ReadUInt32(); break; } case 32: { FirstMetTimeStamp = input.ReadUInt64(); break; } case 40: { EquipmentUniqueId = input.ReadUInt32(); break; } case 56: { CurEnhanceId = input.ReadUInt32(); break; } case 66: { equipRelicList_.AddEntriesFrom(ref input, _repeated_equipRelicList_codec); break; } case 74: { skilltreeList_.AddEntriesFrom(ref input, _repeated_skilltreeList_codec); break; } case 80: { Level = input.ReadUInt32(); break; } case 90: case 88: { hasTakenPromotionRewardList_.AddEntriesFrom(ref input, _repeated_hasTakenPromotionRewardList_codec); break; } case 96: { Rank = input.ReadUInt32(); break; } case 104: { IsMarked = input.ReadBool(); break; } case 112: { BaseAvatarId = input.ReadUInt32(); break; } } } } #endif } #endregion } #endregion Designer generated code