// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: game.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 Game { /// Holder for reflection information generated from game.proto public static partial class GameReflection { #region Descriptor /// File descriptor for game.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static GameReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CgpnYW1lLnByb3RvEgRnYW1lGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJv", "dG8idAoJQ2FyZEluZGV4Eg8KBWluZGV4GAEgASgNSAASJQoDdG9wGAIgASgL", "MhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SAASKAoGYm90dG9tGAMgASgLMhYu", "Z29vZ2xlLnByb3RvYnVmLkVtcHR5SABCBQoDcG9zIk0KCFBpbGVLaW5kEg8K", "BW93bmVkGAEgASgNSAASKAoGY29tbW9uGAIgASgLMhYuZ29vZ2xlLnByb3Rv", "YnVmLkVtcHR5SABCBgoEa2luZCJgCgZDYXJkSWQSIAoIcGlsZUtpbmQYASAB", "KAsyDi5nYW1lLlBpbGVLaW5kEhAKCHBpbGVOYW1lGAIgASgJEiIKCWNhcmRJ", "bmRleBgDIAEoCzIPLmdhbWUuQ2FyZEluZGV4MjcKBEdhbWUSLwoHb25DbGlj", "axIMLmdhbWUuQ2FyZElkGhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5YgZwcm90", "bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardIndex), global::Game.CardIndex.Parser, new[]{ "Index", "Top", "Bottom" }, new[]{ "Pos" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Game.PileKind), global::Game.PileKind.Parser, new[]{ "Owned", "Common" }, new[]{ "Kind" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardId), global::Game.CardId.Parser, new[]{ "PileKind", "PileName", "CardIndex" }, null, null, null, null) })); } #endregion } #region Messages public sealed partial class CardIndex : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CardIndex()); 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::Game.GameReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CardIndex() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CardIndex(CardIndex other) : this() { switch (other.PosCase) { case PosOneofCase.Index: Index = other.Index; break; case PosOneofCase.Top: Top = other.Top.Clone(); break; case PosOneofCase.Bottom: Bottom = other.Bottom.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CardIndex Clone() { return new CardIndex(this); } /// Field number for the "index" field. public const int IndexFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Index { get { return posCase_ == PosOneofCase.Index ? (uint) pos_ : 0; } set { pos_ = value; posCase_ = PosOneofCase.Index; } } /// Field number for the "top" field. public const int TopFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Google.Protobuf.WellKnownTypes.Empty Top { get { return posCase_ == PosOneofCase.Top ? (global::Google.Protobuf.WellKnownTypes.Empty) pos_ : null; } set { pos_ = value; posCase_ = value == null ? PosOneofCase.None : PosOneofCase.Top; } } /// Field number for the "bottom" field. public const int BottomFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Google.Protobuf.WellKnownTypes.Empty Bottom { get { return posCase_ == PosOneofCase.Bottom ? (global::Google.Protobuf.WellKnownTypes.Empty) pos_ : null; } set { pos_ = value; posCase_ = value == null ? PosOneofCase.None : PosOneofCase.Bottom; } } private object pos_; /// Enum of possible cases for the "pos" oneof. public enum PosOneofCase { None = 0, Index = 1, Top = 2, Bottom = 3, } private PosOneofCase posCase_ = PosOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PosOneofCase PosCase { get { return posCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearPos() { posCase_ = PosOneofCase.None; pos_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as CardIndex); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(CardIndex other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Index != other.Index) return false; if (!object.Equals(Top, other.Top)) return false; if (!object.Equals(Bottom, other.Bottom)) return false; if (PosCase != other.PosCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (posCase_ == PosOneofCase.Index) hash ^= Index.GetHashCode(); if (posCase_ == PosOneofCase.Top) hash ^= Top.GetHashCode(); if (posCase_ == PosOneofCase.Bottom) hash ^= Bottom.GetHashCode(); hash ^= (int) posCase_; 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 !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (posCase_ == PosOneofCase.Index) { output.WriteRawTag(8); output.WriteUInt32(Index); } if (posCase_ == PosOneofCase.Top) { output.WriteRawTag(18); output.WriteMessage(Top); } if (posCase_ == PosOneofCase.Bottom) { output.WriteRawTag(26); output.WriteMessage(Bottom); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (posCase_ == PosOneofCase.Index) { output.WriteRawTag(8); output.WriteUInt32(Index); } if (posCase_ == PosOneofCase.Top) { output.WriteRawTag(18); output.WriteMessage(Top); } if (posCase_ == PosOneofCase.Bottom) { output.WriteRawTag(26); output.WriteMessage(Bottom); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (posCase_ == PosOneofCase.Index) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); } if (posCase_ == PosOneofCase.Top) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Top); } if (posCase_ == PosOneofCase.Bottom) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bottom); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(CardIndex other) { if (other == null) { return; } switch (other.PosCase) { case PosOneofCase.Index: Index = other.Index; break; case PosOneofCase.Top: if (Top == null) { Top = new global::Google.Protobuf.WellKnownTypes.Empty(); } Top.MergeFrom(other.Top); break; case PosOneofCase.Bottom: if (Bottom == null) { Bottom = new global::Google.Protobuf.WellKnownTypes.Empty(); } Bottom.MergeFrom(other.Bottom); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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: { Index = input.ReadUInt32(); break; } case 18: { global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty(); if (posCase_ == PosOneofCase.Top) { subBuilder.MergeFrom(Top); } input.ReadMessage(subBuilder); Top = subBuilder; break; } case 26: { global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty(); if (posCase_ == PosOneofCase.Bottom) { subBuilder.MergeFrom(Bottom); } input.ReadMessage(subBuilder); Bottom = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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: { Index = input.ReadUInt32(); break; } case 18: { global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty(); if (posCase_ == PosOneofCase.Top) { subBuilder.MergeFrom(Top); } input.ReadMessage(subBuilder); Top = subBuilder; break; } case 26: { global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty(); if (posCase_ == PosOneofCase.Bottom) { subBuilder.MergeFrom(Bottom); } input.ReadMessage(subBuilder); Bottom = subBuilder; break; } } } } #endif } public sealed partial class PileKind : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PileKind()); 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::Game.GameReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PileKind() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PileKind(PileKind other) : this() { switch (other.KindCase) { case KindOneofCase.Owned: Owned = other.Owned; break; case KindOneofCase.Common: Common = other.Common.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PileKind Clone() { return new PileKind(this); } /// Field number for the "owned" field. public const int OwnedFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Owned { get { return kindCase_ == KindOneofCase.Owned ? (uint) kind_ : 0; } set { kind_ = value; kindCase_ = KindOneofCase.Owned; } } /// Field number for the "common" field. public const int CommonFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Google.Protobuf.WellKnownTypes.Empty Common { get { return kindCase_ == KindOneofCase.Common ? (global::Google.Protobuf.WellKnownTypes.Empty) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.Common; } } private object kind_; /// Enum of possible cases for the "kind" oneof. public enum KindOneofCase { None = 0, Owned = 1, Common = 2, } private KindOneofCase kindCase_ = KindOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public KindOneofCase KindCase { get { return kindCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearKind() { kindCase_ = KindOneofCase.None; kind_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as PileKind); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(PileKind other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Owned != other.Owned) return false; if (!object.Equals(Common, other.Common)) return false; if (KindCase != other.KindCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (kindCase_ == KindOneofCase.Owned) hash ^= Owned.GetHashCode(); if (kindCase_ == KindOneofCase.Common) hash ^= Common.GetHashCode(); hash ^= (int) kindCase_; 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 !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (kindCase_ == KindOneofCase.Owned) { output.WriteRawTag(8); output.WriteUInt32(Owned); } if (kindCase_ == KindOneofCase.Common) { output.WriteRawTag(18); output.WriteMessage(Common); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (kindCase_ == KindOneofCase.Owned) { output.WriteRawTag(8); output.WriteUInt32(Owned); } if (kindCase_ == KindOneofCase.Common) { output.WriteRawTag(18); output.WriteMessage(Common); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (kindCase_ == KindOneofCase.Owned) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Owned); } if (kindCase_ == KindOneofCase.Common) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Common); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(PileKind other) { if (other == null) { return; } switch (other.KindCase) { case KindOneofCase.Owned: Owned = other.Owned; break; case KindOneofCase.Common: if (Common == null) { Common = new global::Google.Protobuf.WellKnownTypes.Empty(); } Common.MergeFrom(other.Common); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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: { Owned = input.ReadUInt32(); break; } case 18: { global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty(); if (kindCase_ == KindOneofCase.Common) { subBuilder.MergeFrom(Common); } input.ReadMessage(subBuilder); Common = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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: { Owned = input.ReadUInt32(); break; } case 18: { global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty(); if (kindCase_ == KindOneofCase.Common) { subBuilder.MergeFrom(Common); } input.ReadMessage(subBuilder); Common = subBuilder; break; } } } } #endif } public sealed partial class CardId : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CardId()); 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::Game.GameReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CardId() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CardId(CardId other) : this() { pileKind_ = other.pileKind_ != null ? other.pileKind_.Clone() : null; pileName_ = other.pileName_; cardIndex_ = other.cardIndex_ != null ? other.cardIndex_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CardId Clone() { return new CardId(this); } /// Field number for the "pileKind" field. public const int PileKindFieldNumber = 1; private global::Game.PileKind pileKind_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Game.PileKind PileKind { get { return pileKind_; } set { pileKind_ = value; } } /// Field number for the "pileName" field. public const int PileNameFieldNumber = 2; private string pileName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string PileName { get { return pileName_; } set { pileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "cardIndex" field. public const int CardIndexFieldNumber = 3; private global::Game.CardIndex cardIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Game.CardIndex CardIndex { get { return cardIndex_; } set { cardIndex_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as CardId); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(CardId other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(PileKind, other.PileKind)) return false; if (PileName != other.PileName) return false; if (!object.Equals(CardIndex, other.CardIndex)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (pileKind_ != null) hash ^= PileKind.GetHashCode(); if (PileName.Length != 0) hash ^= PileName.GetHashCode(); if (cardIndex_ != null) hash ^= CardIndex.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 !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (pileKind_ != null) { output.WriteRawTag(10); output.WriteMessage(PileKind); } if (PileName.Length != 0) { output.WriteRawTag(18); output.WriteString(PileName); } if (cardIndex_ != null) { output.WriteRawTag(26); output.WriteMessage(CardIndex); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (pileKind_ != null) { output.WriteRawTag(10); output.WriteMessage(PileKind); } if (PileName.Length != 0) { output.WriteRawTag(18); output.WriteString(PileName); } if (cardIndex_ != null) { output.WriteRawTag(26); output.WriteMessage(CardIndex); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (pileKind_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PileKind); } if (PileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PileName); } if (cardIndex_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CardIndex); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(CardId other) { if (other == null) { return; } if (other.pileKind_ != null) { if (pileKind_ == null) { PileKind = new global::Game.PileKind(); } PileKind.MergeFrom(other.PileKind); } if (other.PileName.Length != 0) { PileName = other.PileName; } if (other.cardIndex_ != null) { if (cardIndex_ == null) { CardIndex = new global::Game.CardIndex(); } CardIndex.MergeFrom(other.CardIndex); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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 10: { if (pileKind_ == null) { PileKind = new global::Game.PileKind(); } input.ReadMessage(PileKind); break; } case 18: { PileName = input.ReadString(); break; } case 26: { if (cardIndex_ == null) { CardIndex = new global::Game.CardIndex(); } input.ReadMessage(CardIndex); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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 10: { if (pileKind_ == null) { PileKind = new global::Game.PileKind(); } input.ReadMessage(PileKind); break; } case 18: { PileName = input.ReadString(); break; } case 26: { if (cardIndex_ == null) { CardIndex = new global::Game.CardIndex(); } input.ReadMessage(CardIndex); break; } } } } #endif } #endregion } #endregion Designer generated code