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.
 
 
 
 
 

1473 lines
46 KiB

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: lobby.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 Lobby {
/// <summary>Holder for reflection information generated from lobby.proto</summary>
public static partial class LobbyReflection {
#region Descriptor
/// <summary>File descriptor for lobby.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static LobbyReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cgtsb2JieS5wcm90bxIFbG9iYnkaH2dvb2dsZS9wcm90b2J1Zi90aW1lc3Rh",
"bXAucHJvdG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90bxoMY29tbW9u",
"LnByb3RvIh0KDEhhc05ld1N0YXR1cxINCgV2YWx1ZRgBIAEoCCJOChNMYXN0",
"U3RhdHVzVGltZXN0YW1wEigKBHRpbWUYASABKAsyGi5nb29nbGUucHJvdG9i",
"dWYuVGltZXN0YW1wEg0KBWxvYmJ5GAIgASgNIigKBkNhcmRJRBIOCgZnYW1l",
"SWQYASABKA0SDgoGY2FyZElkGAIgASgJIhgKBUltYWdlEg8KB2NvbnRlbnQY",
"ASABKAwiMwoEVm90ZRIOCgZwbGF5ZXIYASABKAkSDAoEZ2FtZRgCIAEoDRIN",
"CgVyZWFkeRgDIAEoCCIaCgpTaW5nbGVWb3RlEgwKBGdhbWUYAiABKA0iWgoL",
"TG9iYnlTdGF0dXMSGwoFbmFtZXMYASADKAsyDC5jb21tb24uTmFtZRIaCgV2",
"b3RlcxgCIAMoCzILLmxvYmJ5LlZvdGUSEgoKaXNTdGFydGluZxgDIAEoCDKE",
"AwoFTG9iYnkSKwoMZ2V0Q2FyZEltYWdlEg0ubG9iYnkuQ2FyZElEGgwubG9i",
"YnkuSW1hZ2USLwoFdXNlcnMSFi5nb29nbGUucHJvdG9idWYuRW1wdHkaDC5j",
"b21tb24uTmFtZTABEjEKBHZvdGUSES5sb2JieS5TaW5nbGVWb3RlGhYuZ29v",
"Z2xlLnByb3RvYnVmLkVtcHR5EjcKBXJlYWR5EhYuZ29vZ2xlLnByb3RvYnVm",
"LkVtcHR5GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ej8KDGhhc05ld1N0YXR1",
"cxIaLmxvYmJ5Lkxhc3RTdGF0dXNUaW1lc3RhbXAaEy5sb2JieS5IYXNOZXdT",
"dGF0dXMSNwoJZ2V0U3RhdHVzEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhIu",
"bG9iYnkuTG9iYnlTdGF0dXMSNwoFbGVhdmUSFi5nb29nbGUucHJvdG9idWYu",
"RW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1wdHliBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Common.CommonReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Lobby.HasNewStatus), global::Lobby.HasNewStatus.Parser, new[]{ "Value" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Lobby.LastStatusTimestamp), global::Lobby.LastStatusTimestamp.Parser, new[]{ "Time", "Lobby" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Lobby.CardID), global::Lobby.CardID.Parser, new[]{ "GameId", "CardId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Lobby.Image), global::Lobby.Image.Parser, new[]{ "Content" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Lobby.Vote), global::Lobby.Vote.Parser, new[]{ "Player", "Game", "Ready" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Lobby.SingleVote), global::Lobby.SingleVote.Parser, new[]{ "Game" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Lobby.LobbyStatus), global::Lobby.LobbyStatus.Parser, new[]{ "Names", "Votes", "IsStarting" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class HasNewStatus : pb::IMessage<HasNewStatus>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<HasNewStatus> _parser = new pb::MessageParser<HasNewStatus>(() => new HasNewStatus());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<HasNewStatus> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HasNewStatus() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HasNewStatus(HasNewStatus other) : this() {
value_ = other.value_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HasNewStatus Clone() {
return new HasNewStatus(this);
}
/// <summary>Field number for the "value" field.</summary>
public const int ValueFieldNumber = 1;
private bool value_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Value {
get { return value_; }
set {
value_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as HasNewStatus);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(HasNewStatus other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Value != other.Value) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Value != false) hash ^= Value.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 (Value != false) {
output.WriteRawTag(8);
output.WriteBool(Value);
}
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 (Value != false) {
output.WriteRawTag(8);
output.WriteBool(Value);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Value != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(HasNewStatus other) {
if (other == null) {
return;
}
if (other.Value != false) {
Value = other.Value;
}
_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: {
Value = input.ReadBool();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Value = input.ReadBool();
break;
}
}
}
}
#endif
}
public sealed partial class LastStatusTimestamp : pb::IMessage<LastStatusTimestamp>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<LastStatusTimestamp> _parser = new pb::MessageParser<LastStatusTimestamp>(() => new LastStatusTimestamp());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<LastStatusTimestamp> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LastStatusTimestamp() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LastStatusTimestamp(LastStatusTimestamp other) : this() {
time_ = other.time_ != null ? other.time_.Clone() : null;
lobby_ = other.lobby_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LastStatusTimestamp Clone() {
return new LastStatusTimestamp(this);
}
/// <summary>Field number for the "time" field.</summary>
public const int TimeFieldNumber = 1;
private global::Google.Protobuf.WellKnownTypes.Timestamp time_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Protobuf.WellKnownTypes.Timestamp Time {
get { return time_; }
set {
time_ = value;
}
}
/// <summary>Field number for the "lobby" field.</summary>
public const int LobbyFieldNumber = 2;
private uint lobby_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Lobby {
get { return lobby_; }
set {
lobby_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as LastStatusTimestamp);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(LastStatusTimestamp other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Time, other.Time)) return false;
if (Lobby != other.Lobby) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (time_ != null) hash ^= Time.GetHashCode();
if (Lobby != 0) hash ^= Lobby.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 (time_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Time);
}
if (Lobby != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Lobby);
}
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 (time_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Time);
}
if (Lobby != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Lobby);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (time_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time);
}
if (Lobby != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Lobby);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(LastStatusTimestamp other) {
if (other == null) {
return;
}
if (other.time_ != null) {
if (time_ == null) {
Time = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
Time.MergeFrom(other.Time);
}
if (other.Lobby != 0) {
Lobby = other.Lobby;
}
_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 (time_ == null) {
Time = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(Time);
break;
}
case 16: {
Lobby = input.ReadUInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
if (time_ == null) {
Time = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(Time);
break;
}
case 16: {
Lobby = input.ReadUInt32();
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::Lobby.LobbyReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CardID() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CardID(CardID other) : this() {
gameId_ = other.gameId_;
cardId_ = other.cardId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CardID Clone() {
return new CardID(this);
}
/// <summary>Field number for the "gameId" field.</summary>
public const int GameIdFieldNumber = 1;
private uint gameId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint GameId {
get { return gameId_; }
set {
gameId_ = value;
}
}
/// <summary>Field number for the "cardId" field.</summary>
public const int CardIdFieldNumber = 2;
private string cardId_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string CardId {
get { return cardId_; }
set {
cardId_ = pb::ProtoPreconditions.CheckNotNull(value, "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 (GameId != other.GameId) return false;
if (CardId != other.CardId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (GameId != 0) hash ^= GameId.GetHashCode();
if (CardId.Length != 0) hash ^= CardId.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 (GameId != 0) {
output.WriteRawTag(8);
output.WriteUInt32(GameId);
}
if (CardId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(CardId);
}
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 (GameId != 0) {
output.WriteRawTag(8);
output.WriteUInt32(GameId);
}
if (CardId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(CardId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (GameId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GameId);
}
if (CardId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CardId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(CardID other) {
if (other == null) {
return;
}
if (other.GameId != 0) {
GameId = other.GameId;
}
if (other.CardId.Length != 0) {
CardId = other.CardId;
}
_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: {
GameId = input.ReadUInt32();
break;
}
case 18: {
CardId = 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 8: {
GameId = input.ReadUInt32();
break;
}
case 18: {
CardId = input.ReadString();
break;
}
}
}
}
#endif
}
public sealed partial class Image : pb::IMessage<Image>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Image> _parser = new pb::MessageParser<Image>(() => new Image());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Image> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.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() {
content_ = other.content_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Image Clone() {
return new Image(this);
}
/// <summary>Field number for the "content" field.</summary>
public const int ContentFieldNumber = 1;
private pb::ByteString content_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString Content {
get { return content_; }
set {
content_ = 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 (Content != other.Content) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Content.Length != 0) hash ^= Content.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 (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteBytes(Content);
}
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 (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteBytes(Content);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Content.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Content);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Image other) {
if (other == null) {
return;
}
if (other.Content.Length != 0) {
Content = other.Content;
}
_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: {
Content = input.ReadBytes();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Content = input.ReadBytes();
break;
}
}
}
}
#endif
}
public sealed partial class Vote : pb::IMessage<Vote>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Vote> _parser = new pb::MessageParser<Vote>(() => new Vote());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Vote> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Vote() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Vote(Vote other) : this() {
player_ = other.player_;
game_ = other.game_;
ready_ = other.ready_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Vote Clone() {
return new Vote(this);
}
/// <summary>Field number for the "player" field.</summary>
public const int PlayerFieldNumber = 1;
private string player_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Player {
get { return player_; }
set {
player_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "game" field.</summary>
public const int GameFieldNumber = 2;
private uint game_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Game {
get { return game_; }
set {
game_ = value;
}
}
/// <summary>Field number for the "ready" field.</summary>
public const int ReadyFieldNumber = 3;
private bool ready_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Ready {
get { return ready_; }
set {
ready_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Vote);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Vote other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Player != other.Player) return false;
if (Game != other.Game) return false;
if (Ready != other.Ready) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Player.Length != 0) hash ^= Player.GetHashCode();
if (Game != 0) hash ^= Game.GetHashCode();
if (Ready != false) hash ^= Ready.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 (Player.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Player);
}
if (Game != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Game);
}
if (Ready != false) {
output.WriteRawTag(24);
output.WriteBool(Ready);
}
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 (Player.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Player);
}
if (Game != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Game);
}
if (Ready != false) {
output.WriteRawTag(24);
output.WriteBool(Ready);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Player.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Player);
}
if (Game != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Game);
}
if (Ready != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Vote other) {
if (other == null) {
return;
}
if (other.Player.Length != 0) {
Player = other.Player;
}
if (other.Game != 0) {
Game = other.Game;
}
if (other.Ready != false) {
Ready = other.Ready;
}
_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: {
Player = input.ReadString();
break;
}
case 16: {
Game = input.ReadUInt32();
break;
}
case 24: {
Ready = input.ReadBool();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Player = input.ReadString();
break;
}
case 16: {
Game = input.ReadUInt32();
break;
}
case 24: {
Ready = input.ReadBool();
break;
}
}
}
}
#endif
}
public sealed partial class SingleVote : pb::IMessage<SingleVote>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<SingleVote> _parser = new pb::MessageParser<SingleVote>(() => new SingleVote());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SingleVote> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SingleVote() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SingleVote(SingleVote other) : this() {
game_ = other.game_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SingleVote Clone() {
return new SingleVote(this);
}
/// <summary>Field number for the "game" field.</summary>
public const int GameFieldNumber = 2;
private uint game_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Game {
get { return game_; }
set {
game_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SingleVote);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SingleVote other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Game != other.Game) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Game != 0) hash ^= Game.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 (Game != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Game);
}
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 (Game != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Game);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Game != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Game);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SingleVote other) {
if (other == null) {
return;
}
if (other.Game != 0) {
Game = other.Game;
}
_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 16: {
Game = 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 16: {
Game = input.ReadUInt32();
break;
}
}
}
}
#endif
}
public sealed partial class LobbyStatus : pb::IMessage<LobbyStatus>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<LobbyStatus> _parser = new pb::MessageParser<LobbyStatus>(() => new LobbyStatus());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<LobbyStatus> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LobbyStatus() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LobbyStatus(LobbyStatus other) : this() {
names_ = other.names_.Clone();
votes_ = other.votes_.Clone();
isStarting_ = other.isStarting_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LobbyStatus Clone() {
return new LobbyStatus(this);
}
/// <summary>Field number for the "names" field.</summary>
public const int NamesFieldNumber = 1;
private static readonly pb::FieldCodec<global::Common.Name> _repeated_names_codec
= pb::FieldCodec.ForMessage(10, 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 "votes" field.</summary>
public const int VotesFieldNumber = 2;
private static readonly pb::FieldCodec<global::Lobby.Vote> _repeated_votes_codec
= pb::FieldCodec.ForMessage(18, global::Lobby.Vote.Parser);
private readonly pbc::RepeatedField<global::Lobby.Vote> votes_ = new pbc::RepeatedField<global::Lobby.Vote>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Lobby.Vote> Votes {
get { return votes_; }
}
/// <summary>Field number for the "isStarting" field.</summary>
public const int IsStartingFieldNumber = 3;
private bool isStarting_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool IsStarting {
get { return isStarting_; }
set {
isStarting_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as LobbyStatus);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(LobbyStatus other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!names_.Equals(other.names_)) return false;
if(!votes_.Equals(other.votes_)) return false;
if (IsStarting != other.IsStarting) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= names_.GetHashCode();
hash ^= votes_.GetHashCode();
if (IsStarting != false) hash ^= IsStarting.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
names_.WriteTo(output, _repeated_names_codec);
votes_.WriteTo(output, _repeated_votes_codec);
if (IsStarting != false) {
output.WriteRawTag(24);
output.WriteBool(IsStarting);
}
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) {
names_.WriteTo(ref output, _repeated_names_codec);
votes_.WriteTo(ref output, _repeated_votes_codec);
if (IsStarting != false) {
output.WriteRawTag(24);
output.WriteBool(IsStarting);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += names_.CalculateSize(_repeated_names_codec);
size += votes_.CalculateSize(_repeated_votes_codec);
if (IsStarting != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(LobbyStatus other) {
if (other == null) {
return;
}
names_.Add(other.names_);
votes_.Add(other.votes_);
if (other.IsStarting != false) {
IsStarting = other.IsStarting;
}
_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: {
names_.AddEntriesFrom(input, _repeated_names_codec);
break;
}
case 18: {
votes_.AddEntriesFrom(input, _repeated_votes_codec);
break;
}
case 24: {
IsStarting = input.ReadBool();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
names_.AddEntriesFrom(ref input, _repeated_names_codec);
break;
}
case 18: {
votes_.AddEntriesFrom(ref input, _repeated_votes_codec);
break;
}
case 24: {
IsStarting = input.ReadBool();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code