You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

2087 lines
70 KiB

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: game.proto
// </auto-generated>
#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 {
/// <summary>Holder for reflection information generated from game.proto</summary>
public static partial class GameReflection {
#region Descriptor
/// <summary>File descriptor for game.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static GameReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CgpnYW1lLnByb3RvEgRnYW1lGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJv",
"dG8aDGNvbW1vbi5wcm90byIYCghDYXJkS2luZBIMCgRraW5kGAEgASgJIiMK",
"BUltYWdlEgwKBGZhY2UYASABKAwSDAoEYmFjaxgCIAEoDCJ0CglDYXJkSW5k",
"ZXgSDwoFaW5kZXgYASABKA1IABIlCgN0b3AYAiABKAsyFi5nb29nbGUucHJv",
"dG9idWYuRW1wdHlIABIoCgZib3R0b20YAyABKAsyFi5nb29nbGUucHJvdG9i",
"dWYuRW1wdHlIAEIFCgNwb3MiTQoIUGlsZUtpbmQSDwoFb3duZWQYASABKA1I",
"ABIoCgZjb21tb24YAiABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlIAEIG",
"CgRraW5kImAKBkNhcmRJZBIgCghwaWxlS2luZBgBIAEoCzIOLmdhbWUuUGls",
"ZUtpbmQSEAoIcGlsZU5hbWUYAiABKAkSIgoJY2FyZEluZGV4GAMgASgLMg8u",
"Z2FtZS5DYXJkSW5kZXgikAMKDU1lc3NhZ2VTdGF0dXMSLgoLY29tbW9uUGls",
"ZXMYASABKAsyGS5nYW1lLk1lc3NhZ2VTdGF0dXMuUGlsZXMSLgoLcGxheWVy",
"UGlsZXMYAiADKAsyGS5nYW1lLk1lc3NhZ2VTdGF0dXMuUGlsZXMSGwoFbmFt",
"ZXMYAyADKAsyDC5jb21tb24uTmFtZRITCgtjdXJyZW50VHVybhgEIAEoDRo1",
"CgRDYXJkEhwKBGtpbmQYASABKAsyDi5nYW1lLkNhcmRLaW5kEg8KB3Zpc2li",
"bGUYAiABKAgaLwoEUGlsZRInCgVjYXJkcxgBIAMoCzIYLmdhbWUuTWVzc2Fn",
"ZVN0YXR1cy5DYXJkGoQBCgVQaWxlcxIzCgVwaWxlcxgBIAMoCzIkLmdhbWUu",
"TWVzc2FnZVN0YXR1cy5QaWxlcy5QaWxlc0VudHJ5GkYKClBpbGVzRW50cnkS",
"CwoDa2V5GAEgASgJEicKBXZhbHVlGAIgASgLMhguZ2FtZS5NZXNzYWdlU3Rh",
"dHVzLlBpbGU6AjgBMpsBCgRHYW1lEisKDGdldENhcmRJbWFnZRIOLmdhbWUu",
"Q2FyZEtpbmQaCy5nYW1lLkltYWdlEi8KB29uQ2xpY2sSDC5nYW1lLkNhcmRJ",
"ZBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRI1CgZzdGF0dXMSFi5nb29nbGUu",
"cHJvdG9idWYuRW1wdHkaEy5nYW1lLk1lc3NhZ2VTdGF0dXNiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Common.CommonReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardKind), global::Game.CardKind.Parser, new[]{ "Kind" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Image), global::Game.Image.Parser, new[]{ "Face", "Back" }, null, null, null, null),
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),
new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus), global::Game.MessageStatus.Parser, new[]{ "CommonPiles", "PlayerPiles", "Names", "CurrentTurn" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus.Types.Card), global::Game.MessageStatus.Types.Card.Parser, new[]{ "Kind", "Visible" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus.Types.Pile), global::Game.MessageStatus.Types.Pile.Parser, new[]{ "Cards" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus.Types.Piles), global::Game.MessageStatus.Types.Piles.Parser, new[]{ "Piles_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })})
}));
}
#endregion
}
#region Messages
public sealed partial class CardKind : pb::IMessage<CardKind>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<CardKind> _parser = new pb::MessageParser<CardKind>(() => new CardKind());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<CardKind> 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 CardKind() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CardKind(CardKind other) : this() {
kind_ = other.kind_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CardKind Clone() {
return new CardKind(this);
}
/// <summary>Field number for the "kind" field.</summary>
public const int KindFieldNumber = 1;
private string kind_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Kind {
get { return kind_; }
set {
kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as CardKind);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(CardKind other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Kind != other.Kind) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Kind.Length != 0) hash ^= Kind.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 (Kind.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Kind);
}
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 (Kind.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Kind);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Kind.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(CardKind other) {
if (other == null) {
return;
}
if (other.Kind.Length != 0) {
Kind = other.Kind;
}
_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: {
Kind = input.ReadString();
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: {
Kind = input.ReadString();
break;
}
}
}
}
#endif
}
public sealed partial class Image : pb::IMessage<Image>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Image> _parser = new pb::MessageParser<Image>(() => new Image());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Image> 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 Image() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Image(Image other) : this() {
face_ = other.face_;
back_ = other.back_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Image Clone() {
return new Image(this);
}
/// <summary>Field number for the "face" field.</summary>
public const int FaceFieldNumber = 1;
private pb::ByteString face_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString Face {
get { return face_; }
set {
face_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "back" field.</summary>
public const int BackFieldNumber = 2;
private pb::ByteString back_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString Back {
get { return back_; }
set {
back_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Image);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Image other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Face != other.Face) return false;
if (Back != other.Back) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Face.Length != 0) hash ^= Face.GetHashCode();
if (Back.Length != 0) hash ^= Back.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 (Face.Length != 0) {
output.WriteRawTag(10);
output.WriteBytes(Face);
}
if (Back.Length != 0) {
output.WriteRawTag(18);
output.WriteBytes(Back);
}
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 (Face.Length != 0) {
output.WriteRawTag(10);
output.WriteBytes(Face);
}
if (Back.Length != 0) {
output.WriteRawTag(18);
output.WriteBytes(Back);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Face.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Face);
}
if (Back.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Back);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Image other) {
if (other == null) {
return;
}
if (other.Face.Length != 0) {
Face = other.Face;
}
if (other.Back.Length != 0) {
Back = other.Back;
}
_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: {
Face = input.ReadBytes();
break;
}
case 18: {
Back = input.ReadBytes();
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: {
Face = input.ReadBytes();
break;
}
case 18: {
Back = input.ReadBytes();
break;
}
}
}
}
#endif
}
public sealed partial class CardIndex : pb::IMessage<CardIndex>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<CardIndex> _parser = new pb::MessageParser<CardIndex>(() => new CardIndex());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<CardIndex> 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 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);
}
/// <summary>Field number for the "index" field.</summary>
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;
}
}
/// <summary>Field number for the "top" field.</summary>
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;
}
}
/// <summary>Field number for the "bottom" field.</summary>
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_;
/// <summary>Enum of possible cases for the "pos" oneof.</summary>
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<PileKind>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PileKind> _parser = new pb::MessageParser<PileKind>(() => new PileKind());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<PileKind> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Game.GameReflection.Descriptor.MessageTypes[3]; }
}
[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);
}
/// <summary>Field number for the "owned" field.</summary>
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;
}
}
/// <summary>Field number for the "common" field.</summary>
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_;
/// <summary>Enum of possible cases for the "kind" oneof.</summary>
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<CardId>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<CardId> _parser = new pb::MessageParser<CardId>(() => new CardId());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<CardId> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Game.GameReflection.Descriptor.MessageTypes[4]; }
}
[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);
}
/// <summary>Field number for the "pileKind" field.</summary>
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;
}
}
/// <summary>Field number for the "pileName" field.</summary>
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");
}
}
/// <summary>Field number for the "cardIndex" field.</summary>
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
}
public sealed partial class MessageStatus : pb::IMessage<MessageStatus>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MessageStatus> _parser = new pb::MessageParser<MessageStatus>(() => new MessageStatus());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MessageStatus> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Game.GameReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MessageStatus() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MessageStatus(MessageStatus other) : this() {
commonPiles_ = other.commonPiles_ != null ? other.commonPiles_.Clone() : null;
playerPiles_ = other.playerPiles_.Clone();
names_ = other.names_.Clone();
currentTurn_ = other.currentTurn_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MessageStatus Clone() {
return new MessageStatus(this);
}
/// <summary>Field number for the "commonPiles" field.</summary>
public const int CommonPilesFieldNumber = 1;
private global::Game.MessageStatus.Types.Piles commonPiles_;
/// <summary>
/// {a: [""], b:[""]}
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Game.MessageStatus.Types.Piles CommonPiles {
get { return commonPiles_; }
set {
commonPiles_ = value;
}
}
/// <summary>Field number for the "playerPiles" field.</summary>
public const int PlayerPilesFieldNumber = 2;
private static readonly pb::FieldCodec<global::Game.MessageStatus.Types.Piles> _repeated_playerPiles_codec
= pb::FieldCodec.ForMessage(18, global::Game.MessageStatus.Types.Piles.Parser);
private readonly pbc::RepeatedField<global::Game.MessageStatus.Types.Piles> playerPiles_ = new pbc::RepeatedField<global::Game.MessageStatus.Types.Piles>();
/// <summary>
/// [{...}, {...}]
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Game.MessageStatus.Types.Piles> PlayerPiles {
get { return playerPiles_; }
}
/// <summary>Field number for the "names" field.</summary>
public const int NamesFieldNumber = 3;
private static readonly pb::FieldCodec<global::Common.Name> _repeated_names_codec
= pb::FieldCodec.ForMessage(26, global::Common.Name.Parser);
private readonly pbc::RepeatedField<global::Common.Name> names_ = new pbc::RepeatedField<global::Common.Name>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Common.Name> Names {
get { return names_; }
}
/// <summary>Field number for the "currentTurn" field.</summary>
public const int CurrentTurnFieldNumber = 4;
private uint currentTurn_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint CurrentTurn {
get { return currentTurn_; }
set {
currentTurn_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MessageStatus);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MessageStatus other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(CommonPiles, other.CommonPiles)) return false;
if(!playerPiles_.Equals(other.playerPiles_)) return false;
if(!names_.Equals(other.names_)) return false;
if (CurrentTurn != other.CurrentTurn) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (commonPiles_ != null) hash ^= CommonPiles.GetHashCode();
hash ^= playerPiles_.GetHashCode();
hash ^= names_.GetHashCode();
if (CurrentTurn != 0) hash ^= CurrentTurn.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 (commonPiles_ != null) {
output.WriteRawTag(10);
output.WriteMessage(CommonPiles);
}
playerPiles_.WriteTo(output, _repeated_playerPiles_codec);
names_.WriteTo(output, _repeated_names_codec);
if (CurrentTurn != 0) {
output.WriteRawTag(32);
output.WriteUInt32(CurrentTurn);
}
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 (commonPiles_ != null) {
output.WriteRawTag(10);
output.WriteMessage(CommonPiles);
}
playerPiles_.WriteTo(ref output, _repeated_playerPiles_codec);
names_.WriteTo(ref output, _repeated_names_codec);
if (CurrentTurn != 0) {
output.WriteRawTag(32);
output.WriteUInt32(CurrentTurn);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (commonPiles_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CommonPiles);
}
size += playerPiles_.CalculateSize(_repeated_playerPiles_codec);
size += names_.CalculateSize(_repeated_names_codec);
if (CurrentTurn != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrentTurn);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MessageStatus other) {
if (other == null) {
return;
}
if (other.commonPiles_ != null) {
if (commonPiles_ == null) {
CommonPiles = new global::Game.MessageStatus.Types.Piles();
}
CommonPiles.MergeFrom(other.CommonPiles);
}
playerPiles_.Add(other.playerPiles_);
names_.Add(other.names_);
if (other.CurrentTurn != 0) {
CurrentTurn = other.CurrentTurn;
}
_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 (commonPiles_ == null) {
CommonPiles = new global::Game.MessageStatus.Types.Piles();
}
input.ReadMessage(CommonPiles);
break;
}
case 18: {
playerPiles_.AddEntriesFrom(input, _repeated_playerPiles_codec);
break;
}
case 26: {
names_.AddEntriesFrom(input, _repeated_names_codec);
break;
}
case 32: {
CurrentTurn = input.ReadUInt32();
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 (commonPiles_ == null) {
CommonPiles = new global::Game.MessageStatus.Types.Piles();
}
input.ReadMessage(CommonPiles);
break;
}
case 18: {
playerPiles_.AddEntriesFrom(ref input, _repeated_playerPiles_codec);
break;
}
case 26: {
names_.AddEntriesFrom(ref input, _repeated_names_codec);
break;
}
case 32: {
CurrentTurn = input.ReadUInt32();
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the MessageStatus message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
public sealed partial class Card : pb::IMessage<Card>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Card> _parser = new pb::MessageParser<Card>(() => new Card());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Card> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Game.MessageStatus.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Card() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Card(Card other) : this() {
kind_ = other.kind_ != null ? other.kind_.Clone() : null;
visible_ = other.visible_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Card Clone() {
return new Card(this);
}
/// <summary>Field number for the "kind" field.</summary>
public const int KindFieldNumber = 1;
private global::Game.CardKind kind_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Game.CardKind Kind {
get { return kind_; }
set {
kind_ = value;
}
}
/// <summary>Field number for the "visible" field.</summary>
public const int VisibleFieldNumber = 2;
private bool visible_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Visible {
get { return visible_; }
set {
visible_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Card);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Card other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Kind, other.Kind)) return false;
if (Visible != other.Visible) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (kind_ != null) hash ^= Kind.GetHashCode();
if (Visible != false) hash ^= Visible.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 (kind_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Kind);
}
if (Visible != false) {
output.WriteRawTag(16);
output.WriteBool(Visible);
}
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 (kind_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Kind);
}
if (Visible != false) {
output.WriteRawTag(16);
output.WriteBool(Visible);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (kind_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Kind);
}
if (Visible != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Card other) {
if (other == null) {
return;
}
if (other.kind_ != null) {
if (kind_ == null) {
Kind = new global::Game.CardKind();
}
Kind.MergeFrom(other.Kind);
}
if (other.Visible != false) {
Visible = other.Visible;
}
_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 (kind_ == null) {
Kind = new global::Game.CardKind();
}
input.ReadMessage(Kind);
break;
}
case 16: {
Visible = input.ReadBool();
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 (kind_ == null) {
Kind = new global::Game.CardKind();
}
input.ReadMessage(Kind);
break;
}
case 16: {
Visible = input.ReadBool();
break;
}
}
}
}
#endif
}
public sealed partial class Pile : pb::IMessage<Pile>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Pile> _parser = new pb::MessageParser<Pile>(() => new Pile());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Pile> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Game.MessageStatus.Descriptor.NestedTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Pile() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Pile(Pile other) : this() {
cards_ = other.cards_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Pile Clone() {
return new Pile(this);
}
/// <summary>Field number for the "cards" field.</summary>
public const int CardsFieldNumber = 1;
private static readonly pb::FieldCodec<global::Game.MessageStatus.Types.Card> _repeated_cards_codec
= pb::FieldCodec.ForMessage(10, global::Game.MessageStatus.Types.Card.Parser);
private readonly pbc::RepeatedField<global::Game.MessageStatus.Types.Card> cards_ = new pbc::RepeatedField<global::Game.MessageStatus.Types.Card>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Game.MessageStatus.Types.Card> Cards {
get { return cards_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Pile);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Pile other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!cards_.Equals(other.cards_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= cards_.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
cards_.WriteTo(output, _repeated_cards_codec);
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) {
cards_.WriteTo(ref output, _repeated_cards_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += cards_.CalculateSize(_repeated_cards_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Pile other) {
if (other == null) {
return;
}
cards_.Add(other.cards_);
_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: {
cards_.AddEntriesFrom(input, _repeated_cards_codec);
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: {
cards_.AddEntriesFrom(ref input, _repeated_cards_codec);
break;
}
}
}
}
#endif
}
public sealed partial class Piles : pb::IMessage<Piles>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Piles> _parser = new pb::MessageParser<Piles>(() => new Piles());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Piles> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Game.MessageStatus.Descriptor.NestedTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Piles() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Piles(Piles other) : this() {
piles_ = other.piles_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Piles Clone() {
return new Piles(this);
}
/// <summary>Field number for the "piles" field.</summary>
public const int Piles_FieldNumber = 1;
private static readonly pbc::MapField<string, global::Game.MessageStatus.Types.Pile>.Codec _map_piles_codec
= new pbc::MapField<string, global::Game.MessageStatus.Types.Pile>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Game.MessageStatus.Types.Pile.Parser), 10);
private readonly pbc::MapField<string, global::Game.MessageStatus.Types.Pile> piles_ = new pbc::MapField<string, global::Game.MessageStatus.Types.Pile>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::MapField<string, global::Game.MessageStatus.Types.Pile> Piles_ {
get { return piles_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Piles);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Piles other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!Piles_.Equals(other.Piles_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= Piles_.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
piles_.WriteTo(output, _map_piles_codec);
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) {
piles_.WriteTo(ref output, _map_piles_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += piles_.CalculateSize(_map_piles_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Piles other) {
if (other == null) {
return;
}
piles_.Add(other.piles_);
_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: {
piles_.AddEntriesFrom(input, _map_piles_codec);
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: {
piles_.AddEntriesFrom(ref input, _map_piles_codec);
break;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code