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.
3605 lines
120 KiB
3605 lines
120 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",
|
|
"dG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aDGNvbW1vbi5w",
|
|
"cm90byIYCghDYXJkS2luZBIMCgRraW5kGAEgASgJImgKBUNhcmRzEh8KBWNh",
|
|
"cmRzGAEgAygLMhAuZ2FtZS5DYXJkcy5DYXJkGj4KBENhcmQSDAoEa2luZBgB",
|
|
"IAEoCRIoCgR0aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt",
|
|
"cCKlAQoGSW1hZ2VzEiMKBXNldHVwGAEgASgLMhIuZ2FtZS5JbWFnZXMuU2V0",
|
|
"VXBIABItCgpkYXRhUGFja2V0GAIgASgLMhcuZ2FtZS5JbWFnZXMuRGF0YVBh",
|
|
"Y2tldEgAGhcKBVNldFVwEg4KBm51bWJlchgBIAEoDRomCgpEYXRhUGFja2V0",
|
|
"EgoKAmlkGAEgASgNEgwKBGRhdGEYAiABKAxCBgoEZGF0YSIxCgVJbWFnZRIM",
|
|
"CgRmYWNlGAEgASgMEgwKBGJhY2sYAiABKAwSDAoEa2luZBgDIAEoCSJ0CglD",
|
|
"YXJkSW5kZXgSDwoFaW5kZXgYASABKA1IABIlCgN0b3AYAiABKAsyFi5nb29n",
|
|
"bGUucHJvdG9idWYuRW1wdHlIABIoCgZib3R0b20YAyABKAsyFi5nb29nbGUu",
|
|
"cHJvdG9idWYuRW1wdHlIAEIFCgNwb3MiTQoIUGlsZUtpbmQSDwoFb3duZWQY",
|
|
"ASABKA1IABIoCgZjb21tb24YAiABKAsyFi5nb29nbGUucHJvdG9idWYuRW1w",
|
|
"dHlIAEIGCgRraW5kImAKBkNhcmRJZBIgCghwaWxlS2luZBgBIAEoCzIOLmdh",
|
|
"bWUuUGlsZUtpbmQSEAoIcGlsZU5hbWUYAiABKAkSIgoJY2FyZEluZGV4GAMg",
|
|
"ASgLMg8uZ2FtZS5DYXJkSW5kZXgisgQKCkdhbWVTdGF0dXMSKwoLY29tbW9u",
|
|
"UGlsZXMYASABKAsyFi5nYW1lLkdhbWVTdGF0dXMuUGlsZXMSKwoLcGxheWVy",
|
|
"UGlsZXMYAiADKAsyFi5nYW1lLkdhbWVTdGF0dXMuUGlsZXMSGwoFbmFtZXMY",
|
|
"AyADKAsyDC5jb21tb24uTmFtZRITCgtjdXJyZW50VHVybhgEIAEoDRITCgto",
|
|
"YXNGaW5pc2hlZBgFIAEoCBIwCgRpbmZvGAYgASgLMiIuZ2FtZS5HYW1lU3Rh",
|
|
"dHVzLkN1c3RvbUluZm9NZXNzYWdlGkMKBENhcmQSHAoEa2luZBgBIAEoCzIO",
|
|
"LmdhbWUuQ2FyZEtpbmQSDwoHdmlzaWJsZRgCIAEoCBIMCgR1dWlkGAMgASgJ",
|
|
"Gl0KBFBpbGUSJAoFY2FyZHMYASADKAsyFS5nYW1lLkdhbWVTdGF0dXMuQ2Fy",
|
|
"ZBIQCghmYWNlRG93bhgCIAEoCBIPCgd2aXNpYmxlGAMgASgIEgwKBG5hbWUY",
|
|
"BCABKAkafgoFUGlsZXMSMAoFcGlsZXMYASADKAsyIS5nYW1lLkdhbWVTdGF0",
|
|
"dXMuUGlsZXMuUGlsZXNFbnRyeRpDCgpQaWxlc0VudHJ5EgsKA2tleRgBIAEo",
|
|
"CRIkCgV2YWx1ZRgCIAEoCzIVLmdhbWUuR2FtZVN0YXR1cy5QaWxlOgI4ARot",
|
|
"ChFDdXN0b21JbmZvTWVzc2FnZRINCgV0aXRsZRgBIAEoCRIJCgFtGAIgASgJ",
|
|
"YgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.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.Cards), global::Game.Cards.Parser, new[]{ "Cards_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.Cards.Types.Card), global::Game.Cards.Types.Card.Parser, new[]{ "Kind", "Time" }, null, null, null, null)}),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Images), global::Game.Images.Parser, new[]{ "Setup", "DataPacket" }, new[]{ "Data" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.Images.Types.SetUp), global::Game.Images.Types.SetUp.Parser, new[]{ "Number" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Images.Types.DataPacket), global::Game.Images.Types.DataPacket.Parser, new[]{ "Id", "Data" }, 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 Cards : pb::IMessage<Cards>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Cards> _parser = new pb::MessageParser<Cards>(() => new Cards());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Cards> 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 Cards() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Cards(Cards other) : this() {
|
|
cards_ = other.cards_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Cards Clone() {
|
|
return new Cards(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "cards" field.</summary>
|
|
public const int Cards_FieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Game.Cards.Types.Card> _repeated_cards_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Game.Cards.Types.Card.Parser);
|
|
private readonly pbc::RepeatedField<global::Game.Cards.Types.Card> cards_ = new pbc::RepeatedField<global::Game.Cards.Types.Card>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Game.Cards.Types.Card> Cards_ {
|
|
get { return cards_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Cards);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Cards 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(Cards 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
|
|
|
|
#region Nested types
|
|
/// <summary>Container for nested types declared in the Cards 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.Cards.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_;
|
|
time_ = other.time_ != null ? other.time_.Clone() : null;
|
|
_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 string kind_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Kind {
|
|
get { return kind_; }
|
|
set {
|
|
kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "time" field.</summary>
|
|
public const int TimeFieldNumber = 2;
|
|
private global::Google.Protobuf.WellKnownTypes.Timestamp time_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Timestamp Time {
|
|
get { return time_; }
|
|
set {
|
|
time_ = 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 (Kind != other.Kind) return false;
|
|
if (!object.Equals(Time, other.Time)) 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 (time_ != null) hash ^= Time.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 (time_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Time);
|
|
}
|
|
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 (time_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Time);
|
|
}
|
|
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 (time_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Card other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Kind.Length != 0) {
|
|
Kind = other.Kind;
|
|
}
|
|
if (other.time_ != null) {
|
|
if (time_ == null) {
|
|
Time = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
Time.MergeFrom(other.Time);
|
|
}
|
|
_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;
|
|
}
|
|
case 18: {
|
|
if (time_ == null) {
|
|
Time = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(Time);
|
|
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;
|
|
}
|
|
case 18: {
|
|
if (time_ == null) {
|
|
Time = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(Time);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
|
|
public sealed partial class Images : pb::IMessage<Images>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Images> _parser = new pb::MessageParser<Images>(() => new Images());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Images> 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 Images() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Images(Images other) : this() {
|
|
switch (other.DataCase) {
|
|
case DataOneofCase.Setup:
|
|
Setup = other.Setup.Clone();
|
|
break;
|
|
case DataOneofCase.DataPacket:
|
|
DataPacket = other.DataPacket.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Images Clone() {
|
|
return new Images(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "setup" field.</summary>
|
|
public const int SetupFieldNumber = 1;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Game.Images.Types.SetUp Setup {
|
|
get { return dataCase_ == DataOneofCase.Setup ? (global::Game.Images.Types.SetUp) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Setup;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "dataPacket" field.</summary>
|
|
public const int DataPacketFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Game.Images.Types.DataPacket DataPacket {
|
|
get { return dataCase_ == DataOneofCase.DataPacket ? (global::Game.Images.Types.DataPacket) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DataPacket;
|
|
}
|
|
}
|
|
|
|
private object data_;
|
|
/// <summary>Enum of possible cases for the "data" oneof.</summary>
|
|
public enum DataOneofCase {
|
|
None = 0,
|
|
Setup = 1,
|
|
DataPacket = 2,
|
|
}
|
|
private DataOneofCase dataCase_ = DataOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DataOneofCase DataCase {
|
|
get { return dataCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearData() {
|
|
dataCase_ = DataOneofCase.None;
|
|
data_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Images);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Images other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Setup, other.Setup)) return false;
|
|
if (!object.Equals(DataPacket, other.DataPacket)) return false;
|
|
if (DataCase != other.DataCase) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (dataCase_ == DataOneofCase.Setup) hash ^= Setup.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.DataPacket) hash ^= DataPacket.GetHashCode();
|
|
hash ^= (int) dataCase_;
|
|
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 (dataCase_ == DataOneofCase.Setup) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Setup);
|
|
}
|
|
if (dataCase_ == DataOneofCase.DataPacket) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(DataPacket);
|
|
}
|
|
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 (dataCase_ == DataOneofCase.Setup) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Setup);
|
|
}
|
|
if (dataCase_ == DataOneofCase.DataPacket) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(DataPacket);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (dataCase_ == DataOneofCase.Setup) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
|
|
}
|
|
if (dataCase_ == DataOneofCase.DataPacket) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataPacket);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Images other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.DataCase) {
|
|
case DataOneofCase.Setup:
|
|
if (Setup == null) {
|
|
Setup = new global::Game.Images.Types.SetUp();
|
|
}
|
|
Setup.MergeFrom(other.Setup);
|
|
break;
|
|
case DataOneofCase.DataPacket:
|
|
if (DataPacket == null) {
|
|
DataPacket = new global::Game.Images.Types.DataPacket();
|
|
}
|
|
DataPacket.MergeFrom(other.DataPacket);
|
|
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 10: {
|
|
global::Game.Images.Types.SetUp subBuilder = new global::Game.Images.Types.SetUp();
|
|
if (dataCase_ == DataOneofCase.Setup) {
|
|
subBuilder.MergeFrom(Setup);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Setup = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::Game.Images.Types.DataPacket subBuilder = new global::Game.Images.Types.DataPacket();
|
|
if (dataCase_ == DataOneofCase.DataPacket) {
|
|
subBuilder.MergeFrom(DataPacket);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
DataPacket = 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 10: {
|
|
global::Game.Images.Types.SetUp subBuilder = new global::Game.Images.Types.SetUp();
|
|
if (dataCase_ == DataOneofCase.Setup) {
|
|
subBuilder.MergeFrom(Setup);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Setup = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::Game.Images.Types.DataPacket subBuilder = new global::Game.Images.Types.DataPacket();
|
|
if (dataCase_ == DataOneofCase.DataPacket) {
|
|
subBuilder.MergeFrom(DataPacket);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
DataPacket = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#region Nested types
|
|
/// <summary>Container for nested types declared in the Images message type.</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static partial class Types {
|
|
public sealed partial class SetUp : pb::IMessage<SetUp>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<SetUp> _parser = new pb::MessageParser<SetUp>(() => new SetUp());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<SetUp> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Game.Images.Descriptor.NestedTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SetUp() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SetUp(SetUp other) : this() {
|
|
number_ = other.number_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SetUp Clone() {
|
|
return new SetUp(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "number" field.</summary>
|
|
public const int NumberFieldNumber = 1;
|
|
private uint number_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public uint Number {
|
|
get { return number_; }
|
|
set {
|
|
number_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as SetUp);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(SetUp other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Number != other.Number) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Number != 0) hash ^= Number.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 (Number != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Number);
|
|
}
|
|
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 (Number != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Number);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Number != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Number);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(SetUp other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Number != 0) {
|
|
Number = other.Number;
|
|
}
|
|
_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: {
|
|
Number = 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 8: {
|
|
Number = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class DataPacket : pb::IMessage<DataPacket>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<DataPacket> _parser = new pb::MessageParser<DataPacket>(() => new DataPacket());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<DataPacket> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Game.Images.Descriptor.NestedTypes[1]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DataPacket() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DataPacket(DataPacket other) : this() {
|
|
id_ = other.id_;
|
|
data_ = other.data_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DataPacket Clone() {
|
|
return new DataPacket(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private uint id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public uint Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "data" field.</summary>
|
|
public const int DataFieldNumber = 2;
|
|
private pb::ByteString data_ = pb::ByteString.Empty;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pb::ByteString Data {
|
|
get { return data_; }
|
|
set {
|
|
data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as DataPacket);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(DataPacket other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (Data != other.Data) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Id != 0) hash ^= Id.GetHashCode();
|
|
if (Data.Length != 0) hash ^= Data.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 (Id != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
if (Data.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteBytes(Data);
|
|
}
|
|
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 (Id != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
if (Data.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteBytes(Data);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Id != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
|
}
|
|
if (Data.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(DataPacket other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.Data.Length != 0) {
|
|
Data = other.Data;
|
|
}
|
|
_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: {
|
|
Id = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Data = 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 8: {
|
|
Id = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Data = input.ReadBytes();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
|
|
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[3]; }
|
|
}
|
|
|
|
[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[4]; }
|
|
}
|
|
|
|
[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[5]; }
|
|
}
|
|
|
|
[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[6]; }
|
|
}
|
|
|
|
[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[7]; }
|
|
}
|
|
|
|
[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
|
|
|