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.
 
 
 
 
 

2558 lines
85 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",
"dG8aDGNvbW1vbi5wcm90byIYCghDYXJkS2luZBIMCgRraW5kGAEgASgJIjEK",
"BUltYWdlEgwKBGZhY2UYASABKAwSDAoEYmFjaxgCIAEoDBIMCgRraW5kGAMg",
"ASgJInQKCUNhcmRJbmRleBIPCgVpbmRleBgBIAEoDUgAEiUKA3RvcBgCIAEo",
"CzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAEigKBmJvdHRvbRgDIAEoCzIW",
"Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAQgUKA3BvcyJNCghQaWxlS2luZBIP",
"CgVvd25lZBgBIAEoDUgAEigKBmNvbW1vbhgCIAEoCzIWLmdvb2dsZS5wcm90",
"b2J1Zi5FbXB0eUgAQgYKBGtpbmQiYAoGQ2FyZElkEiAKCHBpbGVLaW5kGAEg",
"ASgLMg4uZ2FtZS5QaWxlS2luZBIQCghwaWxlTmFtZRgCIAEoCRIiCgljYXJk",
"SW5kZXgYAyABKAsyDy5nYW1lLkNhcmRJbmRleCKyBAoKR2FtZVN0YXR1cxIr",
"Cgtjb21tb25QaWxlcxgBIAEoCzIWLmdhbWUuR2FtZVN0YXR1cy5QaWxlcxIr",
"CgtwbGF5ZXJQaWxlcxgCIAMoCzIWLmdhbWUuR2FtZVN0YXR1cy5QaWxlcxIb",
"CgVuYW1lcxgDIAMoCzIMLmNvbW1vbi5OYW1lEhMKC2N1cnJlbnRUdXJuGAQg",
"ASgNEhMKC2hhc0ZpbmlzaGVkGAUgASgIEjAKBGluZm8YBiABKAsyIi5nYW1l",
"LkdhbWVTdGF0dXMuQ3VzdG9tSW5mb01lc3NhZ2UaQwoEQ2FyZBIcCgRraW5k",
"GAEgASgLMg4uZ2FtZS5DYXJkS2luZBIPCgd2aXNpYmxlGAIgASgIEgwKBHV1",
"aWQYAyABKAkaXQoEUGlsZRIkCgVjYXJkcxgBIAMoCzIVLmdhbWUuR2FtZVN0",
"YXR1cy5DYXJkEhAKCGZhY2VEb3duGAIgASgIEg8KB3Zpc2libGUYAyABKAgS",
"DAoEbmFtZRgEIAEoCRp+CgVQaWxlcxIwCgVwaWxlcxgBIAMoCzIhLmdhbWUu",
"R2FtZVN0YXR1cy5QaWxlcy5QaWxlc0VudHJ5GkMKClBpbGVzRW50cnkSCwoD",
"a2V5GAEgASgJEiQKBXZhbHVlGAIgASgLMhUuZ2FtZS5HYW1lU3RhdHVzLlBp",
"bGU6AjgBGi0KEUN1c3RvbUluZm9NZXNzYWdlEg0KBXRpdGxlGAEgASgJEgkK",
"AW0YAiABKAliBnByb3RvMw=="));
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", "Kind" }, 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.GameStatus), global::Game.GameStatus.Parser, new[]{ "CommonPiles", "PlayerPiles", "Names", "CurrentTurn", "HasFinished", "Info" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Card), global::Game.GameStatus.Types.Card.Parser, new[]{ "Kind", "Visible", "Uuid" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Pile), global::Game.GameStatus.Types.Pile.Parser, new[]{ "Cards", "FaceDown", "Visible", "Name" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Piles), global::Game.GameStatus.Types.Piles.Parser, new[]{ "Piles_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.CustomInfoMessage), global::Game.GameStatus.Types.CustomInfoMessage.Parser, new[]{ "Title", "M" }, null, null, null, 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_;
kind_ = other.kind_;
_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");
}
}
/// <summary>Field number for the "kind" field.</summary>
public const int KindFieldNumber = 3;
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 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;
if (Kind != other.Kind) 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 (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 (Face.Length != 0) {
output.WriteRawTag(10);
output.WriteBytes(Face);
}
if (Back.Length != 0) {
output.WriteRawTag(18);
output.WriteBytes(Back);
}
if (Kind.Length != 0) {
output.WriteRawTag(26);
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 (Face.Length != 0) {
output.WriteRawTag(10);
output.WriteBytes(Face);
}
if (Back.Length != 0) {
output.WriteRawTag(18);
output.WriteBytes(Back);
}
if (Kind.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Kind);
}
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 (Kind.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind);
}
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;
}
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: {
Face = input.ReadBytes();
break;
}
case 18: {
Back = input.ReadBytes();
break;
}
case 26: {
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: {
Face = input.ReadBytes();
break;
}
case 18: {
Back = input.ReadBytes();
break;
}
case 26: {
Kind = input.ReadString();
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 GameStatus : pb::IMessage<GameStatus>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<GameStatus> _parser = new pb::MessageParser<GameStatus>(() => new GameStatus());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<GameStatus> 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 GameStatus() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GameStatus(GameStatus other) : this() {
commonPiles_ = other.commonPiles_ != null ? other.commonPiles_.Clone() : null;
playerPiles_ = other.playerPiles_.Clone();
names_ = other.names_.Clone();
currentTurn_ = other.currentTurn_;
hasFinished_ = other.hasFinished_;
info_ = other.info_ != null ? other.info_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GameStatus Clone() {
return new GameStatus(this);
}
/// <summary>Field number for the "commonPiles" field.</summary>
public const int CommonPilesFieldNumber = 1;
private global::Game.GameStatus.Types.Piles commonPiles_;
/// <summary>
/// {a: [""], b:[""]}
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Game.GameStatus.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.GameStatus.Types.Piles> _repeated_playerPiles_codec
= pb::FieldCodec.ForMessage(18, global::Game.GameStatus.Types.Piles.Parser);
private readonly pbc::RepeatedField<global::Game.GameStatus.Types.Piles> playerPiles_ = new pbc::RepeatedField<global::Game.GameStatus.Types.Piles>();
/// <summary>
/// [{...}, {...}]
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Game.GameStatus.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;
}
}
/// <summary>Field number for the "hasFinished" field.</summary>
public const int HasFinishedFieldNumber = 5;
private bool hasFinished_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasFinished {
get { return hasFinished_; }
set {
hasFinished_ = value;
}
}
/// <summary>Field number for the "info" field.</summary>
public const int InfoFieldNumber = 6;
private global::Game.GameStatus.Types.CustomInfoMessage info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Game.GameStatus.Types.CustomInfoMessage Info {
get { return info_; }
set {
info_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as GameStatus);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(GameStatus 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;
if (HasFinished != other.HasFinished) return false;
if (!object.Equals(Info, other.Info)) 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 (HasFinished != false) hash ^= HasFinished.GetHashCode();
if (info_ != null) hash ^= Info.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 (HasFinished != false) {
output.WriteRawTag(40);
output.WriteBool(HasFinished);
}
if (info_ != null) {
output.WriteRawTag(50);
output.WriteMessage(Info);
}
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 (HasFinished != false) {
output.WriteRawTag(40);
output.WriteBool(HasFinished);
}
if (info_ != null) {
output.WriteRawTag(50);
output.WriteMessage(Info);
}
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 (HasFinished != false) {
size += 1 + 1;
}
if (info_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(GameStatus other) {
if (other == null) {
return;
}
if (other.commonPiles_ != null) {
if (commonPiles_ == null) {
CommonPiles = new global::Game.GameStatus.Types.Piles();
}
CommonPiles.MergeFrom(other.CommonPiles);
}
playerPiles_.Add(other.playerPiles_);
names_.Add(other.names_);
if (other.CurrentTurn != 0) {
CurrentTurn = other.CurrentTurn;
}
if (other.HasFinished != false) {
HasFinished = other.HasFinished;
}
if (other.info_ != null) {
if (info_ == null) {
Info = new global::Game.GameStatus.Types.CustomInfoMessage();
}
Info.MergeFrom(other.Info);
}
_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.GameStatus.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;
}
case 40: {
HasFinished = input.ReadBool();
break;
}
case 50: {
if (info_ == null) {
Info = new global::Game.GameStatus.Types.CustomInfoMessage();
}
input.ReadMessage(Info);
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.GameStatus.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;
}
case 40: {
HasFinished = input.ReadBool();
break;
}
case 50: {
if (info_ == null) {
Info = new global::Game.GameStatus.Types.CustomInfoMessage();
}
input.ReadMessage(Info);
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the GameStatus 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.GameStatus.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_;
uuid_ = other.uuid_;
_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;
}
}
/// <summary>Field number for the "uuid" field.</summary>
public const int UuidFieldNumber = 3;
private string uuid_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Uuid {
get { return uuid_; }
set {
uuid_ = pb::ProtoPreconditions.CheckNotNull(value, "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;
if (Uuid != other.Uuid) 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 (Uuid.Length != 0) hash ^= Uuid.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 (Uuid.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Uuid);
}
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 (Uuid.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Uuid);
}
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 (Uuid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Uuid);
}
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;
}
if (other.Uuid.Length != 0) {
Uuid = other.Uuid;
}
_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;
}
case 26: {
Uuid = 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: {
if (kind_ == null) {
Kind = new global::Game.CardKind();
}
input.ReadMessage(Kind);
break;
}
case 16: {
Visible = input.ReadBool();
break;
}
case 26: {
Uuid = input.ReadString();
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.GameStatus.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();
faceDown_ = other.faceDown_;
visible_ = other.visible_;
name_ = other.name_;
_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.GameStatus.Types.Card> _repeated_cards_codec
= pb::FieldCodec.ForMessage(10, global::Game.GameStatus.Types.Card.Parser);
private readonly pbc::RepeatedField<global::Game.GameStatus.Types.Card> cards_ = new pbc::RepeatedField<global::Game.GameStatus.Types.Card>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Game.GameStatus.Types.Card> Cards {
get { return cards_; }
}
/// <summary>Field number for the "faceDown" field.</summary>
public const int FaceDownFieldNumber = 2;
private bool faceDown_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool FaceDown {
get { return faceDown_; }
set {
faceDown_ = value;
}
}
/// <summary>Field number for the "visible" field.</summary>
public const int VisibleFieldNumber = 3;
private bool visible_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Visible {
get { return visible_; }
set {
visible_ = value;
}
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 4;
private string name_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[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;
if (FaceDown != other.FaceDown) return false;
if (Visible != other.Visible) return false;
if (Name != other.Name) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= cards_.GetHashCode();
if (FaceDown != false) hash ^= FaceDown.GetHashCode();
if (Visible != false) hash ^= Visible.GetHashCode();
if (Name.Length != 0) hash ^= Name.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 (FaceDown != false) {
output.WriteRawTag(16);
output.WriteBool(FaceDown);
}
if (Visible != false) {
output.WriteRawTag(24);
output.WriteBool(Visible);
}
if (Name.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Name);
}
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 (FaceDown != false) {
output.WriteRawTag(16);
output.WriteBool(FaceDown);
}
if (Visible != false) {
output.WriteRawTag(24);
output.WriteBool(Visible);
}
if (Name.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Name);
}
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 (FaceDown != false) {
size += 1 + 1;
}
if (Visible != false) {
size += 1 + 1;
}
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
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_);
if (other.FaceDown != false) {
FaceDown = other.FaceDown;
}
if (other.Visible != false) {
Visible = other.Visible;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
_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;
}
case 16: {
FaceDown = input.ReadBool();
break;
}
case 24: {
Visible = input.ReadBool();
break;
}
case 34: {
Name = 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: {
cards_.AddEntriesFrom(ref input, _repeated_cards_codec);
break;
}
case 16: {
FaceDown = input.ReadBool();
break;
}
case 24: {
Visible = input.ReadBool();
break;
}
case 34: {
Name = input.ReadString();
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.GameStatus.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.GameStatus.Types.Pile>.Codec _map_piles_codec
= new pbc::MapField<string, global::Game.GameStatus.Types.Pile>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Game.GameStatus.Types.Pile.Parser), 10);
private readonly pbc::MapField<string, global::Game.GameStatus.Types.Pile> piles_ = new pbc::MapField<string, global::Game.GameStatus.Types.Pile>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::MapField<string, global::Game.GameStatus.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
}
public sealed partial class CustomInfoMessage : pb::IMessage<CustomInfoMessage>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<CustomInfoMessage> _parser = new pb::MessageParser<CustomInfoMessage>(() => new CustomInfoMessage());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<CustomInfoMessage> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Game.GameStatus.Descriptor.NestedTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CustomInfoMessage() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CustomInfoMessage(CustomInfoMessage other) : this() {
title_ = other.title_;
m_ = other.m_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CustomInfoMessage Clone() {
return new CustomInfoMessage(this);
}
/// <summary>Field number for the "title" field.</summary>
public const int TitleFieldNumber = 1;
private string title_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Title {
get { return title_; }
set {
title_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "m" field.</summary>
public const int MFieldNumber = 2;
private string m_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string M {
get { return m_; }
set {
m_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as CustomInfoMessage);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(CustomInfoMessage other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Title != other.Title) return false;
if (M != other.M) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Title.Length != 0) hash ^= Title.GetHashCode();
if (M.Length != 0) hash ^= M.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 (Title.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Title);
}
if (M.Length != 0) {
output.WriteRawTag(18);
output.WriteString(M);
}
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 (Title.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Title);
}
if (M.Length != 0) {
output.WriteRawTag(18);
output.WriteString(M);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Title.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
}
if (M.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(M);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(CustomInfoMessage other) {
if (other == null) {
return;
}
if (other.Title.Length != 0) {
Title = other.Title;
}
if (other.M.Length != 0) {
M = other.M;
}
_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: {
Title = input.ReadString();
break;
}
case 18: {
M = 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: {
Title = input.ReadString();
break;
}
case 18: {
M = input.ReadString();
break;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code