// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: ChessRogueCell.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 ChessRogueCell.proto public static partial class ChessRogueCellReflection { #region Descriptor /// File descriptor for ChessRogueCell.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ChessRogueCellReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChRDaGVzc1JvZ3VlQ2VsbC5wcm90bxoVQ2VsbEFkdmFuY2VJbmZvLnByb3Rv", "Gh9DaGVzc1JvZ3VlQ2VsbFNwZWNpYWxUeXBlLnByb3RvGh9DaGVzc1JvZ3Vl", "Qm9hcmRDZWxsU3RhdHVzLnByb3RvIrUCCg5DaGVzc1JvZ3VlQ2VsbBITCgtp", "c191bmxvY2tlZBgJIAEoCBISCgpibG9ja190eXBlGAEgASgNEhMKC01KQVBM", "QUNJRkpOGAsgAygNEg8KB3Jvb21faWQYAiABKA0SEQoJbWFya190eXBlGAcg", "ASgNEjAKDHNwZWNpYWxfdHlwZRgGIAEoDjIaLkNoZXNzUm9ndWVDZWxsU3Bl", "Y2lhbFR5cGUSDQoFcG9zX3gYAyABKA0SDQoFcG9zX3kYBSABKA0SLwoLY2Vs", "bF9zdGF0dXMYCiABKA4yGi5DaGVzc1JvZ3VlQm9hcmRDZWxsU3RhdHVzEg4K", "BnVubG9jaxgIIAEoCBIkCgpzdGFnZV9pbmZvGA4gASgLMhAuQ2VsbEFkdmFu", "Y2VJbmZvEgoKAmlkGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", "UHJvdG9iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.CellAdvanceInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueCell), global::EggLink.DanhengServer.Proto.ChessRogueCell.Parser, new[]{ "IsUnlocked", "BlockType", "MJAPLACIFJN", "RoomId", "MarkType", "SpecialType", "PosX", "PosY", "CellStatus", "Unlock", "StageInfo", "Id" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ChessRogueCell : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueCell()); 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.ChessRogueCellReflection.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 ChessRogueCell() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChessRogueCell(ChessRogueCell other) : this() { isUnlocked_ = other.isUnlocked_; blockType_ = other.blockType_; mJAPLACIFJN_ = other.mJAPLACIFJN_.Clone(); roomId_ = other.roomId_; markType_ = other.markType_; specialType_ = other.specialType_; posX_ = other.posX_; posY_ = other.posY_; cellStatus_ = other.cellStatus_; unlock_ = other.unlock_; stageInfo_ = other.stageInfo_ != null ? other.stageInfo_.Clone() : null; id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChessRogueCell Clone() { return new ChessRogueCell(this); } /// Field number for the "is_unlocked" field. public const int IsUnlockedFieldNumber = 9; private bool isUnlocked_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsUnlocked { get { return isUnlocked_; } set { isUnlocked_ = value; } } /// Field number for the "block_type" field. public const int BlockTypeFieldNumber = 1; private uint blockType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint BlockType { get { return blockType_; } set { blockType_ = value; } } /// Field number for the "MJAPLACIFJN" field. public const int MJAPLACIFJNFieldNumber = 11; private static readonly pb::FieldCodec _repeated_mJAPLACIFJN_codec = pb::FieldCodec.ForUInt32(90); private readonly pbc::RepeatedField mJAPLACIFJN_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MJAPLACIFJN { get { return mJAPLACIFJN_; } } /// Field number for the "room_id" field. public const int RoomIdFieldNumber = 2; private uint roomId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint RoomId { get { return roomId_; } set { roomId_ = value; } } /// Field number for the "mark_type" field. public const int MarkTypeFieldNumber = 7; private uint markType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint MarkType { get { return markType_; } set { markType_ = value; } } /// Field number for the "special_type" field. public const int SpecialTypeFieldNumber = 6; private global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType specialType_ = global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType SpecialType { get { return specialType_; } set { specialType_ = value; } } /// Field number for the "pos_x" field. public const int PosXFieldNumber = 3; private uint posX_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PosX { get { return posX_; } set { posX_ = value; } } /// Field number for the "pos_y" field. public const int PosYFieldNumber = 5; private uint posY_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PosY { get { return posY_; } set { posY_ = value; } } /// Field number for the "cell_status" field. public const int CellStatusFieldNumber = 10; private global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus cellStatus_ = global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus.Idle; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus CellStatus { get { return cellStatus_; } set { cellStatus_ = value; } } /// Field number for the "unlock" field. public const int UnlockFieldNumber = 8; private bool unlock_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Unlock { get { return unlock_; } set { unlock_ = value; } } /// Field number for the "stage_info" field. public const int StageInfoFieldNumber = 14; private global::EggLink.DanhengServer.Proto.CellAdvanceInfo stageInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.CellAdvanceInfo StageInfo { get { return stageInfo_; } set { stageInfo_ = value; } } /// Field number for the "id" field. public const int IdFieldNumber = 4; private uint id_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ChessRogueCell); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ChessRogueCell other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsUnlocked != other.IsUnlocked) return false; if (BlockType != other.BlockType) return false; if(!mJAPLACIFJN_.Equals(other.mJAPLACIFJN_)) return false; if (RoomId != other.RoomId) return false; if (MarkType != other.MarkType) return false; if (SpecialType != other.SpecialType) return false; if (PosX != other.PosX) return false; if (PosY != other.PosY) return false; if (CellStatus != other.CellStatus) return false; if (Unlock != other.Unlock) return false; if (!object.Equals(StageInfo, other.StageInfo)) return false; if (Id != other.Id) 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 (IsUnlocked != false) hash ^= IsUnlocked.GetHashCode(); if (BlockType != 0) hash ^= BlockType.GetHashCode(); hash ^= mJAPLACIFJN_.GetHashCode(); if (RoomId != 0) hash ^= RoomId.GetHashCode(); if (MarkType != 0) hash ^= MarkType.GetHashCode(); if (SpecialType != global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType.None) hash ^= SpecialType.GetHashCode(); if (PosX != 0) hash ^= PosX.GetHashCode(); if (PosY != 0) hash ^= PosY.GetHashCode(); if (CellStatus != global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus.Idle) hash ^= CellStatus.GetHashCode(); if (Unlock != false) hash ^= Unlock.GetHashCode(); if (stageInfo_ != null) hash ^= StageInfo.GetHashCode(); if (Id != 0) hash ^= Id.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 (BlockType != 0) { output.WriteRawTag(8); output.WriteUInt32(BlockType); } if (RoomId != 0) { output.WriteRawTag(16); output.WriteUInt32(RoomId); } if (PosX != 0) { output.WriteRawTag(24); output.WriteUInt32(PosX); } if (Id != 0) { output.WriteRawTag(32); output.WriteUInt32(Id); } if (PosY != 0) { output.WriteRawTag(40); output.WriteUInt32(PosY); } if (SpecialType != global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType.None) { output.WriteRawTag(48); output.WriteEnum((int) SpecialType); } if (MarkType != 0) { output.WriteRawTag(56); output.WriteUInt32(MarkType); } if (Unlock != false) { output.WriteRawTag(64); output.WriteBool(Unlock); } if (IsUnlocked != false) { output.WriteRawTag(72); output.WriteBool(IsUnlocked); } if (CellStatus != global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus.Idle) { output.WriteRawTag(80); output.WriteEnum((int) CellStatus); } mJAPLACIFJN_.WriteTo(output, _repeated_mJAPLACIFJN_codec); if (stageInfo_ != null) { output.WriteRawTag(114); output.WriteMessage(StageInfo); } 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 (BlockType != 0) { output.WriteRawTag(8); output.WriteUInt32(BlockType); } if (RoomId != 0) { output.WriteRawTag(16); output.WriteUInt32(RoomId); } if (PosX != 0) { output.WriteRawTag(24); output.WriteUInt32(PosX); } if (Id != 0) { output.WriteRawTag(32); output.WriteUInt32(Id); } if (PosY != 0) { output.WriteRawTag(40); output.WriteUInt32(PosY); } if (SpecialType != global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType.None) { output.WriteRawTag(48); output.WriteEnum((int) SpecialType); } if (MarkType != 0) { output.WriteRawTag(56); output.WriteUInt32(MarkType); } if (Unlock != false) { output.WriteRawTag(64); output.WriteBool(Unlock); } if (IsUnlocked != false) { output.WriteRawTag(72); output.WriteBool(IsUnlocked); } if (CellStatus != global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus.Idle) { output.WriteRawTag(80); output.WriteEnum((int) CellStatus); } mJAPLACIFJN_.WriteTo(ref output, _repeated_mJAPLACIFJN_codec); if (stageInfo_ != null) { output.WriteRawTag(114); output.WriteMessage(StageInfo); } 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 (IsUnlocked != false) { size += 1 + 1; } if (BlockType != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BlockType); } size += mJAPLACIFJN_.CalculateSize(_repeated_mJAPLACIFJN_codec); if (RoomId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomId); } if (MarkType != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MarkType); } if (SpecialType != global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType.None) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SpecialType); } if (PosX != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PosX); } if (PosY != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PosY); } if (CellStatus != global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus.Idle) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CellStatus); } if (Unlock != false) { size += 1 + 1; } if (stageInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(StageInfo); } if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ChessRogueCell other) { if (other == null) { return; } if (other.IsUnlocked != false) { IsUnlocked = other.IsUnlocked; } if (other.BlockType != 0) { BlockType = other.BlockType; } mJAPLACIFJN_.Add(other.mJAPLACIFJN_); if (other.RoomId != 0) { RoomId = other.RoomId; } if (other.MarkType != 0) { MarkType = other.MarkType; } if (other.SpecialType != global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType.None) { SpecialType = other.SpecialType; } if (other.PosX != 0) { PosX = other.PosX; } if (other.PosY != 0) { PosY = other.PosY; } if (other.CellStatus != global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus.Idle) { CellStatus = other.CellStatus; } if (other.Unlock != false) { Unlock = other.Unlock; } if (other.stageInfo_ != null) { if (stageInfo_ == null) { StageInfo = new global::EggLink.DanhengServer.Proto.CellAdvanceInfo(); } StageInfo.MergeFrom(other.StageInfo); } if (other.Id != 0) { Id = other.Id; } _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: { BlockType = input.ReadUInt32(); break; } case 16: { RoomId = input.ReadUInt32(); break; } case 24: { PosX = input.ReadUInt32(); break; } case 32: { Id = input.ReadUInt32(); break; } case 40: { PosY = input.ReadUInt32(); break; } case 48: { SpecialType = (global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType) input.ReadEnum(); break; } case 56: { MarkType = input.ReadUInt32(); break; } case 64: { Unlock = input.ReadBool(); break; } case 72: { IsUnlocked = input.ReadBool(); break; } case 80: { CellStatus = (global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus) input.ReadEnum(); break; } case 90: case 88: { mJAPLACIFJN_.AddEntriesFrom(input, _repeated_mJAPLACIFJN_codec); break; } case 114: { if (stageInfo_ == null) { StageInfo = new global::EggLink.DanhengServer.Proto.CellAdvanceInfo(); } input.ReadMessage(StageInfo); 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: { BlockType = input.ReadUInt32(); break; } case 16: { RoomId = input.ReadUInt32(); break; } case 24: { PosX = input.ReadUInt32(); break; } case 32: { Id = input.ReadUInt32(); break; } case 40: { PosY = input.ReadUInt32(); break; } case 48: { SpecialType = (global::EggLink.DanhengServer.Proto.ChessRogueCellSpecialType) input.ReadEnum(); break; } case 56: { MarkType = input.ReadUInt32(); break; } case 64: { Unlock = input.ReadBool(); break; } case 72: { IsUnlocked = input.ReadBool(); break; } case 80: { CellStatus = (global::EggLink.DanhengServer.Proto.ChessRogueBoardCellStatus) input.ReadEnum(); break; } case 90: case 88: { mJAPLACIFJN_.AddEntriesFrom(ref input, _repeated_mJAPLACIFJN_codec); break; } case 114: { if (stageInfo_ == null) { StageInfo = new global::EggLink.DanhengServer.Proto.CellAdvanceInfo(); } input.ReadMessage(StageInfo); break; } } } } #endif } #endregion } #endregion Designer generated code