//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: lobby.proto
//
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Lobby {
/// Holder for reflection information generated from lobby.proto
public static partial class LobbyReflection {
#region Descriptor
/// File descriptor for lobby.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static LobbyReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cgtsb2JieS5wcm90bxIFbG9iYnkaG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5w",
"cm90bxoMY29tbW9uLnByb3RvIjMKBFZvdGUSDgoGcGxheWVyGAEgASgJEgwK",
"BGdhbWUYAiABKA0SDQoFcmVhZHkYAyABKAgiGgoKU2luZ2xlVm90ZRIMCgRn",
"YW1lGAIgASgNIloKC0xvYmJ5U3RhdHVzEhsKBW5hbWVzGAEgAygLMgwuY29t",
"bW9uLk5hbWUSGgoFdm90ZXMYAiADKAsyCy5sb2JieS5Wb3RlEhIKCmlzU3Rh",
"cnRpbmcYAyABKAgy1wIKBUxvYmJ5Ei8KBXVzZXJzEhYuZ29vZ2xlLnByb3Rv",
"YnVmLkVtcHR5GgwuY29tbW9uLk5hbWUwARIxCgR2b3RlEhEubG9iYnkuU2lu",
"Z2xlVm90ZRoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRI3CgVyZWFkeRIWLmdv",
"b2dsZS5wcm90b2J1Zi5FbXB0eRoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRI/",
"Cgpwb2xsU3RhdHVzEhsuY29tbW9uLkxhc3RTdGF0dXNUaW1lc3RhbXAaFC5j",
"b21tb24uSGFzTmV3U3RhdHVzEjcKCWdldFN0YXR1cxIWLmdvb2dsZS5wcm90",
"b2J1Zi5FbXB0eRoSLmxvYmJ5LkxvYmJ5U3RhdHVzEjcKBWxlYXZlEhYuZ29v",
"Z2xlLnByb3RvYnVmLkVtcHR5GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5YgZw",
"cm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Common.CommonReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::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 Vote : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vote());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.Descriptor.MessageTypes[0]; }
}
[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);
}
/// Field number for the "player" field.
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");
}
}
/// Field number for the "game" field.
public const int GameFieldNumber = 2;
private uint game_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Game {
get { return game_; }
set {
game_ = value;
}
}
/// Field number for the "ready" field.
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
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SingleVote());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.Descriptor.MessageTypes[1]; }
}
[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);
}
/// Field number for the "game" field.
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
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LobbyStatus());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Lobby.LobbyReflection.Descriptor.MessageTypes[2]; }
}
[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);
}
/// Field number for the "names" field.
public const int NamesFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_names_codec
= pb::FieldCodec.ForMessage(10, global::Common.Name.Parser);
private readonly pbc::RepeatedField names_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Names {
get { return names_; }
}
/// Field number for the "votes" field.
public const int VotesFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_votes_codec
= pb::FieldCodec.ForMessage(18, global::Lobby.Vote.Parser);
private readonly pbc::RepeatedField votes_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Votes {
get { return votes_; }
}
/// Field number for the "isStarting" field.
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